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

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

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

::selection {
    background: #2EC88A;
    color: #0B3D2E;
}

/* ===== Navigation ===== */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(251, 252, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 81, 56, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 30px rgba(11, 61, 46, 0.1);
}

/* Mobile menu */
.mobile-menu-btn .menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #2EC88A;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
}

.hero-content {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-image-col {
    animation: fadeUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 200, 138, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 81, 56, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(46, 200, 138, 0.15);
    border-radius: 24px;
    top: 20%;
    right: 5%;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(15, 81, 56, 0.1);
    border-radius: 16px;
    bottom: 25%;
    right: 15%;
    transform: rotate(-30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(93, 216, 165, 0.15);
    top: 35%;
    left: 3%;
    transform: rotate(-20deg);
    animation: float 6s ease-in-out infinite;
}

.geo-dots {
    background-image: radial-gradient(rgba(15, 81, 56, 0.15) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    width: 200px;
    height: 200px;
    top: 60%;
    right: 8%;
    border-radius: 50%;
    animation: float 7s ease-in-out infinite reverse;
}

.geo-block {
    position: absolute;
    pointer-events: none;
}

.geo-block-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #0B3D2E 0%, #156B4A 100%);
    border-radius: 32px;
    bottom: 0;
    left: 0;
    opacity: 0.04;
}

.geo-block-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #2EC88A 0%, #5DD8A5 100%);
    border-radius: 24px;
    top: 10%;
    left: 40%;
    opacity: 0.06;
}

/* About section shapes */
.geo-about-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 200, 138, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.geo-about-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(93, 216, 165, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.geo-about-square {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(93, 216, 165, 0.2);
    border-radius: 20px;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
}

/* CTA section shapes */
.geo-cta-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 200, 138, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.geo-cta-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(93, 216, 165, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    right: -80px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotate, 0deg)); }
}

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

/* ===== Floating Cards ===== */
.floating-card {
    position: absolute;
    z-index: 10;
}

.card-1 {
    top: 15%;
    left: -30px;
    animation: float 5s ease-in-out infinite;
}

.card-2 {
    bottom: 20%;
    right: -20px;
    animation: float 6s 1s ease-in-out infinite;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    opacity: 0.6;
    animation: fadeUp 1s 1s both;
}

/* ===== Buttons ===== */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0B3D2E;
    color: #FBFCF9;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #0B3D2E;
}

.cta-primary:hover {
    background: #156B4A;
    border-color: #156B4A;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(11, 61, 46, 0.3);
}

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

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0B3D2E;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    border: 2px solid rgba(11, 61, 46, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-secondary:hover {
    border-color: #0B3D2E;
    background: rgba(11, 61, 46, 0.05);
    transform: translateY(-2px);
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* ===== Form ===== */
#contactForm input,
#contactForm select,
#contactForm textarea {
    font-family: 'Inter', sans-serif;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #2EC88A;
    box-shadow: 0 0 0 3px rgba(46, 200, 138, 0.2);
}

/* ===== Footer ===== */
footer a {
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-section .grid {
        flex-direction: column;
    }

    .hero-image-col {
        display: none;
    }

    h1 {
        font-size: 2.75rem !important;
    }

    .geo-square-1,
    .geo-square-2,
    .geo-triangle-1,
    .geo-dots {
        display: none;
    }

    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

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

@media (min-width: 769px) and (max-width: 1023px) {
    h1 {
        font-size: 3.5rem !important;
    }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
