/* ===== CSS Custom Properties ===== */
:root {
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --slate-950: #080e1a;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
}

/* ===== Reset & Base ===== */
*, *::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: var(--slate-950);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle-1 {
    top: 15vh;
    right: 5%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(45, 212, 191, 0.06);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20vh;
    left: -5%;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(45, 212, 191, 0.04);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 60vh;
    right: 10%;
    width: 120px;
    height: 120px;
    background: rgba(45, 212, 191, 0.03);
    border: 1px solid rgba(45, 212, 191, 0.08);
    transform: rotate(45deg);
    animation: float 12s ease-in-out infinite;
}

.geo-triangle-1 {
    top: 40vh;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 212, 191, 0.03);
    animation: float 18s ease-in-out infinite reverse;
}

.geo-dots {
    top: 70vh;
    right: 20%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(45, 212, 191, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    animation: float 25s ease-in-out infinite;
}

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

@keyframes float-delay {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(47deg); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-float { animation: float 20s ease-in-out infinite; }
.animate-float-delay { animation: float-delay 15s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }
.animate-scroll-line { animation: scroll-line 2s ease-in-out infinite; }

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

#navbar.scrolled {
    background-color: rgba(8, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 212, 191, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-400);
    transition: width 0.3s ease;
}

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

/* ===== Mobile Menu ===== */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.active .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

/* Mobile menu button states */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px -20px rgba(45, 212, 191, 0.15);
}

/* ===== Scroll Reveal ===== */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Selection ===== */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #fff;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--slate-950);
}
::-webkit-scrollbar-thumb {
    background: var(--slate-800);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--teal-600);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle-1,
    .geo-circle-2,
    .geo-square-1,
    .geo-triangle-1,
    .geo-dots {
        display: none;
    }
}
