/* ===== CSS CUSTOM PROPERTIES (VARIABLES) ===== */
:root {
    /* Primary Color Palette */
    --deep-navy: #02182B;
    --navy-dark: #010f1a;
    --navy-light: #042d4a;
    --navy-lighter: #0a3a5c;
    --electric-cyan: #00FFFF;
    --cyan-dark: #00d4d4;
    --cyan-light: #4dffff;
    --cyan-glow: rgba(0, 255, 255, 0.2);
    --cyan-subtle: rgba(0, 255, 255, 0.1);
    --ice-white: #EDF7F6;
    --text-gray: #8ba5b8;
    --overlay-dark: rgba(2, 24, 43, 0.95);

    /* Extended Color Palette */
    --slate-gray: #64748b;
    --cool-gray: #f1f5f9;
    --warm-white: #ffffff;
    --charcoal: #1e293b;
    --silver: #cbd5e1;

    /* Semantic Colors */
    --success: #22c55e;
    --success-light: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.1);
    --info: var(--electric-cyan);
    --info-light: var(--cyan-subtle);

    /* Typography */
    --font-family-primary: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --border-radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(2, 24, 43, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(2, 24, 43, 0.1), 0 2px 4px -1px rgba(2, 24, 43, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(2, 24, 43, 0.1), 0 4px 6px -2px rgba(2, 24, 43, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(2, 24, 43, 0.1), 0 10px 10px -5px rgba(2, 24, 43, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(2, 24, 43, 0.25);
    --shadow-cyan-glow: 0 0 20px rgba(0, 255, 255, 0.3);
    --shadow-cyan-intense: 0 8px 30px rgba(0, 255, 255, 0.4);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--ice-white);
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--deep-navy) 50%, var(--navy-light) 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--overlay-dark);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cyan-glow);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.navbar-brand {
    font-weight: var(--font-weight-extrabold);
    font-size: var(--font-size-xl);
    color: var(--electric-cyan) !important;
    text-decoration: none;
    transition: var(--transition-fast);
    letter-spacing: -0.025em;
}

    .navbar-brand:hover {
        color: var(--cyan-light) !important;
        text-shadow: var(--shadow-cyan-glow);
        transform: translateY(-1px);
    }

.nav-link {
    color: var(--ice-white) !important;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    position: relative;
    transition: var(--transition-fast);
    padding: var(--spacing-sm) var(--spacing-md) !important;
}

    .nav-link:hover {
        color: var(--electric-cyan) !important;
        text-decoration: none;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--electric-cyan) 0%, transparent 100%);
        transition: var(--transition-fast);
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: 80%;
    }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-bounce);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-primary {
    background: var(--electric-cyan);
    color: var(--deep-navy);
    border-color: var(--electric-cyan);
    font-weight: var(--font-weight-bold);
}

    .btn-primary:hover {
        background: var(--cyan-dark);
        border-color: var(--cyan-dark);
        color: var(--deep-navy);
        box-shadow: var(--shadow-cyan-intense);
        transform: translateY(-2px);
    }

.btn-secondary {
    background: transparent;
    color: var(--ice-white);
    border-color: var(--electric-cyan);
}

    .btn-secondary:hover {
        background: var(--electric-cyan);
        color: var(--deep-navy);
        box-shadow: var(--shadow-cyan-glow);
        transform: translateY(-2px);
    }

.btn-outline-light {
    background: transparent;
    color: var(--ice-white);
    border-color: var(--ice-white);
}

    .btn-outline-light:hover {
        background: var(--ice-white);
        color: var(--deep-navy);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

/* ===== FORMS ===== */
.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-md);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--ice-white);
    background: rgba(2, 24, 43, 0.8);
    border: 2px solid var(--navy-lighter);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-fast);
}

    .form-control:focus {
        outline: 0;
        border-color: var(--electric-cyan);
        box-shadow: 0 0 0 0.2rem var(--cyan-glow);
        background: rgba(2, 24, 43, 0.9);
    }

    .form-control::placeholder {
        color: var(--text-gray);
    }

    /* Focus states for accessibility */
    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem var(--warm-white), 0 0 0 0.25rem var(--electric-cyan);
        outline: none;
    }

/* ===== CARDS ===== */
.card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--cyan-subtle);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--electric-cyan) 0%, var(--cyan-light) 100%);
        transform: scaleX(0);
        transition: transform var(--transition-normal);
    }

    .card:hover::before {
        transform: scaleX(1);
    }

    .card:hover {
        border-color: var(--electric-cyan);
        box-shadow: var(--shadow-2xl), var(--shadow-cyan-glow);
        transform: translateY(-8px);
    }

.card-header {
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy-light) 100%);
    color: var(--ice-white);
    border-bottom: 1px solid var(--cyan-glow);
    position: relative;
    overflow: hidden;
}

    .card-header::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -20%;
        transform: translateY(-50%);
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
        animation: pulse 4s ease-in-out infinite;
    }

.card-body {
    padding: var(--spacing-xl);
    background: var(--warm-white);
    color: var(--charcoal);
}

.card-footer {
    padding: var(--spacing-xl);
    background: var(--cool-gray);
    border-top: 1px solid var(--cyan-subtle);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-lg);
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    background: linear-gradient(135deg, var(--ice-white) 0%, var(--electric-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-lg);
}

a {
    color: var(--electric-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

    a:hover {
        color: var(--cyan-light);
        text-decoration: underline;
    }

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--electric-cyan) !important;
}

.text-cyan {
    color: var(--electric-cyan) !important;
}

.text-light {
    color: var(--ice-white) !important;
}

.text-muted {
    color: var(--text-gray) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy-light) 100%) !important;
}

.bg-cyan {
    background-color: var(--electric-cyan) !important;
}

.bg-light {
    background-color: var(--ice-white) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded {
    border-radius: var(--border-radius-md) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-xl) !important;
}

/* ===== FOOTER ===== */
.footer {
    width: 100%;
    background: var(--navy-dark);
    color: var(--ice-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    border-top: 1px solid var(--cyan-glow);
    position: relative;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--electric-cyan), transparent);
    }

    .footer a {
        color: var(--electric-cyan);
        transition: var(--transition-fast);
    }

        .footer a:hover {
            color: var(--cyan-light);
            text-shadow: var(--shadow-cyan-glow);
        }

.social-links a:hover {
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px var(--electric-cyan);
    }

    50% {
        text-shadow: 0 0 20px var(--electric-cyan), 0 0 30px var(--electric-cyan);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-in {
    animation: slideInFromLeft 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 3s infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767.98px) {
    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    .navbar-brand {
        font-size: var(--font-size-lg);
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: var(--spacing-lg);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --deep-navy: #000000;
        --ice-white: #ffffff;
        --electric-cyan: #00ffff;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
