/* ===== DESIGN TOKENS (Vibrant & Clean Theme) ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Vibrant Colors */
    --clr-primary: #1E3A8A; /* Royal Blue */
    --clr-primary-light: #3B82F6;
    --clr-secondary: #E91E63; /* Vibrant Pink */
    --clr-accent: #F59E0B; /* Amber/Orange */
    
    /* UI Colors */
    --clr-bg: #FFFFFF;
    --clr-bg-light: #F8FAFC;
    --clr-text-main: #334155;
    --clr-text-muted: #64748B;
    --clr-heading: #0F172A;
    --clr-white: #FFFFFF;
    --clr-card-bg: var(--clr-white);
    
    /* Accents */
    --clr-pink: #EC4899;
    --clr-purple: #8B5CF6;
    --clr-blue: #3B82F6;
    --clr-orange: #F97316;
    --clr-teal: #14B8A6;
    --clr-yellow: #EAB308;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing & Utilities */
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}


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

body {
    font-family: var(--font-main);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--clr-heading); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-light { background-color: var(--clr-bg-light); }
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}
.btn-primary:hover {
    background-color: #D81B60;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    color: var(--clr-white);
}
.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--clr-primary-light);
    font-weight: 600;
    font-size: 0.95rem;
}
.btn-text:hover { color: var(--clr-secondary); gap: 0.5rem; }

/* ===== TOPBAR & NAVBAR ===== */
.topbar-ticker-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    background-color: var(--clr-primary);
    transition: background-color 0.3s ease;
}

.topbar-ticker-link:hover {
    background-color: #162e70; /* Slightly darker shade on hover to show interactivity */
}

.topbar {
    background-color: transparent; /* Background handled by the link wrapper */
    color: rgba(255,255,255,0.95);
    font-size: 0.875rem;
    padding: 0.6rem 0;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    animation: ticker-scroll 25s linear infinite;
    width: max-content;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-content span {
    padding: 0 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ticker-highlight {
    color: var(--clr-accent); /* Amber highlight for call-to-action */
    font-weight: 700;
    text-decoration: underline;
}

.ticker-star {
    color: var(--clr-accent); /* Accent color for the star separator */
    font-size: 0.95rem;
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

.topbar-ticker-link:hover .ticker-track {
    animation-play-state: paused;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-info { display: flex; gap: 1.5rem; }
.contact-info span { display: flex; align-items: center; gap: 0.5rem; }
.icon-sm { width: 16px; height: 16px; }
.social-links a:hover { color: var(--clr-secondary); }

.navbar {
    background-color: var(--clr-card-bg);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.navbar .main-logo {
    height: 130px !important;
}
.footer .main-logo {
    height: 80px !important;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}
.footer .main-logo:hover {
    opacity: 0.9 !important;
}

.logo-icon-box {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.logo-icon { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 800; font-size: 1.1rem; color: var(--clr-primary); line-height: 1; }
.logo-subtitle { font-size: 0.75rem; color: var(--clr-text-muted); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

.nav-links { display: none; gap: 2rem; }
@media (min-width: 992px) { .nav-links { display: flex; } }
.nav-links a { font-weight: 500; color: var(--clr-heading); }
.nav-links a:hover, .nav-links a.active { color: var(--clr-secondary); }

/* ===== NAVIGATION DROPDOWN ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--clr-heading);
    transition: var(--transition);
}

.nav-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
    transition: transform 0.3s ease;
}

.nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--clr-card-bg);
    min-width: 180px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.nav-dropdown-menu a {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-main) !important;
    display: block;
    width: 100%;
    transition: var(--transition);
}

.nav-dropdown-menu a:hover {
    background-color: var(--clr-bg-light);
    color: var(--clr-secondary) !important;
}

.nav-dropdown-menu a.active {
    color: var(--clr-secondary) !important;
    font-weight: 600;
}

/* Desktop Hover Interaction */
@media (min-width: 992px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }
    
    .nav-dropdown:hover .nav-dropdown-toggle {
        color: var(--clr-secondary);
    }
    
    .nav-dropdown:hover .nav-dropdown-toggle svg {
        transform: rotate(180deg);
    }
}

/* Mobile Dropdown styles */
@media (max-width: 991.98px) {
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .nav-dropdown-menu {
        position: static;
        display: none;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0 1rem;
        background: transparent;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        gap: 0.75rem;
    }
    
    .nav-dropdown-menu.active {
        display: flex;
    }
    
    .nav-dropdown.open .nav-dropdown-toggle {
        color: var(--clr-secondary);
    }
    
    .nav-dropdown.open .nav-dropdown-toggle svg {
        transform: rotate(180deg);
    }
    
    .nav-dropdown-menu a {
        padding: 0.25rem 0 !important;
        font-size: 1rem;
        color: var(--clr-text-muted) !important;
    }
    
    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a.active {
        color: var(--clr-secondary) !important;
        background: transparent;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(21, 42, 102, 0.82) 100%), url('assets/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 5rem 0 10rem;
    color: var(--clr-white);
    overflow: hidden;
}
.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
}
.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 4rem;
    align-items: center;
}
.course-hero {
    position: relative;
    overflow: hidden;
}
.course-hero-container {
    position: relative;
    z-index: 2;
}
@media (min-width: 992px) {
    .hero-container { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-content {
    z-index: 2;
}
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #F8FAFC;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
    font-size: 3rem;
    color: var(--clr-white);
    margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--clr-accent); }
@media (min-width: 992px) { .hero h1 { font-size: 4rem; } }
.hero p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== ORBITAL CONSTELLATION ===== */
.constellation {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 4.5rem;
    z-index: 2;
}

/* SVG lines & ring */
.constellation-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.conn-line {
    stroke: rgba(255,255,255,0.15);
    stroke-width: 1.5;
    stroke-dasharray: 8 6;
    stroke-dashoffset: 0;
    animation: dash-flow 20s linear infinite;
}
.orbit-ring {
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1;
    stroke-dasharray: 6 10;
    fill: none;
    animation: dash-flow 40s linear infinite reverse;
}
@keyframes dash-flow {
    to { stroke-dashoffset: -200; }
}

/* Central Hub */
.hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hub-logo {
    width: 90px; height: 90px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--clr-white);
    padding: 10px;
    box-shadow: 0 0 30px rgba(255,255,255,0.25), 0 0 60px rgba(59,130,246,0.15);
    position: relative;
    z-index: 2;
}
.hub-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    animation: pulse-ring 2.5s ease-out infinite;
    z-index: 1;
}
@keyframes pulse-ring {
    0%   { width: 100px; height: 100px; opacity: 0.6; }
    100% { width: 180px; height: 180px; opacity: 0; }
}

/* Orbiting Nodes */
.orbit-node {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
    animation: gentle-bob 4s ease-in-out infinite;
}
.node-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.15);
    transition: box-shadow 0.4s ease, background 0.4s ease, transform 0.4s ease;
}
.node-icon i, .node-icon img { transition: color 0.3s ease, transform 0.3s ease; }
.node-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-white);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

/* Per-node brand colors */
.n1 .node-icon { background: linear-gradient(135deg, #E31837, #C0392B); } /* Stitching - Singer Red */
.n2 .node-icon { background: linear-gradient(135deg, #004B87, #00A651); } /* IT - NIIT Blue/Green */
.n3 .node-icon { background: linear-gradient(135deg, #D81B60, #8E24AA); } /* Beauty - Pink/Purple */
.n4 .node-icon { background: linear-gradient(135deg, #FF6B00, #FF983F); } /* Tally - Orange */
.n5 .node-icon { background: linear-gradient(135deg, #FFFFFF, #E2E8F0); } /* Electrician - White/Light Gray */
.n6 .node-icon { background: linear-gradient(135deg, #FFB300, #FFC107); } /* JCB - Yellow */
.n6 .node-icon i { color: #212121; } /* Dark icon for JCB yellow bg */

/* Hover: glow burst */
.orbit-node:hover {
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.4));
    animation-play-state: paused;
}
.orbit-node:hover .node-icon {
    box-shadow: 0 0 30px rgba(255,255,255,0.4), 0 0 0 5px rgba(255,255,255,0.25);
    transform: scale(1.2) rotate(-8deg);
}
.orbit-node:hover .node-icon i,
.orbit-node:hover .node-icon img {
    transform: scale(1.1);
}
.orbit-node:hover .node-label { color: var(--clr-accent); }

/* Positions: perfectly aligned to 500x500 SVG circle of radius 190, centered at 250,250 */
.n1 { top: 12%;  left: 50%; }
.n2 { top: 31%;  left: 83%; }
.n3 { top: 69%;  left: 83%; }
.n4 { top: 88%;  left: 50%; }
.n5 { top: 69%;  left: 17%; }
.n6 { top: 31%;  left: 17%; }

/* Animate nodes individually with offset delay on the icon */
.n1 { animation-delay: 0s; }
.n2 { animation-delay: 0.7s; }
.n3 { animation-delay: 1.4s; }
.n4 { animation-delay: 2.1s; }
.n5 { animation-delay: 2.8s; }
.n6 { animation-delay: 3.5s; }

@keyframes gentle-bob {
    0%, 100% { margin-top: 0; }
    50%      { margin-top: -8px; }
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.hero-shape svg { width: 100%; height: 120px; }

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 0;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}
.stats-wrapper {
    background-color: var(--clr-card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.stat-item { text-align: center; }
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--clr-secondary);
    margin-bottom: 0.5rem;
}
.stat-item p {
    color: var(--clr-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-divider {
    width: 2px;
    height: 60px;
    background-color: var(--clr-bg-light);
    display: none;
}
@media (min-width: 992px) {
    .stats-wrapper { flex-wrap: nowrap; }
    .stat-divider { display: block; }
}

/* ===== SECTION TITLES ===== */
.sub-title {
    color: var(--clr-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.section-title { margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-title p { color: var(--clr-text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* ===== COURSES GRID ===== */
.course-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

.course-card {
    background-color: var(--clr-card-bg);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.course-icon-badge {
    position: absolute;
    bottom: -24px;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    box-shadow: var(--shadow-md);
}
.course-icon-badge i { width: 24px; height: 24px; }

/* Vibrant Icon Colors */
.bg-pink { background-color: var(--clr-pink); box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4); }
.bg-purple { background-color: var(--clr-purple); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); }
.bg-blue { background-color: var(--clr-blue); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
.bg-orange { background-color: var(--clr-orange); box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4); }
.bg-teal { background-color: var(--clr-teal); box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4); }
.bg-yellow { background-color: var(--clr-yellow); box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4); }

.course-content {
    padding: 2.5rem 1.5rem 1.5rem;
}
.course-content h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.course-content p { color: var(--clr-text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer { background-color: #0F172A; color: rgba(255,255,255,0.7); }
.footer-top { padding: 5rem 1.5rem; display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 2fr 1fr 1fr; } }
.footer .logo-text .logo-title { color: var(--clr-white); }
.footer-col h4 { color: var(--clr-white); font-size: 1.25rem; margin-bottom: 1.5rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a:hover { color: var(--clr-secondary); }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list i { color: var(--clr-secondary); flex-shrink: 0; margin-top: 0.25rem; }
.footer-bottom { background-color: #0B0F19; padding: 1.5rem 0; text-align: center; font-size: 0.875rem; }

/* ===== STYLISH MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}
.modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--clr-white);
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.is-open .modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--clr-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.modal-close:hover {
    background: var(--clr-white);
    color: var(--clr-heading);
    transform: rotate(90deg);
}
.modal-close i { width: 20px; height: 20px; }

.modal-banner {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    position: relative;
}
.modal-hero-icon {
    width: 64px;
    height: 64px;
    opacity: 0.9;
}

.modal-content {
    padding: 2rem;
}
.modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}
.meta-tag {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--clr-bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}
.meta-tag i { width: 16px; height: 16px; color: var(--clr-primary-light); }

.modal-desc {
    margin-bottom: 2rem;
    color: var(--clr-text-main);
    line-height: 1.6;
}

.modal-content h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.modal-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.modal-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}
.modal-highlights li::before {
    content: '✓';
    color: var(--clr-teal);
    font-weight: bold;
}

/* ===== 3D SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95) rotateX(-20deg);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom center;
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Interactive 3D Hover for Cards */
.card-3d-hover {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}
.card-3d-hover:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: -15px 20px 30px rgba(0,0,0,0.15);
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--clr-white);
}
.hero-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 0; /* Overrides any local img styling */
    border: none;
    box-shadow: none;
}
.hero-carousel .carousel-slide.active {
    opacity: 1;
}

/* ===== GLOBAL APPLICATION MODAL ===== */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: var(--clr-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    width: 95%;
    max-width: 860px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    overflow: hidden;
    box-sizing: border-box;
}
.modal-backdrop.active .modal-card {
    transform: scale(1) translateY(0);
}

/* Modal Sidebar */
.modal-sidebar {
    width: 350px;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    position: relative;
    padding: 3rem 2.5rem;
    color: var(--clr-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .modal-sidebar {
        display: none; /* Hide sidebar on mobile */
    }
}
.sidebar-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: sidebarPulse 8s ease-in-out infinite alternate;
}
@keyframes sidebarPulse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10px, -15px) scale(1.1); }
}
.sidebar-logo-container {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}
.sidebar-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
}
.sidebar-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-secondary);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.sidebar-icon i {
    width: 28px;
    height: 28px;
}
.modal-sidebar h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-white);
    margin: 0 0 1rem;
    letter-spacing: -0.5px;
}
.modal-sidebar p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}
.sidebar-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
}
.sidebar-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}
.sidebar-benefits li i {
    width: 18px;
    height: 18px;
    color: var(--clr-secondary);
}

/* Modal Form Area */
.modal-form-area {
    flex: 1;
    padding: 2.5rem 3rem;
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 576px) {
    .modal-form-area {
        padding: 2rem 1.5rem;
    }
}
.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #F1F5F9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
}
.modal-close:hover {
    background: #E2E8F0;
    transform: scale(1.1) rotate(90deg);
}
.modal-close i {
    width: 18px;
    height: 18px;
}
.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-heading);
    margin: 0 0 0.25rem;
}
.modal-header p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.75rem;
    line-height: 1.4;
}
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}
.modal-form label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modal-form input, .modal-form select, .modal-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    background-color: #F8FAFC;
    color: var(--clr-heading);
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.modal-form textarea {
    resize: none;
    height: 80px;
}
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
    border-color: var(--clr-primary);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.modal-form button[type="submit"] {
    margin-top: 0.75rem;
    padding: 0.9rem;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.modal-form button[type="submit"]:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.3);
}
.modal-form button[type="submit"]:disabled {
    background-color: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal states & success screen */
.modal-success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0;
}
.checkmark-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #DCFCE7;
    color: #22C55E;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    animation: scaleUpCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.checkmark-circle i {
    width: 36px;
    height: 36px;
}
@keyframes scaleUpCheck {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.modal-success-screen h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--clr-heading);
    margin: 0 0 0.5rem;
}
.modal-success-screen p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* Spinner Animation Utility */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--clr-white) 0%, var(--clr-bg-light) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: var(--clr-card-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.1);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.user-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-heading);
    margin: 0 0 0.15rem;
}

.user-info span {
    font-size: 0.825rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.quote-icon {
    font-size: 1.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-icon i {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

/* Quote colors corresponding to mockup */
.quote-purple { color: #8B5CF6; }
.quote-pink { color: #EC4899; }
.quote-blue { color: #3B82F6; }

.testimonial-body p {
    font-size: 0.95rem;
    color: var(--clr-text-main);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* ===== PARTNERS CAROUSEL SECTION ===== */
.partners-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--clr-bg-light) 0%, var(--clr-white) 100%);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.partners-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    /* Soft gradient mask for edges */
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.partners-track {
    display: flex;
    width: max-content;
    animation: partnersMarquee 35s linear infinite;
}

.partners-carousel-container:hover .partners-track {
    animation-play-state: paused;
}

.partners-group {
    display: flex;
    gap: 2.5rem;
    padding-right: 2.5rem;
    align-items: center;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 75px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.partner-logo-item:hover {
    transform: scale(1.12);
    box-shadow: none;
    border-color: transparent;
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo-item:hover img {
    transform: scale(1.02);
}

@keyframes partnersMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Social Icons in Footer */
.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-socials a:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.05);
}
.footer-socials a[aria-label="Facebook"]:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}
.footer-socials a[aria-label="Instagram"]:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}
.footer-socials a[aria-label="LinkedIn"]:hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}
.footer-socials a[aria-label="YouTube"]:hover {
    background-color: #FF0000;
    border-color: #FF0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}
.footer-socials a i,
.footer-socials a svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
    stroke-width: 2px;
    fill: none;
}

/* Mobile Toggle Button */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--clr-heading);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}
.nav-toggle:hover {
    color: var(--clr-secondary);
}
.nav-toggle svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 991.98px) {
    .nav-toggle {
        display: inline-flex;
    }
    .navbar {
        padding: 0.5rem 0;
    }
    .navbar .main-logo {
        height: 70px !important;
    }
    .navbar .btn-primary {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap !important;
        margin-left: auto;
        margin-right: 0.75rem;
    }
    
    /* Navigation Drawer */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--clr-card-bg);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 105;
        gap: 1.5rem;
    }
    .nav-links.active {
        right: 0;
    }
}

@media (max-width: 480px) {
    .navbar .main-logo {
        height: 55px !important;
    }
    .navbar .btn-primary {
        padding: 0.40rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
}




