/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: Prevent Horizontal Scroll Globally */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Testimonial Carousel Styles */
.testimonials-container {
    height: 400px;
    overflow: hidden;
}

.testimonials-slider {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    scroll-behavior: smooth;
}

.testimonial-card {
    min-width: 300px;
    max-width: 350px;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.testimonial-card img {
    position: relative;
    z-index: 1;
}

.testimonial-card .rounded-full {
    position: relative;
    z-index: 1;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Navigation Arrows */
#prevTestimonial,
#nextTestimonial {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#prevTestimonial:hover,
#nextTestimonial:hover {
    background: white;
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonials-container {
        height: auto;
        padding: 1rem;
    }

    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    #prevTestimonial,
    #nextTestimonial {
        display: none;
    }
}

.success-story-card button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-story-card button:hover {
    background: linear-gradient(135deg, #333333, #000000);
    transform: translateX(4px);
}

.success-story-card button span {
    transition: transform 0.3s ease;
}

.success-story-card button:hover span {
    transform: translateX(-4px);
}

/* Card Content Styling */
.success-story-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    background: linear-gradient(to right, #1f2937, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
}

.success-story-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Profile Image Styling */
.success-story-card .rounded-full {
    border: 2px solid #333333;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.success-story-card:hover .rounded-full {
    border-color: #000000;
    transform: scale(1.02);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-story-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .success-story-card {
        margin-bottom: 2rem;
    }

    .success-story-card h3 {
        font-size: 1.25rem;
    }

    .success-story-card p {
        font-size: 0.95rem;
    }
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Navbar Container */
/* Main Header Styles */
.main-header {
    background-color: #ffffff;
    position: fixed;
    width: 100%;
    max-width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-sizing: border-box;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    z-index: 1001;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text-primary {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-text-secondary {
    color: #1e293b;
}

/* Desktop Navigation - Centered */
.nav-menu-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.menu-link:hover {
    color: #000000;
}

.menu-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease;
}

.menu-link.active {
    color: #000000;
}

.menu-link.active::after {
    width: 100%;
}

.menu-link:hover::after {
    width: 100%;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Enroll Button */
.btn-enroll-primary {
    background-color: #000000;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn-enroll-primary:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.3);
}

/* Social Media Icons in Navigation */
.social-icons-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-nav {
    background-color: #25d366;
    color: white;
}

.whatsapp-nav:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
}

.facebook-nav {
    background-color: #1877f2;
    color: white;
}

.facebook-nav:hover {
    background-color: #0d5dbf;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.4);
}

.instagram-nav {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.instagram-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(225, 48, 108, 0.4);
}

/* Responsive Social Icons */
@media (max-width: 768px) {
    .social-icons-nav {
        gap: 0.5rem;
        margin-right: 0.5rem;
    }

    .social-icon-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    flex-shrink: 0;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: #1f2937;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation Overlay - Slide from Top */
.mobile-nav-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active {
    top: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-links a:hover::before {
    left: 100%;
}

.mobile-nav-links a:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(10px);
}

.mobile-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1f2937;
}

.btn-enroll-mobile {
    background-color: #000000;
    color: white;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    border: none;
}

/* Mobile Social Media Icons */
.mobile-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mobile-social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-mobile {
    background-color: #25d366;
    color: white;
}

.whatsapp-mobile:hover {
    background-color: #128c7e;
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.5);
}

.facebook-mobile {
    background-color: #1877f2;
    color: white;
}

.facebook-mobile:hover {
    background-color: #0d5dbf;
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(24, 119, 242, 0.5);
}

.instagram-mobile {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.instagram-mobile:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(225, 48, 108, 0.5);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .header-container {
        grid-template-columns: 1fr auto;
    }

    .nav-menu-desktop,
    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* Hero Section Styles */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
    z-index: 10;
}

/* Keyframes for text animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Initial states */
.hero-content h1,
.hero-content p,
.hero-content .enroll-btn {
    opacity: 0;
}

/* Active animations */
.slide.active .hero-content h1 {
    animation: fadeInDown 1s ease-out forwards;
    animation-delay: 0.2s;
}

.slide.active .hero-content p {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.4s;
}

.slide.active .hero-content .enroll-btn {
    animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.6s;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.hero-content .enroll-btn {
    padding: 1rem 3rem;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-content .enroll-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-content .enroll-btn {
        padding: 0.8rem 2rem;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .mobile-menu {
        width: 80%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* WhatsApp Float Icon */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* Float Animation */
@keyframes float {
    0% {
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
        transform: translateY(0px);
    }

    50% {
        box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.2);
        transform: translateY(-10px);
    }

    100% {
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
        transform: translateY(0px);
    }
}

/* Medium Mobile Fixes - FINAL OVERFLOW GUARD */
@media (max-width: 480px) {

    /* Hide Social Icons in Header on Small Screens to save space */
    .social-icons-nav {
        display: none !important;
    }

    .header-container {
        padding: 0 1rem;
    }

    .brand-logo {
        max-width: 80%;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin-right: 0.5rem;
    }

    .brand-text-primary {
        font-size: 1.3rem;
        white-space: nowrap;
    }

    .mobile-toggle {
        margin-left: auto;
        flex-shrink: 0;
    }

    /* Ensure hero text fits */
    .hero-content {
        width: 90%;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    /* WhatsApp Button - Ensure it's not cut off */
    .whatsapp-float {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}