:root {
    --primary-color: #ffc400; /* Yellow */
    --secondary-color: #000000; /* Black */
    --text-color: #ffffff; /* White */
    --light-gray: #f2f2f2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
}

.nav a, .social-icons a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}

.nav a:hover, .social-icons a:hover {
    color: var(--primary-color);
}

.social-icons i {
    font-size: 18px;
}

/* Hero Video Section */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* General Sections */
section {
    padding: 100px 50px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 30px;
}

.course-benefits {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.course-benefits li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.course-benefits i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Course Sections Section */
.course-sections-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.section-item {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Registration Section */
.registration-section {
    background-color: var(--secondary-color);
}

#registration-form {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #222;
    color: var(--text-color);
    border-radius: 5px;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #888;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #e5b300;
}

#form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #111;
    padding: 40px 50px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social-icons a {
    color: var(--text-color);
    margin: 0 10px;
    font-size: 18px;
    transition: color 0.3s;
}

.footer-social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #888;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .nav {
        margin-top: 15px;
    }

    .nav a {
        display: block;
        margin: 10px 0;
    }

    .social-icons {
        margin-top: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: 80px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links, .footer-social-icons {
        margin-top: 20px;
    }
}

/* About Me Section */
.about-me-section {
    background-color: var(--secondary-color);
    padding: 100px 50px;
}

.about-me-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.about-me-content {
    flex: 1;
    text-align: left;
}

.about-me-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-me-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-me-details p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #ccc;
}

.about-me-image {
    flex: 1;
    text-align: center;
}

.about-me-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Reverse order for larger screens (image on the right) */
@media (min-width: 992px) {
    .about-me-grid {
        flex-direction: row;
    }
    .about-me-content {
        order: 1; /* Puts content on the left */
    }
    .about-me-image {
        order: 2; /* Puts image on the right */
        text-align: right;
    }
}
/* Website Button Style */
.website-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.website-btn:hover {
    background-color: #e5b300;
}
/* Navigation Toggle Button (Hamburger) */
.nav-toggle {
    display: none; /* Hide on desktop by default */
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5em;
    position: absolute;
    right: 20px;
    z-index: 9999;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background: var(--primary-color);
    width: 2em;
    height: 3px;
    border-radius: 1em;
    transition: transform 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.hamburger::before {
    top: 8px;
}

.hamburger::after {
    bottom: 8px;
}

/* Show the hamburger icon only on mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav {
        /* Mobile menu styles */
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        z-index: 1000;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav.is-open {
        transform: translateX(0);
    }
}
/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.loader {
    width: 150px;
    height: 150px;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}