/* MindBoggle Labs - Premium Dark Theme Styles */
:root {
    --bg-main: #0B0C10;
    --bg-secondary: #1F2833;
    --accent-cyan: #66FCF1;
    --accent-teal: #45A29E;
    --accent-purple: #7b2cbf;
    --text-main: #FFFFFF;
    --text-muted: #C5C6C7;
    --card-bg: rgba(31, 40, 51, 0.6);
    --border-light: rgba(102, 252, 241, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at top right, rgba(123, 44, 191, 0.15) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(102, 252, 241, 0.1) 0%, transparent 40%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-teal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(102, 252, 241, 0.4));
    border-radius: 50%;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.tagline {
    font-size: 0.75rem;
    color: var(--accent-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: -2px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-cyan);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
    padding: 10px 25px;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 252, 241, 0.5);
    color: white;
}

.btn-primary.large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--accent-cyan);
    font-weight: 600;
    border: 1px solid var(--accent-cyan);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: rgba(102, 252, 241, 0.1);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-graphics {
    position: relative;
    width: 400px;
    height: 400px;
    z-index: 1;
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-cyan);
    bottom: -10%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* About Section */
.about {
    padding: 80px 10%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text .lead-text {
    font-size: 1.15rem;
    color: var(--accent-cyan);
    margin-bottom: 30px;
    line-height: 1.6;
    border-left: 4px solid var(--accent-purple);
    padding-left: 20px;
    background: rgba(123, 44, 191, 0.05);
    border-radius: 0 10px 10px 0;
}

.about-text h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: white;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Courses Section */
.courses {
    padding: 100px 10%;
    background: linear-gradient(to bottom, var(--bg-main), #0f1218);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Glassmorphism Cards */
.course-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(102, 252, 241, 0.15);
    border-color: var(--accent-cyan);
}

.card-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.card-image h3 {
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-scratch-blue {
    background: linear-gradient(135deg, #4A90E2, #1C4D89);
}

.bg-scratch-gold {
    background: linear-gradient(135deg, #F39C12, #D35400);
}

.bg-tomato-red {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.bg-python-blue {
    background: linear-gradient(135deg, #2E86C1, #1A5276);
}

.bg-circuit-purple {
    background: linear-gradient(135deg, #8E44AD, #5B2C6F);
}

.bg-robotics-teal {
    background: linear-gradient(135deg, #1ABC9C, #0E6655);
}

.card-content {
    padding: 25px;
}

.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.features {
    display: flex;
    gap: 10px;
}

.features span {
    font-size: 0.8rem;
    background: rgba(102, 252, 241, 0.1);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Booking Section */
.booking {
    padding: 80px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-cyan);
}

.checkout-actions {
    margin-top: 20px;
}

.checkout-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
}

.security-badge {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #45A29E;
}

/* Calendar Styles */
.calendar-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 5px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header h3 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin: 0;
}

.calendar-header button {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: white;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 5px;
    transition: background 0.2s;
}

.calendar-header button:hover {
    background: var(--accent-purple);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: all 0.2s;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.available {
    background: rgba(102, 252, 241, 0.1);
    color: white;
    cursor: pointer;
}

.calendar-day.available:hover {
    background: rgba(102, 252, 241, 0.3);
}

.calendar-day.selected {
    background: var(--accent-cyan);
    color: black;
    font-weight: bold;
    transform: scale(1.1);
}

.calendar-day.unavailable {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.calendar-day.booked {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
    cursor: not-allowed;
}

.calendar-legend {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.available {
    background: var(--accent-cyan);
}

.dot.partially-booked {
    background: var(--accent-purple);
}

.dot.booked {
    background: #E74C3C;
}

.dot.unavailable {
    background: rgba(255, 255, 255, 0.3);
}

/* Time Slots */
.time-slot-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    background: rgba(102, 252, 241, 0.1);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover:not(.booked) {
    background: rgba(102, 252, 241, 0.3);
}

.time-slot.selected {
    background: var(--accent-cyan);
    color: black;
    font-weight: bold;
}

.time-slot.partially-booked {
    background: rgba(123, 44, 191, 0.4);
    border: 1px dashed var(--accent-purple);
}

.time-slot.booked {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot.unavailable {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.slot-instructions {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(102, 252, 241, 0.1);
    border-radius: 5px;
}

.selected-slots-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.slot-badge {
    background: var(--accent-purple);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slot-badge .remove-slot {
    cursor: pointer;
    font-weight: bold;
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 1.1rem;
    line-height: 1;
}

.slot-badge .remove-slot:hover {
    color: white;
}

/* Footer */
footer {
    background: #050608;
    padding: 40px 10%;
    text-align: center;
}

.footer-content .brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Animations Trigger Classes */
.fade-in {
    opacity: 1;
    transition: opacity 1s ease-out;
}

.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-graphics {
        position: absolute;
        opacity: 0.3;
    }

    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav a {
        margin: 0 10px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    text-align: center;
    max-width: 500px;
    width: 90%;
    padding: 40px;
}