/* ──────────────── DESIGN TOKENS ──────────────── */

::selection {
    background-color: var(--accent);
    color: var(--white);
}

:root {
    --primary: #1E3A8A;
    /* Deep Navy */
    --accent: #F97313;
    /* Orange */
    --accent-light: #FF8533;
    --bg: #FFFFFF;
    --bg-alt: #F9FAFB;
    --text: #111827;
    --text-muted: #4B5563;
    --white: #FFFFFF;
    --border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ──────────────── BASE STYLES ──────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.hidden {
    display: none !important;
}

/* ──────────────── LAYOUT ──────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ──────────────── BUTTONS ──────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    gap: 10px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(249, 115, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 19, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ──────────────── NAVIGATION ──────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

nav:not(.scrolled) .logo,
nav:not(.scrolled) .nav-link,
nav:not(.scrolled) .phone-link {
    color: var(--white);
}

nav:not(.scrolled) .phone-icon {
    fill: var(--white);
}

nav:not(.scrolled) .bar {
    background-color: var(--white);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo span {
    color: var(--accent);
}

.logo .logo-span {
    background: var(--primary);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.phone-icon {
    fill: var(--accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hamburger animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ──────────────── HERO ──────────────── */
#hero {
    background-color: var(--primary);
    color: var(--white);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 70% 30%, rgba(249, 115, 19, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

.highlight {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: var(--white);
    color: var(--text);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

/* ──────────────── ABOUT ──────────────── */
#about {
    background-color: var(--bg);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    padding: 40px;
    background: var(--bg-alt);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card-icon {
    width: 40px;
    height: auto;
    object-fit: contain;
}

.about-card .icon,
.why-card .icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--primary);
    display: flex;
    justify-content: center;
}

.why-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ──────────────── COURSES ──────────────── */
#courses {
    background-color: var(--bg-alt);
}

.course-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--white);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.course-tag {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.course-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ──────────────── AI ROADMAP ──────────────── */
#roadmap {
    background-color: var(--bg);
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), var(--primary));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--accent);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transform: translateX(10px);
}

.month {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h4 {
    margin: 4px 0 8px;
}

/* ──────────────── WHY US ──────────────── */
#why-us {
    background-color: var(--bg-alt);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.why-card h4 {
    margin: 16px 0 8px;
    font-size: 1.1rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ──────────────── PROJECTS ──────────────── */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    transition: var(--transition);
}

.project-overlay h4 {
    margin-bottom: 8px;
}

/* ──────────────── PRICING ──────────────── */
#pricing {
    background-color: var(--white);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.price-card.featured {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
}

.price-card.featured .price-amount {
    color: var(--accent);
}

.price-tag {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-card.featured .price-amount span {
    color: rgba(255, 255, 255, 0.6);
}

.price-list {
    margin: 30px 0;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.price-card.featured .price-list {
    border-color: rgba(255, 255, 255, 0.1);
}

.price-list li {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* ──────────────── FAQ ──────────────── */
#faq {
    background-color: var(--bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.faq-trigger::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-trigger::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-item.active .faq-content {
    padding-bottom: 24px;
    max-height: 500px;
}

/* ──────────────── CONTACT ──────────────── */
#contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: 12px;
}

.contact-card .icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-card h5 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.map-placeholder {
    height: 250px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ──────────────── FLOATING WHATSAPP ──────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

/* ──────────────── CTA ──────────────── */
#final-cta {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

#final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* ──────────────── FOOTER ──────────────── */
footer {
    padding: 80px 0 40px;
    background-color: #0F172A;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-heading {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
}

/* ──────────────── MOBILE ──────────────── */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-cards,
    .why-grid,
    .price-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease-in-out;
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-cta {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        word-break: break-word;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        text-align: left;
    }

    .stat-item {
        padding-left: 15px;
    }

    .about-cards,
    .why-grid,
    .price-grid,
    .project-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .cta-btns {
        flex-direction: column;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}