/* ===== TYPING ANIMATION & HERO ===== */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow-x: clip;
    overflow: visible; /* Ensure arrow is not hidden behind any element */
}

.typing-container {
    position: relative;
    z-index: 10;
    opacity: 0;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    color: #000000;
    text-align: center;
    line-height: 1.15;
    transition: opacity 0.6s ease;
}

body.home-page.content-visible .typing-container {
    opacity: 1;
}

#typing-text {
    caret-color: transparent;
    user-select: none;
}

.untyped {
    color: transparent !important;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #000;
    position: absolute;
    top: 0.05em;
    animation: blink 1.1s step-end infinite;
    z-index: 2;
}

@keyframes blink {
    from, to { opacity: 1; }
    50%      { opacity: 0; }
}

.dot-color {
    color: #EFBF04 !important;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #888888;
    opacity: 0;
    transition: opacity 0.8s ease 0.8s;
    animation: bounce 2s infinite;
    z-index: 20;
    pointer-events: none;
    cursor: pointer;
}

body.home-page.content-visible .scroll-indicator {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ===== SUBJECTS GRID SECTION ===== */
.subjects-section {
    padding: 100px 30px;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #000;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.subject-card {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #fcfcfc;
    border: 1px solid #eeeeee;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.subject-card:hover {
    background: #ffffff;
    border-color: #000000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.subject-icon {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    color: #333;
    transition: 0.3s;
}

.subject-card:hover .subject-icon {
    background: #EFBF04;
    color: #000;
}

.subject-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.subject-info p {
    font-size: 13px;
    color: #666;
    margin: 4px 0 0 0;
}

.request-card {
    border: 1px dashed #cccccc;
    background: transparent;
}

/* ===== STATISTICS SECTION ===== */
.stats-section {
    padding: 80px 30px 140px;
    background: #ffffff;
    width: 100%;
    display: flex;
    justify-content: center;
}

.stats-container {
    max-width: 80vw;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 30px;
}

.stat {
    text-align: center;
    overflow: hidden;
}

.stat-number {
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    font-feature-settings: "tnum";
    white-space: nowrap;
    font-size: clamp(24px, 4vw, 40px);
}

.stat-label {
    margin-top: 12px;
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ===== DISCLAIMER MARQUEE ===== */
.disclaimer-marquee {
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
    padding: 14px 0;
    display: flex;
    align-items: center;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
}

.marquee-content span {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.marquee-content span b {
    color: #1a1a1a;
    font-weight: 700;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.disclaimer-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 70px;
    }
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    .stats-section {
        padding: 60px 20px 100px;
    }
    .typing-container {
        font-size: clamp(3.2rem, 12vw, 4.5rem);
    }
    .cursor {
        width: 4px; /* Slightly thicker cursor on mobile spacing */
    }
    .subject-card {
        padding: 20px;
    }
    .scroll-indicator {
        bottom: 25px;
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .typing-container {
        font-size: clamp(2.8rem, 13vw, 3.5rem);
    }
    .stat-number {
        font-size: 28px;
    }
    .stat-label {
        font-size: 12px;
        white-space: normal;
    }
    .scroll-indicator {
        bottom: 20px;
        font-size: 18px;
    }
}