/* =============================================
   BALAGH CULTURAL SOCIETY - MAIN STYLESHEET
   Modern Islamic Organization Website
   ============================================= */

/* =============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================= */
:root {
    /* Theme Transition */
    --theme-transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;

    /* Primary Colors - Original Logo Blue & Gold */
    --color-primary: #414da1;
    /* Logo Blue */
    --color-primary-light: #5d6bc1;
    --color-primary-dark: #2c367a;
    --color-primary-glow: rgba(65, 77, 161, 0.2);

    --color-secondary: #c9a227;
    /* Gold */
    --color-secondary-light: #e6c84a;
    --color-secondary-dark: #9a7b1e;

    /* Dark Theme (Default) */
    --color-bg-primary: #0a0f1c;
    --color-bg-hero: #0a0f1c;
    --color-bg-secondary: #0f1729;
    --color-bg-tertiary: #151f35;
    --color-bg-card: rgba(15, 23, 41, 0.8);
    --color-surface-1: rgba(255, 255, 255, 0.02);
    --color-surface-2: rgba(255, 255, 255, 0.04);
    --color-surface-3: rgba(255, 255, 255, 0.06);
    --color-text-primary: #f5f5f5;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.12);

    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(10, 15, 28, 0.3) 0%, rgba(10, 15, 28, 0.95) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    --font-display: 'IBM Plex Sans Arabic', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px var(--color-primary-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-indices */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-tooltip: 400;
    --z-preloader: 500;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* Light Mode Overrides */
:root.light-mode {
    --color-bg-primary: #f8fafc;
    --color-bg-hero: #0a0f1c;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-card: rgba(255, 255, 255, 0.9);
    --color-surface-1: rgba(0, 0, 0, 0.02);
    --color-surface-2: rgba(0, 0, 0, 0.04);
    --color-surface-3: rgba(0, 0, 0, 0.06);
    --color-text-primary: #1e293b;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.12);

    --gradient-hero: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(248, 250, 252, 0.95) 100%);
    --gradient-card: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--theme-transition);
}

.logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--theme-transition);
}



.logo-footer .logo-img {
    height: 80px;
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-dark);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-light);
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-primary);
}

/* =============================================
   LAYOUT - CONTAINER
   ============================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography Utilities */
p {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

/* =============================================
   PRELOADER
   ============================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.islamic-pattern-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.islamic-pattern-loader::before {
    content: ' ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--color-primary);
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--space-md) 0;
    background: transparent;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    position: relative;
    color: var(--color-text-nav, #ffffff);
    font-weight: 500;
    padding: var(--space-sm) var(--space-xs);
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-nav, #ffffff);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}




/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    /* margin-right: auto; */
    /* Push to the left in RTL */
}

.theme-toggle,
.nav-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    border-radius: 50%;
    color: var(--color-text-nav, #ffffff);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    z-index: 100;
}

.theme-toggle:hover,
.nav-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: rotate(15deg);
}

.theme-toggle .fa-sun {
    display: none;
}

:root.light-mode .theme-toggle .fa-moon {
    display: none;
}

:root.light-mode .theme-toggle .fa-sun {
    display: block;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--color-text-nav, #ffffff);
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--color-text-nav, #ffffff);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-button-primary, #fff);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--color-primary-glow);
    color: var(--color-bg-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-outline-button-primary, #6f7bd6);
    border: 2px solid var(--color-outline-button-primary, #6f7bd6);
}

.btn-outline:hover {
    background: var(--color-outline-button-primary, #6f7bd6);
    color: var(--color-bg-primary);
}

.btn-full {
    width: 100%;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero-bg.png') center/cover no-repeat;
    opacity: 0.6;
    filter: brightness(0.4);
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, #24307b 0%, var(--color-bg-hero) 100%);
    opacity: 0.9;
    filter: brightness(0.6);
    transition: opacity 0.5s ease, background 0.5s ease;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-hero, #ffffff);
    font-size: 0.99rem;
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-text-hero, #ffffff);
    /* Default to Primary (Blue) in Light Mode */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.title-sub {
    display: block;
    font-size: 0.6em;
    color: var(--color-text-hero, #ffffff);
    -webkit-text-fill-color: #ffffff;
}


.title-main {
    display: block;
}



@keyframes shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-hero, #ffffff);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg) var(--space-2xl);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    margin: var(--space-sm) auto 0;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scroll-wheel {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.5;
        top: 16px;
    }
}

/* =============================================
   SECTIONS - COMMON STYLES
   ============================================= */
.section {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

@media (min-width: 850px) {
    .section {
        padding: var(--space-4xl) 0;
    }
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
        linear-gradient(225deg, rgba(13, 115, 119, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-bg-pattern.alt {
    background:
        linear-gradient(45deg, rgba(13, 115, 119, 0.03) 0%, transparent 50%),
        linear-gradient(315deg, rgba(201, 162, 39, 0.03) 0%, transparent 50%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    color: var(--color-bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Card */
.glass-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.glass-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
    background: var(--color-bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    width: 100%;
}

@media (min-width: 850px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-card {
    padding: var(--space-2xl);
    text-align: center;
    width: 100%;
    height: 100%;
}

.goals-list {
    text-align: right;
    list-style: none;
    padding: 0;
    margin-top: var(--space-lg);
}

.goals-list li {
    position: relative;
    padding-right: var(--space-lg);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.goals-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 5px;
    color: var(--color-primary);
    font-size: 0.8rem;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: var(--color-bg-primary);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.about-card p {
    color: var(--color-text-secondary);
}

.goals-list {
    text-align: right;
}

.goals-list li {
    position: relative;
    padding-right: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

.goals-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Policies */
.policies-section {
    padding: var(--space-2xl);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.policies-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--space-2xl);
}

.policies-title i {
    font-size: 1.5rem;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--space-lg);
}

.policy-item {
    padding: var(--space-lg);
    background: var(--color-surface-1);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-base);
}

.policy-item:hover {
    background: var(--color-surface-3);
    transform: translateY(-4px);
}

.policy-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-bg-primary);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
}

.policy-item h4 {
    font-size: 1rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.policy-item p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects-section {
    background: var(--color-bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
    padding: 16px;
    background-color: #f1f5f9;
}



.project-image.small {
    height: 180px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: rgba(10, 15, 28, 0.4);
    backdrop-filter: blur(2px);
    transition: all var(--transition-base);
}

.play-overlay i {
    font-size: 4rem;
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.5));
}

.play-overlay span {
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-card:hover .play-overlay {
    background: rgba(10, 15, 28, 0.2);
    backdrop-filter: blur(0px);
}

.video-card:hover .play-overlay i {
    transform: scale(1.2);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgb(206 206 206 / 18%) 100%);
}

.project-content {
    padding: var(--space-xl);
}

.project-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-primary);
    color: var(--color-bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.project-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.project-features span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-surface-2);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.project-features span i {
    color: var(--color-primary);
}

.project-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.project-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: white;
}

.project-header h3 {
    font-size: 1.25rem;
}

.project-card:not(.featured) p {
    padding: 0 var(--space-lg);
    color: var(--color-text-secondary);
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    margin-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    color: var(--color-primary);
    font-weight: 600;
    transition: all var(--transition-base);
}

.project-link:hover {
    background: var(--color-surface-2);
    padding-right: var(--space-xl);
}

/* =============================================
   PUBLICATIONS SECTION
   ============================================= */
.publications-section {
    background: var(--color-bg-secondary);
}

.publications-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.publications-track {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-sm);
    transition: transform 0.4s ease-out;
    cursor: grab;
}

.publications-track.dragging {
    cursor: grabbing;
    transition: none;
}

.book-card {
    flex: 0 0 200px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
}

.book-cover {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-spine {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.book-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.book-number {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-bg-primary);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    opacity: 0;
}

.book-info {
    padding: var(--space-md);
    user-select: none;
}

.book-category {
    display: inline-block;
    padding: 2px var(--space-sm);
    background: var(--color-surface-2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.book-info h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin: 0;
}

/* Clickable Title Link */
.book-title-link {
    text-decoration: none;
    display: block;
}

.book-title-link h4 {
    transition: color 0.2s ease;
}

.book-title-link:hover h4 {
    color: var(--color-primary);
}

/* See More Placeholder Card */
.book-card-placeholder {
    background: var(--gradient-card);
    border: 2px dashed var(--color-border);
}

.book-card-placeholder:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.see-more-cover {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-surface-1) 100%);
}

.see-more-icon {
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.6;
}

.see-more-info {
    text-align: center;
}

.see-more-link h4 {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.see-more-link:hover h4 {
    color: var(--color-secondary);
}

.see-more-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.slider-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.slider-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-primary);
}

.slider-dots {
    display: flex;
    gap: var(--space-sm);
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.slider-dots .dot.active {
    background: var(--color-primary);
    width: 30px;
}

/* =============================================
   EVENTS SECTION
   ============================================= */
.events-section {
    background: var(--color-bg-primary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.event-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.event-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-placeholder-icon {
    font-size: 4rem;
    color: var(--color-border);
}

.event-date {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--color-primary);
    color: var(--color-bg-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    display: none;
}

.event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-content {
    padding: var(--space-lg);
}

.event-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-surface-2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--color-secondary-light);
    margin-bottom: var(--space-sm);
}

.event-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.event-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.event-meta i {
    color: var(--color-primary);
    margin-left: var(--space-xs);
}

/* =============================================
   MEDIA SECTION
   ============================================= */
.media-section {
    background: var(--color-bg-secondary);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.video-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: var(--color-bg-tertiary);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-base);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-card:hover .video-placeholder i {
    color: var(--color-primary);
    transform: scale(1.1);
}

.play-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: rgba(0, 0, 0, 0.4);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: background 0.2s ease;
}

.play-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.video-info {
    padding: var(--space-lg);
}

.video-info h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.video-info p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* =============================================
   MEMBERS SECTION
   ============================================= */
.members-section {
    background: var(--color-bg-primary);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.member-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.member-card .member-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--color-bg-primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.member-details {
    flex: 1;
    min-width: 0;
}

.member-details .member-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.3;
}

.member-role {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.member-position {
    display: block;
    font-size: 0.7rem;
    color: var(--color-primary);
    font-weight: 500;
}

.member-card-chairman {}

.role-chairman {}

/* Responsive adjustments */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
    background: var(--color-bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info-centered {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
}

.contact-info .social-links {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    padding: var(--space-lg);
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: var(--color-bg-primary);
}

.contact-card h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.contact-card a,
.contact-card p {
    color: var(--color-text-secondary);
}

.social-links {
    padding: var(--space-lg);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.social-links h4 {
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-primary);
    transform: translateY(-4px);
}

/* Contact Form */
.contact-form {
    padding: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =============================================
   SUPERVISION SECTION
   ============================================= */
.supervision-section {
    background: #bcc7e2;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    color: #888888;
}

.supervision-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    text-align: center;
}

.supervision-text {
    font-size: 0.9rem;
    color: rgb(16 20 32);
    margin: 0;
}

.supervision-logo {
    max-width: 200px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.supervision-logo:hover {
    opacity: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    position: relative;
    background: var(--color-bg-footer, #101420);
    color: #fff;
    padding: var(--space-4xl) 0 var(--space-lg);
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.125rem;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-footer, #fff);
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-right: var(--space-sm);
}

.footer-newsletter p {
    color: var(--color-text-footer, #fff);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.newsletter-form button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-bg-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer-bottom .supervision {
    margin-top: var(--space-sm);
    color: var(--color-primary);
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    left: var(--space-xl);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-bg-primary);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    .project-card.featured {
        grid-column: span 1;
        display: block;
    }

    .project-card.featured .project-image {
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }


}

@media (min-width: 850px) {
    #navToggle {
        display: none;
    }
}

@media (max-width: 850px) {
    :root {
        --space-4xl: 4rem;
    }

    /* Navigation Mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #1f3160;
        padding: var(--space-2xl);
        transition: right var(--transition-base);
        z-index: var(--z-modal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.25rem;
        padding: var(--space-md) 0;
    }

    /* Hero Mobile */
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-lg);
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        max-width: 100%;
    }

    /* Sections Mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .policies-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        flex: 0 0 160px;
    }

    .events-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --space-4xl: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .policies-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        flex: 0 0 140px;
    }

    .book-cover {
        height: 140px;
    }

    .contact-form {
        padding: var(--space-lg);
    }

    .member-chip {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {

    .navbar,
    .preloader,
    .back-to-top,
    .hero-scroll-indicator,
    .slider-controls {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        break-inside: avoid;
    }
}