/* =======================================================
   UNIVERSAL CLASSES - MAIN STYLESHEET
   ======================================================= */

/* --- 1. THEME COLORS & BASICS --- */
:root {
    --primary-blue: #004aad;   /* Professional Dark Blue */
    --accent-yellow: #ffcc00;  /* Bright Energetic Yellow */
    --pure-white: #ffffff;
    --light-gray: #f4f7f6;
    --dark-text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--pure-white);
    color: var(--dark-text);
    overflow-x: hidden; 
}

/* --- 2. NAVBAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-blue);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* THIS PART FIXES THE GIANT LOGO */
.logo-container img {
    height: 50px; 
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--accent-yellow);
}

.logo-text {
    color: var(--pure-white);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: 0.3s;
}

nav a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent-yellow);
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent-yellow);
}

nav a:hover::after {
    width: 100%;
}

/* --- 3. HERO & SECTIONS --- */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 74, 173, 0.9), rgba(0, 40, 100, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--pure-white);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
}

.btn-main {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    margin: 10px;
}

.btn-main:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-yellow);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 10%;
    text-align: center;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 5px;
    background: var(--accent-yellow);
    margin: 10px auto 0;
    border-radius: 5px;
}

/* --- 4. CARDS & GRIDS --- */
.features-grid, .course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box, .course-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    border-bottom: 5px solid transparent;
    text-align: center;
}

.feature-box:hover, .course-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--accent-yellow);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-icon, .course-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.premium-card {
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
    border: 2px solid var(--accent-yellow);
    position: relative;
    overflow: hidden;
}

.btn-details {
    margin-top: 15px;
    display: inline-block;
    padding: 8px 20px;
    background: var(--light-gray);
    color: var(--dark-text);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.course-card:hover .btn-details {
    background: var(--primary-blue);
    color: white;
}

/* --- 5. MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border-top: 5px solid var(--accent-yellow);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
}

.close-btn:hover { color: red; }

/* --- 6. HOME PAGE EXTRAS --- */
.stats-strip {
    background: var(--primary-blue);
    color: white;
    padding: 40px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}
.stat-box { margin: 10px 20px; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: var(--accent-yellow); }
.stat-label { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

/* Circuit Pattern */
.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}
.tech-line {
    position: absolute;
    fill: none;
    stroke: var(--accent-yellow);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: circuitFlow 12s linear infinite;
    filter: drop-shadow(0 0 5px var(--accent-yellow));
}
@keyframes circuitFlow {
    0% { stroke-dashoffset: 2000; }
    100% { stroke-dashoffset: 0; }
}

/* Split Section */
.about-split { display: flex; align-items: center; gap: 50px; padding: 80px 10%; }
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: 20px; box-shadow: 20px 20px 0 var(--accent-yellow); }
.about-text { flex: 1; }

/* --- 7. FOOTER --- */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 50px 10%;
    text-align: center;
    border-top: 5px solid var(--accent-yellow);
}

/* --- MOBILE FIXES --- */
@media screen and (max-width: 1024px) {
    nav {
        flex-direction: column !important;
        padding: 10px 0 !important;
        gap: 10px !important;
        overflow: hidden;
    }
    .logo-container {
        justify-content: center !important;
        width: 100% !important;
    }
    nav ul {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 10px !important;
        padding: 0 15px 10px 15px !important;
        background: transparent !important; 
        border: none !important;
    }
    nav a {
        display: inline-block !important;
        padding: 8px 15px !important;
        font-size: 0.95rem !important;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        color: white !important;
        border: 1px solid rgba(255,255,255,0.2);
    }
    nav a:hover, nav a:active {
        background: var(--accent-yellow);
        color: var(--primary-blue) !important;
        border-color: var(--accent-yellow);
    }
    .hero h1 { font-size: 2.5rem !important; margin-top: 10px; }
    .hero { padding-top: 20px !important; min-height: 80vh !important; }
    .about-split, .split-section, .contact-wrapper, .stats-strip { flex-direction: column !important; padding: 40px 20px !important; }
    .features-grid, .course-grid, .gallery-wrapper { grid-template-columns: 1fr !important; }
    .modal-content { width: 95% !important; max-height: 80vh !important; }
}