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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #050D1A;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

::selection {
  background: rgba(94, 234, 212, 0.3);
  color: #fff;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5EEAD4;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Hero ── */
.hero-shape {
  position: absolute;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: #5EEAD4;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-circle-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #F5A623;
  bottom: 10%;
  left: -50px;
  animation-delay: -3s;
}

.shape-square-1 {
  width: 120px;
  height: 120px;
  background: #FF6B6B;
  top: 25%;
  left: 8%;
  border-radius: 24px;
  transform: rotate(45deg);
  opacity: 0.12;
  animation-delay: -1s;
}

.shape-square-2 {
  width: 80px;
  height: 80px;
  background: #5EEAD4;
  bottom: 20%;
  right: 12%;
  border-radius: 16px;
  transform: rotate(20deg);
  opacity: 0.1;
  animation-delay: -5s;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid #F5A623;
  top: 30%;
  right: 5%;
  opacity: 0.06;
  animation-delay: -2s;
  filter: blur(1px);
}

.shape-dots {
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(94, 234, 212, 0.4) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  bottom: 15%;
  left: 15%;
  opacity: 0.3;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

/* Hero animations */
.hero-badge {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero-headline {
  animation: fadeUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero-subheadline {
  animation: fadeUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-ctas {
  animation: fadeUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

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

/* ── CTA Buttons ── */
.cta-primary {
  box-shadow: 0 4px 20px rgba(94, 234, 212, 0.2);
}

.cta-primary:hover {
  box-shadow: 0 8px 40px rgba(94, 234, 212, 0.3);
}

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── About ── */
.about-img-wrap {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s ease;
}

.about-img-wrap:hover {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.about-stat {
  position: relative;
}

.about-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Experience Cards ── */
.exp-card {
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.exp-card:hover::before {
  opacity: 1;
}

.exp-card:nth-child(2):hover::before {
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.5), transparent);
}

.exp-card:nth-child(3):hover::before {
  background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.5), transparent);
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 13, 26, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ── Contact Cards ── */
.contact-card {
  border-radius: 20px;
  padding: 4px;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateX(8px);
}

.contact-icon {
  flex-shrink: 0;
}

/* ── Form Inputs ── */
.form-input {
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  border-color: rgba(94, 234, 212, 0.5);
}

.form-input option {
  background: #0A1628;
  color: #fff;
}

/* ── Submit Button ── */
.btn-submit {
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Mobile Menu ── */
#mobile-menu {
  right: 0;
}

#mobile-menu.open {
  transform: translateX(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .shape-circle-1 {
    width: 250px;
    height: 250px;
  }

  .shape-circle-2 {
    width: 150px;
    height: 150px;
  }

  .shape-square-1 {
    width: 60px;
    height: 60px;
  }

  .shape-square-2 {
    width: 40px;
    height: 40px;
  }

  .shape-triangle {
    border-left-width: 30px;
    border-right-width: 30px;
    border-bottom-width: 52px;
  }

  .shape-dots {
    width: 100px;
    height: 100px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .about-stat:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  .hero-headline br {
    display: none;
  }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #5EEAD4;
  outline-offset: 2px;
  border-radius: 4px;
}
