/* 
   Pitechpedia - Material Design 3 (M3) Foundation
   Author: Antigravity Team
   Description: Premium Design System with M3 tokens, typography, and global resets.
*/

/* Universal Sub-Page Components (M3) */
.page-hero {
    padding: 140px 0 80px;
    background: radial-gradient(circle at top right, rgba(66, 133, 244, 0.05) 0%, transparent 60%);
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.m3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.m3-support-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 28px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.m3-support-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--md-sys-shadow-3);
    border-color: var(--md-sys-color-primary-container);
}

.m3-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.m3-icon-box .material-symbols-outlined {
    font-size: 28px;
}

/* FAQ Accordions */
.m3-faq-item {
    background: var(--md-sys-color-surface-container-low);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.m3-faq-item:hover {
    border-color: var(--md-sys-color-outline-variant);
}

.m3-faq-item h4 {
    color: var(--md-sys-color-primary);
    margin-bottom: 8px;
}

.m3-faq-item p {
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
}

:root {
    /* Google Material Colors (Restored) */
    --google-blue: #4285f4;
    --google-red: #ea4335;
    --google-yellow: #fbbc04;
    --google-green: #34a853;
    --surface-color: #ffffff;
    --background-color: #f8f9fa;

    /* MD3 Mapped Tokens */
    --md-sys-color-primary: var(--google-blue);
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #d2e3fc;
    /* Light blue */
    --md-sys-color-on-primary-container: #174ea6;
    /* Dark blue */

    --md-sys-color-secondary: var(--google-green);
    --md-sys-color-secondary-container: #ceead6;
    --md-sys-color-on-secondary-container: #0d652d;

    --md-sys-color-tertiary: var(--google-yellow);
    --md-sys-color-error: var(--google-red);
    --md-sys-color-error-container: #fad2cf;
    --md-sys-color-on-error-container: #a50e0e;

    --md-sys-color-background: var(--background-color);
    --md-sys-color-surface: var(--surface-color);
    --md-sys-color-surface-container-low: #f8f9fa;
    --md-sys-color-surface-container-high: #e8eaed;
    --md-sys-color-on-surface: #202124;
    --md-sys-color-on-surface-variant: #5f6368;
    --md-sys-color-outline: #dadce0;
    --md-sys-color-outline-variant: #f1f3f4;

    /* Elevation Shadows */
    --md-sys-shadow-1: 0px 1px 3px rgba(60, 64, 67, 0.1);
    --md-sys-shadow-2: 0px 4px 12px rgba(60, 64, 67, 0.15);
    --md-sys-shadow-3: 0px 12px 32px rgba(60, 64, 67, 0.2);

    /* Premium "Innovation Hub" Tokens */
    --glass-surface: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --premium-glow: 0 0 20px rgba(66, 133, 244, 0.15);
    --aurora-blue: radial-gradient(circle at 0% 0%, rgba(66, 133, 244, 0.08) 0%, transparent 50%);
    --aurora-green: radial-gradient(circle at 100% 100%, rgba(52, 168, 83, 0.08) 0%, transparent 50%);

    /* Animation Easing */
    --md-sys-motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
    --background-color: #1a1c1e;
    --surface-color: #1a1c1e;
    --md-sys-color-on-surface: #e2e2e6;
    --md-sys-color-outline: #44474e;
}

/* Material Design 3 Dark Mode Overrides */
.dark-mode {
    --md-sys-color-background: #1A1C1E;
    --md-sys-color-on-background: #E2E2E6;
    --md-sys-color-surface: #1A1C1E;
    --md-sys-color-on-surface: #E2E2E6;
    --md-sys-color-surface-variant: #44474E;
    --md-sys-color-on-surface-variant: #C4C6D0;
    --md-sys-color-outline: #8E9199;

    /* Adjusted containers for dark mode */
    --md-sys-color-primary-container: #00458E;
    --md-sys-color-on-primary-container: #D2E3FC;
    --md-sys-color-secondary-container: #0F5223;
    --md-sys-color-on-secondary-container: #E6F4EA;

    /* Shadows for dark mode (Subtler) */
    --md-sys-shadow-1: 0px 1px 3px rgba(0, 0, 0, 0.4);
    --md-sys-shadow-3: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

/* M3 Toast / Snackbar System */
.m3-toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: clamp(300px, 90vw, 400px);
}

.m3-toast {
    background: #202124;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: var(--md-sys-shadow-3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.m3-toast.success {
    background: #34A853;
}

.m3-toast.error {
    background: #EA4335;
}

@keyframes toastSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h5 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Material Design Utility Classes */
.m3-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-large);
    padding: 1.5rem;
    box-shadow: var(--md-sys-shadow-1);
    transition: box-shadow var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.m3-card:hover {
    box-shadow: var(--md-sys-shadow-3);
}

.m3-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 48px;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-radius: var(--md-sys-shape-extra-large);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color var(--md-sys-motion-duration-short), box-shadow var(--md-sys-motion-duration-short);
    position: relative;
    overflow: hidden;
}

.m3-button:hover {
    background-color: var(--md-sys-color-on-primary-container);
    box-shadow: var(--md-sys-shadow-1);
    color: var(--md-sys-color-primary-container);
}

.m3-button-tonal {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.m3-button-tonal:hover {
    background-color: var(--md-sys-color-secondary-container);
    box-shadow: var(--md-sys-shadow-1);
}

.m3-icon-button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--md-sys-color-outline);
    background: var(--md-sys-color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--md-sys-color-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--md-sys-shadow-1);
}

.m3-icon-button:hover {
    background-color: var(--md-sys-color-primary-container);
    transform: translateY(-2px);
    box-shadow: var(--md-sys-shadow-2);
}

.m3-icon-button span {
    font-size: 20px;
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

/* M3 Flash Messages */
.m3-card.m3-success {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border: 1px solid var(--md-sys-color-secondary);
    margin: 1rem 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.m3-card.m3-error {
    background-color: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
    border: 1px solid var(--md-sys-color-error);
    margin: 1rem 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.m3-card.m3-success::before {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
}

.m3-card.m3-error::before {
    content: 'error';
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
}

/* Ecosystem Research Style Header */
.ecosystem-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #dadce0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.ecosystem-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-left .nav-logo img {
    height: 32px;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: #5f6368;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #202124;
}

.nav-link .material-symbols-outlined {
    font-size: 18px;
}

/* Mega Menu Logic */
.has-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 32px;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    border: 1px solid #dadce0;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mega-col h4 {
    font-size: 0.8rem;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.mega-col a {
    display: block;
    color: #202124;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
}

.mega-col a:hover {
    color: #4285f4;
}

/* Right Actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search-btn {
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-search-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.brand-btn {
    padding: 8px 24px;
    background: #4285f4;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.brand-btn:hover {
    background: #1a73e8;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.brand-btn-tonal {
    background: #e8f0fe;
    color: #1967d2;
}

.brand-btn-tonal:hover {
    background: #d2e3fc;
}

.brand-icon-btn {
    background: transparent;
    border: none;
    color: #5f6368;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
}

.brand-icon-btn:hover {
    background: #f1f3f4;
}

/* Dark Mode Overrides for Header */
.dark-mode .ecosystem-header {
    background: #202124;
    border-bottom: 1px solid #3c4043;
}

.dark-mode .nav-link,
.dark-mode .nav-search-btn,
.dark-mode .brand-icon-btn {
    color: #e8eaed;
}

.dark-mode .mega-menu {
    background: #202124;
    border-color: #3c4043;
}

.dark-mode .mega-col a {
    color: #e8eaed;
}

.dark-mode .nav-link:hover,
.dark-mode .nav-search-btn:hover,
.dark-mode .brand-icon-btn:hover {
    background: #3c4043;
}

/* Unified Search Styles */
.desktop-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar-expandable {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 2px 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    width: 0;
    z-index: 10;
}

.search-bar-expandable.active {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
    width: 320px;
    padding: 2px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pitech-search-input {
    border: none;
    background: transparent;
    padding: 8px 0;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    color: #202124;
}

/* Mobile Search Styling */
.mobile-only.search-li {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
}

.search-input-wrapper {
    background: #f1f3f4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.search-input-wrapper .search-icon {
    font-size: 20px;
    color: #5f6368;
}

/* Search Dropdown Results */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #dadce0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1200;
    display: none;
}

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f3f4;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.res-title {
    font-weight: 600;
    color: #202124;
    font-size: 0.95rem;
}

.res-cat {
    font-size: 0.75rem;
    color: #4285f4;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Dark Mode Search Overrides */
.dark-mode .search-bar-expandable,
.dark-mode .search-results-dropdown {
    background: #2d2e31;
    border-color: #3c4043;
}

.dark-mode .pitech-search-input,
.dark-mode .res-title {
    color: #e8eaed;
}

.dark-mode .search-input-wrapper {
    background: #1e1f21;
}

.dark-mode .search-result-item:hover {
    background: #3c4043;
}

.dark-mode .mobile-only.search-li {
    border-bottom-color: #3c4043;
}

@media (min-width: 993px) {
    .mobile-only {
        display: none;
    }
}

@media (max-width: 992px) {
    .desktop-search-wrapper {
        display: none;
    }
}

/* Omni Search Full-Screen Modal */
.omni-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px) saturate(180%);
    z-index: 5000;
    display: none;
    justify-content: center;
    padding-top: 10vh;
    animation: fadeIn 0.3s ease;
}

.dark-mode .omni-search-overlay {
    background: rgba(26, 28, 30, 0.8);
}

.omni-search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.omni-search-box {
    background: white;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
    border: 1px solid #dadce0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode .omni-search-box {
    background: #2d2e31;
    border-color: #44474e;
}

.omni-search-header {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #f1f3f4;
}

.dark-mode .omni-search-header {
    border-bottom-color: #44474e;
}

.omni-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    font-weight: 500;
    color: #202124;
    outline: none;
}

.dark-mode .omni-search-input {
    color: #e2e2e6;
}

.omni-search-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    gap: 32px;
}

.omni-side-pane {
    flex: 1;
}

.pane-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #5f6368;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.omni-result-item {
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.omni-result-item:hover {
    background: #f1f3f4;
}

.dark-mode .omni-result-item:hover {
    background: #44474e;
}

.omni-ai-pulse {
    width: 8px;
    height: 8px;
    background: var(--google-blue);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--md-sys-color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Nav Drawer Styles */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
        z-index: 1005;
        /* Must sit above the drawer overlay */
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 85%;
        max-width: 400px;
        height: 100vh;

        /* M3 Premium Glassmorphism */
        background: rgba(255, 251, 254, 0.85);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid rgba(255, 255, 255, 0.6);

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 5rem 1.5rem 2rem;
        /* Spacing for the 'X' at the top */
        gap: 0.75rem;

        /* Creates the black screen-dimming backdrop without needing JS/extra DIVs */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05), 0 0 0 10000px rgba(0, 0, 0, 0);

        z-index: 1000;
        visibility: hidden;
        transition: transform 0.4s var(--md-sys-motion-easing-standard), visibility 0.4s, box-shadow 0.4s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        /* Trigger the screen dimming */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1), 0 0 0 10000px rgba(0, 0, 0, 0.5);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        background: rgba(0, 0, 0, 0.02);
        border-radius: var(--md-sys-shape-large);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--md-sys-color-on-surface);
        text-align: center;
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:active,
    .nav-menu .nav-link:hover {
        background: var(--md-sys-color-primary-container);
        color: var(--md-sys-color-on-primary-container);
        transform: scale(0.98);
    }

    .nav-menu .m3-button {
        width: 100%;
        margin-top: 1rem;
        height: 56px;
        font-size: 1.1rem;
    }

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

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

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard) forwards;
}

/* Ecosystem Hero */
.eco-hero {
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    background: radial-gradient(circle at center, rgba(103, 80, 164, 0.08) 0%, transparent 70%);
}

.eco-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.eco-title .highlight {
    background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eco-subtitle {
    font-size: 1.25rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Section & Cards */
.featured-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.view-all {
    display: flex;
    align-items: center;
    color: var(--md-sys-color-primary);
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.startup-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image .material-symbols-outlined {
    font-size: 64px;
    color: var(--md-sys-color-primary);
    opacity: 0.5;
}

.card-content {
    padding: 1.5rem;
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--md-sys-color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--md-sys-color-outline);
}

.funding {
    font-weight: 600;
    color: var(--md-sys-color-on-surface-variant);
}

/* Horizontal Accordion (PITECHPEDIA) */
.acronym-container {
    display: flex;
    height: 500px;
    width: 100%;
    margin-bottom: 4rem;
    gap: 12px;
}

.pillar {
    flex: 1;
    position: relative;
    background: var(--md-sys-color-surface-variant);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    opacity: 0.3;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.pillar:hover {
    flex: 6;
    background: var(--md-sys-color-surface);
    border-color: var(--md-sys-color-primary);
    box-shadow: var(--md-sys-shadow-4);
}

.pillar:hover::before {
    opacity: 1;
}

.pillar-letter {
    font-family: 'Outfit', sans-serif;
    font-size: 8rem;
    font-weight: 950;
    position: absolute;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
    opacity: 0.15;
    pointer-events: none;
}

/* Premium Mesh Gradients for Pillars */
.pillar:nth-child(1) {
    background: linear-gradient(135deg, #4285F4, #34A853);
}

.pillar:nth-child(2) {
    background: linear-gradient(135deg, #AB47BC, #4285F4);
}

.pillar:nth-child(3) {
    background: linear-gradient(135deg, #FBBC04, #EA4335);
}

.pillar:nth-child(4) {
    background: linear-gradient(135deg, #34A853, #FBBC04);
}

.pillar:nth-child(5) {
    background: linear-gradient(135deg, #EA4335, #AB47BC);
}

.pillar:nth-child(6) {
    background: linear-gradient(135deg, #4285F4, #FBBC04);
}

.pillar:nth-child(7) {
    background: linear-gradient(135deg, #34A853, #AB47BC);
}

.pillar:nth-child(8) {
    background: linear-gradient(135deg, #FBBC04, #4285F4);
}

.pillar:nth-child(9) {
    background: linear-gradient(135deg, #AB47BC, #EA4335);
}

.pillar:nth-child(10) {
    background: linear-gradient(135deg, #4285F4, #34A853);
}

.pillar:nth-child(11) {
    background: linear-gradient(135deg, #FBBC04, #AB47BC);
}

.pillar-content {
    position: absolute;
    bottom: 50px;
    left: 40px;
    right: 40px;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.pillar:hover .pillar-letter {
    transform: translateY(-90%) scale(1.6);
    opacity: 0.08;
    top: 50%;
}

.pillar:hover .pillar-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    pointer-events: auto;
}

.p-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: white;
    letter-spacing: -1px;
}

.p-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 32px;
    max-width: 450px;
    font-weight: 500;
}

.p-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-tertiary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Overview Sections (Scroll Snap) */
.snap-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--md-sys-color-outline);
}

.snap-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.snap-text h2 {
    font-size: 5rem;
    font-weight: 950;
    line-height: 0.95;
    margin-bottom: 32px;
}

.snap-text .accent {
    color: var(--md-sys-color-primary);
}

.snap-desc {
    font-size: 1.5rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.5;
    max-width: 600px;
}

/* Mobile Adjustments for UI perfection */
@media (max-width: 1200px) {
    .acronym-container {
        height: auto;
        flex-direction: column;
    }

    .pillar {
        height: 100px;
    }
}