/* ============================================
   CHUITRAILS ADVENTURES - HOME PAGE
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(9, 9, 9, 0.85) 0%,
        rgba(9, 9, 9, 0.4) 50%,
        rgba(9, 9, 9, 0.6) 100%
    );
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(246, 182, 23, 0.15);
    border: 1px solid rgba(246, 182, 23, 0.3);
    color: var(--gold);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    animation: heroBadgePulse 3s ease-in-out infinite;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    animation: heroTextReveal 1.2s ease forwards;
}

.hero h1 .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 550px;
    margin-bottom: var(--spacing-lg);
    animation: heroTextReveal 1.2s ease 0.3s both;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: heroTextReveal 1.2s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: heroStatsFade 1.2s ease 0.9s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.section-label {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: var(--spacing-xs);
}

.welcome-quote {
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: var(--spacing-md);
    border-left: 3px solid var(--gold);
    padding-left: var(--spacing-md);
}

.welcome-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.welcome-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-slow);
}

.welcome-image-wrapper:hover .welcome-image {
    transform: scale(1.02);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-box {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.stat-box:hover {
    border-color: rgba(246, 182, 23, 0.2);
    background: rgba(246, 182, 23, 0.05);
}

.stat-box .number {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
}

.stat-box .label {
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   FEATURED SAFARIS
   ============================================ */
.safari-card .card-image {
    position: relative;
}

.safari-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
}

.safari-card .card-price-badge {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gold);
    color: var(--black);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 1;
}

/* ============================================
   DESTINATION CARDS
   ============================================ */
.destination-card .destination-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xs);
}

.destination-location {
    font-size: 0.7rem;
    color: var(--gray-dark);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    white-space: nowrap;
}

.destination-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--spacing-md);
}

.destination-card .card-tag {
    font-size: 0.6rem;
    color: var(--gray-dark);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* ============================================
   COMMITMENT SECTION
   ============================================ */
.commitment-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.commitment-item:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 182, 23, 0.2);
    box-shadow: var(--shadow-lg);
}

.commitment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(246, 182, 23, 0.1);
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

.commitment-item:hover .commitment-icon {
    background: var(--gold-gradient);
    color: var(--black);
}

.commitment-item h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

.commitment-item p {
    font-size: 0.875rem;
    color: var(--gray-dark);
}

/* ============================================
   CARD GRID - RESPONSIVE OVERRIDES
   ============================================ */
.card-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(246, 182, 23, 0.2), transparent);
    margin: 0;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 998;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--black);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(246, 182, 23, 0.1);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spinner 0.8s ease-in-out infinite;
}

/* ============================================
   CHUITRAILS ADVENTURES - HOME PAGE
   ============================================ */

/* ============================================
   HERO SECTION - FULLY RESPONSIVE
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Improved overlay for better text readability on mobile */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(9, 9, 9, 0.85) 0%,
        rgba(9, 9, 9, 0.5) 50%,
        rgba(9, 9, 9, 0.7) 100%
    );
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 var(--spacing-md);
}

.hero-badge {
    display: inline-block;
    background: rgba(246, 182, 23, 0.15);
    border: 1px solid rgba(246, 182, 23, 0.3);
    color: var(--gold);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    animation: heroBadgePulse 3s ease-in-out infinite;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    animation: heroTextReveal 1.2s ease forwards;
}

.hero h1 .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 550px;
    margin-bottom: var(--spacing-lg);
    animation: heroTextReveal 1.2s ease 0.3s both;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: heroTextReveal 1.2s ease 0.6s both;
}

.hero-actions .btn {
    min-width: 200px;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: heroStatsFade 1.2s ease 0.9s both;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(246, 182, 23, 0.12);
    color: var(--gold);
    font-size: 1rem;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.stat-item:hover .stat-icon {
    background: var(--gold-gradient);
    color: var(--black);
    transform: scale(1.1);
}

.stat-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================
   HERO - MOBILE RESPONSIVE
   ============================================ */

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    .hero {
        padding: 80px 0 50px;
        min-height: 90vh;
        min-height: 90dvh;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero {
        padding: 70px 0 40px;
        min-height: 80vh;
        min-height: 80dvh;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    .hero-actions {
        justify-content: center;
        width: 100%;
    }
    
    .hero-actions .btn {
        min-width: 0;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: var(--spacing-md);
        padding-top: var(--spacing-md);
        margin-top: var(--spacing-md);
        width: 100%;
    }
    
    .stat-item {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
        flex: 1;
        min-width: 80px;
        max-width: 120px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .hero {
        padding: 60px 0 30px;
        min-height: 70vh;
        min-height: 70dvh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.9rem;
        padding: 0 var(--spacing-xs);
    }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.8rem;
    }
    
    .hero-actions .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero-actions .btn-lg {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }
    
    .hero-stats {
        gap: var(--spacing-sm);
        padding-top: var(--spacing-md);
        margin-top: var(--spacing-md);
    }
    
    .stat-item {
        min-width: 60px;
        max-width: 100px;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.3px;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .hero {
        padding: 50px 0 20px;
        min-height: 60vh;
        min-height: 60dvh;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .hero-actions .btn {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xs);
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
    
    .stat-item {
        min-width: 0;
        max-width: 100%;
        flex-direction: row;
        gap: var(--spacing-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius-sm);
    }
    
    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    
    .stat-label {
        font-size: 0.5rem;
        letter-spacing: 0.2px;
        text-align: left;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 60px 0 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.85rem;
        max-width: 70%;
    }
    
    .hero-actions {
        flex-direction: row;
    }
    
    .hero-actions .btn {
        width: auto;
        max-width: 200px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .stat-item {
        flex-direction: row;
    }
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */
@keyframes heroTextReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes heroStatsFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ADDITIONAL HERO RESPONSIVE FIXES
   ============================================ */

/* Fix for very small screens */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.2rem !important;
    }
    
    .hero p {
        font-size: 0.7rem !important;
    }
    
    .hero-actions .btn {
        font-size: 0.65rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
    }
    
    .stat-item {
        padding: 4px 8px !important;
    }
    
    .stat-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.55rem !important;
    }
    
    .stat-label {
        font-size: 0.45rem !important;
    }
}

/* Fix for notch phones (iPhone X, etc.) */
@supports (padding: max(0px)) {
    .hero {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }
}

/* Fix for dark mode - keep hero readable */
@media (prefers-color-scheme: dark) {
    .hero-background::after {
        background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.8) 100%
        ) !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero p,
    .hero-actions,
    .hero-stats {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-badge {
        animation: none !important;
    }
}

/* ============================================
   STATS SECTION - FULLY RESPONSIVE
   ============================================ */

/* Stats Grid Container */
.stats-grid {
    display: grid;
    gap: var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.stats-grid-2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Individual Stat Box */
.stat-box {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.stat-box:hover {
    border-color: rgba(246, 182, 23, 0.2);
    background: rgba(246, 182, 23, 0.05);
    transform: translateY(-2px);
}

.stat-box .stat-number {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
    line-height: 1.2;
}

.stat-box .stat-label {
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
}

.stat-box .stat-description {
    font-size: 0.7rem;
    color: var(--gray-dark);
    display: block;
    margin-top: 4px;
    opacity: 0.7;
}

/* ============================================
   STATS - RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Tablets (992px - 1200px) */
@media (max-width: 1200px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (768px - 992px) */
@media (max-width: 992px) {
    .stats-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-box .stat-number {
        font-size: 2rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.7rem;
    }
}

/* Mobile Phones (576px - 768px) */
@media (max-width: 768px) {
    .stats-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid-5 {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-box {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .stat-box .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
}

/* Small Mobile Phones (400px - 576px) */
@media (max-width: 576px) {
    .stats-grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .stats-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .stats-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .stats-grid-5 {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-box {
        padding: var(--spacing-sm);
        border-radius: var(--radius-sm);
    }
    
    .stat-box .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.2px;
    }
    
    .stat-box .stat-description {
        font-size: 0.55rem;
    }
}

/* Extra Small Mobile Phones (under 400px) */
@media (max-width: 400px) {
    .stats-grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    
    .stats-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    
    .stats-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    
    .stats-grid-5 {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    
    .stat-box {
        padding: 6px 4px;
        border-radius: var(--radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .stat-box .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.45rem;
        letter-spacing: 0.1px;
    }
    
    .stat-box .stat-description {
        font-size: 0.45rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .stats-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-box {
        padding: var(--spacing-sm);
    }
    
    .stat-box .stat-number {
        font-size: 1.5rem;
    }
}

/* ============================================
   STATS - ADDITIONAL RESPONSIVE FIXES
   ============================================ */

/* Stats in Welcome Section - Specific Fixes */
.welcome-content .stats-grid {
    margin-top: var(--spacing-lg);
}

.welcome-content .stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

/* Stats in Hero Section */
.hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Responsive fixes for stats in hero */
@media (max-width: 768px) {
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
        width: 100%;
        padding-top: var(--spacing-md);
        margin-top: var(--spacing-md);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-stats .stat-item {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-sm);
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius-sm);
        gap: 2px;
    }
    
    .hero-stats .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 400px) {
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    
    .hero-stats .stat-item {
        padding: 4px 8px;
        flex-direction: row;
        justify-content: center;
        gap: 4px;
    }
    
    .hero-stats .stat-icon {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.5rem;
    }
}

/* Stats counter animation */
.stat-number {
    transition: all 0.6s ease;
}

.stat-number.counter-animated {
    animation: countUp 0.8s ease forwards;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stats with icons */
.stat-with-icon {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-with-icon .stat-icon {
    font-size: 1.5rem;
    color: var(--gold);
}

@media (max-width: 576px) {
    .stat-with-icon .stat-icon {
        font-size: 1.2rem;
    }
}

/* ============================================
   WELCOME SECTION - FULLY RESPONSIVE
   ============================================ */

/* Welcome Grid Container */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.welcome-content .section-label {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: var(--spacing-xs);
}

.welcome-content .section-title {
    margin-bottom: var(--spacing-md);
}

.welcome-content p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.welcome-quote {
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: var(--spacing-md);
    border-left: 3px solid var(--gold);
    padding-left: var(--spacing-md);
}

.welcome-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.welcome-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-slow);
}

.welcome-image-wrapper:hover .welcome-image {
    transform: scale(1.02);
}

/* ============================================
   WELCOME SECTION - RESPONSIVE
   ============================================ */

/* Tablets & Small Laptops (768px - 1024px) */
@media (max-width: 1024px) {
    .welcome-grid {
        gap: var(--spacing-lg);
    }
    
    .welcome-content p {
        font-size: 0.95rem;
    }
}

/* Mobile Phones - SINGLE COLUMN */
@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr !important;  /* Force single column */
        gap: var(--spacing-lg);
    }
    
    .welcome-image-wrapper {
        order: -1;  /* Image on top */
        max-width: 100%;
        margin: 0 auto;
    }
    
    .welcome-content {
        text-align: center;
    }
    
    .welcome-content .section-title {
        text-align: center;
    }
    
    .welcome-content .section-title::after {
        margin: var(--spacing-sm) auto 0;
    }
    
    .welcome-content p {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .welcome-quote {
        font-size: 1rem;
        text-align: center;
        border-left: none;
        border-top: 3px solid var(--gold);
        padding-left: 0;
        padding-top: var(--spacing-md);
        margin-top: var(--spacing-md);
    }
}

/* Small Mobile Phones (400px - 576px) */
@media (max-width: 576px) {
    .welcome-grid {
        gap: var(--spacing-md);
    }
    
    .welcome-content .section-title {
        font-size: 1.5rem;
    }
    
    .welcome-content p {
        font-size: 0.85rem;
    }
    
    .welcome-quote {
        font-size: 0.9rem;
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
}

/* Extra Small Mobile Phones (under 400px) */
@media (max-width: 400px) {
    .welcome-grid {
        gap: var(--spacing-sm);
    }
    
    .welcome-content .section-title {
        font-size: 1.2rem;
    }
    
    .welcome-content p {
        font-size: 0.8rem;
    }
    
    .welcome-quote {
        font-size: 0.8rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .welcome-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--spacing-md);
    }
    
    .welcome-image-wrapper {
        order: 0;
        max-width: 50%;
    }
    
    .welcome-content {
        text-align: left;
    }
    
    .welcome-content .section-title {
        text-align: left;
    }
    
    .welcome-content .section-title::after {
        margin: var(--spacing-sm) 0 0;
    }
    
    .welcome-content p {
        text-align: left;
        font-size: 0.85rem;
    }
    
    .welcome-quote {
        text-align: left;
        border-left: 3px solid var(--gold);
        border-top: none;
        padding-left: var(--spacing-md);
        padding-top: 0;
    }
}


/* ============================================
   WELCOME SECTION - RESPONSIVE OVERRIDES
   ============================================ */

/* Force single column on mobile - IMPORTANT */
@media (max-width: 768px) {
    /* Override any conflicting styles */
    .welcome-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        gap: var(--spacing-lg) !important;
    }
    
    /* Ensure image is on top */
    .welcome-image-wrapper {
        order: -1 !important;
        grid-row: 1 !important;
        margin-bottom: 0 !important;
    }
    
    /* Ensure content is below image */
    .welcome-content {
        order: 2 !important;
        grid-row: 2 !important;
    }
    
    /* Center align content */
    .welcome-content {
        text-align: center !important;
    }
    
    .welcome-content .section-title {
        text-align: center !important;
    }
    
    .welcome-content .section-title::after {
        margin: var(--spacing-sm) auto 0 !important;
    }
    
    .welcome-content p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .welcome-quote {
        text-align: center !important;
        border-left: none !important;
        border-top: 3px solid var(--gold) !important;
        padding-left: 0 !important;
        padding-top: var(--spacing-md) !important;
        margin-top: var(--spacing-md) !important;
    }
    
    /* Stats in welcome section on mobile */
    .welcome-content .stats-grid {
        justify-items: center !important;
    }
}

/* Very small screens - tighter spacing */
@media (max-width: 400px) {
    .welcome-grid {
        gap: var(--spacing-sm) !important;
    }
    
    .welcome-content .section-title {
        font-size: 1.2rem !important;
    }
    
    .welcome-content p {
        font-size: 0.8rem !important;
    }
}