/* -------------------------------------------------------------
   KODEKIDZ CUSTOM STYLESHEET
   Aesthetics: Playful Tech (Indigo Purple, Robotic Orange, Coders Blue, Warm Gold)
   ------------------------------------------------------------- */

/* Custom CSS Variables */
:root {
    /* Color Palette */
    --primary: #5c3dcc;           /* Primary tech indigo/purple */
    --primary-light: #7f5ef7;     /* Bright tech purple */
    --primary-dark: #3b2299;      /* Deep indigo */
    --primary-pastel: #f3efff;    /* Light purple bg tint */
    --primary-pastel-border: #e2d9ff;
    
    --robotic: #f97316;           /* Robotic Orange */
    --robotic-light: #ff8b3d;
    --robotic-pastel: #fff4ed;
    --robotic-border: #ffd8be;
    
    --programming: #0ea5e9;       /* Programming Sky Blue */
    --programming-light: #38bdf8;
    --programming-pastel: #f0f9ff;
    --programming-border: #bae6fd;
    
    --gold: #eab308;              /* Soft gold accent */
    --gold-light: #fde047;
    --gold-pastel: #fef9c3;
    
    --text-dark: #1e1b4b;         /* Deepest indigo-black */
    --text-medium: #334155;       /* Slate 700 */
    --text-light: #64748b;        /* Slate 500 */
    --bg-light: #fbfbfe;          /* Clean light bg with slight purple tint */
    --white: #ffffff;
    
    /* Layout Tokens */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    
    --shadow-sm: 0 4px 6px -1px rgba(92, 61, 204, 0.05), 0 2px 4px -1px rgba(92, 61, 204, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(92, 61, 204, 0.08), 0 8px 10px -6px rgba(92, 61, 204, 0.08);
    --shadow-lg: 0 20px 40px -5px rgba(92, 61, 204, 0.12), 0 12px 16px -8px rgba(92, 61, 204, 0.12);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* Reset & Global Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Floating Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(92, 61, 204, 0.08);
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--robotic) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rotateIcon 4s ease-in-out infinite;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-sub {
    color: var(--robotic);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition-fast);
    padding: 8px 16px;
    border-radius: 50px;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
    background-color: var(--primary-pastel);
}

/* Call to Action Button */
.cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white) !important;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(92, 61, 204, 0.25);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(92, 61, 204, 0.35);
}

.cta-btn.alt {
    background: linear-gradient(135deg, var(--robotic) 0%, var(--robotic-light) 100%);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.cta-btn.alt:hover {
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

/* Mobile Toggler */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

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

/* Hero Section (Vibrant & Playful) */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 80% 20%, var(--primary-pastel) 0%, var(--white) 100%);
    padding: 160px 0 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 5%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-cols: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    background-color: var(--robotic-pastel);
    color: var(--robotic);
    border: 1px solid var(--robotic-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--robotic) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-secondary {
    background: var(--white);
    border: 2px solid var(--primary-pastel-border);
    color: var(--primary);
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-pastel);
    transform: translateY(-2px);
    border-color: var(--primary-pastel);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: floatImage 6s ease-in-out infinite;
}

/* Stats Cards */
.stats-section {
    padding: 40px 0;
    position: relative;
    z-index: 20;
    margin-top: -30px;
}

.stats-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-pastel-border);
}

.stats-grid {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 2px;
    height: 60%;
    background-color: var(--primary-pastel-border);
}

.stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-lbl {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* General Section Layout */
.section {
    padding: 80px 0;
}

.section-bg-white {
    background-color: var(--white);
}

.section-bg-pastel {
    background-color: var(--primary-pastel);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-badge {
    background-color: var(--primary-pastel);
    color: var(--primary);
    border: 1px solid var(--primary-pastel-border);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

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

/* Infographics Section */
.info-grid {
    display: grid;
    grid-template-cols: repeat(4, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(92, 61, 204, 0.04);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.info-card:hover::after {
    transform: scaleX(1);
}

.info-card.robotic-theme::after {
    background: var(--robotic);
}

.info-card.programming-theme::after {
    background: var(--programming);
}

.info-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
}

.info-card.purple-theme .info-icon-wrapper { background-color: var(--primary-pastel); color: var(--primary); }
.info-card.robotic-theme .info-icon-wrapper { background-color: var(--robotic-pastel); color: var(--robotic); }
.info-card.programming-theme .info-icon-wrapper { background-color: var(--programming-pastel); color: var(--programming); }
.info-card.gold-theme .info-icon-wrapper { background-color: var(--gold-pastel); color: var(--gold); }

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

.info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Course Highlight Grid */
.course-grid {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 40px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(92, 61, 204, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-img-box {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.course-card:hover .course-img-box img {
    transform: scale(1.05);
}

.course-age-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}

.course-card.robotic-card .course-age-badge {
    border: 2px solid var(--robotic);
    color: var(--robotic);
}

.course-card.programming-card .course-age-badge {
    border: 2px solid var(--programming);
    color: var(--programming);
}

.course-info {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.course-card.robotic-card h3 {
    color: var(--robotic);
}

.course-card.programming-card h3 {
    color: var(--programming);
}

.course-desc {
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.course-details-list {
    list-style: none;
    margin-bottom: 30px;
}

.course-details-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.course-details-list li span.bullet {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.robotic-card .course-details-list li span.bullet { background-color: var(--robotic-pastel); color: var(--robotic); }
.programming-card .course-details-list li span.bullet { background-color: var(--programming-pastel); color: var(--programming); }

.course-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--primary-pastel-border);
}

/* Gallery & Projects Filter */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--primary-pastel-border);
    color: var(--text-dark);
    padding: 10px 24px;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.gallery-grid {
    display: grid;
    grid-template-cols: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(92, 61, 204, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.project-img-box {
    position: relative;
    height: 280px;
    background-color: var(--primary-pastel);
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-category {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-card.robotic-project .project-category { background: var(--robotic-pastel); color: var(--robotic); }
.project-card.programming-project .project-category { background: var(--programming-pastel); color: var(--programming); }

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.project-creator {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    font-weight: 700;
}

.project-creator span {
    color: var(--primary);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid rgba(92, 61, 204, 0.06);
}

/* Call to Action Grid Card */
.cta-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-xl);
    padding: 60px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-card h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto 35px auto;
}

/* Footer Section */
.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    border-top: 5px solid var(--primary);
}

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

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 16px;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: scale(1.08);
}

.footer-nav h4, .footer-links-group h4, .footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-nav h4::after, .footer-links-group h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--robotic);
}

.footer-nav ul, .footer-links-group ul {
    list-style: none;
}

.footer-nav ul li, .footer-links-group ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a, .footer-links-group ul li a {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-nav ul li a:hover, .footer-links-group ul li a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer-contact .contact-detail {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* -------------------------------------------------------------
   NAVBAR DROPDOWN & SMOOTH SCROLL OFFSET
   ------------------------------------------------------------- */
[id] {
    scroll-margin-top: 100px;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.arrow-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .dropdown-menu {
        position: absolute;
        top: calc(100% + 15px);
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(92, 61, 204, 0.1);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        min-width: 320px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s;
        z-index: 1100;
    }

    /* Arrow Pointer */
    .dropdown-menu::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 8px;
        border-style: solid;
        border-color: transparent transparent rgba(255, 255, 255, 0.98) transparent;
        pointer-events: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-dropdown:hover .arrow-icon {
        transform: rotate(180deg);
    }
}

/* Dropdown Item Styling */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    background: transparent;
    border: 1px solid transparent;
}

.dropdown-item:hover {
    transform: translateY(-2px);
}

.dropdown-item:nth-child(1):hover {
    background: var(--robotic-pastel);
    border-color: var(--robotic-border);
}

.dropdown-item:nth-child(2):hover {
    background: var(--programming-pastel);
    border-color: var(--programming-border);
}

.dropdown-item:nth-child(3):hover {
    background: var(--primary-pastel);
    border-color: var(--primary-pastel-border);
}

.item-icon {
    font-size: 1.6rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.dropdown-item:nth-child(1):hover .item-icon {
    transform: scale(1.2) rotate(15deg);
}

.dropdown-item:nth-child(2):hover .item-icon {
    transform: scale(1.2) translateY(-3px);
}

.dropdown-item:nth-child(3):hover .item-icon {
    animation: iconPulse 1s ease-in-out infinite;
}

.item-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.dropdown-item:nth-child(1):hover .item-title { color: var(--robotic); }
.dropdown-item:nth-child(2):hover .item-title { color: var(--programming); }
.dropdown-item:nth-child(3):hover .item-title { color: var(--primary); }

.item-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;
}

/* Mobile Dropdown styles */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
    
    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s;
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        background: var(--primary-pastel);
        border-radius: var(--radius-sm);
        margin-top: 10px;
    }
    
    .nav-dropdown.open .dropdown-menu {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        padding: 12px;
        border: 1px solid var(--primary-pastel-border);
    }
    
    .nav-dropdown.open .arrow-icon {
        transform: rotate(180deg);
    }
    
    .dropdown-item {
        padding: 10px 12px;
        background: var(--white);
        border: 1px solid rgba(92, 61, 204, 0.05);
    }
}

/* Keyframe animations & target pulse styling */
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

#robotic-class:target,
#basic-programming-class:target,
#programming-class:target {
    animation: targetPulse 2s ease-in-out;
}

@keyframes targetPulse {
    0%, 100% {
        box-shadow: var(--shadow-md);
        border-color: rgba(92, 61, 204, 0.05);
    }
    50% {
        box-shadow: 0 0 25px rgba(92, 61, 204, 0.4);
        border-color: var(--primary);
        transform: scale(1.02);
    }
}

/* Animations */
@keyframes floatImage {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.08); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .hero-grid { gap: 30px; }
    .stats-card { padding: 30px; }
    .info-grid { grid-template-cols: repeat(2, 1fr); }
    .footer-grid { grid-template-cols: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 40px;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-bottom: 1px solid var(--primary-pastel-border);
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .hero-grid {
        grid-template-cols: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 20px;
    }
    
    .stats-grid {
        grid-template-cols: 1fr;
        gap: 20px;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .course-grid {
        grid-template-cols: 1fr;
    }
    
    .gallery-grid {
        grid-template-cols: 1fr;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
