/* =================================== */
/*      GLOBAL STYLES & VARIABLES      */
/* =================================== */
:root {
    --primary-color:#0056b3 ;/* #00aeff;*/
    --dark-blue: #0b2239;
    --light-gray: #f7f9fc;
    --text-color: #555;
    --heading-color: #333;
    --white: #fff;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --border-radius: 20px;
}

/* =================================== */
/*        FULL PAGE BACKGROUND         */
/* =================================== 
html {
    background: url('/images/your-background.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}*/

body {
    
    background: url('/images/your-background.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.7;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--heading-color);
    font-weight: 600;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, #00aeff, #0078ff);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 174, 255, 0.3);
}

/* =================================== */
/*              HEADER                 */
/* =================================== */
.main-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,174,255,0.55);
}
.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
}
.nav-links a {
    text-decoration: none;
    color: var(--heading-color);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* =================================== */
/*               HERO                  */
/* =================================== */
.hero {
    background-color: var(--light-gray);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 70%;
    height: 150%;
    background-color: var(--white);
    border-radius: 50%;
    z-index: 1;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 55;
}
.hero-text {
    flex: 1;
}
.hero-text h1 .highlight {
    color: var(--primary-color);
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    border-radius: 50%;
    object-fit: cover;
    width: 450px;
    height: 450px;
}


/*add-0n*/
/* 1. The Slider Container */
.hero-text-slider {
    display: grid;
    /* This ensures all slides sit in the same cell */
    grid-template-areas: "stack"; 
    align-items: center; /* Vertically center */
    min-height: 350px;   /* Prevent layout jumps */
    flex: 1;             /* Take up left side space */
    position: relative;
    z-index: 2;
}

/* 2. Individual Slides */
.hero-slide {
    grid-area: stack; /* Stacks them on top of each other */
    opacity: 0;       /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
    transform: translateY(20px); /* Start slightly lower */
}

/* 3. The Active Slide */
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 5;
    
    /* Re-apply your back-to-forward animation here if desired */
    animation: backToForward 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Your existing Animation Keyframe */
@keyframes backToForward {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}



/*add-0n*/



/* 1. Define the Animation */
@keyframes backToForward {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px); /* Starts smaller and slightly lower */
        filter: blur(5px); /* Optional: adds to the depth effect */
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* 2. Apply to Hero Elements */
.hero-text, 
.hero-image {
    /* Set initial state to hidden to prevent flashing */
    opacity: 0; 
    /* Apply the animation name, duration, and curve */
    animation: backToForward 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 3. Stagger the timing (Text first, then Image) */
.hero-text {
    animation-delay: 0.35s; /* Slight/0.2s/ pause before starting */
}

.hero-image {
    animation-delay: 0.95s; /* /0.5s/Comes in after the text */
}

/* Ensure the container doesn't overflow during animation */
.hero-content {
    overflow: hidden; 
}

/* =================================== */
/*        ABOUT US / FEATURES          */
/* =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* =================================== */
/*          POPULAR COURSES            */
/* =================================== */
.popular-courses {
    background-color: var(--dark-blue);
}
.popular-courses .section-title h2,
.popular-courses .section-title .subtitle {
    color: var(--white);
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.course-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}
.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.course-card .course-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.course-card .rating {
    color: #f9ca24;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.course-card h3 {
    margin-top: 0;
    flex-grow: 1;
}
.course-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}
.btn-secondary {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* =================================== */
/*               STATS                 */
/* =================================== */
.stats {
    background-color: var(--light-gray);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
}

/* =================================== */
/*            TESTIMONIALS             */
/* =================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.testimonial-card {
    background: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    text-align: center;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin: 0 0 20px 0;
    border: none;
    padding: 0;
}
.testimonial-card cite {
    font-style: normal;
}
.testimonial-card cite strong {
    display: block;
    color: var(--dark-blue);
}

/* =================================== */
/*               CONTACT               */

/* --- 1. Layout Fix: Stack Search & Text on the Left --- */
.hero-content {
    display: flex; /* Or Grid depending on your layout */
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-left-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between search bar and text */
}

/* --- 2. The Bluish Floating Illusion --- */
.floating-search-wrapper {
    width: 100%;
    max-width: 500px;
    animation: floatBar 4s ease-in-out infinite; /* The floating movement */
}

.floating-search-bar {
    display: flex;
    align-items: center;
    /* Glassmorphism Background */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* The Bluish Glow/Border */
    border: 2px solid rgba(0, 174, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 174, 255, 0.25);
    
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    transition: all 0.3s ease;
}

/* Hover Effect: Glow gets stronger */
.floating-search-bar:hover {
    box-shadow: 0 10px 40px 0 rgba(0, 174, 255, 0.45);
    transform: scale(1.02);
    border-color: #00aeff;
}

/* Input Field Styling */
.floating-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex-grow: 1;
    padding: 10px;
    font-size: 1rem;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.floating-search-bar .search-icon {
    color: #00aeff;
    font-size: 1.1rem;
}

/* Search Button */
.floating-search-bar button {
    background: #00aeff; /* Adept Blue */
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.floating-search-bar button:hover {
    background: #008ecc;
}

/* --- 3. Animations --- */

/* Floating Up and Down Animation */
@keyframes floatBar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); } /* Moves up slightly */
    100% { transform: translateY(0px); }
}

/* Existing Slider CSS (Keep this) */
.hero-text-slider {
    display: grid;
    grid-template-areas: "stack"; 
    align-items: center;
    min-height: 250px; 
}
.hero-slide {
    grid-area: stack;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
    animation: backToForward 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
/* =================================== */
.contact {
    padding: 0;
}
.contact-container {
    display: flex;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 80px auto;
}
.contact-image-area {
    flex: 1;
    background: url('/review/adept_milestones_successes.jpg') no-repeat center center/cover; /* Re-using one of your images */
    min-height: 500px;
}
.contact-form-area {
    flex: 1;
    padding: 50px;
    background-color: var(--light-gray);
}
.contact-form-area h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
}
.contact-form-area p {
    text-align: center;
    margin-bottom: 30px;
}
.contact-form-area form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
}
.contact-form-area form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}
.or-call {
    text-align: center;
    margin-top: 20px;
    color: #888;
}

/* =================================== */
/*               FOOTER                */
/* =================================== */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* =================================== */
/* --- Parallax Section Styling --- */
.about-us.parallax-section {
    position: relative;
    /* 1. Set the Image */
    background-image: url('/Infodata/africanized.webp');
    
    /* 2. THE PARALLAX MAGIC: Fixes image in place while scrolling */
    background-attachment: fixed;
    
    /* 3. Positioning and Sizing */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Spacing */
    padding: 100px 0;
    overflow: hidden;
}

/* Dark Overlay */
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Creates a dark blue/black tint so white text is readable */
    background: rgba(0, 20, 40, 0.7); 
    z-index: 1;
}

/* Ensure Content sits ON TOP of the overlay */
.about-us .container {
    position: relative;
    z-index: 2;
}

/* Optional: Ensure Feature Cards look good on top of the image */
.feature-card {
    background: rgba(255, 255, 255, 0.95); /* Slight transparency */
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}
/*          RESPONSIVE DESIGN          */
/* =================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .features-grid, .courses-grid, .stats-grid, .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero::before { display: none; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-image img { width: 350px; height: 350px; }
    .contact-container { flex-direction: column; }
    .contact-image-area { min-height: 300px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Add mobile menu logic later if needed */
    .features-grid, .courses-grid, .stats-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
}