@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Exact Brand Palette from live site */
    --brand-purple: #7B2CBF;
    /* Dominant Vibrant Purple */
    --brand-red: #E81123;
    /* Active/Highlight Red */
    --brand-black: #000000;
    /* Button/Neutral Black */
    --brand-white: #FFFFFF;
    /* Text/Logo White */

    --bg-color: #5d2197;
    /* Saturated Purple for Page background */
    --header-bg: transparent;

    --p-900: #10002b;
    --p-400: var(--brand-purple);
    --p-300: #9d4edd;
    --p-100: #e0aaff;

    --primary-color: var(--brand-purple);
    --accent-red: var(--brand-red);

    --text-color: var(--brand-white);
    --text-muted: rgba(255, 255, 255, 0.8);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --brand-green: #74E810;
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #1a0033 0%, #2d0a4e 50%, #1a0033 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Typography Utils */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    text-align: center;
}

.green-text {
    color: var(--brand-purple);
    background: linear-gradient(135deg, var(--brand-purple), #9d4edd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* BUTTONS */
.btn-main {
    background: linear-gradient(135deg, var(--brand-black) 0%, #1a1a1a 100%);
    color: var(--brand-white);
    padding: 15px 45px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1.5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-main:hover {
    transform: scale(1.05) translateY(-3px);
    background: #000;
    box-shadow: 0 15px 30px rgba(123, 44, 191, 0.4);
    border-color: var(--brand-purple);
}

.secondary-btn {
    background-color: #fff;
    color: var(--p-400);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background-color: var(--p-100);
    color: var(--p-600);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.section-subtitle {
    color: var(--p-200);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    padding: 20px 0;
}

header.scrolled {
    background: linear-gradient(135deg, rgba(42, 10, 78, 0.98) 0%, rgba(58, 13, 94, 0.98) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(123, 44, 191, 0.4);
    padding: 10px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--brand-white);
    font-size: 1.4rem;
    opacity: 0.8;
}

.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-white);
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

/* Nav Bar Fixed Layout (Restored 2-row Identity) */
.nav-bar {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(232, 17, 35, 0.3);
    /* Transparent red line */
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-links a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 120px;
    background: #000;
}

/* About Page Specific Hero Adjustments */
.about-hero {
    height: auto !important;
    min-height: 600px !important;
    padding: 180px 0 100px;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 1;
    /* Maximum visibility */
    filter: brightness(0.8);
    /* Slight dim for text readability */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #5d2197, #7B2CBF, #10002b, #E81123);
    background-size: 400% 400%;
    z-index: -2;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reduced darkness to let video colors pop */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(123, 44, 191, 0.2) 50%, transparent 100%);
    pointer-events: none;
    animation: scanline 8s infinite linear;
}

@keyframes scanline {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(100%);
    }
}

.hero-content {
    max-width: 950px;
    padding: 60px 40px;
    z-index: 10;
    position: relative;
    /* Much more transparent background to reduce 'black square' effect */
    background: rgba(0, 0, 0, 0.2);
    /* Keep blur for readability but make it subtle */
    backdrop-filter: blur(8px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    animation: fadeInReveal 1.5s ease-out;
}

@keyframes fadeInReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--brand-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(123, 44, 191, 0.4);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--brand-white);
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stars {
    color: #ffd700;
    font-size: 1.6rem;
    margin-top: 30px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    animation: pulseGold 2s infinite alternate;
}

@keyframes pulseGold {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    }

    to {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

/* PURPLE SECTION (Sobre/Promo) */
.purple-section {
    background: linear-gradient(180deg, #2d0a4e 0%, #3a0d5e 50%, #2d0a4e 100%);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.purple-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(224, 170, 255, 0.1) 0%, transparent 70%);
}

.purple-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 2rem;
}

.purple-container h2 {
    font-size: 3.5rem;
    text-align: left;
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.1;
}

.purple-container p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out;
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translate(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.purple-text {
    flex: 1;
}

.purple-text h2 {
    font-size: 3.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.purple-text p {
    text-align: left;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    color: var(--p-100);
    line-height: 1.8;
}

/* COURSE DETAIL (SUBPAGE) */
.course-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Symmetric for balance */
    gap: 80px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-detail-card.reverse {
    direction: ltr;
    /* Ensure text remains LTR */
}

.course-detail-card.reverse>*:first-child {
    order: 2;
}

.course-detail-card.reverse>*:last-child {
    order: 1;
}

.course-detail-card:hover {
    transform: scale(1.02) translateY(-10px);
    border-color: var(--brand-red);
    box-shadow: 0 60px 120px -20px rgba(123, 44, 191, 0.3);
}

.course-image-placeholder {
    background: rgba(255, 255, 255, 0.05);
    height: 450px;
    border-radius: 30px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--p-300);
}

.course-info {
    text-align: center;
}

.course-info h2,
.course-info h3 {
    text-align: center;
}

.course-info .description {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--p-100);
    text-align: left;
    /* Changed from justify to prevent weird spacing */
}

.benefit-list {
    margin-bottom: 50px;
}

.benefit-list li {
    margin-bottom: 18px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--brand-white);
}

.benefit-list li i {
    color: var(--brand-red);
    font-size: 1.4rem;
}

@media (max-width: 992px) {
    .course-detail-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 40px;
    }

    .course-image-placeholder {
        height: 300px;
    }

    .course-info h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .course-info .description {
        text-align: center;
    }

    .benefit-list {
        display: inline-block;
        text-align: left;
    }
}

/* COURSES SECTION */
.courses-section {
    background-color: var(--brand-purple);
    padding: 120px 0;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--brand-red);
    border-radius: 2px;
}

.courses-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.course-card {
    background: linear-gradient(135deg, rgba(36, 0, 70, 0.4) 0%, rgba(16, 0, 43, 0.4) 100%);
    border-radius: 24px;
    border: 1px solid var(--p-700);
    text-align: left;
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.8);
    transition: var(--transition-smooth);
}

.course-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    border-color: var(--p-300);
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.course-card:hover img {
    filter: saturate(1.2) brightness(1);
    transform: scale(1.05);
}

.course-card h3 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--p-200);
}

.course-card p {
    font-size: 1rem;
    color: var(--p-100);
    line-height: 1.7;
    opacity: 0.9;
}

/* PROJECTS LIST */
.projects-section {
    background-color: var(--brand-purple);
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 0 30px;
}

.project-item {
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    gap: 30px;
}

.project-item img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-item:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--brand-red);
    transform: scale(1.02);
}

.project-info {
    flex: 1;
}

.project-info h4 {
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #fff;
}

.project-info span {
    color: var(--p-200);
    font-size: 0.95rem;
    font-weight: 500;
}

.arrow-link {
    font-size: 1.8rem;
    color: var(--p-400);
    transition: var(--transition-smooth);
}

.project-item:hover .arrow-link {
    color: var(--p-200);
    transform: translateX(10px);
}

/* TEAM SECTION */
.team-section {
    padding: 120px 0;
    background-color: var(--bg-color);
    text-align: center;
}

.team-grid {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    background: linear-gradient(to bottom, var(--p-800), var(--p-900));
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--p-700);
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.team-member:hover {
    transform: translateY(-15px);
    border-color: var(--p-300);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    transition: var(--transition-smooth);
}

.team-info {
    padding: 30px;
}

.team-info h4 {
    margin-bottom: 8px;
    font-size: 1.4rem;
    text-align: center;
    color: #fff;
}

.team-info p {
    color: var(--p-300);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GALLERIA EXTRA */
.gallery-extra {
    padding: 120px 0;
    background: var(--bg-color);
    text-align: center;
    /* Center the inline-block titles */
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    border-radius: 12px;
    cursor: zoom-in;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(123, 44, 191, 0.4);
    z-index: 10;
    border: 2px solid var(--brand-purple);
}

/* FAQ SECTION */
.faq-section {
    background-color: var(--brand-purple);
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
    border-color: var(--p-300);
}

.faq-item h3 {
    text-align: left;
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3 i {
    color: var(--brand-green);
}

.faq-item p {
    color: var(--p-100);
    font-size: 1rem;
    line-height: 1.6;
}

/* LOCATION SECTION */
.location-section {
    background: linear-gradient(180deg, #1a0033 0%, #2d0a4e 100%);
    padding: 120px 0;
    text-align: center;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-red);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-item i {
    font-size: 2rem;
    color: var(--brand-red);
    min-width: 40px;
    margin-top: 5px;
}

.info-item i.fa-whatsapp {
    color: var(--brand-green);
}

.info-item h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #fff;
    text-align: left;
}

.info-item p {
    color: var(--p-100);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.map-container:hover {
    box-shadow: 0 25px 80px rgba(123, 44, 191, 0.3);
    border-color: var(--brand-red);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* FOOTER */
footer {
    background: linear-gradient(180deg, #3a0d5e 0%, #2d0a4e 100%);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    color: var(--brand-white);
}

footer .social-icons a {
    color: var(--brand-white);
    font-size: 1.8rem;
    background: var(--brand-black);
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 8px;
    transition: var(--transition-smooth);
}

footer .social-icons a:hover {
    background: #333;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

footer p {
    color: var(--brand-white);
    margin-top: 30px;
    font-size: 1.1rem;
    font-weight: 500;
}

.copyright {
    color: var(--brand-white);
    font-size: 0.9rem;
    margin-top: 40px;
    opacity: 0.7;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(123, 44, 191, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--brand-red);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 35px;
    right: 35px;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    z-index: 2000;
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
}

.floating-wa:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* MOBILE MENU & UTILS */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2600;
    /* Ensured above mobile menu and WA */
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-color);
    z-index: 2500;
    /* Above WA button (2000) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    width: 100%;
}

.mobile-links a {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    display: block;
    padding: 10px;
}

.mobile-links a.active {
    color: var(--brand-red);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 1024px) {
    .nav-links {
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* CONTACT PAGE SPECIFIC */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a0033 0%, #2d0a4e 50%, #1a0033 100%);
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.contact-form h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--brand-purple);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-red);
    background: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.contact-info {
    color: #fff;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--brand-purple);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--brand-red);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.info-item p,
.info-item a {
    color: var(--p-300);
    line-height: 1.6;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.info-item a:hover {
    color: var(--brand-red);
}

.map-container {
    margin-top: 40px;
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* 
=============================================
   IMPROVED MOBILE RESPONSIVENESS & OPTIMIZATION
=============================================
*/

/* Tablet & Mobile Layout Adjustments */
@media (max-width: 992px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-container,
    .contact-info {
        padding: 30px;
    }

    /* Reset order for reverse cards on mobile/tablet to ensure consistent stacking */
    .course-detail-card.reverse>*:first-child,
    .course-detail-card.reverse>*:last-child {
        order: unset !important;
    }
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {

    .hide-mobile {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .header-container {
        padding: 0 20px;
        justify-content: space-between;
    }

    .logo-center {
        position: static;
        transform: none;
        font-size: 1.4rem;
        left: auto;
        /* Reset positioning */
    }

    /* Reduce Section Paddings */
    .purple-section,
    .courses-section,
    .projects-section,
    .team-section,
    .contact-section,
    .gallery-extra,
    .faq-section,
    footer,
    .location-section {
        padding: 60px 0 !important;
    }

    /* Hero adjustments */
    .hero-section {
        min-height: 80vh;
        /* Allow it to be shorter on mobile if content fits */
        padding-top: 100px;
        /* Space for fixed header */
        height: auto;
    }

    .hero-content {
        width: 90%;
        padding: 40px 20px;
        backdrop-filter: blur(10px);
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem !important;
        margin-bottom: 2.5rem !important;
        letter-spacing: 1px;
    }

    .section-title::after {
        width: 50px;
        bottom: -10px;
    }

    /* Grid Stacking */
    .purple-container,
    .project-list,
    .team-grid,
    .courses-grid,
    .faq-grid,
    .location-content,
    .course-detail-card,
    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        grid-gap: 30px;
    }

    /* Force override for inline styles on mobile */
    .text-center h1[style],
    h1[style] {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    .purple-text h2,
    .purple-text p,
    .purple-container {
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .purple-container h2 {
        font-size: 1.8rem !important;
        /* Slightly smaller to ensure fit */
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        /* Ensure wrapping */
    }

    .purple-container p {
        padding: 0 15px;
    }

    /* Reset reveal animations on mobile to prevent layout shift */
    .reveal-left,
    .reveal-right,
    .reveal-up {
        transform: none !important;
        opacity: 1 !important;
    }

    .course-detail-card {
        padding: 30px 20px;
    }

    .course-image-placeholder {
        height: 250px;
        min-height: auto !important;
    }

    .project-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .project-item img {
        width: 100%;
        height: 200px;
        margin-bottom: 10px;
    }

    .project-info h4 {
        text-align: center;
    }

    .project-item:hover .arrow-link {
        transform: translateX(0) scale(1.2);
        /* Different hover effect for touch/mobile */
        color: var(--brand-red);
    }

    /* Typography Adjustments */
    p,
    .purple-text p,
    .course-info .description {
        font-size: 1rem !important;
        text-align: left;
        /* Easier reading on mobile */
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .contact-form h2,
    .contact-info h2 {
        font-size: 2rem;
    }

    /* Fix Team Card sizing */
    .team-member img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    /* Navigation fixes */
    .mobile-menu {
        width: 85%;
        /* Slightly wider menu for better touch target */
    }

    /* Map scaling */
    .map-container,
    .map-container iframe {
        height: 300px;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem !important;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

    .about-hero h1,
    .text-center h1[style] {
        font-size: 2rem !important;
    }

    .btn-main {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .floating-wa {
        width: 60px;
        height: 60px;
        font-size: 32px;
        bottom: 20px;
        right: 20px;
    }

    .gallery-grid {
        width: 100%;
    }

    .gallery-grid img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}