/* About Us Page - Dedicated Styles */
/* This file contains ONLY the styles needed for the about.php page */

/* =================================
   ABOUT PAGE SPECIFIC STYLES
   ================================= */

/* ==================================
   HERO SECTION INTEGRATION
   ================================== */

/* The hero section now uses the same design as index page
   All hero styles are loaded from homepage.css via header.php
   We only need to add about-specific enhancements here */

/* Enhanced counter animation for the year 2018 */
.hero-section-green-waves .highlight-number[data-count="2018"] {
    color: #FFD700;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* ===== ABOUT PAGE IMAGE QUALITY FIXES ===== */
/* Fix blurry hero image on about page */
.characters-image-green {
    /* Override homepage.css scaling that causes blur */
    transform: none !important;
    
    /* Natural sizing for crisp display */
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    
    /* FULL OPACITY - No transparency */
    opacity: 1 !important;
    
    /* Image quality optimization */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: auto !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    
    /* Optimized shadow without blur */
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15)) !important;
    
    /* Smooth animation without scaling */
    animation: charactersFloatAboutPage 6s ease-in-out infinite !important;
    
    /* Better display properties */
    display: block !important;
    margin: 0 auto !important;
}

/* ===== NAVBAR LOGO FIXES FOR ABOUT PAGE ===== */
.navbar-brand img,
nav .navbar-brand img {
    /* Fixed height with proper aspect ratio */
    height: 40px !important;
    width: auto !important;
    
    /* Remove ALL blur effects and filters that cause default blur */
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    
    /* Ensure crisp rendering */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: auto !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    
    /* Full opacity and clarity */
    opacity: 1 !important;
    
    /* Force hardware acceleration */
    will-change: transform !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    
    /* Smooth transition without scaling */
    transition: opacity 0.3s ease, filter 0.3s ease !important;
}

.navbar-brand:hover img {
    /* Keep logo clear on hover - no additional effects */
    transform: translateZ(0) !important;
    filter: none !important;
    opacity: 1 !important;
}

/* ===== FOOTER LOGO FIXES FOR ABOUT PAGE ===== */
.footer-logo-img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain;
    
    /* Remove any transforms and filters that cause blur */
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    
    /* Full opacity and clarity */
    opacity: 1 !important;
    
    /* Ensure crisp rendering */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: auto !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    
    /* Force hardware acceleration */
    will-change: transform !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

/* ===== GLOBAL IMAGE OPTIMIZATION FOR ABOUT PAGE ===== */
img {
    /* Ensure crisp image rendering */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: auto !important;
    
    /* Prevent blurry scaling */
    -webkit-backface-visibility: hidden !important;
    -moz-backface-visibility: hidden !important;
    -ms-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    
    /* Improve image quality on retina displays */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* ===== OVERRIDE ANY NAVBAR BLUR EFFECTS ===== */
.navbar .navbar-brand img,
.navbar-nav .navbar-brand img,
header .navbar-brand img {
    /* Force clear display - override any global blur */
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    transform: translateZ(0) !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
}

/* ===== OVERRIDE ANY FOOTER BLUR EFFECTS ===== */
footer .footer-logo-img,
.footer .footer-logo-img,
.enhanced-footer .footer-logo-img {
    /* Force clear display - override any global blur */
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    transform: translateZ(0) !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
}

/* Optimized floating animation for about page */
@keyframes charactersFloatAboutPage {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-8px);
    }
}

/* Remove hover scaling that causes blur */
.characters-showcase-green:hover .characters-image-green {
    transform: translateY(-3px) !important;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2)) !important;
    /* Keep full opacity on hover */
    opacity: 1 !important;
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}

/* Additional image optimization for about page */
.character-showcase-3d img,
.characters-showcase-green img {
    /* Force hardware acceleration for smoother rendering */
    will-change: transform !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    
    /* Ensure full opacity for all character images */
    opacity: 1 !important;
}

/* Fix character showcase containers */
.characters-showcase-green,
.character-showcase-3d,
.characters-container {
    /* Remove any opacity or filter effects */
    opacity: 1 !important;
    filter: none !important;
    
    /* Ensure images are fully visible */
    background: transparent !important;
}

/* Remove excessive backdrop filters that cause blur */
.status-badge {
    backdrop-filter: blur(5px) !important;
}

.about-card-glass {
    backdrop-filter: blur(12px) !important;
}

/* Add extra spacing after hero section for about page */
.hero-section-green-waves + section {
    margin-top: 2rem;
}

/* About HR styling for timeline section */
.abouthr {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
    border: none;
    border-radius: 2px;
    margin: 1.5rem auto;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* ============================================
   MODERN 3D ABOUT SECTION REDESIGN
   ============================================ */

.modern-about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title-modern {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2d5016;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(45, 80, 22, 0.1);
    letter-spacing: -1px;
}

.title-underline-3d {
    width: 120px;
    height: 6px;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #4CAF50 100%);
    margin: 0 auto 2rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.title-underline-3d::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(102, 187, 106, 0.1));
    border-radius: 22px;
    z-index: -1;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.6;
}

/* Main About Content 3D */
.about-content-3d {
    margin-bottom: 6rem;
}

/* Character Showcase 3D */
.character-showcase-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem 0;
}

.character-frame-3d {
    position: relative;
    width: 400px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    
    /* Reduce blur effect for better image quality */
    backdrop-filter: blur(8px);
    
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    box-shadow: 
        0 20px 35px rgba(0, 0, 0, 0.08),
        0 12px 20px rgba(76, 175, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Remove 3D transform that can cause blur */
    transform: translateZ(0);
}

.character-frame-3d:hover {
    /* Simple hover effect without rotation to prevent blur */
    transform: translateY(-8px) translateZ(0);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.12),
        0 18px 28px rgba(76, 175, 80, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.frame-backdrop {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.05) 100%);
    border-radius: 40px;
    z-index: -2;
    filter: blur(20px);
}

.frame-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(102, 187, 106, 0.1));
    border-radius: 35px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.character-frame-3d:hover .frame-glow {
    opacity: 1;
}

.character-image-3d {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 20px;
    transition: all 0.3s ease;
    
    /* Image quality optimization */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Remove blur-causing effects */
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    transform: translateZ(0);
}

.character-frame-3d:hover .character-image-3d {
    /* Remove scaling that causes blur */
    transform: translateY(-3px) translateZ(0);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15)) brightness(1.05);
}

/* Floating Status Badges */
.status-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d5016;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 10;
}

.status-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.top-badge {
    top: -15px;
    right: -15px;
    color: #FFD700;
}

.top-badge i {
    color: #FFD700;
}

.bottom-badge {
    bottom: -15px;
    left: -15px;
    color: #4CAF50;
}

.bottom-badge i {
    color: #4CAF50;
}

/* Glass Morphism About Card */
.about-card-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(76, 175, 80, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

.about-card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(76, 175, 80, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.about-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.about-card-glass:hover::before {
    left: 100%;
}

.card-header-3d {
    margin-bottom: 2rem;
    text-align: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(45, 80, 22, 0.1);
}

.subtitle-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    margin: 0 auto 1.5rem;
    border-radius: 10px;
}

.about-motto {
    font-size: 1.2rem;
    color: #4CAF50;
    font-weight: 600;
    font-style: italic;
    margin: 0;
}

.about-description-modern {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2rem;
    text-align: justify;
}

.company-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #2d5016;
    font-weight: 500;
}

.company-info-badge i {
    color: #4CAF50;
    font-size: 1.1rem;
}

/* Modern 3D Stat Cards */
.stats-grid-3d {
    margin-top: 4rem;
}

.stat-card-3d {
    height: 100%;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.card-inner-3d {
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    overflow: hidden;
}

.card-inner-3d:hover {
    transform: translateY(-15px) rotateX(10deg);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.12),
        0 20px 35px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Icon Container 3D */
.icon-container-3d {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.6s ease;
}

.icon-container-3d:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.icon-backdrop {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.6s ease;
    z-index: -1;
}

.quality-theme .icon-backdrop {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.passion-theme .icon-backdrop {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
}

.creativity-theme .icon-backdrop {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.icon-container-3d:hover .icon-backdrop {
    opacity: 0.6;
    transform: scale(1.2);
}

.icon-3d {
    font-size: 2.5rem;
    z-index: 2;
    transition: all 0.6s ease;
}

.quality-theme .icon-3d {
    color: #4CAF50;
}

.passion-theme .icon-3d {
    color: #FF6B6B;
}

.creativity-theme .icon-3d {
    color: #4ECDC4;
}

.icon-container-3d:hover .icon-3d {
    transform: scale(1.2) rotateY(360deg);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 1;
}

.quality-theme .icon-glow {
    background: radial-gradient(circle, rgba(76, 175, 80, 0.4), transparent);
}

.passion-theme .icon-glow {
    background: radial-gradient(circle, rgba(255, 107, 107, 0.4), transparent);
}

.creativity-theme .icon-glow {
    background: radial-gradient(circle, rgba(78, 205, 196, 0.4), transparent);
}

.icon-container-3d:hover .icon-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2);
}

/* Card Content */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(45, 80, 22, 0.1);
}

.stat-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin: 0;
    text-align: center;
}

/* Card Hover Effect */
.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.card-inner-3d:hover .card-hover-effect {
    opacity: 1;
}

/* Background Elements */
.background-elements-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(102, 187, 106, 0.05));
    backdrop-filter: blur(20px);
    animation: floatingOrb 20s infinite ease-in-out;
}

.orb-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 8%;
    animation-delay: -7s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: -14s;
}

@keyframes floatingOrb {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(102, 187, 106, 0.03) 0%, transparent 50%);
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .character-frame-3d {
        width: 350px;
        height: 400px;
    }
    
    .section-title-modern {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .about-content-3d {
        margin-bottom: 4rem;
    }
    
    .character-showcase-3d {
        margin-bottom: 3rem;
    }
    
    .character-frame-3d {
        width: 300px;
        height: 350px;
    }
    
    .about-card-glass {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .modern-about-section {
        padding: 60px 0;
    }
    
    .section-title-modern {
        font-size: 2.5rem;
    }
    
    .character-frame-3d {
        width: 280px;
        height: 320px;
        /* Reduce blur effects on mobile */
        backdrop-filter: blur(4px) !important;
    }
    
    .status-badge {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        /* Reduce blur on mobile */
        backdrop-filter: blur(3px) !important;
    }
    
    .about-card-glass {
        padding: 1.5rem;
        /* Reduce blur on mobile */
        backdrop-filter: blur(8px) !important;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .card-inner-3d {
        padding: 2rem 1.5rem;
        /* Reduce blur on mobile */
        backdrop-filter: blur(8px) !important;
    }
    
    .stat-title {
        font-size: 1.5rem;
    }
    
    /* Disable 3D effects on mobile for performance */
    .card-inner-3d:hover,
    .character-frame-3d:hover {
        transform: translateY(-5px) translateZ(0) !important;
    }
    
    /* Optimize images for mobile */
    .characters-image-green,
    .character-image-3d {
        /* Better mobile sizing */
        max-width: 95% !important;
        
        /* Remove mobile scaling issues */
        transform: none !important;
        
        /* Lighter shadows for better performance */
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1)) !important;
    }
    
    /* Mobile logo optimizations */
    .navbar-brand img {
        height: 35px !important;
        transform: translateZ(0) !important;
        /* Force clear display on mobile */
        filter: none !important;
        opacity: 1 !important;
    }
    
    .footer-logo-img {
        width: 40px !important;
        height: 40px !important;
        transform: translateZ(0) !important;
        /* Force clear display on mobile */
        filter: none !important;
        opacity: 1 !important;
    }
    
    .floating-orb {
        display: none;
    }
}

@media (max-width: 576px) {
    .character-frame-3d {
        width: 250px;
        height: 280px;
        /* Minimal blur for small screens */
        backdrop-filter: blur(2px) !important;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .stats-grid-3d {
        margin-top: 2rem;
    }
    
    .icon-container-3d {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
        /* Remove blur on small icons */
        backdrop-filter: none !important;
    }
    
    .icon-3d {
        font-size: 2rem;
    }
    
    /* Disable all blur effects on very small screens */
    .status-badge,
    .about-card-glass,
    .card-inner-3d {
        backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    /* Ensure crisp images on small screens */
    .characters-image-green,
    .character-image-3d {
        max-width: 90% !important;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) !important;
        transform: none !important;
    }
    
    /* Small screen logo optimizations */
    .navbar-brand img {
        height: 32px !important;
        transform: translateZ(0) !important;
        image-rendering: -webkit-optimize-contrast !important;
        /* Force clear display on small screens */
        filter: none !important;
        opacity: 1 !important;
    }
    
    .footer-logo-img {
        width: 35px !important;
        height: 35px !important;
        transform: translateZ(0) !important;
        image-rendering: -webkit-optimize-contrast !important;
        /* Force clear display on small screens */
        filter: none !important;
        opacity: 1 !important;
    }
}

/* Additional Animations for JavaScript Effects */
@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
}

/* Glass shine effect for JavaScript interactions */
.shine-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shineEffect 0.8s ease;
    pointer-events: none;
    z-index: 100;
}

@keyframes shineEffect {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Timeline Section */
.projects.timelinebox {
    background: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

.projects.timelinebox svg.outline-2 {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 2;
}

.projects.timelinebox svg.main-2 {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 3;
}

.timeline-section-header .section-tlte {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-section-header h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 1rem;
}

/* Timeline Styles */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4CAF50 0%, #66BB6A 50%, #4CAF50 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.timeline .li {
    margin-bottom: 3rem;
    position: relative;
    width: calc(50% - 30px);
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline .li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.timeline .li:nth-child(odd) {
    float: left;
    margin-right: 60px;
}

.timeline .li:nth-child(even) {
    float: right;
    margin-left: 60px;
}

.timeline .li::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border: 4px solid white;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    z-index: 10;
}

.timeline .li:nth-child(odd)::before {
    right: -40px;
}

.timeline .li:nth-child(even)::before {
    left: -40px;
}

.timeline .li.complete::before {
    background: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.timeline .timestamp {
    margin-bottom: 1rem;
}

.timeline .game-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d5016;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline .status h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4CAF50;
    margin: 0;
    padding: 0.5rem 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.timeline .li.complete .status h4 {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
}

/* Clear floats */
.timeline::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container.main h1 {
        font-size: 2.5rem;
    }
    
    .about-us {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-box {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
    }
    
    /* Mobile Timeline */
    .timeline::before {
        left: 30px;
    }
    
    .timeline .li {
        width: calc(100% - 80px);
        float: none !important;
        margin-left: 80px !important;
        margin-right: 0 !important;
        margin-bottom: 2rem;
    }
    
    .timeline .li::before {
        left: -40px !important;
        right: auto !important;
    }
}

@media (max-width: 576px) {
    .container.main {
        padding: 60px 15px 30px;
    }
    
    .container.main h1 {
        font-size: 2rem;
    }
    
    .about-us {
        padding: 1.5rem 1rem;
    }
    
    .timeline {
        margin-left: 20px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline .li {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 1.5rem;
    }
    
    .timeline .li::before {
        left: -30px !important;
    }
}

/* Animation Classes for AOS */
[data-aos="fade-right"] {
    transform: translate3d(-100px, 0, 0);
    opacity: 0;
}

[data-aos="fade-left"] {
    transform: translate3d(100px, 0, 0);
    opacity: 0;
}

[data-aos="fade-up"] {
    transform: translate3d(0, 100px, 0);
    opacity: 0;
}

[data-aos="fade-right"].aos-animate,
[data-aos="fade-left"].aos-animate,
[data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Loading states for better UX */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== HIGH DPI DISPLAY OPTIMIZATIONS FOR LOGOS ===== */
@media (-webkit-min-device-pixel-ratio: 1.5),
       (min-resolution: 144dpi),
       (min-resolution: 1.5dppx) {
    
    .navbar-brand img,
    .footer-logo-img {
        /* Ensure crisp logos on retina displays */
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: auto !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        -webkit-perspective: 1000px !important;
    }
}

/* ===== WEBKIT SPECIFIC LOGO FIXES ===== */
@supports (-webkit-appearance: none) {
    .navbar-brand img,
    .footer-logo-img {
        /* WebKit specific image optimization */
        -webkit-transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        -webkit-perspective: 1000px !important;
    }
}

/* ===== FIREFOX SPECIFIC LOGO FIXES ===== */
@-moz-document url-prefix() {
    .navbar-brand img,
    .footer-logo-img {
        /* Firefox specific image optimization */
        image-rendering: -moz-crisp-edges !important;
    }
}
