:root {
    /* Brand Colors */
    --primary-color: #130184;
    --primary-light: rgba(19, 1, 132, 0.1);
    
    --accent-green: #1ECF64;
    --green-light: rgba(30, 207, 100, 0.1);
    
    --accent-blue: #007DFF;
    --blue-light: rgba(0, 125, 255, 0.1);

    /* Edunexa inspired palettes */
    --dark: #112142;
    --text-gray: #4b5563;
    --light-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    --bg-gray: #f8fafc;
    --white: #ffffff;

    /* Fonts */
    --font-sans: 'Lexend', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Base Utility Classes */
.bg-primary-light { background-color: var(--primary-light); }
.bg-green-light { background-color: var(--green-light); }
.bg-blue-light { background-color: var(--blue-light); }
.bg-purple-light { background-color: rgba(147, 51, 234, 0.1); }

.bg-primary-lightest { background-color: #e0f7fa; } 
.bg-secondary-lightest { background-color: #fff0e6; }
.bg-green-lightest { background-color: #e8f5e9; }
.bg-purple-lightest { background-color: #f3e5f5; }

/* === Hero Section (Gradient Mesh Centered) === */
.hero-section {
    position: relative;
    padding: 7rem 0 0;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
}

.hero-section + section {
    padding-top: 5.1rem;
}

/* === Gradient Mesh Blobs === */
.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.mesh-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(130, 80, 255, 0.18) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

.mesh-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 160, 255, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.mesh-blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(180, 120, 255, 0.12) 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
}

.mesh-blob-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(30, 207, 100, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
}

/* === Hero Center Content === */
.hero-center {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem 5.1rem;
}

.hero-center h1 {
    font-size: 56px;
    line-height: 1.15;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    color: var(--dark);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .hero-center h1 { font-size: 32px; }
    .hero-center { padding-bottom: 0px; }
}

.hero-highlight {
    background: linear-gradient(90deg, #FF6B2B 0%, #FFB830 60%, #FFD060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.hero-center p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-gray);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
@media (min-width: 768px) {
    .hero-center p { font-size: 20px; }
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    background: #645BFF;
    color: var(--white);
    padding: 0.9rem 2.25rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(100, 91, 255, 0.35);
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(100, 91, 255, 0.45);
    filter: brightness(1.08);
}

/* Hero image centered below text */
.hero-image-center {
    display: none;
}

.hero-image-actual {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.025em;
    max-width: 56rem;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .section-header h2 { font-size: 3rem; }
}

/* === Solutions Section (Edunexa Services Cards) === */
.solutions-section {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    box-shadow: 0 20px 50px -15px rgba(0,0,0,0.08);
    border-color: transparent;
}

.icon-block {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 1.375rem;
    height: 1.375rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .icon-block.bg-primary-light { background-color: var(--primary-color); }
.service-card:hover .icon-block.bg-green-light { background-color: var(--accent-green); }
.service-card:hover .icon-block.bg-blue-light { background-color: var(--accent-blue); }
.service-card:hover .icon-block.bg-purple-light { background-color: #9333ea; }

.service-card:hover .icon-block .card-icon { color: #ffffff !important; }

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.service-card p {
    font-size: 0.875rem;
    line-height: 1.625;
}

/* === Why Us Section (Edunexa How-It-Works Style) === */
.why-row {
    padding: 6rem 0;
    overflow: hidden;
    background-color: var(--white);
}

.why-row-alt {
    background-color: var(--bg-gray);
}

.why-flex {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .why-flex {
        flex-direction: row;
        gap: 6rem;
    }
    .why-flex-reverse {
        flex-direction: row-reverse;
    }
}

.why-text {
    flex: 1;
    width: 100%;
}

.why-visual {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

@media (max-width: 768px) {
    .why-visual {
        min-height: auto;
    }
}

.why-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.arrow-icon {
    font-size: 0.75rem;
}

.why-text h2 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .why-text h2 { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
    .why-text h2 { font-size: 3rem; }
}

.why-text p {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 36rem;
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

/* Animations */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Card Visuals */
.why-card {
    position: relative;
    z-index: 10;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-gray);
    width: 100%;
    max-width: 400px;
}

.why-card-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.why-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.why-card-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.why-card-divider {
    height: 1px;
    background: var(--border-gray);
    margin: 1.5rem 0;
}

/* Card Visual 2: Toggles */
.why-card-header {
    background: var(--bg-gray);
    padding: 1rem 1.5rem;
    margin: -2rem -2rem 2rem;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.why-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.why-card-dots {
    display: flex;
    gap: 6px;
}

.why-card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.why-card-toggles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.toggle {
    width: 40px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.toggle-knob {
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

/* Card Visual 3: Chat Stack */
.chat-stack {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-bubble {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-gray);
    max-width: 85%;
}

.chat-bubble p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.5;
}

.chat-left {
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.chat-right {
    align-self: flex-end;
    flex-direction: row-reverse;
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-top-right-radius: 4px;
}

.chat-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Card Visual 4: Revenue Bars */
.revenue-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.revenue-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.revenue-bar-row span:first-child {
    width: 100px;
}

.bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-gray);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
}

/* === CTA Section (Edunexa Contact Style) === */
.cta-section {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
}

.cta-container {
    max-width: 48rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}
@media (min-width: 768px) {
    .cta-content h2 { font-size: 3.5rem; }
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #645BFF;
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(100, 91, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: cta-shine 3s infinite ease-in-out;
}

@keyframes cta-shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(100, 91, 255, 0.45);
    filter: brightness(1.08);
}

/* === Header & Navigation === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 50;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: none;
}

.desktop-nav {
    display: none;
}
@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: #645BFF;
}

.header-cta {
    display: none;
}
@media (min-width: 1024px) {
    .header-cta {
        display: block;
    }
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    background-color: #FF774A;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 119, 74, 0.2);
}

.nav-btn:hover {
    background-color: #e66a42;
}

/* Fix main padding for fixed header */
main {
    padding-top: 6rem;
}

/* === Footer === */
.site-footer {
    background-color: #041227;
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .hidden-mobile {
        display: block;
    }
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.subscribe-form {
    display: flex;
}

.subscribe-form input {
    width: 100%;
    background-color: #1c2e54;
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
    border: 1px solid #2a3c66;
    outline: none;
    font-size: 0.875rem;
}

.subscribe-form button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #0d0061;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #2a3c66;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.75rem;
}

/* === Global Heading Override === */
h2, .section-header h2, .about-text-container h2, .why-text h2, .cta-content h2, .feat-text h2 {
    font-family: var(--font-heading) !important;
    font-weight: 500 !important;
    font-size: 32px !important;
    line-height: 1.3 !important;
}

.feat-text h2 {
    font-size: 26px !important;
}

/* === Global Mobile Heading Override === */
@media (max-width: 768px) {
    h1, .hero-center h1 {
        font-family: var(--font-heading) !important;
        font-weight: 600 !important;
        font-size: 32px !important;
        line-height: 1.3 !important;
    }
    .cta-section {
        padding-top: 0px !important;
    }
    .site-footer {
        padding-top: 40px !important;
    }
    .home-page section {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }
    .hero-section {
        min-height: auto !important;
    }
}

/* === Mobile Navigation === */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0.5rem;
}
.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}
@media (max-width: 1023px) {
    .mobile-menu-btn { display: flex; }
    .header-container { justify-content: space-between; }
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}
.mobile-nav a:hover, .mobile-nav a:active {
    color: #645BFF;
}
