/* ============================================
   ENIGMA XIII - Global CSS Variables & Styles
   ============================================ */

:root {
    /* Typography Variables */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Clean College Fest Palette (Non-Cyberpunk) */
    --color-primary: #00D4FF;        /* Vibrant Fest Cyan/Blue */
    --color-secondary: #FFB703;      /* Warm Festival Gold/Amber */
    --color-accent: #FF5E7E;         /* Warm Coral Highlight */
    --color-bg: #0A0B10;             /* Clean Deep Fest Background */
    --color-surface: #12141D;        /* Card Background */
    --color-surface-card: rgba(18, 20, 29, 0.85);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(0, 212, 255, 0.25);
    --color-text-primary: #FFFFFF;   /* Main Text */
    --color-text-secondary: #9BA1B5; /* Sub-headings, meta-text */

    /* Spacing Variables */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.75rem;
    --spacing-lg: 3.5rem;
    --spacing-xl: 5.5rem;
    --spacing-xxl: 7.5rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index Layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
}

/* ============================================
   Global Reset & Base Styles
   ============================================ */

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

/* GPU acceleration for transforms */
*,
*::before,
*::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize rendering */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile image optimization */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: cover;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        display: block;
    }
    
    /* Prevent image overflow on mobile */
    .container img,
    section img {
        max-width: 100%;
        width: auto;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
}

/* Touch-friendly buttons on mobile */
@media (max-width: 768px) {
    button,
    a.btn,
    .btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
}

/* ============================================
   Typography & Fest Titles
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: 1px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 1px;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: #FFFFFF;
}

/* Section Title - Clean College Fest Styling */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    color: #FFFFFF;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

/* ============================================
   Custom Scrollbar - Sleek Modern Dark
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0B10;
}

::-webkit-scrollbar-thumb {
    background: #1F2433;
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ============================================
   Animation Classes
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Responsive Typography
   ============================================ */

/* Container Responsive - Optimized */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    contain: layout style;
}

@media (max-width: 992px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        line-height: 1.5;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 var(--spacing-xs);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}



