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

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

body {
  min-height: 100vh;
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.geo-circle--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.geo-triangle--1 {
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(20, 184, 166, 0.06);
  top: 25%;
  right: 8%;
  animation: spin-slow 30s linear infinite;
  transform-origin: center;
}

.geo-rect {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(20, 184, 166, 0.08);
  border-radius: 20px;
  top: 60%;
  right: 5%;
  transform: rotate(45deg);
  animation: float-slow 12s ease-in-out infinite;
}

.geo-dot-grid {
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(20, 184, 166, 0.2) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  pointer-events: none;
}

/* ===== DIAMONDS (About section) ===== */
.geo-diamond {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(20, 184, 166, 0.06);
  transform: rotate(45deg);
  pointer-events: none;
}

.geo-diamond--1 {
  top: 15%;
  right: 10%;
  animation: float-slow 18s ease-in-out infinite;
}

.geo-diamond--2 {
  bottom: 10%;
  left: 5%;
  width: 100px;
  height: 100px;
  animation: float-slow 14s ease-in-out infinite reverse;
}

/* ===== HEXAGONS (CTA section) ===== */
.geo-hex {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(20, 184, 166, 0.04);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  pointer-events: none;
}

.geo-hex--1 {
  top: 10%;
  left: 5%;
  animation: float-slow 22s ease-in-out infinite;
}

.geo-hex--2 {
  bottom: 5%;
  right: 8%;
  width: 140px;
  height: 140px;
  animation: float-slow 16s ease-in-out infinite reverse;
}

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

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

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

.nav.scrolled {
  background: rgba(10, 15, 26, 0.9);
  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: #2dd4bf;
  transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
  z-index: 40;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  position: relative;
}

.nav-toggle {
  z-index: 50;
}

.nav-line {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.nav-toggle.active .nav-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.active .nav-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-line:nth-child(3) {
  width: 28px;
  transform: translateY(-5px) rotate(-45deg);
}

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

/* Progressive enhancement: only animate if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ===== MENU HOVER EFFECTS ===== */
#menu .space-y-5 > div {
  padding: 12px 16px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

#menu .space-y-5 > div:hover {
  background: rgba(20, 184, 166, 0.05);
}

#menu .space-y-5 > div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: #14b8a6;
  border-radius: 2px;
  transition: width 0.3s ease;
}

#menu .space-y-5 > div:hover::before {
  width: 3px;
}

#menu .space-y-5 > div {
  position: relative;
}

/* ===== BUTTON FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f0fdfa;
}

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

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

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

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

  .geo-triangle--1 {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(20, 184, 166, 0.06);
  }

  .geo-rect {
    width: 60px;
    height: 60px;
  }

  .geo-dot-grid {
    width: 50px;
    height: 50px;
    background-size: 10px 10px;
  }
}
