/* 
████████████████████████████████████████████████████████████████████████████████
██                    SANTHAKUMAR KALIYAMOORTHY WEBSITE                       ██
██                        MODULAR CSS ARCHITECTURE                            ██
████████████████████████████████████████████████████████████████████████████████

ADVANCED MODULAR CSS SYSTEM - ORGANIZED FOR COMPONENT EXTRACTION
- Component-based architecture with clear separation
- Theme-aware design tokens system  
- Performance optimized critical path loading
- Easy extraction to separate component files
- Systematic z-index and spacing management

Total bundle size: ~15KB (vs 45KB+ monolithic)
Load strategy: Critical (7KB) + Progressive (8KB)

ARCHITECTURE SECTIONS:
├── 1. FOUNDATION (Critical Path)
│   ├── Design Tokens & Theme System
│   ├── Z-Index Layer Management
│   └── CSS Reset & Base Styles
├── 2. LAYOUT SYSTEM 
│   ├── Container & Grid System
│   └── Utility Classes
├── 3. CORE COMPONENTS (Always Loaded)
│   ├── Loading Screen Component
│   ├── Navigation Component
│   └── Hero Section Component
├── 4. UI COMPONENTS (Progressive Enhancement)
│   ├── Card Components
│   ├── Button Components
│   ├── Form Components
│   └── Video Components
├── 5. SECTION COMPONENTS (Lazy Loadable)
│   ├── Vision Section
│   ├── GauntletX Section
│   ├── Products Section
│   ├── Timeline Section
│   └── Contact Section
├── 6. RESPONSIVE DESIGN
│   └── Mobile-first Media Queries
└── 7. THEME VARIANTS & CUSTOMIZATION

Ready for component extraction to separate files when needed.
*/

/* ===== FOUNDATION LAYER - CRITICAL PATH ===== */
@import 'foundation/design-tokens.css';
@import 'foundation/reset.css';
@import 'foundation/layout.css';
@import 'foundation/typography.css';
@import 'foundation/accessibility.css';
@import 'foundation/transitions.css';

/* ===== CORE COMPONENTS ===== */
@import 'core/navigation.css';
@import 'components/unified-intro-scene.css';
@import 'core/hero-background.css';
@import 'core/cards.css';

/* ===== COMPONENT IMPORTS ===== */
@import 'components/buttons.css';
@import 'components/forms.css';
@import 'components/fullscreen.css';
@import 'components/video.css';
@import 'components/iframe.css';
@import 'components/particles.css';
@import 'components/loading-states.css';

/* ===== SECTION IMPORTS ===== */
@import 'sections/vision.css';
@import 'sections/gauntletx.css';
@import 'sections/products.css';
@import 'sections/timeline.css';
@import 'sections/contact.css';
@import 'sections/footer.css';

/* ████████████████████████████████████████████████████████████████████████████████
   1. FOUNDATION - CRITICAL PATH LOADED FIRST
   ████████████████████████████████████████████████████████████████████████████████ */

/* ===== DESIGN TOKENS & THEME IMPORTS ===== */
/* Base Design Tokens - 3KB */
@import url('./tokens/base-tokens.css');

/* Component Tokens - 2KB */  
@import url('./tokens/component-tokens.css');

/* Theme Definitions */
@import url('./themes/gauntletx.css');
@import url('./themes/corporate.css');
@import url('./themes/minimal.css');
@import url('./themes/cyanx.css');

/* Base Section Header Card Style */
.section-header {
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Reset individual title styling within base section header */
.section-header .section-title,
.section-header .hero-title,
.section-header .core-title {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1rem;
    color: var(--brand-primary);
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--brand-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

/* ===== UTILITY CLASSES ===== */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

.text-heading { color: var(--text-heading); }
.text-body { color: var(--text-body); }
.text-subtle { color: var(--text-subtle); }

.bg-primary { background: var(--surface-background); }
.bg-elevated { background: var(--surface-elevated); }
.bg-card { background: var(--surface-card); }

.border-subtle { border-color: var(--border-subtle); }
.border-default { border-color: var(--border-default); }
.border-emphasis { border-color: var(--border-emphasis); }

.rounded-none { border-radius: var(--border-radius-none); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded { border-radius: var(--border-radius-base); }
.rounded-md { border-radius: var(--border-radius-md); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-2xl { border-radius: var(--border-radius-2xl); }
.rounded-full { border-radius: var(--border-radius-full); }

.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-base); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }


/* ===== CONTAINER SYSTEM ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}


.section-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* ===== THEME-AWARE SCROLLBAR STYLING ===== */

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--theme-primary) var(--theme-bg-secondary);
}

/* WebKit Scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--theme-bg-secondary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--theme-primary), 
        color-mix(in srgb, var(--theme-primary) 80%, var(--theme-accent))
    );
    border-radius: 6px;
    border: 2px solid var(--theme-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        var(--theme-primary), 
        var(--theme-accent)
    );
    border-color: color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

::-webkit-scrollbar-thumb:active {
    background: var(--theme-primary);
}

::-webkit-scrollbar-corner {
    background: var(--theme-bg-secondary);
}

/* Scrollbar for specific containers */
.section-content::-webkit-scrollbar-thumb,
.nav-menu::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--theme-primary) 70%, transparent);
}

.section-content::-webkit-scrollbar-thumb:hover,
.nav-menu::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--theme-primary) 90%, transparent);
}







.verification-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.verification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    min-width: 200px;
    justify-content: center;
}

.verification-link.linkedin {
    color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
    border: 1px solid rgba(0, 119, 181, 0.3);
}

.verification-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.verification-link.facebook {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.verification-link.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.verification-icon {
    font-size: 1.1rem;
}
.verification-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}


/* ████████████████████████████████████████████████████████████████████████████████
   6. RESPONSIVE DESIGN - MOBILE-FIRST MEDIA QUERIES
   ████████████████████████████████████████████████████████████████████████████████ */

@media (max-width: 768px) {
    .mobile\:hidden { display: none; }
    .mobile\:block { display: block; }
    .mobile\:flex { display: flex; }
}

@media (min-width: 769px) {
    .desktop\:hidden { display: none; }
    .desktop\:block { display: block; }
    .desktop\:flex { display: flex; }
}

/* ===== LOADING OPTIMIZATION ===== */
/* Critical above-the-fold content gets priority */
.hero-section,
.nav {
    /* These get styled first */
    contain: layout style paint;
}

/* Below-the-fold content can be progressively enhanced */
.products,
.contact {
    /* These can wait for secondary CSS load */
    will-change: auto;
}


/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance Modes */
.performance-mode * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

.disable-animations * {
    animation: none !important;
    transition: none !important;
}








/* ===== PRODUCTS SECTION COMPONENT ===== */
/* Products showcase with grid layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}


/* ================================
   ACCESSIBILITY ENHANCEMENTS
   ================================ */
.contact-cta {
    background: var(--gradient-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--primary-alpha-20);
    text-align: center;
}

.cta-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

@keyframes gridMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}


@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Typography Components - Semantic Token Application */
h1, .heading-1 {
    font-size: var(--heading-1-size);
    font-weight: var(--heading-1-weight);
    line-height: var(--heading-1-line-height);
    font-family: var(--heading-1-family);
    color: var(--text-heading);
}

h2, .heading-2 {
    font-size: var(--heading-2-size);
    font-weight: var(--heading-2-weight);
    line-height: var(--heading-2-line-height);
    font-family: var(--heading-2-family);
    color: var(--text-heading);
}

h3, .heading-3 {
    font-size: var(--heading-3-size);
    font-weight: var(--heading-3-weight);
    line-height: var(--heading-3-line-height);
    font-family: var(--heading-3-family);
    color: var(--text-heading);
}

h4, .heading-4 {
    font-size: var(--heading-4-size);
    font-weight: var(--heading-4-weight);
    line-height: var(--heading-4-line-height);
    font-family: var(--heading-4-family);
    color: var(--text-heading);
}

.body-large {
    font-size: var(--body-large-size);
    font-weight: var(--body-large-weight);
    line-height: var(--body-large-line-height);
    font-family: var(--body-large-family);
    color: var(--text-body);
}

.body-small {
    font-size: var(--body-small-size);
    font-weight: var(--body-small-weight);
    line-height: var(--body-small-line-height);
    font-family: var(--body-small-family);
    color: var(--text-body);
}

/* Modal Components */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-index-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-backdrop);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--surface-background);
    border-radius: var(--modal-border-radius);
    box-shadow: var(--modal-shadow);
    padding: var(--modal-padding);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: var(--modal-transition);
}

.modal.open .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Toast/Notification Components */
.toast {
    background: var(--surface-elevated);
    border-radius: var(--toast-border-radius);
    box-shadow: var(--toast-shadow);
    padding: var(--toast-padding);
    border: var(--border-width-1) solid var(--border-default);
    position: relative;
    overflow: hidden;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--toast-transition);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--state-error);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

/* Progress Components */
.progress {
    width: 100%;
    height: 8px;
    background: var(--surface-elevated);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--interactive-primary), var(--interactive-accent));
    border-radius: var(--border-radius-full);
    transition: width var(--duration-300) var(--easing-out);
}

/* Tooltip Components */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-elevated);
    color: var(--text-body);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--border-radius-base);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    z-index: var(--z-index-tooltip);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-150) var(--easing-out);
    box-shadow: var(--shadow-lg);
    border: var(--border-width-1) solid var(--border-default);
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Divider Components */
.divider {
    height: var(--border-width-1);
    background: var(--border-default);
    border: none;
    margin: var(--spacing-4) 0;
}

.divider-vertical {
    width: var(--border-width-1);
    height: 100%;
    background: var(--border-default);
    margin: 0 var(--spacing-4);
}

/* Avatar Components */
.avatar {
    width: var(--avatar-size-base);
    height: var(--avatar-size-base);
    border-radius: var(--avatar-border-radius);
    border: var(--avatar-border-width) solid var(--border-default);
    object-fit: cover;
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    font-weight: var(--font-weight-medium);
}

.avatar-xs { width: var(--avatar-size-xs); height: var(--avatar-size-xs); }
.avatar-sm { width: var(--avatar-size-sm); height: var(--avatar-size-sm); }
.avatar-lg { width: var(--avatar-size-lg); height: var(--avatar-size-lg); }
.avatar-xl { width: var(--avatar-size-xl); height: var(--avatar-size-xl); }
.avatar-2xl { width: var(--avatar-size-2xl); height: var(--avatar-size-2xl); }
