/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

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

.geo-circle-1 {
    width: 400px; height: 400px;
    border-radius: 50%;
    border: 3px solid rgba(110, 231, 183, 0.3);
    top: 10%; left: -5%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px; height: 200px;
    background: rgba(52, 211, 153, 0.2);
    top: 20%; right: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(167, 243, 208, 0.4);
    bottom: 20%; left: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0; height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(52, 211, 153, 0.15);
    top: 30%; right: 15%;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.geo-square-1 {
    width: 80px; height: 80px;
    border: 2px solid rgba(110, 231, 183, 0.25);
    top: 60%; left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 15s linear infinite reverse;
}

.geo-dots {
    background-image: radial-gradient(rgba(110, 231, 183, 0.3) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    width: 200px; height: 200px;
    bottom: 10%; right: 20%;
}

.geo-circle-4 {
    width: 500px; height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(167, 243, 208, 0.1);
    top: -10%; right: -10%;
}

.geo-diamond-1 {
    width: 100px; height: 100px;
    background: rgba(52, 211, 153, 0.1);
    bottom: 10%; left: 5%;
    transform: rotate(45deg);
}

.geo-circle-5 {
    width: 600px; height: 600px;
    border-radius: 50%;
    border: 2px solid rgba(167, 243, 208, 0.08);
    bottom: -20%; left: -10%;
}

.geo-dots-2 {
    background-image: radial-gradient(rgba(167, 243, 208, 0.2) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    width: 180px; height: 180px;
    top: 10%; right: 10%;
}

/* ── Floating Cards ── */
.floating-card-1 { animation: float-card-1 4s ease-in-out infinite; }
.floating-card-2 { animation: float-card-2 5s ease-in-out infinite; }
.floating-card-3 { animation: float-card-3 3.5s ease-in-out infinite; }

@keyframes float-card-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float-card-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-card-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar Scroll State ── */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 78, 59, 0.08);
}

.navbar-scrolled .menu-line {
    background: #047857 !important;
}

/* ── Mobile Menu Animation ── */
.menu-line:last-child {
    transition: width 0.3s ease, margin 0.3s ease, transform 0.3s ease !important;
}

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fefdf8; }
::-webkit-scrollbar-thumb { background: #047857; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #065f46; }

/* ── Selection ── */
::selection { background: #a7f3d0; color: #064e3b; }
