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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #080e1a;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 30px rgba(0,0,0,0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2dd4bf;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== GEOMETRIC DECORATIVE SHAPES ===== */
.geo-shape {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}

.geo-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 2px solid #2dd4bf;
  top: -150px;
  right: -150px;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #0d9488;
  bottom: 10%;
  left: -80px;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  border: 2px solid #5eead4;
  top: 25%;
  left: 8%;
  transform: rotate(45deg);
  animation: spin-slow 25s linear infinite;
}

.geo-square-2 {
  width: 80px;
  height: 80px;
  background: #14b8a6;
  bottom: 20%;
  right: 12%;
  transform: rotate(20deg);
  animation: float-slow 12s ease-in-out infinite;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid #2dd4bf;
  opacity: 0.04;
  top: 40%;
  right: 5%;
  animation: spin-slow 30s linear infinite reverse;
}

.geo-ring-1 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px dashed #0d9488;
  bottom: 5%;
  left: 15%;
  animation: spin-slow 40s linear infinite;
}

.geo-dots span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2dd4bf;
  opacity: 0.15;
}

.geo-dots span:nth-child(1)  { top: 15%; left: 5%; }
.geo-dots span:nth-child(2)  { top: 15%; left: 8%; }
.geo-dots span:nth-child(3)  { top: 15%; left: 11%; }
.geo-dots span:nth-child(4)  { top: 18%; left: 5%; }
.geo-dots span:nth-child(5)  { top: 18%; left: 11%; }
.geo-dots span:nth-child(6)  { top: 75%; right: 8%; }
.geo-dots span:nth-child(7)  { top: 75%; right: 11%; }
.geo-dots span:nth-child(8)  { top: 78%; right: 8%; }
.geo-dots span:nth-child(9)  { top: 78%; right: 11%; }
.geo-dots span:nth-child(10) { top: 81%; right: 8%; }
.geo-dots span:nth-child(11) { top: 81%; right: 11%; }
.geo-dots span:nth-child(12) { top: 50%; left: 3%; }
.geo-dots span:nth-child(13) { top: 53%; left: 3%; }
.geo-dots span:nth-child(14) { top: 50%; right: 3%; }
.geo-dots span:nth-child(15) { top: 53%; right: 3%; }

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

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

/* ===== CTA BUTTONS ===== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #14b8a6;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 25px rgba(20, 184, 166, 0.35), 0 0 0 0 rgba(20, 184, 166, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  border-radius: inherit;
}

.cta-primary:hover {
  background: #2dd4bf;
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(45, 212, 191, 0.45), 0 0 0 4px rgba(45, 212, 191, 0.15);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f1f5f9;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* ===== CTA SECTION BUTTONS ===== */
.cta-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #fff;
  color: #0d9488;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 25px rgba(0,0,0,0.2);
}

.cta-cta-primary:hover {
  background: #f0fdfa;
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(0,0,0,0.3);
}

.cta-cta-primary .cta-arrow {
  transition: transform 0.3s ease;
}

.cta-cta-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(45, 212, 191, 0.2);
}

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

/* ===== STAT CARDS ===== */
.stat-card {
  position: relative;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-card--teal {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.25) 0%, rgba(13, 148, 136, 0.1) 100%);
  border-color: rgba(45, 212, 191, 0.2);
}

.stat-card--slate {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255,255,255,0.06);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2dd4bf;
  line-height: 1;
}

.stat-card--slate .stat-number {
  color: #f1f5f9;
}

.stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ===== PROJECT CARDS ===== */
.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/2;
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 14, 26, 0.95) 0%, rgba(8, 14, 26, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(45, 212, 191, 0.2);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #5eead4;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d9488, #2dd4bf, #5eead4);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

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

/* ===== CONTACT FORM ===== */
.contact-form-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15) !important;
}

.input::placeholder {
  color: #64748b;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: #14b8a6;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.btn-submit:hover {
  background: #2dd4bf;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .geo-circle-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -80px;
  }

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

  .geo-square-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 5%;
  }

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

  .geo-triangle-1 {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #2dd4bf;
  }

  .geo-ring-1 {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 640px) {
  .stat-number {
    font-size: 2rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }
}
