/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: Lato, 'Lato Fallback', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e7ff;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed header */
    cursor: auto;
}

body.custom-cursor-enabled {
    cursor: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../banners/GeneralTSL.Banners/Shared/TSL_2026-Banner_Bare.png');
    background-size: cover;
    background-position: center;
    opacity: 0.30;
    z-index: -1;
}

/* NoScript Warning */
.noscript-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ef4444;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 10000;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    text-align: center;
    font-family: Fraunces, 'Fraunces Fallback', 'Rock Salt', 'Rock Salt Fallback', serif;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.highlight {
    color: #10b981;
}

.highlight-blue {
    color: #3b82f6;
}

.highlight-red {
    color: #ef4444;
}

.italic {
    font-style: italic;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    font-family: 'Fraunces', serif;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #059669, #047857);
}

.btn-secondary {
    background: #3b82f6;
    color: white;
}

.btn-secondary:hover {
    background: #2563eb;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes electricalCircuit {
    0%, 100% {
        opacity: 0;
        background-position: 0% 50%;
    }
    50% {
        opacity: 0.5;
        background-position: 100% 50%;
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeInWord {
    to {
        opacity: 1;
    }
}

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

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes marqueGlow {
    0%, 100% {
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 30px rgba(0, 212, 255, 0.6);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Custom cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.02s ease;
}

.custom-cursor.hover {
    background: rgba(203, 161, 53, 0.8);
    border-color: rgba(203, 161, 53, 0.6);
    transform: translate(-50%, -50%);
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-image: url('website/Icons/CursorALT.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    filter: brightness(2) contrast(1.5);
    transition: filter 0.02s ease;
}

.custom-cursor.hover::before {
    filter: brightness(2) contrast(1.5) invert(1) brightness(0.3);
}

/* Inline styles moved from HTML to CSS for CSP compliance */
.hidden {
    display: none !important;
}

.inline {
    display: inline !important;
}

.block {
    display: block !important;
}

.flex {
    display: flex !important;
}