:root {
    --primary-glow: #58a6ff;
    --bg-dark: #0d1117;
}

body { font-family: 'Inter', sans-serif; }
.orbitron { font-family: 'Orbitron', sans-serif; letter-spacing: 1px; }

/* Navbar styling */
.navbar { background: rgba(13, 17, 23, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(88, 166, 255, 0.1); }

/* --- HERO SYSTEM --- */
/* --- HERO PARALLAX SYSTEM --- */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0d1117; /* Fallback */
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    
    /* REPLACE with your high-res robotics image */
    background-image: url('https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=1920');
    
    /* THE PARALLAX MAGIC */
    background-attachment: fixed; /* Keeps image still while page moves */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Ensures image covers the whole hero */
    
    opacity: 0.4; /* Dims the image for text clarity */
    filter: saturate(1.2) contrast(1.1);
}

/* Ensure the overlay sits between the image and the text */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(13, 17, 23, 1) 0%, 
        rgba(13, 17, 23, 0.4) 50%, 
        rgba(13, 17, 23, 1) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Highest layer */
}

.course-card h5 {
    color: #ffffff; /* Change this to your preferred base color */
}

/* Mobile Fix: Parallax 'fixed' often breaks on iOS/Android */
@media (max-width: 1024px) {
    .parallax-bg {
        background-attachment: scroll; /* Disables parallax on mobile for better performance */
    }
}

/* --- COURSE CARD ANIMATION --- */
.course-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(88, 166, 255, 0.1) !important;
    z-index: 1;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-glow) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: rgba(88, 166, 255, 0.05) !important;
}

.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(88, 166, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}


.team-img {
    width: 150px; 
    height: 150px; /* Forces a square container */
    
    /* THE FIX: This ensures the photo fills the 150x150 space 
       without stretching the pixels. It crops the edges instead. */
    object-fit: cover; 
    object-position: center; /* Keeps the face in the middle */
    
    border-radius: 50%; /* Makes it a perfect circle */
    border: 3px solid var(--primary-glow);
    padding: 5px;
    background: rgba(88, 166, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- ENROL NOW BUTTON --- */
.btn-enroll {
    background-color: #58a6ff !important; /* Your Electric Blue */
    color: #0d1117 !important; /* Dark text for high contrast */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px !important;
    border-radius: 4px;
    border: 2px solid #58a6ff;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
    display: inline-block;
    text-decoration: none;
}

.btn-enroll:hover {
    background-color: transparent !important;
    color: #58a6ff !important; /* Text turns blue */
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.7);
    transform: translateY(-2px);
}

/* Ensure the button looks correct on mobile nav */
@media (max-width: 991px) {
    .btn-enroll {
        margin-top: 15px;
        display: block;
        text-align: center;
    }
}

.course-card:hover .card-glow { opacity: 1; }

.bg-glass { backdrop-filter: blur(12px); }

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@media (min-width: 992px) {
    .photo-track { grid-template-columns: repeat(4, 1fr); }
}

.photo-track img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 0.5px solid rgba(88, 166, 255, 0.05);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--bg-dark), transparent 50%, var(--bg-dark));
    z-index: 2;
}

.hero-content { position: relative; z-index: 3; }

.bg-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.x-small { font-size: 0.75rem; text-transform: uppercase; }