/* ==========================================================================
   ISDP - Jamia Ashrafia | Bilingual Professional Website
   CSS Stylesheet — Static, Lightweight, Animated
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. CSS Custom Properties (Brand Palette from ISDP Logo)
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-cyan:       #00BCD4;
    --color-magenta:    #E91E63;
    --color-deep-blue:  #1A237E;
    --color-black:      #0D0D0D;

    /* Neutrals */
    --color-white:      #FFFFFF;
    --color-off-white:  #F8F9FC;
    --color-light-gray: #EEF0F6;
    --color-mid-gray:   #9CA3AF;
    --color-dark-gray:  #374151;
    --color-text:       #1F2937;
    --color-text-light: #6B7280;

    /* Accent / Derived */
    --color-cyan-light:  #B2EBF2;
    --color-cyan-dark:   #00838F;
    --color-magenta-light:#FCE4EC;
    --color-deep-blue-light:#3949AB;
    --color-gold:        #F9A825;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--color-deep-blue) 0%, #0D47A1 50%, var(--color-cyan-dark) 100%);
    --gradient-card: linear-gradient(160deg, #f8f9ff 0%, #eef1ff 100%);
    --gradient-cta:  linear-gradient(135deg, var(--color-cyan) 0%, var(--color-cyan-dark) 100%);
    --gradient-magenta: linear-gradient(135deg, var(--color-magenta) 0%, #AD1457 100%);

    /* Typography */
    --font-urdu:  'Noto Nastaliq Urdu', serif;
    --font-en:    'Inter', sans-serif;
    --font-body:  var(--font-urdu);

    /* 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;

    /* Layout */
    --max-width:  1200px;
    --header-h:   72px;
    --topbar-h:   38px;
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-full:9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.1);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.15);
    --shadow-xl:  0 20px 60px rgba(0,0,0,.18);
    --shadow-cyan: 0 8px 32px rgba(0,188,212,.3);

    /* Transitions */
    --ease:       cubic-bezier(.4,0,.2,1);
    --duration:   .3s;
}

/* ==========================================================================
   2. Base / Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-off-white);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* English mode uses Inter */
[lang="en"] body,
body.lang-en {
    font-family: var(--font-en);
    line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: color var(--duration) var(--ease); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ==========================================================================
   3. Utility Classes
   ========================================================================== */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.section-pad { padding: var(--space-3xl) 0; }

/* ==========================================================================
   4. Top Bar (Announcement + Lang Toggle)
   ========================================================================== */
.top-bar {
    background: var(--color-deep-blue);
    color: var(--color-white);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    padding: 3px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background var(--duration) var(--ease);
    white-space: nowrap;
}
.lang-toggle:hover { background: rgba(255,255,255,0.22); }
.lang-toggle .lang-ur { font-family: var(--font-urdu); }
.lang-toggle .lang-en { font-family: var(--font-en); }
.lang-divider { opacity: .5; }

/* Highlight active language */
body.lang-ur .lang-toggle .lang-ur { color: var(--color-cyan); }
body.lang-en .lang-toggle .lang-en { color: var(--color-cyan); }

/* ==========================================================================
   5. Main Header & Navigation
   ========================================================================== */
.main-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: box-shadow var(--duration) var(--ease);
}

.main-header.scrolled { box-shadow: var(--shadow-md); }

.header-spacer { height: 0; /* reserve space if needed */ }

.header-inner {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.logo-circle svg { transition: transform .6s var(--ease); }
.logo-link:hover .logo-circle svg { transform: rotate(20deg); }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title-ur { font-size: 1.2rem; font-weight: 700; color: var(--color-deep-blue); }
body.lang-en .logo-title-ur { font-family: var(--font-en); }
.logo-subtitle { font-size: 0.72rem; color: var(--color-text-light); }

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-dark-gray);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-deep-blue);
    background: var(--color-light-gray);
}

.nav-link.active {
    color: var(--color-deep-blue);
    background: rgba(26,35,126,0.08);
    font-weight: 600;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }

.header-cta {
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-deep-blue);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--duration) var(--ease);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--color-white);
    box-shadow: var(--shadow-cyan);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,188,212,.45);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-deep-blue);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-deep-blue);
    border: 2px solid var(--color-deep-blue);
}
.btn-outline:hover {
    background: var(--color-deep-blue);
    color: var(--color-white);
}

.btn-magenta {
    background: var(--gradient-magenta);
    color: var(--color-white);
    box-shadow: 0 8px 32px rgba(233,30,99,.3);
}
.btn-magenta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(233,30,99,.45);
}

.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-lg { padding: 16px 36px; font-size: 1.08rem; }

/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero {
    background: var(--gradient-hero);
    color: var(--color-white);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-3xl) 0;
}

/* Animated background orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatOrb 12s ease-in-out infinite;
}
.hero::before {
    width: 400px; height: 400px;
    background: var(--color-cyan);
    top: -100px; right: -80px;
}
.hero::after {
    width: 300px; height: 300px;
    background: var(--color-magenta);
    bottom: -80px; left: -60px;
    animation-delay: -6s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -30px) scale(1.08); }
    66%  { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

body.lang-ur .hero-title { font-family: var(--font-urdu); line-height: 1.6; }

.hero-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-cyan), #80DEEA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.88;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-cyan);
    line-height: 1.1;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-ctas { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* 3D Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.hero-3d-card {
    width: 320px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    animation: hero3dFloat 8s ease-in-out infinite;
}

@keyframes hero3dFloat {
    0%, 100% { transform: rotateY(-8deg) rotateX(8deg) translateZ(0); }
    50% { transform: rotateY(8deg) rotateX(-8deg) translateZ(20px); }
}

.hero-3d-face {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    backface-visibility: hidden;
    padding: var(--space-xl);
    text-align: center;
}

.hero-3d-front {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-xl);
}

.hero-3d-front svg { width: 140px; height: 140px; }

.hero-3d-badge {
    background: rgba(0,188,212,0.25);
    border: 1px solid var(--color-cyan);
    border-radius: var(--radius-full);
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-cyan-light);
}

.hero-3d-year {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-white);
}

.hero-3d-year small { display: block; font-size: 0.8rem; opacity: .7; font-weight: 400; }

/* ==========================================================================
   8. Section Headings
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-block;
    background: rgba(0,188,212,0.1);
    color: var(--color-cyan-dark);
    border-radius: var(--radius-full);
    padding: 5px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--color-deep-blue);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

body.lang-ur .section-title { font-family: var(--font-urdu); line-height: 1.7; }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto;
}

/* ==========================================================================
   9. Feature / Info Cards
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl) var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-gray);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-cta);
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,188,212,0.3);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
    flex-shrink: 0;
}
.feature-icon.cyan   { background: rgba(0,188,212,0.12); color: var(--color-cyan-dark); }
.feature-icon.magenta{ background: rgba(233,30,99,0.12); color: var(--color-magenta); }
.feature-icon.blue   { background: rgba(26,35,126,0.12); color: var(--color-deep-blue); }
.feature-icon.gold   { background: rgba(249,168,37,0.12); color: var(--color-gold); }

.feature-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    margin-bottom: var(--space-sm);
}

.feature-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ==========================================================================
   10. Curriculum / Tech Stack
   ========================================================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-lg);
}

.tech-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-gray);
    transition: all var(--duration) var(--ease);
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-cyan);
}

.tech-card-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.tech-card-name { font-weight: 700; color: var(--color-deep-blue); font-size: 0.98rem; }
.tech-card-desc { font-size: 0.8rem; color: var(--color-text-light); margin-top: 4px; }

/* Showcase Card */
.showcase-card {
    background: var(--gradient-hero);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-top: var(--space-3xl);
    overflow: hidden;
    position: relative;
}
.showcase-card::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: var(--color-cyan);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    top: -80px; right: -80px;
}

.showcase-badge {
    display: inline-block;
    background: rgba(0,188,212,0.3);
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan-light);
    border-radius: var(--radius-full);
    padding: 5px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.showcase-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.showcase-desc { opacity: 0.9; margin-bottom: var(--space-lg); line-height: 1.8; }

.showcase-visual {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    font-size: 5rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   11. Admissions / Timeline
   ========================================================================== */
.admission-hero {
    background: var(--gradient-hero);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}
.admission-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.admission-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    position: relative;
}

.admission-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    position: relative;
}

.admission-sub { opacity: 0.9; font-size: 1.1rem; position: relative; }

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
}

.info-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-gray);
    text-align: center;
    transition: all var(--duration) var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.info-card-icon { font-size: 2.5rem; margin-bottom: var(--space-md); }
.info-card-title { font-size: 1.1rem; font-weight: 700; color: var(--color-deep-blue); margin-bottom: var(--space-sm); }
.info-card-text  { color: var(--color-text-light); font-size: 0.95rem; }

/* Timeline */
.timeline { margin-top: var(--space-3xl); }
.timeline-title { text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--color-deep-blue); margin-bottom: var(--space-2xl); }

.timeline-list { position: relative; max-width: 700px; margin: 0 auto; }
.timeline-list::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 3px;
    background: var(--color-light-gray);
    border-radius: 3px;
}
[dir="rtl"] .timeline-list::before { right: 20px; }
[dir="ltr"] .timeline-list::before { left: 20px; }

.timeline-item {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    position: relative;
}

.timeline-dot {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-cyan);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.timeline-body {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-gray);
    flex: 1;
}

.timeline-item-title { font-weight: 700; color: var(--color-deep-blue); margin-bottom: 4px; }
.timeline-item-text  { color: var(--color-text-light); font-size: 0.92rem; }

/* ==========================================================================
   12. About Page
   ========================================================================== */
.about-hero {
    background: var(--gradient-hero);
    color: var(--color-white);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: var(--color-cyan);
    filter: blur(120px);
    opacity: 0.2;
    border-radius: 50%;
    top: -200px; right: -100px;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-hero-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: var(--space-lg); line-height: 1.3; }
body.lang-ur .about-hero-title { line-height: 1.7; }
.about-hero-desc { opacity: 0.9; font-size: 1.05rem; line-height: 1.9; }

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-stats-box {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.about-stat { text-align: center; }
.about-stat-num { font-size: 2.2rem; font-weight: 800; color: var(--color-cyan); }
.about-stat-label { font-size: 0.85rem; opacity: 0.8; }

/* Mission/Vision cards */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.mv-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-gray);
    position: relative;
    overflow: hidden;
}
.mv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
}
.mv-card.mission::before { background: var(--color-cyan); }
.mv-card.vision::before  { background: var(--color-magenta); }

.mv-icon { font-size: 2.5rem; margin-bottom: var(--space-md); }
.mv-title { font-size: 1.3rem; font-weight: 700; color: var(--color-deep-blue); margin-bottom: var(--space-md); }
.mv-text  { color: var(--color-text-light); line-height: 1.9; }

/* Location card */
.location-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-light-gray);
}

.location-map {
    width: 100%;
    height: 320px;
    background: var(--color-light-gray);
}

.location-info {
    padding: var(--space-2xl);
}

.location-title { font-size: 1.3rem; font-weight: 700; color: var(--color-deep-blue); margin-bottom: var(--space-md); }
.location-address { color: var(--color-text-light); line-height: 1.9; margin-bottom: var(--space-lg); }

/* ==========================================================================
   13. Contact Page
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
}

.contact-info-card {
    background: var(--gradient-hero);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}
.contact-info-card::after {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    background: var(--color-cyan);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    bottom: -80px; right: -60px;
}

.contact-info-title { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--space-md); position: relative; z-index: 1; }
.contact-info-desc  { opacity: 0.9; margin-bottom: var(--space-2xl); line-height: 1.8; position: relative; z-index: 1; }

.contact-list { display: flex; flex-direction: column; gap: var(--space-xl); position: relative; z-index: 1; }
.contact-list-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.contact-list-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}
.contact-list-label { font-size: 0.82rem; opacity: 0.7; margin-bottom: 2px; }
.contact-list-value { font-weight: 600; }

/* Contact Form */
.contact-form-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-light-gray);
}

.form-title { font-size: 1.4rem; font-weight: 700; color: var(--color-deep-blue); margin-bottom: var(--space-xl); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--color-dark-gray); margin-bottom: var(--space-sm); }

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-light-gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-off-white);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    outline: none;
}
.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(0,188,212,0.15);
    background: var(--color-white);
}

.form-textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.main-footer { position: relative; }

.footer-wave { margin-bottom: -2px; }
.footer-wave svg { display: block; width: 100%; height: 80px; }

.footer-body {
    background: var(--color-deep-blue);
    color: rgba(255,255,255,0.85);
    padding-bottom: var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo-row { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.footer-brand { font-size: 1.2rem; font-weight: 700; color: var(--color-white); }
.footer-desc { opacity: 0.75; font-size: 0.92rem; line-height: 1.8; }

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a {
    font-size: 0.92rem;
    opacity: 0.7;
    transition: opacity var(--duration) var(--ease), color var(--duration) var(--ease);
}
.footer-links a:hover { opacity: 1; color: var(--color-cyan); }

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    opacity: 0.75;
}
.footer-contact-list svg { flex-shrink: 0; margin-top: 3px; opacity: 0.8; }

.footer-umbrella {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-umbrella p {
    font-size: 0.92rem;
    opacity: 0.75;
    line-height: 1.8;
}

.footer-bottom {
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.82rem;
    opacity: 0.6;
}

/* ==========================================================================
   15. Animations — Scroll Reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.visible,
.reveal-right.visible { transform: translateX(0); }

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 100ms); }

/* ==========================================================================
   16. Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid,
    .about-hero-grid,
    .showcase-card { grid-template-columns: 1fr; }

    .hero-visual { display: none; }
    .about-visual { order: -1; }
    .about-stats-box { grid-template-columns: repeat(4, 1fr); }

    .mv-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    /* Show hamburger, hide desktop nav */
    .hamburger { display: flex; }
    .header-cta { display: none; }

    .main-nav {
        position: fixed;
        top: calc(var(--topbar-h) + var(--header-h));
        left: 0; right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all var(--duration) var(--ease);
        z-index: 999;
        padding: var(--space-lg);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); width: 100%; display: block; }

    .about-stats-box { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }

    .hero { min-height: 70vh; }
    .hero-stats { gap: var(--space-lg); }

    .admission-hero { padding: var(--space-2xl) var(--space-lg); }

    .top-bar { font-size: 0.75rem; }
    .top-bar-inner { gap: var(--space-sm); }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: var(--space-md); }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   17. RTL Specific Adjustments
   ========================================================================== */
[dir="rtl"] .timeline-list::before { right: 20px; left: auto; }
[dir="ltr"] .timeline-list::before { left: 20px; right: auto; }

[dir="rtl"] .mv-card::before { right: 0; left: auto; }
[dir="ltr"] .mv-card::before { left: 0; right: auto; }

[dir="rtl"] .feature-card::before { transform-origin: right; }
[dir="ltr"] .feature-card::before { transform-origin: left; }

/* ==========================================================================
   18. Print Styles
   ========================================================================== */
@media print {
    .top-bar, .hamburger, .lang-toggle, .footer-wave { display: none; }
    .hero { min-height: auto; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .main-header { position: static; box-shadow: none; }
}

/* ==========================================================================
   19. Official Logos & Compliance Footer
   ========================================================================== */
.isdp-nav-logo { height: 50px; width: auto; object-fit: contain; }
.hero-3d-logo { width: 140px; height: auto; object-fit: contain; margin-bottom: 10px; }

.footer-umbrella { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid rgba(255,255,255,0.1); }
.umbrella-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0,0,0,0.2);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
}
.jamia-official-logo { height: 80px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); }
.umbrella-text-box { text-align: start; }
.umbrella-heading { font-size: 0.85rem; color: var(--color-cyan); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; }
.footer-umbrella p { font-size: 0.92rem; opacity: 0.85; line-height: 1.7; margin: 0; }

@media (max-width: 768px) {
    .umbrella-content { flex-direction: column; text-align: center; }
    .umbrella-text-box { text-align: center; }
}

.footer-isdp-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
