/* 
   Greet Marketing - Mega Redesign v2 
   State-of-the-art Design System
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
    /* Core - Light Mode (Vibrant & Clean) */
    --color-bg: #f4f4f5;
    --color-surface: rgba(255, 255, 255, 0.65);
    --color-surface-solid: #ffffff;
    --color-text: #18181b; /* Zinc 900 */
    --color-text-muted: #52525b; /* Zinc 600 */
    --color-primary: #f97316; /* Orange 500 */
    --color-primary-glow: rgba(249, 115, 22, 0.3);
    --color-border: rgba(24, 24, 27, 0.08);
    --color-island: rgba(255, 255, 255, 0.8);
    
    /* Gradients */
    --gradient-hero: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.15), transparent 60%);
    --gradient-text: linear-gradient(135deg, #f97316 0%, #db2777 100%);
    
    /* Spacing & Radius */
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 40px var(--color-primary-glow);
}

/* Dark Mode Override (Rich & Deep) */
[data-theme="dark"] {
    --color-bg: #09090b; /* Zinc 950 */
    --color-surface: rgba(24, 24, 27, 0.6); /* Zinc 900 with opacity */
    --color-surface-solid: #18181b;
    --color-text: #f4f4f5; /* Zinc 100 */
    --color-text-muted: #a1a1aa; /* Zinc 400 */
    --color-primary: #fb923c; /* Orange 400 */
    --color-primary-glow: rgba(251, 146, 60, 0.2);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-island: rgba(39, 39, 42, 0.8); /* Zinc 800 */
    
    --gradient-hero: radial-gradient(circle at 50% 0%, rgba(251, 146, 60, 0.1), transparent 60%);
}

[data-theme="dark"] .header-logo {
    filter: brightness(0) invert(1) !important;
}

/* Footer Logo Global Styles */
.footer-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s ease;
}

[data-theme="dark"] .footer-logo {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8;
}

.footer-logo:hover {
    filter: none;
    opacity: 1;
    cursor: pointer;
}

/* System Preference Automatic Override */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #09090b;
        --color-surface: rgba(24, 24, 27, 0.6);
        --color-surface-solid: #18181b;
        --color-text: #f4f4f5;
        --color-text-muted: #a1a1aa;
        --color-primary: #fb923c;
        --color-primary-glow: rgba(251, 146, 60, 0.2);
        --color-border: rgba(255, 255, 255, 0.08);
        --color-island: rgba(39, 39, 42, 0.8);
        --gradient-hero: radial-gradient(circle at 50% 0%, rgba(251, 146, 60, 0.1), transparent 60%);
    }
}

/* Base Reset & Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Texture Overlay (Noise) */
body::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    opacity: 0.04;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mask-image: linear-gradient(to bottom, transparent, black); /* Optional fade */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1400px; /* Wider for premium feel */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.glass {
    background: var(--color-surface);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--color-primary);
}

/* Disable hover effects for legal content */
.legal-content.glass:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-text); /* Inverted for high contrast */
    color: var(--color-bg);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

[data-theme="dark"] .btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-glass:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Specific Component Styles provided by JS (but base here) */

/* Header "Island" */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 9999; /* Higher z-index to avoid overlap issues */
    transition: top 0.3s ease, width 0.3s ease;
}

.header-island {
    background: var(--color-island);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link.active {
    color: var(--color-primary);
    background: rgba(249, 115, 22, 0.1);
    font-weight: 600;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 5px;
}

/* Mobile Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 9998; /* Behind header but above everything else */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-overlay a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

@media (max-width: 768px) {
    /* Header Mobile: Full width, less margin */
    header {
        top: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .header-island {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--color-border);
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.82); /* Slightly more opaque on mobile */
    }
    
    [data-theme="dark"] .header-island {
        background: rgba(9, 9, 11, 0.85);
    }
    
    /* Header Logo Theme Logic */
    .header-logo {
        filter: brightness(0); /* Black by default (Light Mode) */
        transition: filter 0.3s ease;
    }
    
    [data-theme="dark"] .header-logo {
        filter: brightness(0) invert(1); /* White in Dark Mode */
    }

    .nav-links {
        display: none; /* Hide regular links on mobile */
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Container: Less padding */
    .container {
        padding: 0 1rem;
    }

    /* Hero */
    .hero {
        padding-top: 100px; /* More space for fixed header */
        min-height: 0; 
        padding-bottom: 60px;
    }

    h1 { font-size: 2.2rem; line-height: 1.2; }
    h2 { font-size: 1.8rem; }
    
    .hero-content p {
        font-size: 1rem !important; /* Force smaller body text in hero */
        padding: 0 10px;
    }

    /* Hide floating 3D elements on mobile to clear clutter */
    .floating-elements {
        display: none;
    }
    


    /* Mobile Contact Page Fixes */
    @media (max-width: 768px) {
    .stats-strip div {
        flex: 1 1 100%; /* Full width on mobile */
        margin-bottom: 20px;
    }

    /* Contact Page Mobile */
    .section {
        padding: 40px 0; /* Reduce global section padding on mobile */
    }

    .info-side {
        padding: 80px 15px 20px; /* Minimal padding */
        text-align: center;
    }
    
    .form-side {
        padding: 0 15px 40px;
    }
    
    .form-card {
        padding: 20px; /* Small padding inside glass card */
    }
}
}
/* Stats Strip Desktop Tweaks */
.stats-strip {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
    text-align: center;
}

.stats-strip > div {
    flex: 0 1 200px; /* Allow them to shrink but aim for 200px width, causing wrap if needed but fitting many on a line */
    min-width: 150px;
}

    /* Minimal Stats Row (Company Page) */
    .stats-minimal-row {
        display: grid;
        grid-template-columns: 1fr; /* Force single column (mobile style) */
        gap: 24px;
        padding: 40px 0;
    }
    
    .stat-minimal-item {
        text-align: center;
        flex: 1;
        width: 100%;
        padding: 20px;
        background: var(--color-surface);
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
    }
    
    .stat-number {
        font-family: var(--font-heading);
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 800;
        display: block;
        line-height: 1;
        margin-bottom: 10px;
    }
    
    .stat-label {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--color-text-muted);
        font-weight: 600;
    }
    
    .stat-divider {
        display: none; /* Hide dividers always */
        width: 1px;
        height: 60px;
        background: var(--color-border);
    }
    
    /* Mobile-specific query removed as styles are now global */
    
/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}


/* Features Grid (Moved to Global) */
    .features-grid {
        display: grid;
        grid-template-columns: 1fr; /* Force single column (mobile style) */
        gap: 24px;
        margin-top: 40px;
    }
    
    /* Desktop media query matching mobile style (Stack) */

    .feature-card {
        padding: 32px;
        border-radius: var(--radius-lg);
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
    }

    .feature-card:hover {
        border-color: var(--color-primary);
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), var(--shadow-glow);
        background: linear-gradient(to bottom right, var(--color-surface), rgba(249, 115, 22, 0.03));
    }
    
    .feature-icon-box {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: var(--radius-md);
        background: rgba(249, 115, 22, 0.1);
        color: var(--color-primary);
        margin-bottom: 24px;
        transition: all 0.4s ease;
    }
    
    .feature-card:hover .feature-icon-box {
        transform: scale(1.1);
        background: var(--color-primary);
        color: white;
        box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
    }

    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        transition: color 0.3s ease;
    }

    .feature-card:hover h3 {
        color: var(--color-primary);
    }

    .feature-card p {
        font-size: 1rem;
        color: var(--color-text-muted);
        line-height: 1.6;
    }


