/* 
   Ihyaussunna Markaz Students' Union (IMSU)
   Official Website Stylesheet - Redesigned Premium Creative Look
   Designed & Developed by ahrazdesign.com
*/

/* ==========================================================================
   CSS Variables & Themes
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Color Palette - CURATED HIGH-END METALLIC & BLUE */
    --primary-hue: 224;
    --primary-sat: 68%;
    --primary-light: 12%; /* #090f26 - Deep Midnight Indigo */
    --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
    --primary-hover: hsl(var(--primary-hue), var(--primary-sat), calc(var(--primary-light) + 5%));
    
    --secondary-hue: 200;
    --secondary-sat: 95%;
    --secondary-light: 48%; /* #0f9bf2 - Vibrant Azure Blue */
    --secondary: hsl(var(--secondary-hue), var(--secondary-sat), var(--secondary-light));
    --secondary-glow: rgba(15, 155, 242, 0.15);
    
    --accent-cyan: #38bdf8;
    
    /* Elegant Metallic Royal Gold Gradient & Colors */
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa7c11;
    --gold-gradient: linear-gradient(135deg, #aa7c11 0%, #d4af37 50%, #f3e5ab 100%);
    --gold-glow: rgba(212, 175, 55, 0.2);

    /* Light Theme Settings */
    --bg-base: #f4f6fc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-nav: rgba(244, 246, 252, 0.7);
    --border-color: rgba(9, 15, 38, 0.05);
    --border-glass: rgba(255, 255, 255, 0.6);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #ffffff;
    --shadow: 0 10px 30px -10px rgba(9, 15, 38, 0.05);
    --shadow-hover: 0 20px 40px -15px rgba(9, 15, 38, 0.15);
    --glass-blur: blur(20px);
    
    /* Interactive variables */
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    
    /* Background grid overlay */
    --grid-bg: radial-gradient(rgba(15, 155, 242, 0.08) 1.5px, transparent 1.5px);
    --grid-size: 24px 24px;
}

/* Dark Theme Settings */
body.dark-theme {
    --bg-base: #060913;
    --bg-card: rgba(13, 20, 38, 0.55);
    --bg-nav: rgba(6, 9, 19, 0.7);
    --border-color: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.03);
    --text-main: #cbd5e1;
    --text-muted: #94a3b8;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 25px 50px -15px rgba(0, 0, 0, 0.7);
    --grid-bg: radial-gradient(rgba(15, 155, 242, 0.04) 1.5px, transparent 1.5px);
}

/* ==========================================================================
   Reset & Base Layout
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Ambient glow blobs in the background - VERY CREATIVE & LUXURIOUS */
body::before, body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -5;
    opacity: 0.4;
    pointer-events: none;
}

body::before {
    background: radial-gradient(circle, rgba(15, 155, 242, 0.15) 0%, transparent 70%);
    top: 10%;
    left: -200px;
}

body::after {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: 40%;
    right: -200px;
}

body.dark-theme::before {
    opacity: 0.25;
}

body.dark-theme::after {
    opacity: 0.15;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
    position: relative;
}

.bg-light {
    background-color: rgba(15, 155, 242, 0.015);
}

body.dark-theme .bg-light {
    background-color: rgba(255, 255, 255, 0.01);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 80px auto;
}

.sub-heading {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 0.2em;
    display: inline-block;
    margin-bottom: 16px;
    position: relative;
    padding-left: 30px;
}

.sub-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background-color: var(--gold);
    transform: translateY(-50%);
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary);
    line-height: 1.2;
}

body.dark-theme .section-title {
    color: var(--text-light);
}

.title-bar {
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 20px auto 0 auto;
    border-radius: 50px;
    position: relative;
}

.title-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border: 2px solid var(--bg-base);
    border-radius: 50%;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 24px;
    font-weight: 400;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ==========================================================================
   Buttons (Creative Glassmorphic Look)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 16px 36px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #111a42);
    color: var(--text-light);
    box-shadow: 0 10px 25px -5px rgba(9, 15, 38, 0.35);
    border: 1px solid rgba(255,255,255,0.05);
}

body.dark-theme .btn-primary {
    background: linear-gradient(135deg, var(--secondary), #0d5ea3);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(15, 155, 242, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(9, 15, 38, 0.5);
    background: linear-gradient(135deg, #111a42, var(--primary));
}

body.dark-theme .btn-primary:hover {
    box-shadow: 0 15px 30px -5px rgba(15, 155, 242, 0.45);
    background: linear-gradient(135deg, #0d5ea3, var(--secondary));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation (Sleek Floating Concept)
   ========================================================================== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 76px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background-color: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    height: 70px;
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

body.dark-theme .logo-title {
    color: var(--text-light);
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu ul {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Active navigation marker - DYNAMIC & MINIMALIST */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    width: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle, .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1.1rem;
    background-color: rgba(15, 155, 242, 0.06);
    border: 1px solid var(--border-color);
}

body.dark-theme .theme-toggle {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--gold);
}

.theme-toggle:hover {
    transform: scale(1.08) rotate(15deg);
    background-color: rgba(15, 155, 242, 0.12);
}

.menu-toggle {
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: rgba(15, 155, 242, 0.06);
    border: 1px solid var(--border-color);
    display: none;
}

body.dark-theme .menu-toggle {
    background-color: rgba(255, 255, 255, 0.03);
}

.menu-toggle .bar {
    width: 18px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -310px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-base);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    right: 0;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-main);
    align-self: flex-end;
    cursor: pointer;
    transition: var(--transition);
}

.close-drawer:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--gold);
}

.drawer-links {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-link:hover, .drawer-link.active {
    color: var(--gold);
    transform: translateX(6px);
}

.drawer-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.drawer-logo {
    height: 52px;
    width: auto;
}

.drawer-footer p {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================================================
   Hero Section (Premium Split Glass Architecture)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 200px;
    padding-bottom: 160px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: var(--grid-bg), url('assets/hero-bg.png');
    background-size: var(--grid-size), cover;
    background-position: center, center;
    background-repeat: repeat, no-repeat;
    color: var(--text-light);
    overflow: hidden;
}

/* Top graphic light overlay for grid effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(15, 155, 242, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 6, 17, 0.95) 0%, rgba(9, 15, 38, 0.85) 100%);
    z-index: 1;
}

body.dark-theme .hero-bg-overlay {
    background: linear-gradient(135deg, rgba(2, 4, 8, 0.98) 0%, rgba(6, 9, 19, 0.92) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 680px;
}

.hero-content .badge {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 28px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 44px;
    font-weight: 400;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.logo-glow-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(15, 155, 242, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-logo-img {
    height: 240px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    animation: float-logo 8s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.25;
    z-index: 1;
    border-radius: 50%;
    filter: blur(15px);
    animation: pulsate-glow 5s ease-in-out infinite;
}

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 3;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-bottom .shape-fill {
    fill: var(--bg-base);
    transition: fill 0.5s ease;
}

/* ==========================================================================
   Stats Section (Floating Geometric Cards)
   ========================================================================== */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Stats card gets creative asymmetrical borders - VERY PREMIUM */
.stat-card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px 8px 24px 8px; /* Asymmetrical */
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.3);
    border-radius: 8px 24px 8px 24px; /* Alternates on hover */
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--secondary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

body.dark-theme .stat-number {
    color: var(--text-light);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   About Section (Creative Founders Quote Grid)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 16px;
}

body.dark-theme .about-info h3 {
    color: var(--text-light);
}

.about-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: rgba(15, 155, 242, 0.08);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid rgba(15, 155, 242, 0.15);
}

.feature-item span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Founders Quote Panel - highly creative styling */
.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-wrapper {
    position: relative;
    width: 100%;
}

.pattern-bg {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(15, 155, 242, 0.12) 20%, transparent 20%);
    background-size: 20px 20px;
    border-radius: 24px;
    z-index: 1;
}

.styled-card-about {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-hover);
    z-index: 2;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Gold light band across visual card */
.styled-card-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gold-gradient);
}

.card-icon-large {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 24px;
    display: inline-block;
}

.styled-card-about h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

body.dark-theme .styled-card-about h4 {
    color: var(--text-light);
}

.styled-card-about p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.est-badge {
    background: var(--gold-gradient);
    color: var(--primary);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 15px var(--gold-glow);
}

/* ==========================================================================
   Leadership Section (Sleek Profile Grid)
   ========================================================================== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.leader-card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.leader-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.leader-card:hover::after {
    transform: scaleX(1);
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 155, 242, 0.25);
}

.leader-avatar {
    width: 90px;
    height: 90px;
    border-radius: 24px; /* Squircle avatar looks very creative */
    background-color: rgba(15, 155, 242, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

body.dark-theme .leader-avatar {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--secondary);
}

.leader-card:hover .leader-avatar {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    transform: scale(1.05) rotate(5deg);
}

body.dark-theme .leader-card:hover .leader-avatar {
    background-color: var(--secondary);
    color: var(--bg-base);
    border-color: var(--secondary);
}

.leader-name {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 6px;
}

body.dark-theme .leader-name {
    color: var(--text-light);
}

.leader-role {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.leader-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Wings Section (Creative Staggered Layout)
   ========================================================================== */
.wings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.wing-card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 50px 36px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Creative staggered layout offset for desktop grid */
@media (min-width: 1025px) {
    .wing-card:nth-child(even) {
        transform: translateY(30px);
    }
    .wings-section {
        padding-bottom: 160px; /* Extends bottom padding to prevent overlap */
    }
}

.wing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
}

.wing-card:hover::before {
    opacity: 1;
}

.wing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.25);
}

/* Alternates the stagger offset hover on even items */
@media (min-width: 1025px) {
    .wing-card:nth-child(even):hover {
        transform: translateY(22px);
    }
}

.wing-icon {
    font-size: 2.4rem;
    color: var(--secondary);
    margin-bottom: 28px;
    transition: var(--transition);
    display: inline-block;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 155, 242, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(15, 155, 242, 0.15);
}

.wing-card:hover .wing-icon {
    transform: scale(1.1);
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

body.dark-theme .wing-card:hover .wing-icon {
    background-color: var(--secondary);
    color: var(--bg-base);
    border-color: var(--secondary);
}

.wing-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

body.dark-theme .wing-card h3 {
    color: var(--text-light);
}

.wing-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Events Section (Modern Alternating Interactive Timeline)
   ========================================================================== */
.events-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Timeline central line */
.events-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(to bottom, var(--secondary) 0%, var(--gold) 100%);
    border-radius: 50px;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 60px;
    padding-left: 0; /* Override old spacing */
}

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

/* Alternating columns */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

/* Timeline dots */
.timeline-dot {
    position: absolute;
    top: 26px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-base);
    border: 5px solid var(--secondary);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--gold);
    border-color: var(--gold);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--gold-glow);
}

.timeline-content {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 36px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd):hover .timeline-content {
    transform: translateY(-5px) translateX(-5px);
}

.timeline-item:nth-child(even):hover .timeline-content {
    transform: translateY(-5px) translateX(5px);
}

.event-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 1.45rem;
    color: var(--primary);
    margin-bottom: 12px;
}

body.dark-theme .timeline-content h3 {
    color: var(--text-light);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Gallery Section (Masonry Grid Concept)
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 26px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gold-gradient);
    color: var(--primary);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--gold-glow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Alternating item sizes to look like a creative masonry layout */
@media (min-width: 1025px) {
    .gallery-item:nth-child(2) .gallery-img-wrapper,
    .gallery-item:nth-child(6) .gallery-img-wrapper {
        height: 320px;
    }
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-light);
    text-align: center;
    padding: 24px;
    transition: var(--transition);
}

.gallery-placeholder i {
    font-size: 3.2rem;
    opacity: 0.9;
}

.gallery-placeholder span {
    font-weight: 700;
    font-size: 1rem;
}

/* Beautiful color variations for gallery items */
.gallery-placeholder.color-1 { background: linear-gradient(135deg, #090f26, #0f9bf2); }
.gallery-placeholder.color-2 { background: linear-gradient(135deg, #070a14, #d4af37); }
.gallery-placeholder.color-3 { background: linear-gradient(135deg, #0f9bf2, #4fc3f7); }
.gallery-placeholder.color-4 { background: linear-gradient(135deg, #0b7348, #2ecc71); }
.gallery-placeholder.color-5 { background: linear-gradient(135deg, #d35400, #f1c40f); }
.gallery-placeholder.color-6 { background: linear-gradient(135deg, #2c3e50, #9b59b6); }

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(3, 6, 17, 0.95) 0%, rgba(9, 15, 38, 0.3) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.gallery-overlay h4 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.view-image-btn {
    align-self: flex-start;
    background: var(--gold-gradient);
    color: var(--primary);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
    transition: var(--transition);
}

.view-image-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* ==========================================================================
   Contact Section (Stunning Split Architecture)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
}

.contact-info-panel h3, .contact-form-panel h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 16px;
}

body.dark-theme .contact-info-panel h3, body.dark-theme .contact-form-panel h3 {
    color: var(--text-light);
}

.info-lead {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 44px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(15, 155, 242, 0.05);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.contact-text h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 6px;
}

body.dark-theme .contact-text h4 {
    color: var(--text-light);
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-text a:hover {
    color: var(--secondary);
}

.social-links-container h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 16px;
}

body.dark-theme .social-links-container h4 {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.social-btn.youtube { background-color: #ff0000; }
.social-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285aeb 90%); }
.social-btn.facebook { background-color: #1877f2; }
.social-btn.whatsapp { background-color: #25d366; }

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Form Styling */
.contact-form-panel {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Accent design bar at the top of contact card */
.contact-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary), var(--accent-cyan));
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input, .form-group textarea {
    width: 100%;
    background-color: rgba(15, 155, 242, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

body.dark-theme .form-group input, body.dark-theme .form-group textarea {
    background-color: rgba(255, 255, 255, 0.01);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.65;
}

.form-group input:focus, .form-group textarea:focus {
    background-color: var(--bg-base);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(15, 155, 242, 0.15);
}

.form-feedback {
    margin-top: 20px;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* ==========================================================================
   Footer (High-End Corporate Branding)
   ========================================================================== */
.footer {
    background-color: #03060c;
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 52px;
    width: auto;
}

.footer-brand h3 {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.3;
}

.footer-brand p {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.08em;
}

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

.footer-credit p {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.developer-credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.developer-credit a {
    color: var(--gold);
    font-weight: 700;
}

.developer-credit a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* ==========================================================================
   Image Lightbox Modal
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 6, 17, 0.97);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--gold);
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    text-align: center;
}

.lightbox-placeholder {
    width: 100%;
    min-width: 320px;
    height: 440px;
    max-height: 65vh;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5.5rem;
    color: var(--text-light);
    box-shadow: 0 20px 50px rgba(0,0,0,0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-placeholder.color-1 { background: linear-gradient(135deg, #090f26, #0f9bf2); }
.lightbox-placeholder.color-2 { background: linear-gradient(135deg, #070a14, #d4af37); }
.lightbox-placeholder.color-3 { background: linear-gradient(135deg, #0f9bf2, #4fc3f7); }
.lightbox-placeholder.color-4 { background: linear-gradient(135deg, #0b7348, #2ecc71); }
.lightbox-placeholder.color-5 { background: linear-gradient(135deg, #d35400, #f1c40f); }
.lightbox-placeholder.color-6 { background: linear-gradient(135deg, #2c3e50, #9b59b6); }

.lightbox h4 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-top: 24px;
}

.lightbox p {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float-logo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

@keyframes pulsate-glow {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

/* Scroll reveal styles */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 40px;
    }
    
    .leadership-grid, .wings-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        margin-bottom: 40px;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 70px;
    }
    
    .timeline-dot {
        left: 21px !important;
        right: auto !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    body::before, body::after {
        display: none; /* Speed up mobile rendering */
    }

    .section-padding {
        padding: 90px 0;
    }

    .header {
        width: 92%;
        height: 70px;
    }

    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-graphics {
        order: -1;
    }

    .logo-glow-wrapper {
        width: 240px;
        height: 240px;
    }

    .hero-logo-img {
        height: 180px;
    }

    .glow-effect {
        width: 220px;
        height: 220px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .visual-wrapper {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

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

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-credit {
        text-align: center;
    }
}

@media (max-width: 580px) {
    .stats-grid, .leadership-grid, .wings-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
    }
    
    .lightbox-placeholder {
        height: 300px;
        min-width: 260px;
    }
}

/* Founder's quote card */
.founder-quote-card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.founder-quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
}

.founder-blockquote {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote-icon-gold {
    font-size: 2rem;
    color: var(--gold);
    align-self: flex-start;
    line-height: 1;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary);
    line-height: 1.6;
}

body.dark-theme .quote-text {
    color: var(--text-light);
}

.quote-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-end;
    text-align: right;
}

.cite-sub {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

