/* Arctic Room — Custom Styles */

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #fefdf8;
    color: #022c22;
}

::selection {
    background: #86efac;
    color: #022c22;
}

/* ── Geometric Background Shapes ── */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

/* Hero shapes */
.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: #166534;
    border-radius: 24px;
    top: 25%;
    left: 3%;
    opacity: 0.08;
    transform: rotate(15deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(34, 197, 94, 0.1);
    top: 40%;
    right: 8%;
    transform: rotate(-20deg);
}

.shape-dot {
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    top: 30%;
    left: 15%;
    opacity: 0.4;
}

/* Menu section shapes */
.shape-circle-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
}

.shape-rect-2 {
    width: 200px;
    height: 200px;
    background: #15803d;
    border-radius: 40px;
    top: 10%;
    right: 5%;
    opacity: 0.06;
    transform: rotate(30deg);
}

/* ── Navbar ── */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.08);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(2, 44, 34, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ── Mobile Menu ── */
.menu-line {
    transition: all 0.3s ease;
}

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

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

#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    transform: translateX(8px);
}

/* ── Menu Tabs ── */
.menu-tab {
    background: transparent;
    color: rgba(217, 249, 237, 0.5);
    border: none;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
}

.menu-tab.active {
    background: #166534;
    color: #fefdf8;
    box-shadow: 0 4px 20px rgba(22, 101, 52, 0.4);
}

.menu-tab:not(.active):hover {
    color: rgba(217, 249, 237, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Progressive enhancement: content is visible by default; JS adds animation class */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Floating Card Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ── Hover Effects ── */
a {
    transition: color 0.2s ease;
}

/* ── Form Focus States ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
