:root {
    --primary: #ffffff;
    --secondary: #ff6b6b;
    --accent: #4ecdc4;
    --dark: #2c3e50;
    --light-gray: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(45deg, #4ecdc4, #44a08d);
    --gradient-3: linear-gradient(45deg, #ff6b6b, #ee5a24);
    --gradient-4: linear-gradient(45deg, #feca57, #ff9ff3);
    --gradient-5: linear-gradient(45deg, #a8edea, #fed6e3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
header {
    position: absolute;
    top: 0;
    width: 100%;
    background: black;
    z-index: 10;
    padding: 0 0 0 0;
    overflow: hidden;
    justify-content: space-between;
    display: flex;
    align-items: center; /* Add this to vertically center items */
}
.logo {
    position: relative;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 75px;
    height: 75px;
    z-index: 2;
    margin-top: .5rem;
    margin-left: .5rem;
}
nav {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .25rem .2rem;
    position: relative;
    z-index: 1;
    margin-left: 1rem;
    height: 80px;
    flex: 1; /* Add this to make nav take remaining space */
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    z-index: 2;
    color: white;
    /* Remove flex-direction: row-reverse; */
    margin-left: auto; /* Add this to push nav links to the right */
    margin-right: 2rem; /* Add some margin from the edge */
}
.nav-links a {
    font-family: 'Junction', sans-serif;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    color: white;
    font-size: 1rem;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--secondary);
}
body {
    font-family: 'Junction', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Section */
.categories {
    padding: 6rem 0;
    background: var(--light-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.category-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card[data-category="stem"]:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.2);
}

.category-card[data-category="arts"]:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

.category-card[data-category="language"]:hover {
    border-color: #feca57;
    box-shadow: 0 20px 40px rgba(254, 202, 87, 0.2);
}

.category-card[data-category="business"]:hover {
    border-color: #a8edea;
    box-shadow: 0 20px 40px rgba(168, 237, 234, 0.2);
}

.category-card[data-category="enrichment"]:hover {
    border-color: #ff9ff3;
    box-shadow: 0 20px 40px rgba(255, 159, 243, 0.2);
}

.category-card.featured {
    background: var(--gradient-1);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.category-card.featured:hover {
    border-color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.category-card.featured h3 {
    color: white;
}

.category-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.category-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.course-count {
    display: inline-block;
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.category-card.featured .course-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.explore-btn {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.category-card.featured .explore-btn {
    background: white;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-card.featured .explore-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-item p {
    color: #666;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-1);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        padding: 2rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Loading and Animation States */
.category-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}