﻿/* ============================================
   SITE.CSS - Anamorphic Studio Main Styles
   Version: 3.0.2 - Clean Layout Separation
   ============================================ */

/* ============================================
   IMPORT COLORBASE
   ============================================ */
@import url('colorbase.css');

/* ============================================
   FONT FALLBACKS
   ============================================ */
body {
    font-family: 'Vazirmatn', 'IRANSans', 'Inter', 'Segoe UI', -apple-system, sans-serif;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Vazirmatn', 'IRANSans', 'Inter', 'Segoe UI', -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    min-height: 100vh;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ============================================
   SELECTION STYLES
   ============================================ */
::selection {
    background: var(--color-accent);
    color: var(--color-text-inverse);
}

::-moz-selection {
    background: var(--color-accent);
    color: var(--color-text-inverse);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

h4 {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    a:hover {
        color: var(--color-accent-hover);
    }

/* ============================================
   PAGE CONTAINER
   ============================================ */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

    .page-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: var(--gradient-accent);
        border-radius: 9999px;
    }

    .page-header h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
        margin-bottom: 0.5rem;
    }

    .page-header p {
        color: var(--text-muted);
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
    }

/* ============================================
   LAST UPDATED BADGE
   ============================================ */
.last-updated {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 1rem;
    background: var(--color-overlay-light);
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   BUTTONS (General)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2.2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-text-inverse);
    box-shadow: 0 4px 20px var(--color-shadow-glow);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px var(--color-shadow-glow);
        color: var(--color-text-inverse);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

    .btn-secondary:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        transform: translateY(-3px);
        box-shadow: var(--shadow-glow);
    }

.btn-outline-gold {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

    .btn-outline-gold:hover {
        background: var(--color-accent);
        color: var(--color-text-inverse);
        transform: translateY(-3px);
        box-shadow: var(--shadow-glow);
    }

.btn-success {
    background: var(--color-success);
    color: #fff;
}

    .btn-success:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 20px var(--color-success-bg);
    }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 20% 50%, var(--color-accent-glow) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, var(--color-blue-glow) 0%, transparent 60%);
        opacity: 0.4;
        animation: cinematicPulse 8s ease-in-out infinite;
    }

@keyframes cinematicPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

    .hero-particles span {
        position: absolute;
        width: 4px;
        height: 4px;
        background: var(--color-accent);
        border-radius: 50%;
        animation: floatParticle 15s infinite linear;
        opacity: 0.15;
    }

        .hero-particles span:nth-child(1) {
            left: 10%;
            animation-delay: 0s;
            animation-duration: 18s;
        }

        .hero-particles span:nth-child(2) {
            left: 20%;
            animation-delay: 2s;
            animation-duration: 15s;
        }

        .hero-particles span:nth-child(3) {
            left: 30%;
            animation-delay: 4s;
            animation-duration: 20s;
        }

        .hero-particles span:nth-child(4) {
            left: 40%;
            animation-delay: 1s;
            animation-duration: 16s;
        }

        .hero-particles span:nth-child(5) {
            left: 50%;
            animation-delay: 3s;
            animation-duration: 19s;
        }

        .hero-particles span:nth-child(6) {
            left: 60%;
            animation-delay: 5s;
            animation-duration: 14s;
        }

        .hero-particles span:nth-child(7) {
            left: 70%;
            animation-delay: 2s;
            animation-duration: 17s;
        }

        .hero-particles span:nth-child(8) {
            left: 80%;
            animation-delay: 4s;
            animation-duration: 21s;
        }

        .hero-particles span:nth-child(9) {
            left: 90%;
            animation-delay: 1s;
            animation-duration: 16s;
        }

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--color-overlay-gold);
    border: 1px solid var(--color-border-accent);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

    .hero h1 .highlight {
        background: var(--gradient-accent);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease-out;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

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

    .section-header .section-tag {
        display: inline-block;
        padding: 0.3rem 1rem;
        background: var(--color-overlay-gold);
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--color-accent);
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
    }

    .section-header h2 {
        margin-bottom: 0.5rem;
    }

    .section-header p {
        max-width: 600px;
        margin: 0 auto;
        color: var(--color-text-muted);
    }

/* ============================================
   CARDS - General (FIXED: no translateY on hover)
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient-accent);
        transform: scaleX(0);
        transition: transform 0.3s ease;
        transform-origin: left;
        z-index: 2;
    }

    .card:hover::before {
        transform: scaleX(1);
    }

    .card:hover {
        border-color: var(--color-accent);
        box-shadow: var(--shadow-lg);
        transform: none !important;
    }

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    backface-visibility: hidden;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.2rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient-accent);
    color: var(--text-inverse);
    z-index: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--color-accent-glow);
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

    .card-title a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .card-title a:hover {
            color: var(--color-accent);
        }

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .filter-btn:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
        transform: translateY(-2px);
    }

    .filter-btn.active {
        background: var(--gradient-accent);
        color: var(--text-inverse);
        border-color: transparent;
        box-shadow: 0 4px 20px var(--color-shadow-glow);
    }

/* ============================================
   MODAL (Content)
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

    .modal-overlay.active {
        display: flex;
    }

.modal {
    background: var(--bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .modal::-webkit-scrollbar {
        width: 4px;
    }

    .modal::-webkit-scrollbar-track {
        background: transparent;
    }

    .modal::-webkit-scrollbar-thumb {
        background: var(--color-accent);
        border-radius: 9999px;
    }

.modal-close {
    position: sticky;
    top: 0;
    float: left;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

    .modal-close:hover {
        transform: rotate(90deg) scale(1.1);
        border-color: var(--color-accent);
        color: var(--color-accent);
    }

.modal-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0.5rem 0 1.5rem;
}

.modal-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 0.3rem;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

    .modal-meta span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

.modal-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

    .modal-content p {
        margin-bottom: 0.8rem;
    }

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.modal-tag {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--color-overlay-light);
    color: var(--text-secondary);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .modal-tag:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
    }

/* ============================================
   FORM
   ============================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
}

    .form-group label {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-secondary);
        letter-spacing: 0.5px;
    }

        .form-group label .required {
            color: var(--color-error);
            margin-right: 2px;
        }

    .form-group .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem 1rem;
        padding-left: 2.8rem;
        border: 2px solid var(--color-border);
        border-radius: 10px;
        background: var(--bg-input);
        color: var(--text-primary);
        font-family: inherit;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        outline: none;
        width: 100%;
        direction: ltr;
        text-align: left;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--color-accent);
            box-shadow: 0 0 0 3px var(--color-accent-glow);
            background: var(--bg-card);
        }

    .form-group .input-icon {
        position: absolute;
        left: 0.9rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        color: var(--text-muted);
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 2;
    }

    .form-group .input-status {
        position: absolute;
        right: 0.9rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 2;
    }

    .form-group input:focus ~ .input-icon,
    .form-group input:focus + .input-icon {
        color: var(--color-accent);
    }

    .form-group.error input {
        border-color: var(--color-error);
        box-shadow: 0 0 0 3px var(--color-error-bg);
    }

    .form-group.error .input-status {
        opacity: 1;
        color: var(--color-error);
    }

    .form-group.success input {
        border-color: var(--color-success);
        box-shadow: 0 0 0 3px var(--color-success-bg);
    }

    .form-group.success .input-status {
        opacity: 1;
        color: var(--color-success);
    }

    .form-group .error-message {
        display: none;
        font-size: 0.75rem;
        color: var(--color-error);
        margin-top: 0.2rem;
        padding-right: 0.5rem;
    }

    .form-group.error .error-message {
        display: block;
    }

    .form-group textarea {
        padding-left: 1rem;
        resize: vertical;
        min-height: 120px;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: var(--gradient-accent);
    color: var(--text-inverse);
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

    .submit-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s;
    }

    .submit-btn:hover::before {
        transform: translateX(100%);
    }

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px var(--color-shadow-glow);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .submit-btn .spinner {
        display: none;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255,255,255,0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    .submit-btn.loading .spinner {
        display: inline-block;
    }

    .submit-btn.loading .btn-text {
        display: none;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

    .form-success.show {
        display: block;
        animation: fadeInUp 0.5s ease;
    }

    .form-success .success-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
        display: block;
    }

    .form-success h3 {
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .form-success p {
        color: var(--text-muted);
    }

/* ============================================
   TABLE
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    margin: 0.5rem 0 1rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .table th {
        background: var(--color-overlay-light);
        color: var(--text-primary);
        font-weight: 600;
        padding: 0.7rem 1rem;
        text-align: right;
        border-bottom: 2px solid var(--color-border);
    }

    .table td {
        padding: 0.7rem 1rem;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--color-border);
    }

    .table tr:last-child td {
        border-bottom: none;
    }

    .table tr:hover td {
        background: var(--color-overlay-light);
    }

    .table .status-badge {
        display: inline-block;
        padding: 0.1rem 0.6rem;
        border-radius: 9999px;
        font-size: 0.65rem;
        font-weight: 600;
    }

        .table .status-badge.essential {
            background: var(--color-accent-glow);
            color: var(--color-accent);
        }

        .table .status-badge.optional {
            background: var(--color-blue-glow);
            color: var(--color-blue);
        }

        .table .status-badge.marketing {
            background: var(--color-purple-glow);
            color: var(--color-purple);
        }

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--color-border);
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .toggle-slider::before {
        content: '';
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background: #fff;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-accent);
}

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(20px);
    }

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

    .pagination a,
    .pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 0.75rem;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .pagination a {
        color: var(--text-secondary);
        border: 1px solid var(--color-border);
        cursor: pointer;
    }

        .pagination a:hover:not(.disabled) {
            border-color: var(--color-accent);
            color: var(--color-accent);
            transform: translateY(-2px);
        }

    .pagination .active {
        background: var(--gradient-accent);
        color: var(--text-inverse);
        border: 1px solid transparent;
    }

    .pagination .disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
    }

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    animation: shimmer 1.5s ease-in-out infinite;
    background-image: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-card-hover) 50%, var(--bg-secondary) 100%);
    background-size: 200% 100%;
}

    .skeleton-card .skeleton-image {
        height: 220px;
        background: var(--bg-card-hover);
    }

    .skeleton-card .skeleton-line {
        height: 12px;
        margin: 0.8rem 1.5rem;
        background: var(--bg-card-hover);
        border-radius: 8px;
    }

        .skeleton-card .skeleton-line.short {
            width: 60%;
        }

        .skeleton-card .skeleton-line.medium {
            width: 80%;
        }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-mesh);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    margin: 2rem 0;
}

    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .cta-section p {
        color: var(--text-secondary);
        max-width: 500px;
        margin: 0 auto 1.5rem;
    }

    .cta-section .cta-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

/* ============================================
   STATS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Cinzel', 'Georgia', serif;
    color: var(--color-accent);
    display: block;
    line-height: 1.2;
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-right: 2rem;
}

    .timeline::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--color-border);
        border-radius: 9999px;
    }

.timeline-item {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

    .timeline-item:last-child {
        padding-bottom: 0;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        right: -6px;
        top: 4px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--color-accent);
        border: 3px solid var(--bg-primary);
        box-shadow: 0 0 0 3px var(--color-accent-glow);
    }

    .timeline-item .year {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--color-accent);
        font-family: 'Cinzel', 'Georgia', serif;
    }

    .timeline-item .title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0.2rem 0;
    }

    .timeline-item .desc {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin: 0;
    }

/* ============================================
   ANIMATIONS (General)
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out;
}

/* ============================================
   SCROLL ANIMATION (Triggered by JS)
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ============================================
   STAGGER CHILDREN
   ============================================ */
.stagger-children > *:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-children > *:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-children > *:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-children > *:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-children > *:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-children > *:nth-child(6) {
    animation-delay: 0.6s;
}

/* ============================================
   CINEMATIC SPECIAL EFFECTS
   ============================================ */
.vignette {
    position: relative;
}

    .vignette::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.3) 100%);
        pointer-events: none;
    }

.letterbox {
    position: relative;
    overflow: hidden;
}

    .letterbox::before,
    .letterbox::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 15%;
        background: rgba(0,0,0,0.5);
        pointer-events: none;
        z-index: 1;
    }

    .letterbox::before {
        top: 0;
    }

    .letterbox::after {
        bottom: 0;
    }

.grain {
    position: relative;
}

    .grain::before {
        content: '';
        position: absolute;
        inset: 0;
        opacity: 0.03;
        pointer-events: none;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
        background-repeat: repeat;
        background-size: 256px 256px;
        animation: grain 0.5s steps(2) infinite;
    }

@keyframes grain {
    0%, 100% {
        transform: translate(0,0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 2rem;
}

.min-vh-100 {
    min-height: 100vh;
}

.min-vh-75 {
    min-height: 75vh;
}

.min-vh-50 {
    min-height: 50vh;
}

/* ============================================
   CONTENT OVERLAY - For readability
   ============================================ */
.content-overlay {
    position: relative;
    z-index: 1;
}

    .content-overlay::before {
        content: '';
        position: absolute;
        inset: -2rem;
        background: var(--bg-primary);
        opacity: 0;
        border-radius: 20px;
        transition: opacity 0.4s ease;
        pointer-events: none;
        z-index: -1;
    }

    .content-overlay.has-bg::before {
        opacity: 0.6;
    }

[data-theme="dark"] .content-overlay.has-bg::before {
    opacity: 0.7;
}

[data-theme="light"] .content-overlay.has-bg::before {
    opacity: 0.4;
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before,
    .hero-particles span,
    .grain::before {
        animation: none !important;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .page-container {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 4rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 1rem 3rem;
        min-height: 90vh;
    }

        .hero h1 {
            font-size: clamp(2.2rem, 8vw, 3.5rem);
        }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.6rem;
        font-size: 0.9rem;
    }

    .card-image-wrapper {
        height: 180px;
    }

    .modal {
        padding: 1.2rem;
        max-height: 95vh;
        margin: 0.5rem;
    }

    .modal-meta {
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .pagination a, .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .filter-group {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .timeline {
        padding-right: 1.5rem;
    }

    .cta-section {
        padding: 1.5rem 1rem;
    }

        .cta-section h2 {
            font-size: 1.4rem;
        }

    .table th, .table td {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

        .hero-cta .btn {
            width: 100%;
            justify-content: center;
        }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 2.8rem;
        padding: 0.5rem;
    }

    .card-image-wrapper {
        height: 150px;
    }

    .card-content {
        padding: 1rem;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .filter-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .cta-section .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-section .btn {
        width: 100%;
        justify-content: center;
    }

    .toggle-switch {
        width: 38px;
        height: 20px;
    }

    .toggle-slider::before {
        height: 14px;
        width: 14px;
    }

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(18px);
    }

    .table th, .table td {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar, .theme-toggle, .hero-particles, .cinematic-background,
    .cinema-side-panel, .notification-bell, .notification-dropdown,
    .toast-container {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .gradient-text {
        -webkit-text-fill-color: black !important;
        background: none !important;
    }

    .page-content {
        padding-top: 60px !important;
        min-height: auto !important;
    }

    footer {
        margin-top: 2rem !important;
        page-break-inside: avoid;
    }

    .card, .section, .page-header {
        break-inside: avoid;
        page-break-inside: avoid;
    }

        .card::before {
            display: none;
        }

    .modal-overlay {
        display: none !important;
    }
}

/* ============================================
   THEME ADAPTATIONS (Dark/Light overrides)
   ============================================ */
[data-theme="dark"] .modal {
    background: rgba(7,11,20,0.98);
}

[data-theme="dark"] .card {
    background: rgba(20,31,51,0.5);
}

[data-theme="dark"] .toast {
    background: rgba(20,31,51,0.95);
}

[data-theme="light"] .modal {
    background: rgba(253,248,240,0.98);
}

[data-theme="light"] .card {
    background: rgba(255,255,255,0.7);
}

[data-theme="light"] .toast {
    background: rgba(255,255,255,0.95);
}
