/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Color Variables */
:root {
    --primary-red: #ff3333;
    --primary-black: #000000;
    --primary-yellow: #ffd700;
    --primary-green: #00cc00;
    --primary-purple: #a24aa3;
    --primary-dark: #333333;
    --light-gray: #f5f5f7;
    --white: #ffffff;
    --dark-text: #333333;
    --heading-font: 'Nunito', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --accent-font: 'Montserrat', sans-serif;
}

@media (max-width: 823px) {
    header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--white);
        overflow: hidden;
        transition: height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 999;
    }

    header nav.active {
        display: block;
        height: 100vh;
        opacity: 1;
        padding: 80px 20px 20px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 15px 0;
    }

    header nav ul li a {
        font-size: 1.2rem;
        color: var(--primary-black);
    }
}

/* About Page Styles */

.instructor-profile {
    padding: 50px 0;
    background: #fff;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 90%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.profile-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.profile-content h2 {
    font-family: var(--heading-font);
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.profile-content h3 {
    font-family: var(--heading-font);
    color: #a24aa3;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.instructor-title {
    font-family: var(--body-font);
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-style: italic;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.credential-item i {
    color: #333333;
    font-size: 1.5rem;
    margin-top: 5px;
}

.credential-item h4 {
    font-family: var(--heading-font);
    color: #333;
    margin-bottom: 8px;
}

.credential-item p {
    font-family: var(--body-font);
    color: #666;
}

.bio {
    font-family: var(--body-font);
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Our Story Section */
.our-story {
    padding: 100px 0;
    background: #f9f9f9;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-content p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Our Approach Section */
.our-approach {
    padding: 100px 0;
    background: #ffffff;
}

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

.approach-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.approach-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(162, 74, 163, 0.1);
}

.approach-icon {
    width: 70px;
    height: 70px;
    background: #f0e6f6;
    color: #a24aa3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    margin-bottom: 20px;
}

.approach-item h3 {
    font-family: var(--heading-font);
    margin-bottom: 15px;
    color: #333;
}

.approach-item p {
    font-family: var(--body-font);
    color: #666;
    line-height: 1.7;
}

/* Technology Stack Section */
.tech-stack {
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.tech-stack::before,
.tech-stack::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(162, 74, 163, 0.05);
}

.tech-stack::before {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.tech-stack::after {
    width: 500px;
    height: 500px;
    bottom: -250px;
    left: -250px;
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.tech-title {
    font-family: var(--heading-font);
    padding-top: 20px;
    text-align: center;
    font-size: 3rem;
    color: #333333;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.tech-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.tech-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333333;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-title {
    font-family: var(--heading-font);
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: #a24aa3;
}

.faq-item {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.faq-item:hover {
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: 0 15px 40px rgba(162, 74, 163, 0.1);
}

.faq-question {
    padding: 25px 30px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-question h3 {
    font-family: var(--body-font);
    margin: 0;
    font-size: 1.2rem;
    color: #333333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background: #a24aa3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: #000000;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: white;
    position: relative;
    z-index: 1;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 1000px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .journey-container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .timeline-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px 10px;
    }
    
    .timeline-marker {
        flex: 0 0 auto;
        min-width: 120px;
    }
    
    .stage-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .journey-title,
    .tech-title,
    .faq-title {
        font-size: 2.5rem;
    }
    
    .stage-title {
        font-size: 1.8rem;
    }
    
    .stage-description {
        font-size: 1rem;
    }
    
    .course-card {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .journey-title,
    .tech-title,
    .faq-title {
        font-size: 2rem;
    }
    
    .stage-title {
        font-size: 1.5rem;
    }
    
    .timeline-marker h3 {
        font-size: 0.9rem;
    }
    
    .timeline-marker span {
        font-size: 0.7rem;
    }
}


.team {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.team .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(45deg, rgba(162, 74, 163, 0.1), rgba(162, 74, 163, 0.1));
    transform: skewY(-5deg);
    transform-origin: top left;
}

.team-motto {
    font-family: var(--heading-font);
    text-align: center;
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 60px;
    font-weight: 500;
    position: relative;
    padding-bottom: 20px;
}

.team-motto::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #a24aa3, #000000);
    border-radius: 2px;
}

.team-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    margin-top: 40px;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100%;
}

.team-member {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    flex: 1 1 250px !important;
    max-width: 300px !important;
    min-width: 250px !important;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(162, 74, 163, 0.2);
}

.member-content {
    padding: 40px 30px;
    position: relative;
    z-index: 1;
    background: white;
    height: 100%;
    transition: all 0.4s ease;
}

.member-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a24aa3, #000000);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    transition: all 0.4s ease;
}

.member-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    background: linear-gradient(135deg, #a24aa3, #000000);
    opacity: 0.3;
    z-index: -1;
}

.member-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.4s ease;
}

.team-member:hover .member-icon {
    transform: rotateY(180deg);
}

.team-member:hover .member-icon i {
    transform: rotateY(-180deg);
}

h3 {
    font-family: var(--heading-font);
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
}

.member-title {
    color: #a24aa3;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.member-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #a24aa3, #000000);
}

.member-description {
    font-family: var(--body-font);
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.team-member:hover .member-description {
    opacity: 1;
    transform: translateY(0);
}

.hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(162, 74, 163, 0.1), rgba(162, 74, 163, 0.1));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.team-member:hover .hover-effect {
    opacity: 1;
}

@media (max-width: 768px) {
    .team {
        padding: 60px 0;
    }

    .team-motto {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }

    .team-grid {
        flex-direction: column !important;
        align-items: center !important;
    }

    .team-member {
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .member-description {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Scrolling */
.parallax-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transform: translateZ(-1px) scale(2);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #a24aa3;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    background: #000000;
    transform: translateY(-5px);
}

.scroll-to-top.active {
    opacity: 1;
}

/* Responsive styling for about page */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-image {
        order: -1;
    }
    
    .credential-item {
        justify-content: center;
    }
    
    .approach-item {
        text-align: center;
    }
    
    .approach-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 130px 0 40px;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .instructor-profile,
    .our-story,
    .our-approach,
    .tech-stack {
        padding: 60px 0;
    }
    
    .profile-content h2 {
        font-size: 1.8rem;
    }
    
    .profile-content h3 {
        font-size: 1.5rem;
    }
    
    .credentials {
        grid-template-columns: 1fr;
    }
    
    .approach-grid {
        gap: 20px;
    }
    
    .tech-icons {
        gap: 25px;
    }
    
    .tech-icon img {
        width: 60px;
        height: 60px;
    }
}

.instructor-profile {
        padding: 50px 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .profile-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 50px;
        align-items: start;
    }

    .profile-image {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .profile-image img {
        width: 100%;
        height: auto;
        transition: transform 0.3s ease;
    }

    .profile-image:hover img {
        transform: scale(1.05);
    }

    .experience-badge {
        position: absolute;
        bottom: 20px;
        right: 20px;
        background: linear-gradient(135deg, var(--primary-black),var(--primary-purple));
        color: white;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 600;
        backdrop-filter: blur(5px);
    }

    /* Global Reach Section Styles */
    .global-reach {
        padding: 50px 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .stats-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin: 50px 0;
    }

    .stat-card {
        background: linear-gradient(145deg, #ffffff, #f5f5f5);
        padding: 30px;
        border-radius: 20px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .stat-card:hover {
        transform: translateY(-10px);
    }

    .stat-number {
        font-family: var(--heading-font);
        font-size: 3.5rem;
        font-weight: 800;
        color: #a24aa3;
        margin-bottom: 10px;
        background: linear-gradient(135deg, #000000, #a24aa3);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .stat-label {
        font-family: var(--accent-font);
        font-size: 1.1rem;
        color: #666;
        font-weight: 500;
    }

    .global-map {
        margin-top: 60px;
        text-align: center;
    }

    .global-map h3 {
        font-family: var(--heading-font);
        font-size: 1.8rem;
        margin-bottom: 40px;
        color: #333;
    }

    .country-flags {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
        justify-items: center;
    }

    .flag-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        transition: transform 0.3s ease;
    }

    .flag-item:hover {
        transform: translateY(-5px);
    }

    .flag-item img {
        width: 80px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .flag-item span {
        font-family: var(--body-font);
        font-size: 0.9rem;
        color: #666;
        font-weight: 500;
    }

    @media (max-width: 768px) {
        .profile-grid {
            grid-template-columns: 1fr;
        }

        .stats-container {
            grid-template-columns: 1fr;
        }

        .country-flags {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Enhanced Approach Section Styles */
    .our-approach {
        padding: 80px 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e3e8ed 100%);
    }

    .approach-grid {
        margin-top: 50px;
    }

    .flip-card {
        background-color: transparent;
        perspective: 1000px;
        height: 300px;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.8s;
        transform-style: preserve-3d;
        cursor: pointer;
    }

    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-front, .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 20px;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .flip-card-front {
        background: linear-gradient(135deg, #000000, #a24aa3);
    }

    .flip-card-back {
        background: linear-gradient(135deg, #000000, #a24aa3);
        color: white;
        transform: rotateY(180deg);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center; 
    }

    .card-icon {
        font-size: 3rem;
        color: #ffffff;
        margin-bottom: 20px;
        transition: transform 0.3s ease;
    }

    .flip-card:hover .card-icon {
        transform: scale(1.1);
    }

    .flip-card-front h3 {
        font-family: var(--heading-font);
        color: #ffffff;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .flip-card-front p {
        font-family: var(--body-font);
        color: #ffffff;
        font-size: 1rem;
    }

    .flip-card-back p {
        font-family: var(--body-font);
        font-size: 1rem;
        line-height: 1.6;
    }

    @media (max-width: 768px) {
        .approach-grid {
            grid-template-columns: 1fr;
        }
        
        .flip-card {
            height: 250px;
        }
    }

    @keyframes shine {
        0% {
            transform: translateX(-100%) rotate(45deg);
        }
        20%, 100% {
            transform: translateX(100%) rotate(45deg);
        }
    }
    
    /* Hero Video Background Styles */

    .hero-bg-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
    }

    /* FAQ Section Styles */
    .faq {
        padding: 80px 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    }

    .faq-two-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-top: 50px;
    }

    .faq-column {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .faq-grid {
        display: grid;
        margin-top: 50px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-item {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

    .faq-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(162, 74, 163, 0.15);
    }

    .faq-question {
        padding: 25px 30px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        transition: all 0.3s ease;
    }

    .faq-question h3 {
        font-family: var(--body-font);
        margin: 0;
        font-size: 1.2rem;
        color: #333;
        font-weight: 600;
    }

    .toggle-icon {
        position: relative;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .toggle-icon i {
        position: absolute;
        color: #a24aa3;
        transition: all 0.3s ease;
    }

    .toggle-icon .fa-minus {
        opacity: 0;
        transform: rotate(-90deg);
    }

    .faq-answer {
        padding: 0 30px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .faq-answer p {
        font-family: var(--body-font);
        margin: 0;
        padding: 20px 0;
        color: #666;
        line-height: 1.6;
    }

    .faq-item.active .faq-question {
        background: linear-gradient(135deg, rgba(162, 74, 163, 0.1), rgba(162, 74, 163, 0.1));
    }

    .faq-item.active .toggle-icon .fa-plus {
        opacity: 0;
        transform: rotate(90deg);
    }

    .faq-item.active .toggle-icon .fa-minus {
        opacity: 1;
        transform: rotate(0);
    }

    .faq-item.active .faq-answer {
        max-height: 300px;
    }

    @media (max-width: 768px) {
        .hero {
            height: 10vh;
        }

        .faq-two-columns {
            grid-template-columns: 1fr;
        }

        .faq-question {
            padding: 20px;
        }

        .faq-question h3 {
            font-size: 1.1rem;
        }

        .faq-answer {
            padding: 0 20px;
        }
    }
