/* ======================= */
/* Global Variables    */
/* ======================= */
:root {
    --primary-color: #007BFF; /* Bright Blue */
    --secondary-color: #00BFA6; /* Teal */
    --dark-color: #222831;
    --light-color: #FFFFFF;
    --gray-color: #F4F4F4;
    --text-color: #333;
    --header-height: 70px;
}

/* ======================= */
/* Reset & Globals     */
/* ======================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Offset for sticky nav */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--light-color);
}

h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

/* Underline effect for H2 */
h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style-type: none;
}

section {
    padding: 4rem 0;
}

/* ======================= */
/* Header & Nav        */
/* ======================= */
.main-header {
    background-color: var(--light-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: 'Lato', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu li a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.social-links-menu {
    display: flex;
    gap: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid #ddd;
}

.social-links-menu a {
    font-size: 1.2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* ======================= */
/* Hero Section      */
/* ======================= */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070&auto=format&fit=crop') center center/cover no-repeat;
    padding: 0 2rem;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* ======================= */
/* About Section      */
/* ======================= */
.about {
    background-color: var(--gray-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text h2::after {
    margin: 1rem 0 0;
}

.cta-button-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.7rem 1.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* ======================= */
/* Skills Section     */
/* ======================= */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-list li {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-list li:hover {
    transform: translateY(-3px);
}

/* ======================= */
/* Footer          */
/* ======================= */
.main-footer {
    background-color: var(--dark-color);
    color: var(--gray-color);
    padding: 3rem 0;
    text-align: center;
}

.footer-social {
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: var(--light-color);
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.main-footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.main-footer p a {
    color: var(--gray-color);
    text-decoration: underline;
}

/* ======================= */
/* Responsive Design    */
/* ======================= */

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Mobile Nav */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%; /* Start hidden */
        background-color: var(--light-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-menu li a {
        font-size: 1.5rem;
    }
    
    .social-links-menu {
        border-left: none;
        margin-top: 1rem;
    }
    
    .social-links-menu a {
        font-size: 1.8rem;
    }
    
    .hamburger {
        display: block;
    }

    /* About Section */
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .profile-picture {
        width: 250px;
        height: 250px;
    }
    
    .about-text h2 {
        text-align: center;
    }

    .about-text h2::after {
        margin: 1rem auto 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    
    .profile-picture {
        width: 200px;
        height: 200px;
    }
}
/* ======================= */
/* Stats Bar Section    */
/* ======================= */
.stats {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 2.5rem 0;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    min-width: 200px;
    flex-basis: 1;
}

.stat-item h3 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
}

.stat-item p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* ======================= */
/* My Courses Section    */
/* ======================= */
.courses {
    background-color: var(--gray-color);
    text-align: center;
}

.courses-container {
    max-width: 800px;
    margin: 0 auto;
}

.courses-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button-large {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--light-color);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button-large i {
    margin-right: 0.75rem;
}

.cta-button-large:hover {
    background-color: #009c85; /* Darker teal */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ======================= */
/* Testimonials Section   */
/* ======================= */
.testimonials {
    background-color: var(--light-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--gray-color);
    border-radius: 8px;
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-text::before {
    content: '\f10d'; /* Font Awesome quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: -5px;
    top: -5px;
    opacity: 0.5;
}

.testimonial-author {
    text-align: left;
    margin-top: auto; /* Pushes author to the bottom */
}

.testimonial-author p {
    margin-bottom: 0;
    line-height: 1.4;
}

.testimonial-author p:first-child { /* Name */
    font-weight: 700;
    color: var(--dark-color);
}

.testimonial-author p:last-child { /* Title */
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ======================= */
/* FAQ Section       */
/* ======================= */
.faq {
    background-color: var(--gray-color);
}

.faq .container {
    max-width: 800px;
}

.faq-item {
    background-color: var(--light-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: left;
    cursor: pointer;
}

.faq-question i {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ======================= */
/* Responsive Adjustments */
/* ======================= */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr; /* Stack testimonials on mobile */
    }
}