/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px; /* Fixed height for navbar */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 25px; /* Control the logo height */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the image fits without distortion */
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.get-started {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Hero section styles */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 90px 5% 5rem;
    gap: 2rem;
    overflow: hidden;
    padding-top: 170px; /* Increased to account for fixed header */
}

.hero-content {
    flex: 1;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-content .subtitle {
    color: #666;
    margin: 1rem 0;
}

.cta-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 5%;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    line-height: 1.8;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Courses Section */
.courses {
    padding: 5rem 5%;
}

.view-courses-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.view-courses-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.course-level {
    margin-top: 3rem;
}

.course-level h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

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

.course-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #ff6b6b;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-content {
    padding: 1.5rem;
}

.course-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.course-content p {
    color: #666;
    font-size: 0.9rem;
}

.course-card.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Learning Environment Section */
.learning-environment {
    padding: 5rem 5%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.environment-content {
    flex: 1;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

.environment-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.environment-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.environment-image {
    flex: 1;
    opacity: 0;
    animation: slideInRight 1s ease-out 0.3s forwards;
}

.environment-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Additional Benefits Section */
.additional-benefits {
    padding: 5rem 5%;
    background-color: #f8f9fa;
}

.additional-benefits .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.additional-benefits .section-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.additional-benefits .section-header p {
    color: #666;
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.benefit-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.benefit-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.benefit-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
}

.benefit-card:hover .benefit-image img {
    transform: scale(1.1);
}

.benefit-content {
    padding: 2rem;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    position: relative;
}

.benefit-icon {
    position: absolute;
    top: -25px;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(255,107,107,0.3);
}

.benefit-content h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.benefit-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

.benefit-card:hover .benefit-content h3::after {
    width: 100px;
}

.benefit-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.learn-more:hover {
    gap: 1rem;
}

.learn-more i {
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

.cta-container {
    text-align: center;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.start-learning-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.start-learning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 4rem 5% 0;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ecf0f1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff6b6b;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ecf0f1;
}

.contact-info li i {
    color: #ff6b6b;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #ecf0f1;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ff6b6b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        height: 60px; /* Slightly smaller on mobile */
    }

    .logo img {
        max-height: 15px; /* Control the logo height */
        width: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Ensure the image fits without distortion */
    }

    .nav-links {
        position: fixed;
        top: 60px; /* Match navbar height */
        right: -100%;
        width: 70%;
        height: calc(100vh - 60px); /* Adjust height based on navbar */
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

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

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.1rem;
    }

    .get-started {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 80px; /* Adjust for smaller header on mobile */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-image img {
        max-width: 100%;
    }

    .why-choose-us {
        padding: 3rem 5%;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .courses {
        padding: 3rem 5%;
    }

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

    .course-level h3 {
        font-size: 1.3rem;
    }

    .learning-environment {
        flex-direction: column;
        padding: 3rem 5%;
    }

    .environment-content h2 {
        font-size: 1.8rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .benefit-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .benefit-content {
        padding: 1.5rem;
    }

    .benefit-content h3 {
        font-size: 1.2rem;
    }

    .additional-benefits .section-header h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

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

/* Add these keyframe animations at the top of your CSS file */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add these animation styles to your existing elements */

/* Hero Section Animation */
.hero-image {
    animation: slideInRight 1s ease-out;
}

/* Feature Cards Animation */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Course Cards Animation */
.course-card {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Add hover effects */
.cta-button:hover, .view-courses-btn:hover, .start-learning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll Animation Classes */
.feature-card, .course-card, .benefit-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

/* New Animation Keyframes */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 