/* ===================================
   ExamPredict AI - Professional Dark Theme
   Futuristic Design with Red Accents
   =================================== */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* Global Zoom - Scale everything to 80% */
html {
    zoom: 0.80;
}

/* CSS Custom Properties - Professional Dark Theme */
:root {
    /* Dark Professional Colors */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;
    --color-bg-elevated: #222222;
    --color-bg-card: #151515;
    --color-bg-hover: #1f1f1f;

    /* Red Accent Palette */
    --color-accent: #ef4444;
    --color-accent-dark: #dc2626;
    --color-accent-light: #f87171;
    --color-accent-dim: rgba(239, 68, 68, 0.1);

    /* Neutral Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-text-dark: #52525b;

    /* Accent Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Refined Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Premium Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Professional Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Professional Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 0 30px rgba(239, 68, 68, 0.3);
    --shadow-accent-glow: 0 0 60px rgba(239, 68, 68, 0.4);

    /* Fast Transitions */
    --transition-fast: 100ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none !important;
}

/* ===================================
   Custom Circular Cursor
   =================================== */

*,
*::before,
*::after {
    cursor: none !important;
}

/* Extra insurance for all elements */
a, button, input, textarea, select, .btn, .count-option,
.upload__zone, .file-item, .file-item__remove,
.question-card__option, .step-card, .tech-feature {
    cursor: none !important;
}

/* Custom Cursor Elements */
.custom-cursor,
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
}

/* Outer Circle */
.custom-cursor {
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-accent);
    transition: width 0.15s ease-out, height 0.15s ease-out, background-color 0.15s ease-out;
    will-change: transform;
}

/* Inner Dot */
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    transition: width 0.2s, height 0.2s;
}

/* Hover States */
.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
}

.custom-cursor.clicking {
    width: 25px;
    height: 25px;
    background: rgba(239, 68, 68, 0.2);
}

/* Cursor State Classes */
body.cursor-hovering .custom-cursor {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
}

body.cursor-clicking .custom-cursor {
    width: 25px;
    height: 25px;
    background: rgba(239, 68, 68, 0.2);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-6xl); font-weight: 900; }
h2 { font-size: var(--text-4xl); font-weight: 800; }
h3 { font-size: var(--text-3xl); font-weight: 700; }
h4 { font-size: var(--text-2xl); font-weight: 700; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--text-base);
    line-height: 1.7;
}

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

a:hover {
    color: var(--color-accent-light);
}

/* ===================================
   Container
   =================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===================================
   Utility Classes
   =================================== */

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing Utilities */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ===================================
   Snappy Animations
   =================================== */

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
    }
}

/* ===================================
   Accent Text
   =================================== */

.accent-text {
    color: var(--color-accent);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Scrollbar Styling
   =================================== */

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

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: var(--radius-sm);
}

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

/* ===================================
   Selection Styling
   =================================== */

::selection {
    background: var(--color-accent);
    color: white;
}

::-moz-selection {
    background: var(--color-accent);
    color: white;
}
