/**
 * Los Angeles City Roleplay - Main Stylesheet
 * Modern, Professional Dark Theme Design
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4da6ff;
    --primary-glow: rgba(77, 166, 255, 0.4);
    --primary-dark: #2d8ee3;
    --secondary-color: #ffffff;
    --text-color: #e0e0e0;
    --text-muted: #8a8a8a;
    --bg-color: #0a0a0a;
    --dark-bg: #0d0d0d;
    --darker-bg: #141414;
    --light-bg: #1a1a1a;
    --card-bg: rgba(20, 20, 20, 0.8);
    --card-bg-solid: #141414;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(77, 166, 255, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(15, 15, 15, 0.9) 100%);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--light-bg);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

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

/* Selection */
::selection {
    background: var(--primary-color);
    color: #000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-color);
    min-height: 100vh;
    padding-top: 65px; /* For fixed header */
}

body.no-header-padding {
    padding-top: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
    50% { box-shadow: 0 0 20px 5px var(--primary-glow); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow); }
    50% { text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

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

/* Hero animations (run on page load) */
.hero .fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.hero .fade-in h1 {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .fade-in .tagline {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.hero .fade-in p:not(.tagline) {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero .fade-in .hero-buttons {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

/* Scroll-triggered animation classes (initial state set by JS) */
.fade-in:not(.hero .fade-in),
.slide-in-up,
.slide-in-left,
.slide-in-right {
    /* Initial state handled by JavaScript for scroll animations */
}

/* Header & Navigation */
header {
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(8, 8, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hide any stray text nodes in nav */
nav {
    font-size: 0;
}

nav > * {
    font-size: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

/* Nav button specific styles */
.nav-links .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    color: #000000 !important;
}

/* Hamburger Menu */
.hamburger {
    display: none !important;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}

/* Mobile Navigation Overlay - hidden on desktop */
.nav-overlay {
    display: none !important;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.nav-overlay.active {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--primary-color);
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(77, 166, 255, 0.25);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 166, 255, 0.35);
    color: #000000;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(77, 166, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.btn-secondary::before {
    display: none;
}

.btn-secondary:hover {
    background: rgba(77, 166, 255, 0.1);
    border-color: rgba(77, 166, 255, 0.4);
    box-shadow: 0 4px 15px rgba(77, 166, 255, 0.15);
    color: var(--primary-color);
}

.btn-secondary:hover::after {
    background: rgba(77, 166, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(77, 166, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(77, 166, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(77, 166, 255, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero .tagline {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.scroll-indicator span {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-indicator .scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
    border-color: var(--primary-color);
}

.scroll-indicator .scroll-arrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0 4px 4px 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px) translateX(3px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(77, 166, 255, 0.1);
    border-color: rgba(77, 166, 255, 0.15);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Content Section */
.content-section {
    padding: 5rem 0;
}

.content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.05rem;
}

.content-section ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
    line-height: 2.2;
}

.content-section ul li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.5rem;
}

.content-section ul li::marker {
    color: var(--primary-color);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(77, 166, 255, 0.1);
    border-color: var(--border-hover);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--primary-color);
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* FAQ */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.faq-question:hover {
    background: rgba(77, 166, 255, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.9;
}

/* Forms */
.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(10, 10, 10, 0.8);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.15);
    background: rgba(20, 20, 20, 0.9);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234da6ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Dashboard */
.dashboard-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.applications-table th,
.applications-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.applications-table th {
    background: rgba(77, 166, 255, 0.05);
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.applications-table tr {
    transition: background 0.3s ease;
}

.applications-table tbody tr:hover {
    background: rgba(77, 166, 255, 0.03);
}

.applications-table td {
    color: var(--text-color);
    font-size: 0.95rem;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(77, 166, 255, 0.15);
    color: #4da6ff;
    border: 1px solid rgba(77, 166, 255, 0.3);
}

.status-accepted {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-denied {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Application Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    animation: slideInUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(77, 166, 255, 0.1);
}

/* Footer */
footer {
    background: linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(15, 15, 15, 1) 100%);
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

footer p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

footer h4 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.hidden {
    display: none;
}

/* Divider */
.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.75rem auto 1.5rem;
    border-radius: 3px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.divider::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

/* Application Banners */
.application-banner {
    width: 100%;
    max-width: 850px;
    height: auto;
    border-radius: 16px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.application-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.application-banner-container {
    text-align: center;
    margin: 2rem 0;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Section with Dark Background */
.section.dark-bg {
    background: linear-gradient(180deg, rgba(13, 13, 13, 1) 0%, rgba(10, 10, 10, 1) 100%);
    padding: 6rem 0;
    position: relative;
}

.section.dark-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section.dark-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* =============================================
   Department Showcases
   ============================================= */
.dept-showcases {
    padding: 0;
    position: relative;
}

.dept-row {
    position: relative;
    min-height: 520px;
    display: flex;
    overflow: hidden;
    background: var(--bg-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dept-row.reversed {
    flex-direction: row-reverse;
}

.dept-image-side {
    position: absolute;
    top: 0;
    width: 58%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
}

.dept-row:not(.reversed) .dept-image-side {
    left: 0;
}

.dept-row.reversed .dept-image-side {
    right: 0;
}

.dept-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dept-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dept-row:not(.reversed) .dept-image-side::after {
    background:
        linear-gradient(to right, transparent 30%, rgba(10, 10, 10, 0.4) 60%, var(--bg-color) 100%),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.15) 0%, transparent 15%, transparent 85%, rgba(10, 10, 10, 0.3) 100%);
}

.dept-row.reversed .dept-image-side::after {
    background:
        linear-gradient(to left, transparent 30%, rgba(10, 10, 10, 0.4) 60%, var(--bg-color) 100%),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.15) 0%, transparent 15%, transparent 85%, rgba(10, 10, 10, 0.3) 100%);
}

.dept-text-side {
    position: relative;
    z-index: 2;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dept-row:not(.reversed) .dept-text-side {
    margin-left: auto;
    width: 48%;
}

.dept-row.reversed .dept-text-side {
    margin-right: auto;
    width: 48%;
}

.dept-badge-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dept-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.8);
}

.dept-text-side h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.dept-text-side .dept-description {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 2rem;
    max-width: 480px;
}

.dept-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.dept-live-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 10px 4px rgba(34, 197, 94, 0.15); }
}

.dept-live-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dept-live-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dept-live-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.dept-live-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.dept-cta {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    width: fit-content;
}

.dept-cta:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 25px rgba(77, 166, 255, 0.3);
    transform: translateY(-2px);
}

/* =============================================
   Global Live Stats Section
   ============================================= */
.live-stats-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(12, 12, 18, 1) 50%, var(--bg-color) 100%);
    position: relative;
    overflow: hidden;
}

.live-stats-section::before,
.live-stats-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 166, 255, 0.15), transparent);
}

.live-stats-section::before { top: 0; }
.live-stats-section::after { bottom: 0; }

.live-stats-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.live-stats-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.live-stat-card {
    background: linear-gradient(145deg, rgba(22, 22, 28, 0.95) 0%, rgba(14, 14, 18, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.live-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 0 0 3px 3px;
    transition: width 0.4s ease;
}

.live-stat-card:hover::before {
    width: 70%;
}

.live-stat-card:hover {
    border-color: rgba(77, 166, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.live-stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.live-stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.live-stat-card .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.live-stat-card .stat-sublabel {
    margin-top: 0.6rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.88rem;
    }

    .dept-row {
        min-height: 450px;
    }

    .dept-image-side {
        width: 55%;
    }

    .dept-row:not(.reversed) .dept-text-side,
    .dept-row.reversed .dept-text-side {
        width: 50%;
    }

    .dept-text-side {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Show hamburger, hide nav links */
    .hamburger {
        display: flex !important;
        visibility: visible !important;
        width: 28px !important;
        height: 20px !important;
        overflow: visible !important;
        position: relative !important;
        pointer-events: auto !important;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .nav-links {
        margin-left: 0;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .nav-links a:not(.btn)::after {
        display: none;
    }
    
    .nav-links .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Department showcase mobile */
    .dept-row,
    .dept-row.reversed {
        flex-direction: column;
        min-height: auto;
    }

    .dept-image-side,
    .dept-row:not(.reversed) .dept-image-side,
    .dept-row.reversed .dept-image-side {
        position: relative;
        width: 100%;
        height: 280px;
        left: auto;
        right: auto;
    }

    .dept-row:not(.reversed) .dept-image-side::after,
    .dept-row.reversed .dept-image-side::after {
        background: linear-gradient(to bottom, transparent 40%, var(--bg-color) 100%);
    }

    .dept-row:not(.reversed) .dept-text-side,
    .dept-row.reversed .dept-text-side {
        width: 100%;
        margin: 0;
    }

    .dept-text-side {
        padding: 1.5rem 1.5rem 3rem;
        margin-top: -2rem;
    }

    .dept-text-side h2 {
        font-size: 1.6rem;
    }

    .dept-text-side .dept-description {
        max-width: none;
        font-size: 0.9rem;
    }

    .dept-live-stats {
        gap: 1.5rem;
    }

    .dept-cta {
        padding: 0.75rem 1.75rem;
        font-size: 0.85rem;
    }

    .live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-stats-header h2 {
        font-size: 1.8rem;
    }

    /* Hero adjustments */
    .hero {
        min-height: calc(100vh - 70px);
        min-height: calc(100svh - 70px);
        padding: 3rem 1.5rem 5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    nav {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .features-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .form-container {
        padding: 1.75rem;
        margin: 0 1rem;
    }
    
    .logo img,
    .logo-image {
        height: 38px;
        max-width: 150px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    /* Scroll indicator mobile */
    .scroll-indicator {
        bottom: 25px;
    }
    
    .scroll-indicator span {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
    
    .scroll-indicator .scroll-arrow {
        width: 24px;
        height: 40px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    /* Feature cards mobile */
    .feature-card {
        padding: 1.75rem;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem 4rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero .tagline {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    .nav-links {
        width: 100%;
        max-width: none;
        padding: 4.5rem 1.5rem 2rem;
    }
    
    .dept-image-side,
    .dept-row:not(.reversed) .dept-image-side,
    .dept-row.reversed .dept-image-side {
        height: 220px;
    }

    .dept-text-side {
        padding: 1.25rem 1.25rem 2.5rem;
    }

    .dept-text-side h2 {
        font-size: 1.4rem;
    }

    .dept-live-stats {
        gap: 1.25rem;
    }

    .dept-live-value {
        font-size: 1.3rem;
    }

    .live-stats-section {
        padding: 3rem 0;
    }

    .live-stats-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .live-stats-header h2 {
        font-size: 1.5rem;
    }

    .live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .live-stat-card {
        padding: 1.25rem 0.75rem;
    }

    .live-stat-card .stat-value {
        font-size: 1.8rem;
    }

    .live-stat-card .stat-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .live-stat-card .stat-sublabel {
        font-size: 0.6rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .applications-table {
        font-size: 0.85rem;
    }
    
    .applications-table th,
    .applications-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Scroll indicator small screens */
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator .scroll-arrow {
        width: 22px;
        height: 36px;
    }
    
    .logo img,
    .logo-image {
        height: 34px;
        max-width: 130px;
    }
    
    /* Footer mobile */
    footer > .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    footer ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }
    
    footer ul li {
        margin-bottom: 0;
    }
    
    /* Form adjustments */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }

    .live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .live-stat-card {
        padding: 1rem 0.5rem;
    }

    .live-stat-card .stat-value {
        font-size: 1.5rem;
    }

    .dept-text-side h2 {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem;
    }
}
