: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 */
}

/* --- White Input Styling --- */
.modal-content .form-control {
    background-color: #ffffff !important; /* Pure White Background */
    border: 1px solid #ced4da !important; /* Standard Grey Border */
    color: #000000 !important;           /* Pure Black Text */
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Change Placeholder color to a light grey for visibility */
.modal-content .form-control::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

/* Focus state: Keep the Blue Glow but maintain white background */
.modal-content .form-control:focus {
    background-color: #ffffff !important; 
    border-color: #58a6ff !important;     /* Electric Blue Border on focus */
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.25);
    color: #000000 !important;
    outline: none;
}
/* --- THE MASTER ALIGNMENT CLASS --- */
.hero-btn-base {
    /* 1. Reset Bootstrap defaults */
    display: inline-flex !important;
    align-items: center;      /* Perfect Vertical Center */
    justify-content: center;   /* Perfect Horizontal Center */
    
    /* 2. Typography */
    font-family: 'Orbitron', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none !important;
    
    /* 3. Perfect Sizing & Spacing */
    height: 55px;             /* Fixed height for vertical consistency */
    min-width: 220px;         /* Equal width for both */
    padding: 0 30px !important; /* Equal horizontal internal spacing */
    
    /* 4. Shape & Border */
    border-radius: 4px;
    border: 2px solid #58a6ff !important; /* Both must have a 2px border for math to match */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- SOLID BUTTON COLORS --- */
.btn-solid-blue {
    background-color: #58a6ff !important;
    color: #0d1117 !important;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

.btn-solid-blue:hover {
    background-color: transparent !important;
    color: #58a6ff !important;
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.6);
    transform: translateY(-3px);
}

/* --- OUTLINE BUTTON COLORS --- */
.btn-outline-blue {
    background-color: transparent !important;
    color: #58a6ff !important;
}

.btn-outline-blue:hover {
    background-color: rgba(88, 166, 255, 0.1) !important;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
    transform: translateY(-3px);
}

/* Mobile: Stack them but keep height/width */
@media (max-width: 576px) {
    .hero-btn-base {
        width: 100%; 
        max-width: 300px;
        margin: 0 auto;
    }
}
/* 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; }

#success-view {
    animation: fadeIn 0.5s ease;
}

.success-icon {
    animation: scaleUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { transform: scale(0); }
    to { transform: scale(1); }
}