/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Kode Mono', monospace;
  background-color: #fefcf5;
  color: #e42070;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Glassmorphic Navbar */
.navbar {
  position: fixed;
  top: 1.5vw;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3vw;
  padding: 0.8vw 2vw;
  background: url('images/navbar-bg.png') center/cover;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  z-index: 1000;
  white-space: nowrap;
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  color: #e42070;
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2vw;
  flex-shrink: 0;
}

.nav-links a {
  font-family: 'Kode Mono', monospace;
  font-size: clamp(0.7rem, 0.9vw, 0.95rem);
  color: #e42070;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-cta {
  background: #e42070;
  color: white !important;
  padding: 0.5vw 1.2vw;
  border-radius: 25px;
  font-weight: 700 !important;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.9 !important;
  transform: scale(1.02);
}

.container {
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  text-align: center;
  padding-top: 8vw;
  position: relative;
}

.title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 400;
  font-style: normal;
  color: #e42070;
  margin-bottom: 0.5vw;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tagline {
  font-family: 'Kode Mono', monospace;
  font-size: clamp(0.9rem, 2.2vw, 2rem);
  font-weight: 400;
  color: #e42070;
  margin-bottom: 3vw;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Phone Showcase - container for the phone arrangement */
.phone-showcase {
  position: relative;
  width: 100%;
  height: 42vw;
  max-height: 600px;
  margin: 0 auto;
}

.phone {
  position: absolute;
}

.phone img {
  width: 100%;
  height: auto;
}

/* LEFT phone (Reviews) - behind */
.phone-reviews {
  width: 22%;
  top: 0;
  left: 30%;
  z-index: 3;
  animation: fadeInLeft 1s ease-out 0.6s both;
}

/* RIGHT phone (Valencia) - in front, overlaps left, starts lower */
.phone-main {
  width: 20%;
  top: 12%;
  left: 42%;
  z-index: 5;
  animation: fadeInRight 1s ease-out 0.8s both;
}

/* Disco ball - top left corner of LEFT phone (reviews) */
.phone-disco {
  width: 7%;
  top: -0.5%;
  left: 30.8%;
  z-index: 15;
  animation: rotate 20s linear infinite, scaleIn 0.6s ease-out 1s both;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Martini - bottom right corner of RIGHT phone */
.phone-martini {
  width: 5%;
  top: 78.7%;
  left: 56.1%;
  z-index: 10;
  animation: scaleIn 0.6s ease-out 1.2s both, float 3s ease-in-out 1.8s infinite;
}

/* Annotations */
.annotation {
  position: absolute;
  z-index: 10;
}

.annotation img {
  width: 100%;
  height: auto;
}

/* Left annotation - far left, vertically centered with left phone */
.annotation-left {
  width: 14%;
  max-width: 200px;
  top: 12.0%;
  left: 19.3%;
  animation: fadeInLeft 0.8s ease-out 1s both;
}

/* Right annotation - far right, vertically centered with right phone */
.annotation-right {
  width: 14%;
  max-width: 200px;
  top: 26.3%;
  left: 59.7%;
  animation: fadeInRight 0.8s ease-out 1.2s both;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  margin: 3vw auto 4vw;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: white;
  background-color: #e42070;
  border: none;
  padding: 0.8vw 3vw;
  border-radius: 1vw;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease-out 1.4s both;
}

.cta-button::after {
  content: ' \1F334';
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(228, 32, 112, 0.3);
  animation: pulse 0.5s ease-in-out;
}

/* Features Section */
.features {
  padding: 2vw 5% 3vw;
}

.feature-columns {
  display: flex;
  justify-content: center;
  gap: 3vw;
  flex-wrap: wrap;
}

.feature-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-column.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature-column:nth-child(1) { transition-delay: 0.1s; }
.feature-column:nth-child(2) { transition-delay: 0.2s; }
.feature-column:nth-child(3) { transition-delay: 0.3s; }

.feature-item {
  font-family: 'Kode Mono', monospace;
  font-size: clamp(0.75rem, 1.4vw, 1.3rem);
  font-weight: 700;
  color: #e42070;
  margin-bottom: 1.5vw;
}

.feature-phone img {
  width: clamp(180px, 18vw, 280px);
  height: auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-phone img:hover {
  transform: translateY(-15px) scale(1.02);
}

/* Footer */
.footer {
  padding: 3vw 5% 2vw;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5vw;
  margin-bottom: 1.5vw;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.15) translateY(-3px);
}

.social-icons svg {
  width: clamp(24px, 2vw, 32px);
  height: clamp(24px, 2vw, 32px);
}

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

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 4vw;
  flex-wrap: wrap;
  margin-bottom: 1.5vw;
}

.footer-nav a {
  font-family: 'Kode Mono', monospace;
  font-size: clamp(0.65rem, 1.2vw, 1.1rem);
  font-weight: 700;
  color: #7c7b78;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #e42070;
}

.copyright {
  font-family: 'Kode Mono', monospace;
  font-size: clamp(0.55rem, 0.9vw, 0.85rem);
  color: #7c7b78;
  margin-top: 1vw;
}

/* Responsive - under 900px */
@media (max-width: 900px) {
  /* Navbar */
  .navbar {
    top: 12px;
    padding: 10px 20px;
    gap: 15px;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 0.8rem !important;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
  }

  .title {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  /* Phone showcase */
  .phone-showcase {
    height: 60vw;
    max-height: none;
  }

  /* Phones - centered */
  .phone-reviews {
    width: 26%;
    left: 28%;
    top: 0;
  }

  .phone-main {
    width: 24%;
    left: 43%;
    top: 12%;
  }

  /* Disco ball - top left corner of reviews phone */
  .phone-disco {
    width: 8%;
    top: -1%;
    left: 27%;
  }

  /* Martini - bottom right of main phone */
  .phone-martini {
    width: 6%;
    top: 76%;
    left: 59%;
  }

  /* Annotations */
  .annotation-left {
    width: 15%;
    left: 14%;
    top: 10%;
  }

  .annotation-right {
    width: 15%;
    left: 64%;
    top: 24%;
  }

  /* CTA */
  .cta-button {
    margin: 30px auto 40px;
    padding: 14px 35px;
    font-size: 1.4rem;
    border-radius: 12px;
  }

  /* Features */
  .features {
    padding: 30px 5% 40px;
  }

  .feature-columns {
    gap: 25px;
  }

  .feature-item {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .feature-phone img {
    width: 180px;
  }

  /* Footer */
  .footer {
    padding: 40px 5% 30px;
  }

  .social-icons {
    gap: 20px;
    margin-bottom: 20px;
  }

  .social-icons svg {
    width: 28px;
    height: 28px;
  }

  .footer-nav {
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }

  .copyright {
    font-size: 0.75rem;
    margin-top: 15px;
  }
}

/* Responsive - mobile */
@media (max-width: 650px) {
  /* Navbar - hide features link */
  .navbar {
    top: 10px;
    padding: 10px 18px;
    gap: 12px;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 0.8rem !important;
  }

  /* Hero */
  .hero {
    padding-top: 90px;
  }

  .title {
    font-size: 2.5rem;
    padding: 0 10px;
  }

  .tagline {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  /* Phone showcase */
  .phone-showcase {
    height: 70vw;
  }

  .phone-reviews {
    width: 30%;
    left: 26%;
    top: 0;
  }

  .phone-main {
    width: 28%;
    left: 42%;
    top: 12%;
  }

  /* Disco ball - top left of reviews phone */
  .phone-disco {
    width: 9%;
    top: -1.5%;
    left: 25%;
  }

  /* Martini - bottom right of main phone */
  .phone-martini {
    width: 7%;
    top: 72%;
    left: 62%;
  }

  /* Annotations - smaller but visible */
  .annotation-left {
    width: 18%;
    left: 8%;
    top: 8%;
  }

  .annotation-right {
    width: 18%;
    left: 68%;
    top: 22%;
  }

  /* CTA */
  .cta-button {
    margin: 25px auto 35px;
    padding: 14px 30px;
    font-size: 1.3rem;
    border-radius: 10px;
  }

  /* Features - stack vertically */
  .features {
    padding: 25px 5% 35px;
  }

  .feature-columns {
    flex-direction: column;
    align-items: center;
    gap: 35px;
  }

  .feature-column {
    width: 100%;
    max-width: 280px;
  }

  .feature-item {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .feature-phone img {
    width: 220px;
  }

  /* Footer */
  .footer {
    padding: 35px 5% 25px;
  }

  .social-icons {
    gap: 25px;
    margin-bottom: 25px;
  }

  .social-icons svg {
    width: 30px;
    height: 30px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }

  .copyright {
    font-size: 0.75rem;
  }
}

/* Responsive - small mobile */
@media (max-width: 480px) {
  /* Navbar - compact */
  .navbar {
    top: 10px;
    padding: 8px 14px;
    gap: 10px;
  }

  .nav-logo {
    font-size: 0.85rem;
  }

  .nav-cta {
    padding: 6px 12px;
    font-size: 0.75rem !important;
  }

  /* Hero */
  .hero {
    padding-top: 80px;
  }

  .title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  /* Phone showcase */
  .phone-showcase {
    height: 80vw;
  }

  .phone-reviews {
    width: 34%;
    left: 24%;
    top: 0;
  }

  .phone-main {
    width: 32%;
    left: 42%;
    top: 12%;
  }

  /* Disco ball - top left corner of reviews phone */
  .phone-disco {
    width: 10%;
    top: -2%;
    left: 23%;
  }

  /* Martini - bottom right of main phone */
  .phone-martini {
    width: 8%;
    top: 70%;
    left: 65%;
  }

  /* Annotations - small but visible */
  .annotation-left {
    width: 20%;
    left: 4%;
    top: 5%;
  }

  .annotation-right {
    width: 20%;
    left: 74%;
    top: 18%;
  }

  /* CTA */
  .cta-button {
    margin: 20px auto 30px;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 8px;
  }

  /* Features */
  .features {
    padding: 20px 5% 30px;
  }

  .feature-columns {
    gap: 30px;
  }

  .feature-item {
    font-size: 0.9rem;
  }

  .feature-phone img {
    width: 200px;
  }

  /* Footer */
  .footer {
    padding: 30px 5% 20px;
  }

  .footer-nav a {
    font-size: 0.8rem;
  }

  .copyright {
    font-size: 0.7rem;
  }
}
