/* ===== CSS Custom Properties ===== */
:root {
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-300: #5eead4;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigation ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
  transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
  color: #0f172a;
}

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #475569;
}

#navbar.scrolled .nav-link:hover {
  color: #0d9488;
}

#navbar.scrolled .nav-link::after {
  background: #0d9488;
}

/* Mobile Menu */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  margin-right: 0;
  transform: rotate(-45deg) translate(5px, -5px);
}

#mobileMenu.open {
  transform: translateX(0);
}

.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* ===== Hero Geometric Shapes ===== */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.1) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-square-1 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(13, 148, 136, 0.2);
  top: 25%;
  right: 10%;
  transform: rotate(45deg);
  animation: spin 20s linear infinite;
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(13, 148, 136, 0.08);
  bottom: 20%;
  right: 25%;
  animation: float 7s ease-in-out infinite;
}

.shape-dots {
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(13, 148, 136, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  top: 40%;
  left: -50px;
  opacity: 0.6;
}

.shape-circle-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.shape-square-2 {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(94, 234, 212, 0.15);
  top: 15%;
  left: 8%;
  transform: rotate(30deg);
  animation: spin 15s linear infinite reverse;
}

.shape-circle-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
}

.shape-square-3 {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  bottom: 10%;
  right: 15%;
  transform: rotate(60deg);
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

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

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

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: inherit;
}

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

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
  cursor: pointer;
}

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

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

/* ===== Testimonial Cards ===== */
.testimonial-card {
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.revealed {
    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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ===== Selection ===== */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: #0f172a;
}

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

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

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

  .shape-triangle-1 {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(13, 148, 136, 0.08);
  }
}
