/* ============================================
   MAGNÚS MAGNUS MAGNÚSSON — Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,700;0,800;0,900;1,400&family=Lato:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --teal: #3ecac7;
  --teal-dark: #2eb8b5;
  --gray-bg: #9e9d97;
  --white: #ffffff;
  --header-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: url('images/background-landscape.jpg') center / cover fixed;
  color: var(--white);
}

/* ── HEADER ─────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.header-social a {
  display: flex;
  align-items: center;
  color: #888;
  transition: color 0.2s;
}

.header-social a:hover {
  color: #333;
}

header nav {
  display: flex;
  gap: 40px;
}

header nav a {
  text-decoration: none;
  color: #555;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

header nav a:hover,
header nav a.active {
  color: var(--teal);
}

/* ── PAGE OFFSET FOR FIXED HEADER ───────────── */
.page-content {
  padding-top: var(--header-height);
}

/* ── HERO SECTION ───────────────────────────── */
.hero {
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 500px;
  display: flex;
  justify-content: center;
  /* beach bokeh shows on left/right of the centered content */
  background: url('images/beach-bokeh.jpg') center / cover no-repeat;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 980px;
  overflow: hidden;
}

.hero-inner img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-text {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
}

.hero-text h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 62px);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.45);
}

.hero-text .tagline {
  font-family: 'Lato', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 2vw, 22px);
  color: var(--white);
  margin-top: 12px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.45);
  letter-spacing: 0.04em;
}

/* ── ABOUT SECTION ──────────────────────────── */
.about {
  background:
    linear-gradient(rgba(158, 157, 151, 0.88), rgba(158, 157, 151, 0.88)),
    url('images/headshot-smiling.jpg') center / cover no-repeat;
  padding: 70px 60px;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-left {
  flex: 0 0 340px;
  text-align: center;
}

.about-left img {
  width: 100%;
  max-width: 340px;
  display: block;
  border: 4px solid var(--white);
}

.about-left h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 20px;
}

.about-right {
  flex: 1;
  padding-top: 10px;
}

.about-right p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 300;
}

.about-right p em {
  font-style: italic;
}

.see-resume {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 28px;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.see-resume:hover {
  background: var(--white);
  color: var(--gray-bg);
}

/* ── REELS SECTION ──────────────────────────── */
.reels {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 80px 40px;
  overflow: hidden;
}

.reels-bg {
  position: absolute;
  inset: 0;
  background: url('images/headshot-studio.jpg') center / cover no-repeat;
  filter: brightness(0.55);
}

.reel-btn {
  position: relative;
  z-index: 1;
  display: block;
  width: 520px;
  max-width: 90vw;
  padding: 28px 40px;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 2.5vw, 26px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  border: 3px solid var(--white);
  transition: background 0.2s, transform 0.15s;
}

.reel-btn:hover {
  background: var(--teal-dark);
  transform: scale(1.02);
}

/* ── CONTACT SECTION ────────────────────────── */
.contact {
  background:
    linear-gradient(rgba(158, 157, 151, 0.88), rgba(158, 157, 151, 0.88)),
    url('images/headshot-smiling.jpg') center / cover no-repeat;
  padding: 70px 60px;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.contact-left {
  flex: 0 0 280px;
}

.contact-left h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.contact-left p {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 300;
}

.contact-left a {
  color: var(--white);
  text-decoration: none;
}

.contact-left a:hover {
  text-decoration: underline;
}

.contact-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.contact-social a {
  color: var(--white);
  transition: opacity 0.2s;
}

.contact-social a:hover {
  opacity: 0.7;
}

.contact-right {
  flex: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.5);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #555;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form .submit-row {
  display: flex;
  justify-content: flex-end;
}

.contact-form button[type="submit"] {
  padding: 10px 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button[type="submit"]:hover {
  background: rgba(255,255,255,0.15);
}

/* ── REEL PAGE LAYOUT ───────────────────────── */
.reel-page {
  min-height: calc(100vh - var(--header-height));
  background: url('images/background-landscape.jpg') center / cover fixed;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

.reel-card {
  background: var(--teal);
  width: 100%;
  max-width: 960px;
  padding: 40px 40px 60px;
  margin: 40px 20px;
}

.reel-card .back-btn {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.reel-card .back-btn:hover {
  opacity: 1;
}

.reel-title-box {
  border: 3px solid var(--white);
  padding: 22px 20px;
  text-align: center;
  margin-bottom: 28px;
}

.reel-title-box h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
  }
  header nav {
    gap: 20px;
  }
  header nav a {
    font-size: 12px;
  }

  .about {
    padding: 50px 24px;
  }
  .about-inner {
    flex-direction: column;
    gap: 30px;
  }
  .about-left {
    flex: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .contact {
    padding: 50px 24px;
  }
  .contact-inner {
    flex-direction: column;
    gap: 40px;
  }
  .contact-left {
    flex: none;
    width: 100%;
  }

  .reels {
    padding: 60px 20px;
  }

  .reel-card {
    margin: 20px 10px;
    padding: 24px 20px 40px;
  }
}
