/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Friendly palette for kid-focused education services (sky/teal + lavender). */
    --primary-color: #0284c7; /* sky/teal */
    --secondary-color: #075985; /* deeper teal-blue */
    --accent-color: #22c55e; /* fresh green for emphasis */
    --purple-accent: #a78bfa; /* soft lavender */
    --pink-accent: #fb7185; /* warm pink */
    --text-dark: #0f172a; /* slate navy */
    --text-light: #475569; /* slate gray */
    --bg-light: #f0f9ff; /* light sky */
    --bg-white: #ffffff;
    --border-color: #dbeafe; /* pale blue border */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* RGB helpers so we can reuse alpha gradients with rgba(var(--x-rgb), a). */
    --primary-rgb: 2, 132, 199;
    --secondary-rgb: 7, 89, 133;
    --accent-rgb: 34, 197, 94;
    --purple-rgb: 167, 139, 250;
    --pink-rgb: 251, 113, 133;
}

body {
    font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-accent));
    transition: width 0.3s ease;
}

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

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0;
    text-align: center;
    background: url('images/background.jpg') center center / cover no-repeat;
}


.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Animated Shapes */
.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.25), transparent);
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
    bottom: 10%;
    right: 20%;
    animation-delay: 6s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    top: 30%;
    right: 30%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float 15s infinite ease-in-out;
}

.particle:nth-child(1) { top: 20%; right: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; right: 40%; animation-delay: 2s; }
.particle:nth-child(3) { top: 60%; right: 60%; animation-delay: 4s; }
.particle:nth-child(4) { top: 80%; right: 30%; animation-delay: 6s; }
.particle:nth-child(5) { top: 30%; right: 70%; animation-delay: 8s; }
.particle:nth-child(6) { top: 70%; right: 10%; animation-delay: 10s; }
.particle:nth-child(7) { top: 10%; right: 50%; animation-delay: 12s; }
.particle:nth-child(8) { top: 50%; right: 80%; animation-delay: 14s; }

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(50px, -50px) scale(1.5);
        opacity: 1;
    }
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease 0.4s both;
}

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

.animate-text {
    animation: fadeInUp 1s ease;
}

.animate-text-delay {
    animation: fadeInUp 1s ease 0.2s both;
}

.animate-text-delay-2 {
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    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(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 10px rgba(255,255,255,0.1);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.animated-title {
    animation: fadeInUp 0.8s ease;
}

.animated-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-accent));
    border-radius: 2px;
    animation: expand-line 1s ease 0.5s both;
}

@keyframes expand-line {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* Benefits Section */
.benefits {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.section-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--purple-rgb), 0.1) 0%, transparent 50%);
    animation: pattern-move 20s ease infinite;
    z-index: 0;
}

@keyframes pattern-move {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--purple-rgb), 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.benefit-card:hover::before {
    opacity: 1;
}

.floating-card {
    animation: float-card 6s ease-in-out infinite;
}

.floating-card:nth-child(1) { animation-delay: 0s; }
.floating-card:nth-child(2) { animation-delay: 1s; }
.floating-card:nth-child(3) { animation-delay: 2s; }
.floating-card:nth-child(4) { animation-delay: 3s; }
.floating-card:nth-child(5) { animation-delay: 4s; }
.floating-card:nth-child(6) { animation-delay: 5s; }

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

.benefit-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.benefit-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    font-size: 4rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3), transparent);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Enrichment Courses Section */
.courses {
    background: linear-gradient(160deg, #eef2ff 0%, #e0f2fe 40%, #f0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(var(--primary-rgb), 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(var(--purple-rgb), 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(var(--pink-rgb), 0.06) 0%, transparent 60%);
    z-index: 0;
    animation: courses-bg-shift 18s ease-in-out infinite alternate;
}

@keyframes courses-bg-shift {
    0%   { transform: scale(1)   translate(0, 0); }
    100% { transform: scale(1.05) translate(15px, -10px); }
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.course-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    padding: 2.5rem 1.8rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.35), rgba(var(--purple-rgb), 0.35), rgba(var(--pink-rgb), 0.2));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 45px rgba(var(--primary-rgb), 0.18), 0 8px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.course-icon {
    font-size: 4.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease;
}

.course-card:hover .course-icon {
    transform: scale(1.15) translateY(-4px);
}

.course-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.courses-divider {
    margin: 3.5rem auto 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--purple-accent), transparent);
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .course-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .course-icon {
        font-size: 3rem;
    }
}

/* Partnerships Section */
.partnerships {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.partnerships .section-title {
    color: var(--text-dark);
}

.partnerships-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--purple-rgb), 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: pattern-move 20s ease infinite;
}

.partnerships-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.partnership-text-card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--purple-rgb), 0.05));
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-right: 4px solid var(--primary-color);
}

.partnership-text-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.partnership-text-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Clients Section */
.clients {
    background: #ffffff;
}

.clients-logos {
    display: flex;
    overflow: hidden;
    position: relative;
    direction: ltr;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.clients-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2.5rem;
    padding-left: 2.5rem;
    animation: clients-marquee 20s linear infinite;
}

.client-logo {
    flex-shrink: 0;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), rgba(var(--purple-rgb), 0.03));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.client-logo picture,
.client-logo img {
    display: block;
    width: 180px;
    height: 90px;
    object-fit: contain;
}

.client-logo:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    border-color: var(--primary-color);
}

@keyframes clients-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 2.5rem));
    }
}

/* Student Benefits Section */
.student-benefits {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-accent) 100%);
    position: relative;
    overflow: hidden;
}

.student-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" 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;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.student-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.student-benefit-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border-right: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.student-benefit-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1), transparent);
    animation: rotate-glow 10s linear infinite;
}

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

.student-benefit-item:hover {
    transform: translateY(-10px) translateX(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-right-color: var(--purple-accent);
}

.student-benefit-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.student-benefit-item p {
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* About Section */
.about {
    background: white;
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), rgba(var(--purple-rgb), 0.03));
    border-radius: 15px;
    border-right: 3px solid var(--primary-color);
    transition: all 0.3s;
}

.about-content p:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content strong {
    background: linear-gradient(135deg, var(--primary-color), var(--purple-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-accent) 50%, var(--pink-accent) 100%);
    background-size: 200% 200%;
    animation: gradient-animation 10s ease infinite;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: cta-float 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes cta-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.contact-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(var(--purple-rgb), 0.1) 0%, transparent 50%);
    animation: pattern-move 25s ease infinite;
    z-index: 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.contact-form:hover {
    border-color: var(--primary-color);
    box-shadow: 0 25px 70px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    transform: translateX(-3px);
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-accent));
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.glow-button {
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.4);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-button:hover::before {
    width: 300px;
    height: 300px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.5);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--purple-rgb), 0.1) 0%, transparent 50%);
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--purple-accent));
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.footer-contact p:hover {
    transform: translateX(-3px);
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: right 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

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

    .student-benefits-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .shape {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

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

    .benefit-icon {
        font-size: 3rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
.benefit-card,
.student-benefit-item,
.partnership-text-card {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
