/* ── RESET & ROOT ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --surface: #1d1d1f;
  --white: #ffffff;
  --muted: rgba(255,255,255,0.6);
  --muted-project: rgba(255,255,255,0.2);
  --dim: rgba(255,255,255,0.3);
  --muted-black: rgba(0,0,0,0.5);
  --radius: 20px;
  --radius-pill: 100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  padding-top: 96px;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}

/* ── NAV ────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--muted-black);
  transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
  max-width: 1600px;
  margin: 0 auto;
}
.site-nav.hidden { transform: translateY(-100%); }

.logo {
  font-family: 'Pirata One', serif;
  font-size: 50px;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
  text-decoration: none;
}

a:hover { color: #003DFF; }

.nav-contact {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.48px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.nav-contact:hover { opacity: .6; color: var(--white); }

/* ── CONTACT FOOTER (shared across all pages) */
.contact-section {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 60px 60px 40px;
}

.contact-cta {
  flex-shrink: 0;
  width: 400px;
  text-align: right;
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -2.6px;
  line-height: 55px;
  color: var(--muted);
}

.contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px 0;
}

.contact-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-email {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.96px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity .2s;
}
.contact-email:hover { opacity: .7; color: var(--white); }

.social-links { display: flex; gap: 10px; }

.social-pill {
  height: 55px;
  width: 126px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-decoration: none;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.social-pill:hover { background: #2d2d2f; color: var(--white); }

/* ── ANIMATIONS ─────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE (shared) ────────────────── */
@media screen and (max-width: 1024px) {
  .contact-section { flex-direction: column; gap: 30px; padding-left: 30px; padding-right: 30px; }
  .contact-cta { width: 100%; text-align: left; font-size: 36px; line-height: 44px; }
  .contact-email { font-size: 22px; }
}

@media screen and (max-width: 640px) {
  .logo { font-size: 36px; }
  .site-nav { padding: 16px 20px; }
  .contact-section { padding-left: 20px; padding-right: 20px; }
}


/* ══════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════ */

/* ── HERO ───────────────────────────────── */
.hero {
  padding: 80px 60px 30px;
  display: flex;
  align-items: center;
  gap: 150px;
}

.hero-headline {
  font-size: 42px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-sub {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -1.3px;
  color: var(--muted);
  line-height: 1.3;
  max-width: 322px;
}

/* ── FULL-WIDTH CARD ────────────────────── */
.card-full {
  margin: 0 60px;
background-color:hsla(248,98%,38%,1);
background-image:
radial-gradient(at 1% 99%, hsla(225,100%,50%,1) 0px, transparent 50%),
radial-gradient(at 95% 93%, hsla(138,100%,50%,1) 0px, transparent 50%);
  border-radius: var(--radius);
  height: 500px;
  overflow: hidden;
  position: relative;
}

.card-full-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

/* ── PHONE SCENE ────────────────────────── */
.phone-scene {
  position: relative;
  width: 600px;
  height: 600px;
  flex-shrink: 0;
}

/* wrappers — JS moves these for parallax */
.phone-back-wrap,
.phone-top-wrap {
  position: absolute;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* back phone: left side, tilted back dramatically */
.phone-back-wrap {
  width: 390px;
  top: 20%;
  left: 2%; 
  z-index: 1;
}

/* front phone: overlaps right, taller, opposite tilt */
.phone-top-wrap {
  width: 325px;
  bottom: 5%;
  left: 50%;
  z-index: 2;
}

/* imgs — CSS handles float animation and entry only */
.phone-back,
.phone-top {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.45));
}

.phone-back {
  transform-origin: center center;
  animation:
    phone-back-entry 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both,
    phone-back-float  6s ease-in-out         1.5s infinite;
}

.phone-top {
  transform-origin: center center;
  animation:
    phone-top-entry 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both,
    phone-top-float  5s ease-in-out         1.8s infinite;
}

/* entry: slide up from below */
@keyframes phone-back-entry {
  from { opacity: 0; transform: translateY(100px) rotate(-22deg); }
  to   { opacity: 1; transform: translateY(0px)   rotate(-22deg); }
}

@keyframes phone-top-entry {
  from { opacity: 0; transform: translateY(80px) rotate(15deg); }
  to   { opacity: 1; transform: translateY(0px)  rotate(15deg); }
}

/* idle float loops */
@keyframes phone-back-float {
  0%, 100% { transform: translateY(0px)   rotate(-22deg); }
  50%       { transform: translateY(-16px) rotate(-20deg); }
}

@keyframes phone-top-float {
  0%, 100% { transform: translateY(0px)   rotate(15deg); }
  50%       { transform: translateY(-12px) rotate(13deg); }
}
.section-header {
  display: flex;
  align-items: center;
  gap: 150px;
  padding: 60px 60px 20px;
}

.section-title {
  font-size: 42px;
  font-weight: 300;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.section-desc {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--muted);
  line-height: 1.25;
  max-width: 635px;
}

/* ── PROJECTS ───────────────────────────── */
.projects-layout {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 60px;
  justify-content: flex-end;
}

.projects-list {
  flex-shrink: 0;
  width: 400px;
  text-align: right;
}

.projects-list li {
  list-style: none;
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 60px;
  color: var(--muted-project);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.projects-list li a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .55s cubic-bezier(.7, 0, .2, 1);
  will-change: transform;
}

.projects-list li::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  color: var(--white);
  pointer-events: none;
  transition: transform .55s cubic-bezier(.7, 0, .2, 1);
  will-change: transform;
}

.projects-list li:hover a,
.projects-list li.active a {
  transform: translateY(-100%);
}

.projects-list li:hover::after,
.projects-list li.active::after {
  transform: translateY(-100%);
}

.card-project {
  flex: 1;
  max-width: 550px;
  background: var(--surface);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.card-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.85s ease;
}

/* ── SERVICES ───────────────────────────── */
.services-grid {
  display: flex;
  gap: 20px;
  padding: 10px 60px;
}

.card-service {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}
.card-service img {
  max-width: 90px;
  margin-bottom: 10px;
}

/* ── SERVICE IMAGE MOTION ───────────────── */
.service-img-wrap {
  will-change: transform;
  transition: transform 0.1s linear;
  display: inline-block;
}

.service-img-wrap img {
  animation: service-float 5s ease-in-out infinite;
  display: block;
  margin-bottom: 20px;
}

/* stagger each card's float so they don't all bob in sync */
.card-service:nth-child(1) .service-img-wrap img { animation-delay: 0s;    }
.card-service:nth-child(2) .service-img-wrap img { animation-delay: 0.6s;  }
.card-service:nth-child(3) .service-img-wrap img { animation-delay: 1.2s;  }

/* second row of cards */
.services-grid:nth-child(2) .card-service:nth-child(1) .service-img-wrap img { animation-delay: 0.3s;  }
.services-grid:nth-child(2) .card-service:nth-child(2) .service-img-wrap img { animation-delay: 0.9s;  }
.services-grid:nth-child(2) .card-service:nth-child(3) .service-img-wrap img { animation-delay: 1.5s;  }

@keyframes service-float {
  0%, 100% { transform: translateY(0px)   rotate(0deg);   }
  30%       { transform: translateY(-10px) rotate(3deg);   }
  70%       { transform: translateY(-6px)  rotate(-2deg);  }
}

.service-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 10px;
  z-index: 1;
  position: relative;
}

.service-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  z-index: 1;
  position: relative;
}

.brand-identity, .design-systems {
  background-color:hsla(248,98%,38%,1);
  background-image:
  radial-gradient(at 1% 1%, hsla(32,100%,52%,1) 0px, transparent 50%),
  radial-gradient(at 99% 99%, hsla(225,100%,50%,1) 0px, transparent 50%);
}

.ui-ux-design, .creative-direction {
  background-color:hsla(248,98%,38%,1);
  background-image:
  radial-gradient(at 1% 1%, hsla(357,91%,47%,0.68) 0px, transparent 50%),
  radial-gradient(at 99% 99%, hsla(225,100%,50%,1) 0px, transparent 50%);
}

.digital-products, .web-design {
  background-color:hsla(248,98%,38%,1);
  background-image:
  radial-gradient(at 0% 1%, hsla(138,100%,50%,1) 0px, transparent 50%),
  radial-gradient(at 99% 99%, hsla(225,100%,50%,1) 0px, transparent 50%);
}

/* ── HOME RESPONSIVE ────────────────────── */
@media screen and (max-width: 1024px) {
  .site-nav, .hero, .section-header, .projects-layout, .services-grid {
    padding-left: 30px;
    padding-right: 30px;
  }
  .hero { flex-direction: column; gap: 30px; padding-top: 50px; }
  .hero-headline { font-size: 32px; white-space: normal; }
  .hero-sub { font-size: 18px; max-width: 100%; }
  .card-full { margin-left: 30px; margin-right: 30px; height: 300px; }
  .section-header { flex-direction: column; gap: 16px; padding-top: 40px; }
  .section-title { font-size: 32px; }
  .section-desc { font-size: 18px; }
  .projects-layout { flex-direction: column; gap: 30px; }
  .projects-list { width: 100%; text-align: left; }
  .projects-list li { font-size: 36px; line-height: 48px; }
  .card-project { width: 100%; }
  .services-grid { flex-direction: column; }
  .card-service { height: 260px; }
}

@media screen and (max-width: 640px) {
  .hero, .section-header, .projects-layout, .services-grid {
    padding-left: 20px;
    padding-right: 20px;
    align-items: flex-start;
  }
  .phone-scene {
  position: relative;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
}
.phone-back-wrap {
  width: 290px;
  top: 20%;
  left: 2%; 
  z-index: 1;
}

/* front phone: overlaps right, taller, opposite tilt */
.phone-top-wrap {
  width: 225px;
  bottom: 5%;
  left: 50%;
  z-index: 2;
}
  .social-pill { height: 50px; width: 100px; }
  .card-full { margin-left: 20px; margin-right: 20px; }
  .projects-list ul { margin-left: 0; }
}


/* ══════════════════════════════════════════
   PROJECT PAGES
═══════════════════════════════════════════ */

.page-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 60px 80px;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 80px 0 30px;
}

.project-title {
  font-size: 68px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1;
}

.project-desc {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -1.3px;
  color: var(--muted);
  line-height: 1.3;
  max-width: 635px;
}

.project-meta {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.9px;
  color: var(--dim);
  line-height: 1.3;
  max-width: 635px;
}

.project-card {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card video {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(150%);
}

.project-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 0 60px;
}

.cta-btn {
  background: var(--surface);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 500;
  padding: 46px 104px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, opacity .2s;
  display: inline-flex;
  align-items: center;
}
.cta-btn:hover { background: #2d2d2f; color: var(--white); }

.display {
    position: relative;
    width: 100%;
}
.display img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
}
.display video {
    top: 21.5%;
    left: 19.7%;
    width: 63.9%;
    position: absolute;
    overflow: hidden;
    object-fit: cover;
}
.display-macbook {
    position: relative;
    width: 100%;
}
.display-macbook img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
}
.display-macbook video {
    top: 19.1%;
    left: 20%;
    width: 61.5%;
    position: absolute;
    overflow: hidden;
    object-fit: cover;
}
.display-feature {
    width: 100%;
    padding: 80px 50px;
    text-align: center;
    background-color:hsla(0,0%,0%,1);
    background-image:
    radial-gradient(at 100% 1%, hsla(306,75%,38%,1) 0px, transparent 50%),
    radial-gradient(at 0% 99%, hsla(32,100%,51%,1) 0px, transparent 50%);
}
.display-feature video {
    max-width: 750px;
    position: relative;
    overflow: hidden;
    object-fit: cover;
    border-radius: 30px;
}

/* ── PROJECT RESPONSIVE ─────────────────── */
@media screen and (max-width: 1024px) {
  .page-content { padding: 0 30px 60px; }
  .project-title { font-size: 48px; }
  .project-desc { font-size: 20px; }
  .cta-btn { font-size: 22px; padding: 30px 60px; }
}

@media screen and (max-width: 640px) {
  .page-content { padding: 0 20px 40px; }
  .project-title { font-size: 36px; }
  .project-card { height: 280px; }
  .project-cta { flex-direction: column; }
  .cta-btn { font-size: 18px; padding: 24px 48px; }
}
