/* Custom geometric shapes and animations */

/* Floating geometric background elements */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-rect {
    position: absolute;
    border: 2px solid rgba(45, 212, 191, 0.15);
    border-radius: 24px;
    pointer-events: none;
    transform: rotate(15deg);
}

.geo-rect--1 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 5%;
    animation: rotate-slow 25s linear infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(45, 212, 191, 0.08);
    top: 60%;
    right: 8%;
    animation: float-slow 22s ease-in-out infinite;
}

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

@keyframes rotate-slow {
    0% {
        transform: rotate(15deg);
    }
    100% {
        transform: rotate(375deg);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

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

/* Nav scroll state */
nav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}

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

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

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
    .stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
    .stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
    .stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
    .stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease forwards;
}

.mobile-menu-exit {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Service card hover glow */
.group:hover .group-hover\!bg-teal-500\/10 {
    background-color: rgba(45, 212, 191, 0.1);
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}
