/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #094b65;
    --secondary: #38b6ff;
    --dark: #1a1a1a;
    --light: #ffffff;
    --success: #25D366;
    --accent: #ff6b6b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    overflow-x: hidden;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    /* Add image background */
    background-image: url('../images/image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    /* Fix horizontal scroll */
    width: 100%;
    max-width: 100vw;
}

/* Add overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(9, 75, 101, 0.9), rgba(56, 182, 255, 0.8));
    z-index: -1;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 10000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* 3D CAROUSEL SECTION - EXACT ANIMATION */
.carousel-section {
    margin-top: 100px;
    position: relative;
}

main {
    width: 100%;
    height: 700vh;
    /* Fix horizontal scroll */
    overflow-x: hidden;
    width: 100vw;
}

.carousel {
    width: 100vw;
    height: 100vh;
    perspective: 300px;
    overflow: hidden;
    opacity: 0;
}

/* ORIGINAL CARD STYLING - Preserved for animation */
.card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    height: 80%;
    max-width: 500px;
    max-height: 700px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    padding: 30px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Card Content Styling */
.card-number {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.card-description {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.card-duration {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    padding: 0 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-features li {
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.card-features li i {
    color: var(--secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-button {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
}

.card-button:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 182, 255, 0.3);
}

/* 8th Card - Contact */
.contact-card {
    justify-content: center;
}

.contact-card .card-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-card .card-description {
    font-size: 1rem;
    margin-bottom: 25px;
    min-height: auto;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 260px;
    margin-top: 15px;
}

.contact-cta a {
    padding: 12px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cta-whatsapp {
    background: var(--success);
    color: white;
    border: 2px solid var(--success);
}

.cta-call {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.cta-call:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.arrow {
    position: fixed;
    bottom: 5vh;
    left: 50%;
    height: 8vh;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 1;
    pointer-events: none;
}

.arrow path {
    stroke: #fff;
}

/* =========================================== */
/* RESPONSIVE DESIGN - Only adjust sizes, not layout */
/* =========================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .card {
        width: 50%;
        max-width: 550px;
        padding: 40px;
    }
    
    .card-number {
        font-size: 4.5rem;
    }
    
    .card-title {
        font-size: 2.2rem;
    }
    
    .card-price {
        font-size: 2.8rem;
    }
    
    .card-features li {
        font-size: 1rem;
        padding: 10px 0;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .card {
        width: 65%;
        padding: 25px;
    }
    
    .card-number {
        font-size: 3.5rem;
    }
    
    .card-title {
        font-size: 1.6rem;
    }
    
    .card-price {
        font-size: 2rem;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .card {
        width: 70%;
        padding: 20px;
    }
    
    .card-number {
        font-size: 3rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-price {
        font-size: 1.8rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .card-features li {
        font-size: 0.82rem;
    }
    
    .card-button {
        padding: 11px 25px;
        font-size: 0.85rem;
        min-width: 130px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .card {
        width: 80%;
        padding: 20px 15px;
    }
    
    .card-number {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-price {
        font-size: 1.7rem;
    }
    
    .card-description {
        font-size: 0.85rem;
        min-height: 35px;
    }
    
    .card-features li {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .card-button {
        padding: 10px 20px;
        font-size: 0.82rem;
        min-width: 125px;
    }
    
    .contact-cta a {
        padding: 11px 14px;
        font-size: 0.85rem;
    }
}

/* Mobile Landscape */
@media (max-width: 576px) {
    .carousel-section {
        margin-top: 80px;
    }
    
    .card {
        width: 85%;
        padding: 20px;
    }
    
    .card-number {
        font-size: 2.2rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-price {
        font-size: 1.6rem;
    }
    
    .card-description {
        font-size: 0.8rem;
        min-height: 35px;
    }
    
    .card-duration {
        font-size: 0.75rem;
    }
    
    .card-features {
        margin-bottom: 15px;
    }
    
    .card-features li {
        font-size: 0.75rem;
        padding: 5px 0;
    }
    
    .card-features li i {
        font-size: 0.8rem;
    }
    
    .card-button {
        padding: 9px 18px;
        font-size: 0.8rem;
        min-width: 115px;
    }
    
    .contact-cta {
        max-width: 240px;
    }
    
    .contact-cta a {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .card {
        width: 90%;
        padding: 15px;
    }
    
    .card-number {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-price {
        font-size: 1.4rem;
    }
    
    .card-description {
        font-size: 0.75rem;
        min-height: 30px;
    }
    
    .card-features li {
        font-size: 0.7rem;
        padding: 4px 0;
    }
    
    .card-button {
        padding: 8px 15px;
        font-size: 0.75rem;
        min-width: 110px;
    }
    
    .contact-cta {
        max-width: 220px;
    }
    
    .contact-cta a {
        padding: 9px 10px;
        font-size: 0.75rem;
    }
    
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Very Small Mobile */
@media (max-width: 350px) {
    .card {
        width: 92%;
        padding: 12px;
    }
    
    .card-number {
        font-size: 1.8rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-features li {
        font-size: 0.65rem;
    }
    
    .card-button {
        padding: 7px 12px;
        font-size: 0.7rem;
        min-width: 100px;
    }
}
/* Fix for smooth animation during resize - ADD THIS AT END OF YOUR courses.css */
.card {
    transition: none !important; /* Prevent CSS transitions from interfering with GSAP */
}

.carousel {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}