/* =========================================================
   SOMANNA B U — PORTFOLIO STYLES
   ---------------------------------------------------------
   Warm cream background, handwritten script headings,
   red accents, rounded sans-serif body — matching the
   Framer site.

   The colours below (in :root) are the easiest to change.
   ========================================================= */

:root {
  --cream: #fefbf6;        /* page background (exact, from your site) */
  --card: #f8efda;         /* warm card behind project images */
  --ink: #2e1f05;          /* dark brown — script headings (exact) */
  --body: #5c3d0a;         /* warm dark body text */
  --muted: rgba(0, 0, 0, 0.2);  /* faded labels */
  --red: #720e17;          /* red accent — nav, links (exact) */
  --line: #ece3d2;         /* thin divider lines */
  --max-width: 936px;      /* content column width */
}

/* ----- Reset & base ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--body);
  line-height: 150%;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Shared content column */
.nav,
.hero,
.logos,
.projects,
.about,
.contact,
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section label — small, faded, uppercase, spaced out */
.label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: var(--max-width);
}

.label--center {
  text-align: center;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;                /* space between logo and the work/about links */
  padding-top: 0;           /* flush to the top */
  padding-bottom: 16px;
}

/* Embossed maroon button with your name — exact recreation of the Framer
   element (.framer-looppu). Note: square corners, no border-radius. */
.nav__name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2em;
  color: rgb(87, 11, 18);                          /* dark red letterpress text */
  background: linear-gradient(rgb(172, 21, 34) 0%, rgb(114, 14, 23) 100%);
  box-shadow:
    inset -2px -2px 4px rgb(186, 22, 37),          /* light inner glow, top-left */
    inset 4px 2px 4px rgb(186, 22, 37),            /* light inner glow, bottom-right */
    0 1px 2px rgba(129, 16, 26, 0.4),              /* soft outer drop shadow */
    inset 0.5px 0.5px 1px rgb(255, 58, 58);        /* bright top-left highlight */
  padding: 12px 16px;                              /* exact Framer padding */
  transition: transform 100ms ease-out;
}

.nav__name:active {
  transform: scale(0.96);
}

/* work / about — left-aligned, right next to the logo */
.nav__center {
  display: flex;
  gap: 28px;
  font-size: 16px;
  color: var(--red);
}

.nav__center a {
  transition: opacity 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav__center a:hover {
    opacity: 0.7;
  }
}

.nav__cta {
  font-size: 16px;
  color: var(--red);
  margin-left: auto;        /* pushes "let's talk" to the far right */
  transition: opacity 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover {
    opacity: 0.7;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: flex;
  gap: 48px;
  align-items: flex-start;   /* photo aligns to the TOP, level with the heading */
  min-height: 80vh;
  padding-top: 48px;
  padding-bottom: 0;
}

.hero__text {
  flex: 1;
}

/* Handwritten script headline */
.hero__title {
  font-family: "Beth Ellen", cursive;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.4em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}

.hero__lead {
  font-size: 20px;
  color: var(--body);
  margin-bottom: 16px;
}

.hero__sub {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 32px;
  max-width: 460px;
  text-wrap: pretty;
}

.hero__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero__link:hover {
    opacity: 0.7;
  }
}

/* The photo on the right */
.hero__photo {
  width: 320px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  background: var(--card);
  /* Squircle / superellipse corners like Framer (corner-shape),
     with a plain rounded radius as the fallback */
  border-radius: 2px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Placeholder text if image missing */
.hero__photo.is-empty::after,
.project__shot.is-empty::after {
  content: "Add your image → images/ folder";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #c9bfa9;
  font-size: 14px;
  text-align: center;
  padding: 0 16px;
}

/* =========================================================
   LOGO WALL
   ========================================================= */
.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logos {
  padding-top: 56px;
  padding-bottom: 80px;
}

.logos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.logo-card {
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  height: 120px;
}

.logo-card img {
  max-width: 130px;
  max-height: 60px;
  width: 100%;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(1);
}

.logo-card img.invert {
  filter: invert(1) grayscale(1);
}

/* =========================================================
   WORK / PROJECTS
   ========================================================= */
.work {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 60px;
  padding-bottom: 40px;
}

.work > h2.label {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}


/* Looping showreel banner under the "Selected Work" heading */
.work__reel-wrapper {
  background: rgba(255, 233, 196, 0.2);
  border-radius: 20px;
  padding: 40px 10%;
  margin: 12px 0 60px;
}

.work__reel {
  border-radius: 14px;
  overflow: hidden;
}

.work__reel video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.project__year {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Handwritten script project name */
.project__title {
  font-family: "Beth Ellen", cursive;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.4em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}

.project__tagline {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 28px;
}

.project__desc {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin: 0 auto 28px;
  text-wrap: pretty;
}

.project__roles {
  font-size: 16px;
  color: var(--muted);
  padding-top: 24px;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* The warm card holding the project screenshot */
.project__shot {
  width: min(1120px, 100vw);
  margin-left: 50%;
  transform: translateX(-50%);
  margin-bottom: 36px;
}

.project__shot img {
  width: 100%;
  border-radius: 2px;
  display: block;
}

/* When image missing, show placeholder inside the card */
.project__shot.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Testimonial */
.quote {
  font-size: 16px;
  color: var(--body);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 28px;
}

.quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

.project__link {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: var(--red);
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 3px;
  transition: opacity 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project__link:hover {
    opacity: 0.7;
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding-top: 40px;
  padding-bottom: 60px;
}

.about__text {
  font-size: 20px;
  line-height: 150%;
  color: var(--body);
  max-width: 620px;
  text-wrap: pretty;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding-top: 60px;
  padding-bottom: 40px;
}

.contact__links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--red);
}

.contact__links a {
  transition: opacity 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact__links a:hover {
    opacity: 0.7;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding-top: 40px;
  padding-bottom: 60px;
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */
@media (max-width: 720px) {
  .hero {
    flex-direction: column-reverse;
    text-align: left;
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .hero {
    min-height: auto;        /* on phones, let it size to content */
  }
  .hero__photo {
    width: 100%;
    max-width: 320px;
  }
  .hero__title {
    font-size: 28px;
  }
  .logos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }
  .nav__center {
    margin: 0;
  }
  .project__title {
    font-size: 28px;
  }
  .project__shot {
    padding: 20px;
  }
}
