/* Google Ecosystem Design System (Material 3 Inspired) */
:root {
    /* Google Brand Colors */
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC04;
    --google-green: #34A853;

    /* Surface Colors */
    --surface-light: #FFFFFF;
    --surface-dim: #F8F9FA;
    /* Google Grey 50 */
    --surface-border: #DADCE0;
    /* Google Grey 300 */

    /* Text Colors */
    --text-primary: #202124;
    /* Google Grey 900 */
    --text-secondary: #5F6368;
    /* Google Grey 700 */
    --text-tertiary: #80868B;
    /* Google Grey 600 */

    /* Typography */
    --font-heading: 'Product Sans', 'Roboto', 'Inter', sans-serif;
    /* Fallback stack */
    --font-body: 'Roboto', 'Inter', system-ui, sans-serif;

    /* Spacing & Layout */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows (Material Elevation) */
    --shadow-1: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-2: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    --shadow-3: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);

    /* Compatibility Variables (Mapping old vars to new system) */
    --color-bg: var(--surface-light);
    --color-bg-secondary: var(--surface-dim);
    --color-text: var(--text-primary);
    --color-text-muted: var(--text-secondary);
    --color-accent-1: var(--google-blue);
    --color-accent-2: var(--google-red);
    --color-accent-3: var(--google-green);
    --gradient-primary: linear-gradient(135deg, var(--google-blue), #1a73e8);
    --gradient-secondary: linear-gradient(135deg, var(--google-green), #0f9d58);
    --white: #FFFFFF;
    --dark-gray: #202124;
    --light-gray: #f1f3f4;
    --border-radius: var(--radius-lg);
    --transition: all 0.2s ease-in-out;
    --shadow-light: var(--shadow-1);
    --shadow-medium: var(--shadow-2);
    --shadow-heavy: var(--shadow-3);
    /* Glassmorphism fallback (disabled/subtle in Material) */
    --gradient-glass: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid var(--surface-border);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--surface-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
    /* Google style is often medium weight headings */
}

a {
    text-decoration: none;
    color: var(--google-blue);
    transition: color 0.2s;
}

a:hover {
    color: #1a73e8;
    /* Darker blue */
}

ul {
    list-style: none;
}

button,
.btn {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Material Navbar */
.navbar {
    background: var(--surface-light);
    border-bottom: 1px solid var(--surface-border);
    height: 64px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: var(--shadow-1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Removed 3D Logo styling, replaced with simple text/icon styling if needed */
.logo-3d {
    display: none;
    /* Hiding 3D elements */
}

.nav-logo span {
    color: var(--text-secondary);
    /* Google Product Grey */
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--google-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    /* Align with bottom of navbar */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--google-blue);
    border-radius: 3px 3px 0 0;
}

/* Material Buttons */
.cta-button {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button.primary {
    background-color: var(--google-blue);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(66, 133, 244, 0.3);
}

.cta-button.primary:hover {
    background-color: #3b78e7;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.4);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--google-blue);
    border: 1px solid var(--surface-border);
}

.cta-button.secondary:hover {
    background-color: rgba(66, 133, 244, 0.04);
    border-color: var(--surface-border);
}

/* Footer styles moved to global section at bottom */

/* Text Gradients (Removed for Google Style or made subtle) */
.text-gradient {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--google-blue);
    /* Simple highlight */
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        width: 30px;
        height: 30px;
        z-index: 1001;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--text-secondary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Menu Open State */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        /* Changed to fixed for better mobile experience */
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100vh - 64px);
        /* Full height */
        background-color: var(--surface-light);
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--surface-border);
        gap: 1.5rem;
        overflow-y: auto;
    }

    .nav-menu.active li {
        width: 100%;
        text-align: center;
    }

    .nav-menu.active .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        /* Larger touch targets */
        width: 100%;
        border-radius: 8px;
    }

    .nav-menu.active .nav-link:hover {
        background-color: var(--surface-dim);
    }

    /* Toggle Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Global Mobile Adjustments */
    :root {
        --h1: 2.5rem;
        --h2: 2rem;
        --h3: 1.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    :root {
        --h1: 2rem;
        --h2: 1.75rem;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* --- Global Footer Styles --- */
.footer {
    background-color: #f8f9fa;
    padding: 4rem 0 2rem;
    border-top: 1px solid #e1e4e8;
    color: #202124;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #5f6368;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #202124;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #1a73e8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #dadce0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #5f6368;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #5f6368;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #202124;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}