/* =========================================
   PARTICLE CANVAS BACKGROUNDS
========================================= */

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* =========================================
   3D EFFECTS & TRANSFORMS
========================================= */

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(10px);
}

.depth-layer {
    position: relative;
    transform-style: preserve-3d;
}

.depth-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(234, 163, 22, 0.1), rgba(234, 163, 22, 0.05));
    transform: translateZ(-20px);
    z-index: -1;
}

/* =========================================
   ANIMATED GRADIENT BACKGROUNDS
========================================= */

.gradient-animated {
    background: linear-gradient(-45deg, #ECA316, #FFC107, #FFD54F, #ECA316);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-overlay {
    position: relative;
    overflow: hidden;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(234, 163, 22, 0.15) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   FLOATING ANIMATIONS
========================================= */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-15px) translateX(10px);
    }

    50% {
        transform: translateY(-30px) translateX(0px);
    }

    75% {
        transform: translateY(-15px) translateX(-10px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-slow {
    animation: floatSlow 10s ease-in-out infinite;
}

/* =========================================
   STATISTICS COUNTER SECTION
========================================= */

.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

body.dark-mode .stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.counter-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.counter-label {
    font-size: 16px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =========================================
   FEATURE CARDS WITH DEPTH
========================================= */

.feature-section {
    padding: 100px 0;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(234, 163, 22, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.feature-description {
    color: var(--muted);
    line-height: 1.8;
}

/* =========================================
   TIMELINE COMPONENT
========================================= */

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 4px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--accent);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--muted);
    line-height: 1.6;
}

/* =========================================
   NEWS GRID
========================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.news-card {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-content {
    padding: 30px;
}

.news-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--muted);
    font-size: 14px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   PARALLAX LAYERS
========================================= */

.parallax-layer {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   RESPONSIVE - NEW COMPONENTS
========================================= */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .counter-number {
        font-size: 36px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 80px;
        padding-right: 20px;
    }

    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 30px 15px;
    }
}