@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(25px);
}

body.dark-mode {
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: #475569;
    --border-light: #64748b;
    
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.dark-mode .header {
    background: rgba(30, 41, 59, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img, .footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-medium);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(37, 99, 235, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    min-height: 100vh;
    padding: 140px 20px 40px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 100%;
    opacity: 0.05;
    z-index: 1;
}

.code-animation {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 2;
    transform: rotate(15deg);
    margin-top: 100px;
    color: var(--text-muted);
    opacity: 0;
    animation: codeFloat 1.5s ease-out 1.5s forwards;
}

.code-line {
    margin: 20px 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: typeWriter 1s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 2s; }
.code-line:nth-child(2) { animation-delay: 2.2s; }
.code-line:nth-child(3) { animation-delay: 2.4s; }
.code-line:nth-child(4) { animation-delay: 2.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes imageSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes codeFloat {
    from {
        opacity: 0;
        transform: rotate(15deg) translateY(20px);
    }
    to {
        opacity: 0.4;
        transform: rotate(15deg) translateY(0);
    }
}

@keyframes typeWriter {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 0.7;
        transform: translateX(0);
    }
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-background {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.stat-mini {
    text-align: center;
    transition: var(--transition);
}

.stat-mini:hover {
    transform: translateY(-5px);
}

.stat-number-mini {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label-mini {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    opacity: 0;
    transform: translateX(30px) scale(0.98);
    animation: imageSlideIn 0.8s ease-out 0.3s forwards;
    transition: var(--transition);
}

.hero-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.about-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.about-card:hover::before {
    transform: translateX(0);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.courses {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.course-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-badge.popular {
    background: var(--gradient-secondary);
}

.course-content {
    padding: 30px;
}

.course-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
}

.course-syllabus ul {
    list-style: none;
    margin-bottom: 30px;
}

.course-syllabus li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.course-syllabus li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.testimonials {
    padding: 80px 0;
    background: var(--bg-primary);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
}

.testimonial-wrapper {
    flex: 1;
    overflow: hidden;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    position: relative;
    text-align: center;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    border: 1px solid var(--border-color);
}

.testimonial-card.active {
    transform: translateX(0);
    opacity: 1;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.testimonial-card p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    flex-shrink: 0;
}

.nav-arrow:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.contact {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-form-container {
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 80px 0 30px;
}

.dark-mode .footer {
    background: #0f172a;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.footer-section p {
    margin-bottom: 30px;
    color: #cbd5e1;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

.dark-mode .footer-section h3 {
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #475569;
    color: #94a3b8;
}

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn {
    background: #25d366;
}

.phone-btn {
    background: var(--gradient-primary);
}

.floating-btn:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* PC devices - increase image height only */
@media (min-width: 1024px) {
    .course-image {
        height: 250px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
        padding: 30px 0;
        gap: 5px;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        margin: 3px 30px;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 500;
        display: inline-block;
        width: auto;
    }
    
    .nav-link.active {
        background: rgba(37, 99, 235, 0.05);
        color: var(--primary-color);
        font-weight: 500;
        box-shadow: none;
        border: 1px solid rgba(37, 99, 235, 0.15);
        padding: 8px 16px;
        margin: 3px 30px;
    }
    
    .hero {
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix MSCIT course image sizing for mobile only */
    #mscit-course .course-image {
        height: 180px;
    }
    
    #mscit-course .course-image img {
        object-fit: contain;
        object-position: center;
        background: var(--bg-secondary);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .testimonials-slider {
        flex-direction: column;
        gap: 30px;
    }
    
    .testimonial-card {
        padding: 40px 30px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .course-content {
        padding: 25px 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-card p {
        font-size: 1.1rem;
    }
    
    .quote-icon {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

/* Best Students Section */
.best-students {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Background decorative elements */
.best-students::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.best-students::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.05));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Section header enhancements */
.best-students .section-header {
    position: relative;
    margin-bottom: 60px;
}

.best-students .section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

/* Decorative grid background */
.students-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.03) 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    pointer-events: none;
    z-index: 0;
}

.student-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Dark mode specific styling for student cards */
body.dark-mode .student-card {
    background: #1e293b;
    border: 1px solid #475569;
}

/* Gradient background overlay */
.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
    z-index: -1;
}

/* Subtle glow effect */
.student-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    pointer-events: none;
}

.student-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.student-card:hover::before {
    transform: scaleX(1);
}

.student-card:hover::after {
    width: 200px;
    height: 200px;
}

/* Add staggered animation for cards */
.student-card:nth-child(1) { animation-delay: 0.1s; }
.student-card:nth-child(2) { animation-delay: 0.2s; }
.student-card:nth-child(3) { animation-delay: 0.3s; }
.student-card:nth-child(4) { animation-delay: 0.4s; }
.student-card:nth-child(5) { animation-delay: 0.5s; }
.student-card:nth-child(6) { animation-delay: 0.6s; }
.student-card:nth-child(7) { animation-delay: 0.7s; }
.student-card:nth-child(8) { animation-delay: 0.8s; }
.student-card:nth-child(9) { animation-delay: 0.9s; }
.student-card:nth-child(10) { animation-delay: 1.0s; }
.student-card:nth-child(11) { animation-delay: 1.1s; }
.student-card:nth-child(12) { animation-delay: 1.2s; }

.student-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #475569; /* Dark border */
    background: #1e293b; /* Ensure background is dark */
    transition: var(--transition);
    position: relative;
}

.student-card:hover .student-image {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
    display: block;
}

.student-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary); /* Use theme text color */
    margin-bottom: 6px;
    transition: var(--transition);
    line-height: 1.3;
}

/* Dark mode text styling */
body.dark-mode .student-info h3 {
    color: #f8fafc; /* White text for dark mode */
}

.student-card:hover .student-info h3 {
    color: var(--primary-color);
}

.achievement {
    color: var(--text-secondary); /* Use theme text color */
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

/* Dark mode achievement text */
body.dark-mode .achievement {
    color: #cbd5e1; /* Light gray text for dark mode */
}

/* Responsive Design for Best Students */
@media (max-width: 768px) {
    .students-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid for mobile */
        gap: 20px;
        max-width: 100%;
    }
    
    .student-card {
        padding: 15px;
        min-width: 0; /* Allow cards to shrink */
    }
    
    .student-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .student-info h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .achievement {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .students-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2x2 grid even on smaller mobile */
        gap: 15px;
    }
    
    .student-card {
        padding: 12px;
    }
    
    .student-image {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }
    
    .student-info h3 {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .achievement {
        font-size: 0.75rem;
    }
    
    .best-students {
        padding: 60px 0;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .course-card {
        margin: 0 10px;
    }
    
    .contact-form-container {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        top: 70px;
    }
}
