@import "./cursor.css";
/* =====================================
   BHUYAS — UNIVERSAL AUTO-SCALING SYSTEM
   Smart Responsive Design for ALL Devices
   Automatically adapts layout, typography, spacing
   ===================================== */

:root {
    /* ===== COLOR PALETTE ===== */
    --bg: #0E141B;
    --bg-panel: #151C25;
    --bg-card: #1A2430;
    --line: rgba(247, 245, 231, 0.08);
    --line-strong: rgba(247, 245, 231, 0.15);
    --text: #f7f5e7;
    --text-secondary: #9AA4AE;
    --accent: #5C7C99;
    --accent-bright: #7A9AB8;
    
    /* ===== DEVICE BREAKPOINTS (Device Guidelines) ===== */
    --device: "desktop"; /* Will be updated via JS */
    
    /* ===== FLUID TYPOGRAPHY - Auto scales text ===== */
    --text-xs: clamp(0.65rem, 1.5vw, 0.75rem);
    --text-sm: clamp(0.8rem, 2vw, 0.95rem);
    --text-base: clamp(0.95rem, 2.5vw, 1.125rem);
    --text-lg: clamp(1.1rem, 3vw, 1.3rem);
    --text-xl: clamp(1.25rem, 3.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 4.5vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 5.5vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 6.5vw, 3rem);
    --text-5xl: clamp(2.75rem, 8vw, 3.75rem);
    
    /* ===== FLUID SPACING - Auto scales spacing ===== */
    --space-xs: clamp(4px, 0.5vw, 8px);
    --space-sm: clamp(8px, 1vw, 12px);
    --space-md: clamp(12px, 1.5vw, 16px);
    --space-lg: clamp(16px, 2vw, 24px);
    --space-xl: clamp(24px, 3vw, 32px);
    --space-2xl: clamp(32px, 4vw, 48px);
    --space-3xl: clamp(48px, 5.5vw, 64px);
    --space-4xl: clamp(64px, 7vw, 80px);
    
    /* ===== FLUID SIZING - Auto scales sizes ===== */
    --padding-xs: clamp(8px, 1.5vw, 16px);
    --padding-sm: clamp(12px, 2vw, 20px);
    --padding-md: clamp(16px, 2.5vw, 28px);
    --padding-lg: clamp(24px, 3.5vw, 40px);
    --padding-xl: clamp(32px, 4.5vw, 56px);
    
    /* ===== BORDER RADIUS - Auto scales corners ===== */
    --radius-sm: clamp(2px, 0.5vw, 4px);
    --radius-md: clamp(4px, 1vw, 8px);
    --radius-lg: clamp(8px, 1.5vw, 12px);
    --radius-xl: clamp(12px, 2vw, 16px);
    
    /* ===== LINE HEIGHTS ===== */
    --leading-tight: 1.2;
    --leading-normal: 1.6;
    --leading-loose: 1.8;
    
    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
    
    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
    
    /* ===== MAX WIDTHS - Responsive containers ===== */
    --max-width-sm: clamp(280px, 90vw, 320px);
    --max-width-md: clamp(320px, 95vw, 600px);
    --max-width-lg: clamp(600px, 95vw, 900px);
    --max-width-xl: clamp(900px, 95vw, 1200px);
    --max-width-2xl: clamp(1200px, 98vw, 1400px);
    
    /* ===== HEADER SIZING ===== */
    --header-height: clamp(50px, 10vw, 80px);
    --header-padding: var(--padding-md);
    
    /* ===== TOUCH TARGET SIZE ===== */
    --touch-target: clamp(44px, 10vw, 64px);
}

/* ===== DEVICE-SPECIFIC OVERRIDES (Detected via JS) ===== */

/* ULTRA-SMALL PHONES (280px - 360px) */
@media (max-width: 360px) {
    :root {
        --text-base: clamp(0.85rem, 2vw, 0.95rem);
        --padding-lg: clamp(16px, 2vw, 24px);
        --text-4xl: clamp(1.75rem, 5vw, 2.25rem);
    }
}

/* SMALL PHONES (361px - 480px) */
@media (max-width: 480px) {
    :root {
        --padding-xl: clamp(20px, 3vw, 32px);
        --text-5xl: clamp(2rem, 6vw, 2.75rem);
    }
}

/* MEDIUM PHONES (481px - 640px) */
@media (max-width: 640px) {
    :root {
        --max-width-md: clamp(320px, 95vw, 520px);
    }
}

/* LARGE PHONES (641px - 768px) */
@media (max-width: 768px) {
    :root {
        --header-padding: var(--padding-sm);
    }
}

/* SMALL TABLETS (769px - 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    :root {
        --text-base: clamp(1rem, 2.2vw, 1.1rem);
    }
}

/* LARGE TABLETS (901px - 1200px) */
@media (min-width: 901px) and (max-width: 1200px) {
    :root {
        --max-width-lg: clamp(700px, 90vw, 900px);
    }
}

/* DESKTOPS (1201px+) */
@media (min-width: 1201px) {
    :root {
        --text-base: clamp(1.125rem, 1.5vw, 1.25rem);
        --padding-xl: clamp(40px, 3vw, 56px);
    }
}

/* LANDSCAPE MODE (Height < Width) */
@media (max-height: 600px) {
    :root {
        --text-lg: clamp(0.95rem, 2.5vw, 1.1rem);
        --space-lg: clamp(12px, 1.5vw, 20px);
    }
}

/* TOUCH DEVICES - Larger interactive elements */
@media (hover: none) and (pointer: coarse) {
    :root {
        --touch-target: clamp(56px, 12vw, 72px);
    }
}

/* HIGH DPI DISPLAYS (Retina screens) */
@media (min-resolution: 192dpi) {
    :root {
        --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
}

/* DARK MODE (respects system preference) */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* LIGHT MODE */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #F5F5F5;
        --text: #1A1A1A;
        --line: rgba(0, 0, 0, 0.08);
    }
}

/* REDUCED MOTION - Accessibility */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0.01ms ease;
        --transition-normal: 0.01ms ease;
        --transition-slow: 0.01ms ease;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== UNIVERSAL RESETS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    overflow-x: hidden;
}

/* ===== HEADING SCALES ===== */
h1 { font-size: var(--text-5xl); line-height: var(--leading-tight); font-weight: 600; }
h2 { font-size: var(--text-4xl); line-height: var(--leading-tight); font-weight: 600; }
h3 { font-size: var(--text-3xl); line-height: var(--leading-tight); font-weight: 600; }
h4 { font-size: var(--text-2xl); line-height: var(--leading-normal); font-weight: 600; }
h5 { font-size: var(--text-xl); line-height: var(--leading-normal); font-weight: 600; }
h6 { font-size: var(--text-lg); line-height: var(--leading-normal); font-weight: 600; }

small { font-size: var(--text-sm); }
p { margin-bottom: var(--space-md); }

/* ===== BUTTON STANDARDIZATION ===== */
button, a[role="button"] {
    min-height: var(--touch-target);
    padding: var(--padding-sm) var(--padding-md);
    font-size: var(--text-sm);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== INPUT STANDARDIZATION ===== */
input, textarea, select {
    font-size: var(--text-base);
    padding: var(--padding-sm);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    transition: all var(--transition-normal);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(92, 124, 153, 0.1);
}

/* ===== LINK STANDARDIZATION ===== */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--accent-bright);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== CONTAINER QUERIES (Future-proof) ===== */
@supports (container-type: inline-size) {
    .responsive-container {
        container-type: inline-size;
    }
    
    @container (max-width: 400px) {
        .responsive-text {
            font-size: var(--text-sm);
        }
    }
    
    @container (min-width: 401px) and (max-width: 800px) {
        .responsive-text {
            font-size: var(--text-base);
        }
    }
    
    @container (min-width: 801px) {
        .responsive-text {
            font-size: var(--text-lg);
        }
    }
}