/* ===== CSS Custom Properties ===== */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;
    --cream-50: #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #fefdf8;
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

.navbar-scrolled .nav-link {
    color: #374151 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #059669 !important;
}

.navbar-scrolled .logo-text {
    color: #064e3b !important;
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--emerald-400);
    animation-delay: 0s;
}

.shape-circle-2 {
    position: absolute;
    top: 60%;
    right: 5%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--cream-200);
    animation-delay: 2s;
}

.shape-circle-3 {
    position: absolute;
    bottom: 15%;
    left: 15%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--emerald-300);
    animation-delay: 4s;
}

.shape-square-1 {
    position: absolute;
    top: 25%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: var(--emerald-300);
    border-radius: 20px;
    transform: rotate(45deg);
    animation-delay: 1s;
}

.shape-square-2 {
    position: absolute;
    bottom: 25%;
    left: 30%;
    width: 60px;
    height: 60px;
    background: var(--cream-200);
    border-radius: 12px;
    transform: rotate(30deg);
    animation-delay: 3s;
}

.shape-triangle-1 {
    position: absolute;
    top: 45%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid var(--emerald-400);
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

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

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

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

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    display: block !important;
    animation: slideDown 0.3s ease;
}

.mobile-menu-close {
    display: none !important;
}

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

/* ===== Button Hover Effects ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===== Card Hover Effects ===== */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
}

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

::-webkit-scrollbar-track {
    background: var(--cream-50);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-500);
}

/* ===== Focus States ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
    background: var(--emerald-200);
    color: var(--emerald-900);
}

/* ===== Utility ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.5rem !important;
    }
    
    #hero h1 span {
        font-size: 2.5rem !important;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, .geo-shape, [class*="geo-"] {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
