/*
 * NEW DASHBOARD STYLESHEET (style.css)
 * Theme: Standard Blue (Dark Mode)
 */

/* --- Base & Variables --- */
:root {
    /* --- Standard Blue Theme --- */
    --primary-color: rgb(15, 151, 255);
    --primary-color-dark: rgb(12, 121, 204);
    --primary-color-light: rgba(15, 151, 255, 0.15);
    --secondary-color: rgba(20, 20, 20, 0.5);
    --text-color: #E0E0E0;
    --text-muted: #AAAAAA;
    --border-color: #444; /* Darker border */
    --card-bg: #111111;
    --gradient-start: #0f1c3a; /* Dark blue from app page */
    --gradient-end: #1c3c66;   /* Lighter blue from app page */
    
    --transition-speed: 0.3s;
    --border-radius-main: 15px;
    --border-radius-input: 10px;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* --- Base Styles --- */
body {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Fade-in Animation for Main Content --- */
.main-wrapper {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Navigation Bar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Standard shadow */
}

nav .logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

nav .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

nav .nav-links {
    display: flex;
    align-items: center;
}

nav .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    margin-left: 25px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav .nav-links a.active,
nav .nav-links a:hover {
    color: var(--text-color);
    background-color: var(--primary-color-light);
}

/* Special button for "Apply Now" */
.nav-apply-btn {
    background-color: var(--primary-color);
    color: var(--text-color) !important;
    font-weight: 600;
}
.nav-apply-btn:hover {
    background-color: var(--primary-color-dark) !important;
    transform: scale(1.05);
}

/* Mobile Menu (Hidden on desktop) */
.mobile-menu-icon {
    display: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 15px 5%;
    border-top: 1px solid var(--border-color);
}
.mobile-menu a:hover {
    color: var(--primary-color);
    background-color: var(--primary-color-light);
}
.mobile-menu .nav-apply-btn {
    margin: 10px 5%;
    text-align: center;
}


/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 60px 5%;
    min-height: 60vh;
    gap: 40px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: var(--primary-color);
    /* text-shadow: var(--neon-glow); <-- REMOVED */
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFF; /* White text */
    /* box-shadow: 0 0 15px var(--primary-color); <-- REMOVED */
}
.btn-primary:hover {
    background-color: var(--primary-color-dark);
    /* box-shadow: 0 0 25px var(--primary-color); <-- REMOVED */
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color-light);
    /* box-shadow: 0 0 10px var(--primary-color-light); <-- REMOVED */
    transform: translateY(-3px);
}

/* --- Hero Image (Right Side) --- */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.hero-image .image-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 7rem;
    color: var(--text-color);
    /* --- GLOW AND SHAKE EFFECTS REMOVED --- */
    /* text-shadow: var(--neon-glow); */
    /* animation: subtle-shake 8s infinite ease-in-out; */
}

/* Keyframes for shake REMOVED */


/* --- Features Section (3 Cards) --- */
.features {
    padding: 40px 5% 60px 5%;
    background-color: #050505; /* Slightly off-black */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    /* box-shadow: 0 0 15px var(--primary-color-light); <-- REMOVED */
}

.card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
    /* text-shadow: 0 0 5px var(--primary-color-light); <-- REMOVED */
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.card .card-date {
    font-size: 0.9rem;
    color: #777;
    margin-top: 15px;
    display: block;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        order: 2; /* Text comes after image on mobile */
    }
    .hero-image {
        order: 1;
        min-height: 250px;
    }
    .hero-image .image-text {
        font-size: 5rem;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
.hero-logo {
    max-width: 600px; /* You can adjust this size */
    width: 300%;       /* Makes it responsive */
    height: auto;

    /* * We apply both animations at once:
     * 1. The pulse-glow animation over 4 seconds
     * 2. The subtle-shake animation over 8 seconds
     */
    animation: 
        pulse-glow 4s infinite ease-in-out,
        subtle-shake 1s infinite ease-in-out;
}

@media (max-width: 768px) {
    /* --- Show Mobile Menu --- */
    nav .nav-links {
        display: none;
    }
    .mobile-menu-icon {
        display: block;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-image .image-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 7rem;
    color: var(--text-color);
    /* --- GLOW AND SHAKE EFFECTS REMOVED --- */
    /* text-shadow: var(--neon-glow); */
    /* animation: subtle-shake 8s infinite ease-in-out; */
}
}

/* * ===============================================
 * LOADING SCREEN STYLES (Standard Blue)
 * ===============================================
 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-content .logo-placeholder {
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(15, 151, 255, 0.5); /* Standard shadow */
    animation: pulse 2s infinite ease-in-out;
}

.loader-content .logo-placeholder img {
    max-width: 200%;
    max-height: 200%;
    border-radius: 50%;
}

.loader-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Standard shadow */
}

.progress-bar-container {
    width: 300px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar-fill {
    height: 100%;
    width: 0%; /* Controlled by JS */
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.4s ease-out;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    /* box-shadow: 0 0 10px var(--primary-color); <-- REMOVED */
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(15, 151, 255, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(15, 151, 255, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(15, 151, 255, 0.5); }
}

/* Utility classes */
.hidden {
    display: none;
}
/*
 * ===============================================
 * NEW SECTIONS: About, Features, Rules
 * ===============================================
 */

/* --- General Section Styles --- */
.content-section {
    padding: 60px 5%;
    border-top: 1px solid var(--border-color);
}

.content-section.alt-bg {
    background-color: #050505; /* Matches updates section background */
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 50px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- About Section --- */
#about .section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

#about .section-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* This is a placeholder for an image */
.img-placeholder {
    width: 100%;
    height: 350px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Features Section --- */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-input);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-speed) ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 10px;
    margin-top: 0;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* This is a placeholder for an icon */
.icon-placeholder {
    display: block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color-light);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    border: 2px solid var(--primary-color);
}

/* --- Rules Section --- */
.rules-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: -20px auto 40px auto;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.rules-column {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-input);
    border: 1px solid var(--border-color);
}

.rules-column h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.rules-column ul {
    list-style-type: none;
    padding-left: 0;
}

.rules-column li {
    color: var(--text-muted);
    padding: 12px 0;
    border-bottom: 1px solid #222; /* Faint line separator */
    font-size: 0.95rem;
}

.rules-column li:last-child {
    border-bottom: none;
}

/* --- Updates Section (Renamed from .features) --- */
.updates-section {
    padding: 60px 5% 60px 5%;
    background-color: #050505;
    border-top: 1px solid var(--border-color);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Renaming the original .features styles to .updates-section */
.features {
   display: none; /* This class is no longer used, we use .updates-section */
}


/*
 * ===============================================
 * RESPONSIVE UPDATES for New Sections
 * ===============================================
 */

@media (max-width: 900px) {
    /* ... existing responsive styles ... */
    
    /* Stack new sections on tablet */
    #about .section-container {
        grid-template-columns: 1fr;
    }
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .updates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* ... existing responsive styles ... */
    
    .content-section h2 {
        font-size: 2.2rem;
    }

    #about .section-text {
        text-align: center; /* Center text on mobile */
    }
}
/* * ===============================================
 * NEW: Hero Logo Animations
 * ===============================================
 */

/* Creates the subtle, constant pulsing glow effect */
@keyframes pulse-glow {
    0%   { filter: drop-shadow(0 0 10px var(--primary-color)); }
    50%  { filter: drop-shadow(0 0 25px var(--primary-color)); }
    100% { filter: drop-shadow(0 0 10px var(--primary-color)); }
}

/* Creates the small, subtle shake effect */
@keyframes subtle-shake {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(1px, 2px) rotate(-0.5deg); }
    50%  { transform: translate(0, 0) rotate(0.5deg); }
    75%  { transform: translate(2px, -1px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}