/* ============================================
   HOME PAGE STYLES
   Atechabad Academy - Redesigned
   ============================================ */

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, #022c22 0%, var(--emerald-900) 25%, var(--emerald-700) 60%, var(--emerald-500) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/aabg.jpg') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(52, 211, 153, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(6, 95, 70, 0.2) 0%, transparent 50%);
    z-index: 1;
}

/* Animated geometric shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 5%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 15%;
    animation-delay: -10s;
    animation-duration: 18s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 20%;
    background: rgba(255, 255, 255, 0.03);
    animation-delay: -3s;
    animation-duration: 15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(3deg); }
}

/* Grid pattern overlay */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--emerald-200);
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-400);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease 0.4s both;
}

.hero-text h1 .text-gradient {
    background: linear-gradient(135deg, var(--emerald-200), var(--emerald-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text > p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
    animation: fadeUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeUp 0.8s ease 0.8s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeUp 0.8s ease 1s both;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero visual / feature cards */
.hero-visual {
    position: relative;
    animation: fadeUp 1s ease 0.6s both;
}

.hero-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
    cursor: default;
}

.hero-feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.hero-feature-card:nth-child(2) {
    transform: translateY(24px);
}

.hero-feature-card:nth-child(2):hover {
    transform: translateY(20px);
}

.hero-feature-card:nth-child(3) {
    transform: translateY(-12px);
}

.hero-feature-card:nth-child(3):hover {
    transform: translateY(-16px);
}

.hero-feature-card:nth-child(4) {
    transform: translateY(12px);
}

.hero-feature-card:nth-child(4):hover {
    transform: translateY(8px);
}

.hero-feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    color: #fff;
}

.hero-feature-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.hero-feature-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* ---- Featured Resources Section ---- */
.resources-section {
    padding: 100px 0;
    background:
        url(../img/aabg.jpg) center / cover no-repeat fixed, rgba(255,255,255,0.9);
    background-blend-mode: soft-light;
    position: relative;
}

.ielts-section::before,.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    pointer-events: none;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.resource-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--emerald-600);
    line-height: 1;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

/* ---- IELTS Section ---- */
.ielts-section {
    padding: 100px 0;
    background:
        url(../img/aabg.jpg) center / cover no-repeat fixed, rgba(255,255,255,0.9);
    background-blend-mode: soft-light;
    
    position: relative;
}

.ielts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ielts-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--emerald-100);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.ielts-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -10px rgba(6, 78, 59, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.15);
    border-color: var(--emerald-300);
}

.ielts-card:hover .ielts-card-img img {
    transform: scale(1.08);
}

.ielts-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.ielts-card-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(6, 78, 59, 0.08));
    pointer-events: none;
}

.ielts-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ielts-card-body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ielts-badge {
    display: inline-block;
    background: var(--emerald-50);
    color: var(--emerald-700);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
    border: 1px solid var(--emerald-200);
}

.ielts-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.ielts-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* ---- Stats / Trust Section ---- */
.trust-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.trust-item {
    text-align: center;
    color: var(--white);
}

.trust-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.trust-label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ---- Highlights Slideshow ---- */
.highlights-section {
    padding: 90px 0;
    background: url(../img/aabg.jpg) center / cover no-repeat fixed, rgba(255,255,255,0.9);
    background-blend-mode:soft-light ;
    position: relative;
    overflow: hidden;
}

.highlights-section::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 600px; height: 600px;
    border-radius: 50%;

    background:
        repeating-linear-gradient(120deg, rgba(16,185,129,0.03) 0px, transparent 2px, transparent 60px),
        repeating-linear-gradient(60deg, rgba(5,150,105,0.02) 0px, transparent 2px, transparent 80px),
        linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(240,253,244,0.9) 50%, rgba(255,255,255,0.85) 100%);
    pointer-events: none;
}

.highlights-section::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -5%;
    width: 500px; height: 500px;
    border-radius: 50%;

    pointer-events: none;
}

.slideshow {
    position: relative;
    max-width: 1000px;
    margin: 44px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 30px 80px -15px rgba(6,78,59,0.22),
        0 0 0 1px rgba(16,185,129,0.12),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

.slideshow-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    background: var(--emerald-900);
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide.active img {
    animation: kenBurns 8s ease-in-out forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
}

.slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent 0%, rgba(2,44,34,0.92) 100%);
    padding: 100px 40px 36px;
    color: #fff;
}

.slide-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    letter-spacing: -0.3px;
}

.slide-caption p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    max-width: 550px;
    line-height: 1.55;
}

.slide-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 5;
    background: rgba(6,78,59,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-btn:hover {
    background: rgba(6,78,59,0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(6,78,59,0.4);
}

.slide-prev { left: 18px; }
.slide-next { right: 18px; }

.slide-dots {
    position: absolute;
    bottom: 18px; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.slide-dot {
    width: 10px; height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-dot:hover {
    background: rgba(255,255,255,0.5);
}

.slide-dot.active {
    background: var(--emerald-400);
    width: 32px;
    border-color: rgba(52,211,153,0.5);
    box-shadow: 0 0 14px rgba(52,211,153,0.6);
}

@media (max-width: 640px) {
    .slideshow-track { aspect-ratio: 16 / 10; }
    .slide-caption h3 { font-size: 1.15rem; }
    .slide-caption p { font-size: 0.82rem; }
    .slide-caption { padding: 50px 20px 22px; }
    .slide-btn { width: 40px; height: 40px; font-size: 1rem; }
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 100px 0;
    background:
        url('../img/aabg.jpg') center/cover no-repeat fixed,
        rgba(255,255,255,0.5);
    background-blend-mode: soft-light;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    background:
        repeating-linear-gradient(120deg, rgba(16,185,129,0.03) 0px, transparent 2px, transparent 60px),
        repeating-linear-gradient(60deg, rgba(5,150,105,0.02) 0px, transparent 2px, transparent 80px),
        linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(240,253,244,0.9) 50%, rgba(255,255,255,0.85) 100%);
    pointer-events: none;
}

.cta-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 64px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald-400), var(--emerald-600), var(--accent-coral));
}

.cta-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-text > p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-feature-grid {
        max-width: 420px;
        margin: 0 auto;
    }

    .ielts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-feature-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .hero-feature-card:nth-child(n) {
        transform: none;
    }

    .hero-feature-card:nth-child(n):hover {
        transform: translateY(-4px);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .ielts-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .resources-section,
    .ielts-section,
    .cta-section {
        padding: 64px 0;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .trust-number {
        font-size: 2rem;
    }
}
