/* Smooth Scrolling */
html {
    scroll-behavior:auto;
}

/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fc;
    color: #333;
}

/* Navigation Bar */
nav {
    background-color: #1e3a8a;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li {
    display: inline;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
}

nav a:hover {
    color: #93c5fd;
    border-bottom: 2px solid #93c5fd;
}

/* Header Section */
header {
    background-color: #3b82f6;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

h2 {
    color: #1d4ed8;
    margin-bottom: 20px;
}

/* Section Styles */
section {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
}

/* Courses */
.course {
    background-color: #e0ecff;
    border-left: 6px solid #3b82f6;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* Testimonials */
.testimonial {
    background-color: #f3f4f6;
    border-left: 4px solid #6366f1;
    padding: 15px;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial span {
    display: block;
    margin-top: 5px;
    font-weight: bold;
}

/* Feedback Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2563eb;
}

/* Contact Info */
#contact p {
    margin: 8px 0;
}

/* Footer */
footer {
    background-color: #1e3a8a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
/* ============================= */
/* ANIMATIONS */
/* ============================= */

/* Fade-in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in for sections on load */
section, header {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

/* Delayed animation for each section */
header {
    animation-delay: 0.2s;
}
#courses {
    animation-delay: 0.4s;
}
#testimonials {
    animation-delay: 0.6s;
}
#feedback {
    animation-delay: 0.8s;
}
#contact {
    animation-delay: 1s;
}

/* Course Cards Hover Animation */
.course {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

/* Testimonials Hover */
.testimonial {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Button Animation */
button {
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
    background-color: #1d4ed8;
}

/* Input Focus Animation */
input:focus, textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
    transition: box-shadow 0.3s, border-color 0.3s;
}
