/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #2b2e4a;
    color: #f5f5f5;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #e84545;
}

p {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #dcdcdc;
}

ul {
    list-style: none;
    padding: 0;
}

.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(30, 0, 50, 0.8));
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(105, 20, 202, 0.5); /* Increased opacity */
    filter: blur(120px); /* Increased blur radius */
    z-index: 0;
}

.hero-section::before {
    width: 350px; /* Increased size */
    height: 350px; /* Increased size */
    top: -100px; /* Adjusted position */
    right: -100px; /* Adjusted position */
}

.hero-section::after {
    width: 350px; /* Increased size */
    height: 350px; /* Increased size */
    bottom: -100px; /* Adjusted position */
    left: -100px; /* Adjusted position */
}


.hero-logo {
    width: 180px; /* Adjust size as needed */
    margin-bottom: 1.5rem;
    position: absolute;
    top: 150px;
    z-index: 2;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
        
}

.hero-logo:hover {
    transform: scale(1.1); /* Slightly increase size on hover */
    
}


.hero-content {
    position: relative;
    z-index: 2;
    top: 80px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.highlighted-text {
    background: linear-gradient(90deg, #00aaff, #ff00e6);
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.typewriter-text-item {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid #fff;
    animation: typewriter 4s steps(40, end) 1s 1 normal both, blinkTextCursor 500ms steps(40, end) infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkTextCursor {
    from { border-color: transparent; }
    to { border-color: #fff; }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeIn 2s ease-out 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-down {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.5rem 2rem; /* Reduced padding for a smaller container */
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, #00aaff, #ff00e6);
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.2);
}

.scroll-down::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease, background 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.scroll-down:hover {
    background: linear-gradient(135deg, #ff00e6, #00aaff);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3);
}

.scroll-down:hover::after {
    width: 400%;
    height: 400%;
    background: rgba(255, 255, 255, 0.2);
}

.scroll-down:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(0, 0, 0, 0.2);
}

.scroll-down {
    position: relative;
    z-index: 1;
}

.scroll-down span {
    position: relative;
    z-index: 2;
}



/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px; /* Increased height */
    background: rgba(43, 46, 74, 0.7);
    backdrop-filter: blur(10px); /* Add blur effect */
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center; /* Center content vertically */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}

.navbar ul {
    display: flex;
    justify-content: center;
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    list-style: none; /* Remove default list styling */
}

.navbar li {
    margin: 0 1.5em; /* Increase margin between items */
}

.navbar .nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em; /* Slightly larger font size */
    transition: color 0.3s ease, transform 0.3s ease; /* Added transition for hover effect */
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px; /* Position the underline slightly below the text */
    width: 0;
    height: 2px;
    background: #f9f871;
    transition: width 0.3s ease; /* Smooth underline effect */
    transform: translateX(-50%);
}

.navbar .nav-link:hover {
    color: #f9f871;
    transform: translateY(-2px); /* Slight lift on hover */
}

.navbar .nav-link:hover::after {
    width: 100%; /* Expand underline on hover */
}


/* About Section - Unique and Animated Design */
.about-section {
    padding: 8em 3em;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8); /* Deep shadow for added depth */
    border-radius: 30px;
    backdrop-filter: blur(25px) saturate(150%); /* Glass-like effect with high saturation */
    z-index: 1;
}

/* Radial Gradient Background with Rotation */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(30, 40, 60, 0.9), rgba(10, 20, 40, 0.9)); /* Radial gradient with different colors */
    opacity: 0.85;
    z-index: -1;
    animation: rotateBackground 30s linear infinite; /* Rotate animation */
}

/* Keyframes for Rotating Background */
@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* About Section Container */
.about-heading-container {
    text-align: center; /* Center aligns the heading and its underline */
}

/* Heading Styles */
.about-heading {
    font-size: 3em; /* Adjusted font size */
    font-weight: bold;
    color: #fbfeff; /* Light cyan for text */
    margin: 0;
    margin-bottom: 0.5em; /* Reduced space below the heading */
    letter-spacing: 2px; /* Slightly reduced letter spacing */
    position: relative;
    display: inline-block; /* Ensures the underline aligns correctly */
    z-index: 1000;
    top: -60px;
  
}

/* Underline Effect */
.about-heading::after {
    content: '';
    display: block;
    width: 40%; /* Centered and slightly smaller width for the underline */
    height: 4px; /* Thinner underline */
    background: #16a9d1; /* Color of the underline */
    margin: 0 auto; /* Centers the underline */
    border-radius: 2px; /* Optional: rounded corners for a softer look */
    position: absolute;
    bottom: -10px; /* Position the underline just below the heading */
    left: 50%; /* Aligns the underline to the center */
    transform: translateX(-50%); /* Corrects the positioning to be exactly centered */
}


/* Content Styles */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    perspective: 1400px; /* Increased perspective for a more pronounced 3D effect */
    position: relative;
    z-index: 2;
}

/* Image Styles */
.about-image img {
    width: 650px;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transform: perspective(1400px) rotateY(10deg); /* Adjusted 3D effect */
    transition: transform 0.8s ease, box-shadow 0.8s ease; /* Smoother transition */
}

.about-image img:hover {
    transform: perspective(1400px) rotateY(0deg) scale(1.1);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8);
}

/* Text Styles */
.about-text {
    max-width: 650px;
    padding: 2.5em;
    background: rgba(0, 0, 0, 0.4); /* Darker translucent background */
    border-radius: 25px;
    backdrop-filter: blur(15px) saturate(150%);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    position: relative;
    z-index: 2;
}

.about-text:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(170%);
}

/* Courses Section */
.courses-section {
    padding: 4em 2em;
    background: linear-gradient(to bottom, rgba(10, 15, 40, 0.9), rgba(0, 0, 30, 0.8)), radial-gradient(circle, rgba(50, 0, 120, 0.6), rgba(0, 0, 50, 0.5)), url('background.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    animation: fadeIn 2s ease-out forwards;
    text-align: center;
    color: #e1e5ff; /* Softer light text for contrast */
}

/* Section Title */
.courses-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    color: #ffffff; /* White color for the title */
    margin-bottom: 1em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInTitle 1.5s ease-out forwards;
}

/* Decorative Line Under Title */
.courses-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background: #59a6ff; /* Bright blue accent */
    border-radius: 5px;
    animation: expandLine 1.5s ease-out forwards;
}

/* Centered Grid Layout */
.courses-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Course Card Design */
.course-card {
    max-width: 300px;
    height: 360px;
    padding: 2em;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 60, 0.4), 0 20px 50px rgba(0, 0, 60, 0.3); /* Blue tinted shadows */
    text-align: center;
    font-family: 'Poppins', sans-serif;
    background: rgba(10, 15, 40, 0.8); /* Deep blue background for course cards */
    backdrop-filter: blur(10px);
    transition: transform 0.6s ease, box-shadow 0.6s ease, background 0.6s ease;
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
}

/* Floating Animation for Course Cards */
.course-card:hover {
    transform: translateY(-15px) rotateY(10deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 80, 0.5), 0 40px 70px rgba(0, 0, 80, 0.4); /* Stronger blue shadows on hover */
    background: rgba(10, 15, 40, 0.95); /* Darken the background on hover */
}

/* Course Card Title */
.course-card h3 {
    margin-bottom: 1em;
    font-family: 'Poppins', sans-serif;
    color: #ffffff; /* White color for course card titles */
    font-size: 1.5em;
    transition: color 0.3s ease; /* Smooth color transition */
    animation: slideIn 1s ease-out forwards;
}

/* Hover Effect on Course Card Title */
.course-card:hover h3 {
    color: #59a6ff; /* Change to electric blue on hover */
}

/* Course Card List Items */
.course-card ul {
    list-style-type: disc;
    padding-left: 1.5em;
    text-align: left;
    margin: 0;
    font-size: 1em;
    color: #e0e0e0; /* Light gray color for list items */
}

/* Optional: Style for list items */
.course-card li {
    margin-bottom: 0.5em;
}

/* Keyframe Animations */
@keyframes slideIn {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInTitle {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
    0% { width: 0; }
    100% { width: 80px; }
}

/* Our Teachers Section */
.our-teachers-section {
    padding: 4em 2em;
    background: linear-gradient(to bottom, rgba(10,0,30,0.8), rgba(0,0,0,0.7)), radial-gradient(circle, rgba(100,50,200,0.5), rgba(0,0,0,0.5)), url('contact.jpg') center/cover no-repeat; /* Match contact section background */
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 2s ease-out forwards;
}

.our-teachers-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    color: #e0e0e0; /* Light color for contrast against dark background */
    margin-bottom: 1em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInTitle 1.5s ease-out forwards;
}

/* Teacher Cards */
.teachers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
}

/* Individual Teacher Card */
.teacher-card {
    max-width: 250px;
    padding: 2em;
    border-radius: 15px;
    background: rgba(30, 30, 30, 0.8); /* Darker background for cards */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); /* Darker shadow for better contrast */
    text-align: center;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Teacher Card Image */
.teacher-card img {
    border-radius: 50%;
    margin-bottom: 1em;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #6e40c3; /* Purple border around images */
    transition: border-color 0.3s ease; /* Smooth transition for border color */
}

/* Teacher Card Title */
.teacher-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    color: #ffffff; /* White color for card titles */
    margin-bottom: 0.5em;
    transition: color 0.3s ease; /* Smooth transition for text color on hover */
}

/* Teacher Card Description */
.teacher-card p {
    font-size: 1em;
    color: #d0d0d0; /* Light gray color for text */
    margin-bottom: 1em; /* Space between description and list */
    transition: color 0.3s ease; /* Smooth transition for text color on hover */
}

/* Teacher Card Bullet Points */
.teacher-card ul {
    list-style: disc;
    padding-left: 1.5em;
    text-align: left;
    color: #d0d0d0; /* Light gray color for bullet points */
    font-size: 0.9em; /* Slightly smaller font size for bullet points */
}

/* Hover Effect for Teacher Cards */
.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 15px rgba(110, 64, 195, 0.8); /* Slightly lighter shadow with neon glow on hover */
    background: rgba(30, 30, 30, 0.9); /* Darker background on hover */
}

/* Hover Effect for Teacher Card Image */
.teacher-card img:hover {
    border-color: #8e2de2; /* Lighter purple border on hover */
}

/* Hover Effect for Teacher Card Title */
.teacher-card h3:hover {
    color: #f0f0f0; /* Lightened color on hover */
}

/* Hover Effect for Teacher Card Description */
.teacher-card p:hover {
    color: #e0e0e0; /* Lightened color on hover */
}

/* Keyframe Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInTitle {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}



/* Testimonials Section */
.testimonials-section {
    padding: 4em 2em;
    background: linear-gradient(to bottom, rgba(10, 15, 40, 0.9), rgba(0, 0, 30, 0.8)), radial-gradient(circle, rgba(50, 0, 120, 0.6), rgba(0, 0, 50, 0.5)), url('background.jpg') center/cover no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 2s ease-out forwards;
}

/* Section Title */
.testimonials-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8em;
    color: #d4e1ff; /* Light blue for contrast */
    margin-bottom: 1.5em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInTitle 1.5s ease-out forwards;
}

/* Decorative Line Under Title */
.testimonials-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 90px;
    height: 3px;
    background: #59a6ff; /* Bright blue accent */
    border-radius: 5px;
    animation: expandLine 1.5s ease-out forwards;
}

/* Testimonials Grid */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
}

/* Testimonial Card */
.testimonial-card {
    width: 500px;
    height: 270px;
    border-radius: 15px;
    background: rgba(20, 25, 60, 0.9); /* Dark blue background */
    box-shadow: 0 15px 35px rgba(0, 0, 50, 0.6); /* Shadow with a hint of blue */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image Styling */
.testimonial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease; /* Removed opacity transition */
}

/* Hover Effect for Testimonial Cards */
.testimonial-card:hover {
    transform: scale(1.05) rotate(2deg); /* Slight rotation for added effect */
    box-shadow: 0 25px 50px rgba(0, 0, 60, 0.8); /* Enhanced shadow with deeper blue */
    background: rgba(20, 25, 60, 0.95); /* Slightly darker blue on hover */
}

/* Keyframe Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInTitle {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
    0% { width: 0; }
    100% { width: 90px; }
}



.contact-section {
    background: 
        linear-gradient(
            rgba(0,0,0,0.8), 
            rgba(10,0,30,0.7)
        ), 
        radial-gradient(
            circle, 
            rgba(100,50,200,0.7), /* Increased opacity for more visibility */
            transparent 90% /* Adjusted transparency */
        ),
        url('contact.jpg') center/cover no-repeat; /* Gradient and image as background */
    padding: 60px 15px; /* Padding */
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section h2 {
    font-size: 2.5rem; /* Font size */
    margin-bottom: 15px; /* Margin */
    background: linear-gradient(
        90deg, 
        #3498db, 
        #8e44ad, 
        #1abc9c
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 4px; /* Letter-spacing */
    position: relative;
    z-index: 1;
    animation: fade-in 1s ease-in-out forwards;
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.contact-section p {
    font-size: 1rem; /* Font size */
    margin-bottom: 8px; /* Margin */
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Gap */
    margin-top: 20px; /* Margin-top */
    position: relative;
    z-index: 1;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    max-width: 400px; /* Max-width */
    padding: 12px; /* Padding */
    font-size: 0.9rem; /* Font size */
    border-radius: 40px; /* Border-radius */
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 8px rgba(142, 68, 173, 0.8); /* Box-shadow */
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
    resize: none;
    height: 120px; /* Height */
    border-radius: 20px; /* Border-radius */
}

.contact-form .btn-primary {
    background: linear-gradient(
        90deg, 
        #3498db, 
        #8e44ad, 
        #1abc9c
    );
    color: #fff;
    border: none;
    padding: 12px 30px; /* Padding */
    font-size: 1rem; /* Font size */
    border-radius: 40px; /* Border-radius */
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-30deg);
    transition: left 0.5s ease;
}

.contact-form .btn-primary:hover::before {
    left: 100%;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(
        90deg, 
        #1abc9c, 
        #8e44ad, 
        #3498db
    );
    transform: translateY(-3px); /* TranslateY */
}

@media (min-width: 768px) {
    .contact-section {
        padding: 80px 30px; /* Padding */
    }

    .contact-form {
        gap: 20px; /* Gap */
    }

    .contact-section h2 {
        font-size: 3rem; /* Font size */
    }

    .contact-section p {
        font-size: 1.2rem; /* Font size */
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Gap */
    margin-top: 20px; /* Margin-top */
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    font-size: 1.1rem; /* Font size */
}

.contact-info .icon {
    font-size: 1.5rem; /* Icon size */
    color: #8e44ad; /* Icon color */
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #3498db; /* Hover color */
}

.contact-info .phone,
.contact-info .email {
    background: rgba(0, 0, 0, 0.7); /* Background for contact items */
    padding: 10px 20px; /* Padding */
    border-radius: 30px; /* Border-radius */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow */
}


    

/* Footer Section */
footer {
    padding: 1.5em 1.5em; /* Reduced padding */
    background: linear-gradient(135deg, rgba(10, 0, 30, 0.8), rgba(0, 0, 0, 0.9)), radial-gradient(circle, rgba(100, 50, 200, 0.5), rgba(0, 0, 0, 0.5)), url('contact.jpg') center/cover no-repeat; /* Match contact section background */
    color: #fff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); /* Subtle inner shadow */
}

footer .social-links {
    margin-top: 0.5em; /* Reduced margin-top */
}

footer .social-links a {
    display: inline-block;
    margin: 0 8px; /* Reduced margin */
    color: #fff;
    font-size: 1.5em; /* Reduced icon size */
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

footer .social-links a:hover {
    transform: scale(1.2); /* Slightly enlarges icons on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Shadow effect */
}

/* Specific colors for social media icons */
footer .social-links .fa-instagram:hover {
    color: #C13584; /* Instagram color */
}

footer .social-links .fa-facebook-f:hover {
    color: #3b5998; /* Facebook color */
}

footer .social-links .fa-twitter:hover {
    color: #1DA1F2; /* Twitter color */
}

/* Optional: Pulsing effect on hover */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

footer .social-links a:hover i {
    animation: pulse 1s infinite; /* Pulsing effect */
}

footer p {
    margin-top: 0.5em; /* Reduced margin-top */
    font-size: 1em; /* Reduced font size */
    color: rgba(178, 223, 219, 0.8); /* Adjusted color for readability */
}

footer .footer-links {
    margin-top: 1em; /* Reduced margin-top */
}

footer .footer-links a {
    color: rgba(178, 223, 219, 0.8); /* Adjusted color */
    text-decoration: none;
    margin: 0 8px; /* Reduced margin */
    font-size: 0.9em; /* Reduced font size */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

footer .footer-links a:hover {
    color: #00acc1;
    text-decoration: underline; /* Underline on hover */
}

footer .contact-info {
    margin-top: 1em; /* Reduced margin-top */
    font-size: 0.9em; /* Reduced font size */
}

footer .contact-info p {
    margin: 3px 0; /* Reduced margin */
}


/* Adding a background animation to footer */
@keyframes footer-bg-animation {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 0;
    opacity: 0.2;
    animation: footer-bg-animation 15s linear infinite; /* Background animation */
}

/* Ensure footer content is above background */
footer > * {
    position: relative;
    z-index: 1;
}
/* Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 1.5em; /* Centered more to the right */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

/* Social Icon */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; /* White icon color */
    margin-bottom: 1.5em; /* Spacing between icons */
    text-decoration: none;
    position: relative;
    font-size: 27px; /* Increased icon size for better visibility */
    padding-left: 50%; /* No padding to keep icons aligned */
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Smoother transitions */
}

/* Advanced Floating and Pulsing Effect */
.social-icon {
    animation: float 6s ease-in-out infinite, pulse 3s ease-in-out infinite; /* Slowed down animation for a more elegant effect */
}

/* Keyframes for Advanced Vertical Floating Effect */
@keyframes float {
    0% { transform: translateY(0); }
    20% { transform: translateY(-10px); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-10px); }
    80% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

/* Applying the animations */
.social-icon {
    animation: float 6s ease-in-out infinite, pulse 3s ease-in-out infinite;
}


/* Hover Effect for Social Icons */
.social-icon:hover {
    transform: scale(1.25) rotate(7deg); /* More pronounced hover scale and rotation */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

/* Specific Social Icon Colors */
.social-icon.facebook { color: #1877f2; } /* Facebook blue */
.social-icon.twitter { color: #1d9bf0; } /* Twitter blue */
.social-icon.instagram { color: #e4405f; } /* Instagram pink */
.social-icon.linkedin { color: #0a66c2; } /* LinkedIn blue */

/* Tooltip Styles */
.tooltip {
    position: absolute;
    left: 5px; /* Better positioning for tooltips */
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 25, 47, 0.85); /* Semi-transparent dark background */
    color: #ffffff; /* White text for better readability */
    padding: 8px 16px;
    border-radius: 8px; /* Smoother corners */
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    z-index: 10;
}

/* Tooltip visibility on hover */
.social-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(70px, -50%); /* Smooth reveal with better positioning */
}

/* Refined Spacing for Social Icons */
.social-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 30px; /* Shifted more towards the left */
    transform: translateY(-50%);
}





/* Responsive Styles */
@media (max-width: 768px) {
    .courses-grid, .teachers-grid, .testimonials-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .course-card, .teacher-card, .testimonial-card {
        max-width: 100%;
        margin-bottom: 2em;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        font-size: 1.1em;
    }
}
/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

