/* ===== Base & Utilities ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(6, 78, 59, 0.04);
    border-radius: 24px;
    top: 25%;
    left: 45%;
    transform: rotate(45deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(16, 185, 129, 0.06);
    top: 40%;
    right: 8%;
}

.geo-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(6, 78, 59, 0.15) 2px, transparent 2px);
    background-size: 12px 12px;
    top: 20%;
    left: 8%;
    border-radius: 50%;
}

/* ===== Scroll Line Animation ===== */
.scroll-line {
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, #064E3B);
    border-radius: 999px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

/* ===== Hero Animations ===== */
.hero-elem {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-elem:nth-child(1) { animation-delay: 0.1s; }
.hero-elem:nth-child(2) { animation-delay: 0.25s; }
.hero-elem:nth-child(3) { animation-delay: 0.4s; }
.hero-elem:nth-child(4) { animation-delay: 0.55s; }
.hero-elem:nth-child(5) { animation-delay: 0.7s; }

.hero-img-elem {
    opacity: 0;
    transform: translateX(40px);
    animation: slideRight 1s ease forwards 0.3s;
}

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

@keyframes slideRight {
    to { opacity: 1; transform: translateX(0); }
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-scrolled .nav-link-text {
    color: #064E3B !important;
}

.nav-scrolled .menu-line {
    background: #064E3B !important;
}

/* ===== Form Focus Styles ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

::-webkit-scrollbar-track {
    background: #FFF8F0;
}

::-webkit-scrollbar-thumb {
    background: #065F46;
    border-radius: 999px;
}

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

/* ===== Selection ===== */
::selection {
    background: rgba(6, 78, 59, 0.15);
    color: #064E3B;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    .geo-rect-1 {
        width: 60px;
        height: 60px;
    }
    .geo-triangle {
        display: none;
    }
}
