:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #ec4899;
    --light: #f8fafc;
    --dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* Animated Background Elements */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -300px;
    right: -300px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -200px;
    left: -200px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 100%;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 100px;
    height: 100px;
    margin-right: 16px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    position: relative;
    transition: text-shadow 0.3s ease;
}

.logo-text h1:hover {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.logo-text h1::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.logo-text h1:hover::after {
    width: 100%;
}

.logo-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.logo-text p:hover {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary);
}

nav ul li a.active:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    max-width: 700px;
    opacity: 0;
    transform: translateX(100px);
    animation: fadeRight 1s ease forwards 1s;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn i {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
}

.section-title .title-decoration {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 20px auto;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-15deg);
    transition: all 0.5s ease;
}

.about-image:hover .about-image-main {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: -1;
    transition: all 0.5s ease;
}

.decoration-1 {
    top: -30px;
    left: -30px;
    background: var(--primary);
    transform: rotate(-5deg);
}

.about-image:hover .decoration-1 {
    transform: rotate(0deg) translate(-10px, -10px);
}

.decoration-2 {
    bottom: -30px;
    right: -30px;
    background: var(--accent);
    transform: rotate(5deg);
}

.about-image:hover .decoration-2 {
    transform: rotate(0deg) translate(10px, 10px);
}

/* Services Section */
.services {
    background: white;
    position: relative;
    overflow: hidden;
}

.services .shape-3 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 50%;
    right: -150px;
    animation: float 12s ease-in-out infinite;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: white;
}

.service-card:hover:before {
    opacity: 1;
}

.service-card:hover .service-icon {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover h3, .service-card:hover p {
    color: white;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    transition: all 0.4s ease;
}

.service-card p {
    color: var(--text-light);
    transition: all 0.4s ease;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintains proportional height */
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers container without distortion */
    object-position: center; /* Centers the image */
    display: block;
    transition: transform 0.8s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.course-duration {
    display: flex;
    align-items: center;
}

.course-duration i {
    margin-right: 5px;
    color: var(--accent);
}

.show-more-container {
    text-align: center;
    margin-top: 40px;
}

.show-more-btn {
    padding: 14px 40px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.show-more-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.show-more-btn.show-less i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .show-more-container {
        margin-top: 30px;
    }
    
    .show-more-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .courses-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    .course-image {
        aspect-ratio: 4 / 3; /* Adjust for mobile to ensure full visibility */
        max-height: 200px; /* Limit height to prevent oversized images */
    }

    .course-image img {
        object-fit: cover; /* Maintain cover but adjust for visibility */
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 576px) {
    .show-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .course-image {
        aspect-ratio: 4 / 3;
        max-height: 180px; /* Further reduce height for smaller screens */
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 550px;
    width: 90vw;
    max-height: 85vh;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin: 20px auto;
    box-sizing: border-box;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--dark);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header .title-decoration {
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.modal-content .form-group {
    margin-bottom: 25px;
    width: 100%;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.modal-content .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    box-sizing: border-box;
}

.modal-content .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    background: white;
}

.modal-content .form-control[readonly] {
    background: #e2e8f0;
    cursor: not-allowed;
    color: var(--text-light);
}

.modal-content .form-control:hover:not([readonly]) {
    border-color: var(--primary-dark);
}

.modal-content textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.modal-content .submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.modal-content .submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.modal-content .submit-btn:hover::after {
    left: 100%;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background: white;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero-image {
        width: 45%;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 150px 0 100px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 50px;
    }
    
    .section-title h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100vw;
        max-width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        overflow-x: hidden;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        padding: 12px 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }
    
    nav ul li a {
        color: var(--dark);
        display: block;
        width: 100%;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95vw;
        max-height: 80vh;
        padding: 30px;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-content .form-control {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 98vw;
        max-height: 75vh;
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-header .title-decoration {
        width: 50px;
        margin-top: 10px;
    }
    
    .modal-content .form-group {
        margin-bottom: 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
    
    .modal-content .submit-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

.success-message, .error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 320px;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    animation: fadeInOut 4s ease-in-out forwards;
}

.success-message {
    background: var(--gradient);
}

.error-message {
    background: #dc2626;
}

.success-message i, .error-message i {
    font-size: 1.2rem;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
        visibility: hidden;
    }
}

/* Responsive Styles for Messages */
@media (max-width: 768px) {
    .success-message, .error-message {
        max-width: 280px;
        font-size: 0.9rem;
        padding: 12px 16px;
        top: 15px;
        right: 15px;
    }
    
    .success-message i, .error-message i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .success-message, .error-message {
        max-width: 90%;
        font-size: 0.85rem;
        padding: 10px 14px;
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .success-message i, .error-message i {
        font-size: 1rem;
    }
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 100px 0 30px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:before {
    content: '\2022';
    color: var(--primary);
    margin-right: 8px;
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.newsletter-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero-image {
        width: 45%;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 150px 0 100px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 50px;
    }
    
    .section-title h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        padding: 12px 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    nav ul li a {
        color: var(--dark);
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .services-grid, .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95vw;
        max-height: 80vh;
        padding: 30px;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-content .form-control {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 98vw;
        max-height: 75vh;
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-header .title-decoration {
        width: 50px;
        margin-top: 10px;
    }
    
    .modal-content .form-group {
        margin-bottom: 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
    
    .modal-content .submit-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}