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

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

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

::selection {
    background: #2EC4B6;
    color: #0D1B2A;
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(46, 196, 182, 0.06);
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.06);
    bottom: 10%;
    left: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 209, 102, 0.08);
    top: 30%;
    right: 45%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(184, 169, 201, 0.1);
    top: 60%;
    left: 3%;
    animation: float-slow 10s ease-in-out infinite;
}

.shape-dots {
    top: 20%;
    left: 42%;
    opacity: 0.3;
}

.shape-dots svg circle {
    animation: pulse-dot 2s ease-in-out infinite;
}

.shape-dots svg circle:nth-child(2) { animation-delay: 0.2s; }
.shape-dots svg circle:nth-child(3) { animation-delay: 0.4s; }
.shape-dots svg circle:nth-child(4) { animation-delay: 0.6s; }
.shape-dots svg circle:nth-child(5) { animation-delay: 0.8s; }
.shape-dots svg circle:nth-child(6) { animation-delay: 1s; }
.shape-dots svg circle:nth-child(7) { animation-delay: 1.2s; }
.shape-dots svg circle:nth-child(8) { animation-delay: 1.4s; }
.shape-dots svg circle:nth-child(9) { animation-delay: 1.6s; }

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

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

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scroll-line {
    0% { top: -16px; }
    100% { top: 40px; }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== NAVIGATION ===== */
.nav-logo {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(13, 27, 42, 0.06);
}

#navbar.scrolled .nav-logo,
#navbar.scrolled .nav-link {
    color: #0D1B2A;
}

/* Mobile menu button */
.nav-btn span {
    transition: all 0.3s ease;
}

.nav-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-btn.active span:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== HERO ===== */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ===== MARQUEE ===== */
.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-content {
    flex-shrink: 0;
}

/* ===== METHOD CARDS ===== */
.method-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.method-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SERVICE ITEMS ===== */
.service-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== SPACE CARDS ===== */
.space-card {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.space-card.visible {
    opacity: 1;
    transform: scale(1);
}

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

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

/* ===== BACK TO TOP ===== */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 196, 182, 0.3);
}

/* ===== FOCUS STYLES ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .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(184, 169, 201, 0.1);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
