:root {
    --deep-navy: #060b14;
    --charcoal: #0d1117;
    --dark-surface: #111827;
    --card-bg: #151d2b;
    --gold: #c9a84c;
    --gold-light: #d4af5e;
    --gold-dark: #a8892e;
    --electric-blue: #0ea5e9;
    --teal: #14b8a6;
    --teal-glow: rgba(20, 184, 166, 0.35);
    --white: #f1f5f9;
    --light-grey: #94a3b8;
    --medium-grey: #64748b;
    --dark-grey: #334155;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(201, 168, 76, 0.3);
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Inter', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Noto Naskh Arabic', serif;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.15);
    --shadow-blue: 0 0 40px rgba(14, 165, 233, 0.12);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --max-width: 1280px;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--deep-navy);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--gold);
    color: #000;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep-navy); }
::-webkit-scrollbar-thumb { background: var(--dark-grey); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* Navigation */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    transition: all var(--transition-smooth);
    background: transparent;
}
.nav.scrolled {
    background: rgba(6, 11, 20, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-logo {
    font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem;
    letter-spacing: -0.02em; color: var(--white); text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem; z-index: 1001;
}
.nav-logo .logo-accent { color: var(--gold); font-weight: 900; }
.nav-logo .logo-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal); box-shadow: 0 0 12px var(--teal-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px var(--teal-glow); }
    50% { box-shadow: 0 0 22px rgba(20, 184, 166, 0.7); }
}
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--light-grey); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; letter-spacing: 0.01em; transition: color var(--transition-smooth);
    position: relative; padding: 0.3rem 0;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px;
    background: var(--gold); transition: width var(--transition-smooth); border-radius: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
    background: var(--gold); color: #000 !important;
    padding: 0.55rem 1.3rem !important; border-radius: 50px;
    font-weight: 600 !important; font-size: 0.85rem !important;
    transition: all var(--transition-smooth) !important; letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--gold-light) !important; box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.nav-cta::after { display: none !important; }

.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    z-index: 1001; padding: 8px; background: none; border: none;
}
.hamburger span {
    width: 26px; height: 2px; background: var(--white);
    border-radius: 2px; transition: all var(--transition-smooth); transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
    position: fixed; inset: 0; background: rgba(6, 11, 20, 0.97);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    z-index: 999; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2rem; opacity: 0; pointer-events: none;
    transition: opacity var(--transition-smooth);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
    color: var(--white); text-decoration: none; font-size: 1.5rem;
    font-weight: 600; letter-spacing: 0.02em; transition: color var(--transition-smooth);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .nav-cta-mobile {
    background: var(--gold); color: #000 !important;
    padding: 0.8rem 2rem; border-radius: 50px; font-weight: 700;
    font-size: 1.1rem !important; margin-top: 1rem;
}

/* Sections */
.section {
    padding: clamp(.5rem, 3vw, 2rem) clamp(1.5rem, 5vw, 4rem);
    position: relative; max-width: var(--max-width); margin: 0 auto;
}
.section-label {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 1rem; position: relative; padding-left: 2rem;
}
.section-label::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1.4rem; height: 1.5px; background: var(--gold); border-radius: 1px;
}
.section-title {
    font-family: var(--font-heading); font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.03em;
    line-height: 1.15; margin-bottom: 1.5rem; color: var(--white);
}
.section-title .highlight { color: var(--gold); }
.section-subtitle { color: var(--light-grey); font-size: 1.1rem; max-width: 600px; line-height: 1.7; }

/* Hero */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative;
    overflow: hidden; padding: var(--header-height) clamp(1.5rem, 5vw, 4rem) 4rem;
    max-width: var(--max-width); margin: 0 auto;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7; }
.hero-content { position: relative; z-index: 2; max-width: 750px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--glass-bg); border: 1px solid var(--border-gold);
    border-radius: 50px; padding: 0.5rem 1.2rem; font-size: 0.8rem;
    font-weight: 600; letter-spacing: 0.04em; color: var(--gold-light);
    margin-bottom: 2rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}
.hero-badge .badge-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
    box-shadow: 0 0 10px var(--teal-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}
.hero h1 {
    font-family: var(--font-heading); font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.04em;
    line-height: 1.08; margin-bottom: 1.5rem; color: var(--white);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero h1 .gold-text { color: var(--gold); }
.hero-subtitle {
    font-size: 1.15rem; color: var(--light-grey); margin-bottom: 2.5rem;
    line-height: 1.7; max-width: 550px; animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-subtitle .arabic-accent { font-family: var(--font-arabic); font-size: 1rem; color: var(--gold); margin-left: 0.4rem; font-weight: 500; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.8s ease-out 0.3s both; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none;
    cursor: pointer; border: none; transition: all var(--transition-smooth);
    font-family: var(--font-body);
}
.btn-primary { background: var(--gold); color: #000; box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 0 50px rgba(201, 168, 76, 0.3); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.25); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(201, 168, 76, 0.06); transform: translateY(-3px); }
.hero-stats { display: flex; gap: 3rem; margin-top: 3.5rem; animation: fadeInUp 0.8s ease-out 0.4s both; }
.hero-stat { text-align: left; }
.hero-stat-number { font-family: var(--font-heading); font-weight: 900; font-size: 2.2rem; letter-spacing: -0.03em; color: var(--white); line-height: 1; }
.hero-stat-number .plus { color: var(--gold); }
.hero-stat-label { font-size: 0.8rem; color: var(--medium-grey); letter-spacing: 0.03em; margin-top: 0.3rem; }

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

/* ── About Section ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--charcoal) 0%, #1a2740 50%, var(--dark-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-placeholder .profile-icon {
    font-size: 6rem;
    opacity: 0.5;
    color: var(--gold);
}
.about-image-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--gold);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-gold);
}
.about-text .arabic-quote {
    font-family: var(--font-arabic);
    color: var(--gold);
    font-size: 1.3rem;
    line-height: 1.8;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-right: 3px solid var(--gold);
    background: rgba(201, 168, 76, 0.04);
    border-radius: 8px;
}

/* ── Achievements ── */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding-top: 1rem;
}


/* ── Card container (no backdrop-filter, no overflow hidden) ── */
.achievement-card {
    background: none;                 /* remove the glass background from the real element */
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all var(--transition-smooth);
    overflow: visible;                /* safe, no backdrop-filter on this element */
    display: flex;
    flex-direction: column;
    align-items: center;      /* centre children horizontally */
    text-align: center;
}

/* Pseudo-element that creates the glass effect BEHIND the content */
.achievement-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;              /* same radius */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;                      /* place it behind the text */
    transition: inherit;              /* smooth hover changes */
}

/* Thin gradient line on top – keep this, but adjust if needed */
.achievement-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 1;                       /* above the blur, but below the text? It's a tiny line, okay */
}

/* Hover effects */
.achievement-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}
.achievement-card:hover::after {
    opacity: 1;
}

/* Icon, text, metric – no changes needed */
.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;               /* ensure it sits above the pseudo-element */
    z-index: 1;
}
.achievement-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}
.achievement-card p {
    color: var(--light-grey);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
.achievement-metric {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--gold);
    letter-spacing: -0.03em;
    margin: 0.8rem 0 0.3rem;
    position: relative;
    z-index: 1;
}


/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--teal), var(--electric-blue));
    border-radius: 1px;
}
.timeline-item {
    position: relative;
    padding: 2rem 0 2rem 2.5rem;
    border-left: 2px solid transparent;
    transition: all var(--transition-smooth);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 16px rgba(201, 168, 76, 0.5);
    transition: all var(--transition-smooth);
}
.timeline-item.current::before {
    background: var(--teal);
    box-shadow: 0 0 20px var(--teal-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}
.timeline-item h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.3rem;
}
.timeline-item .role {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}
.timeline-item .company {
    color: var(--light-grey);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.timeline-item .impact {
    color: var(--medium-grey);
    font-size: 0.85rem;
    line-height: 1.6;
    font-style: italic;
}
.timeline-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.12);
    color: var(--teal);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Certifications ── */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
.cert-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.cert-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.cert-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    display: block;
}
.cert-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 0.3rem;
}
.cert-card span {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ── Thought Leadership ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.blog-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}
.blog-card-image {
    height: 180px;
    background: linear-gradient(135deg, #1a2740, #0d1b2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.7;
}
.blog-card-body {
    padding: 1.8rem;
}
.blog-card-body h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.blog-card-body p {
    color: var(--light-grey);
    font-size: 0.9rem;
    line-height: 1.6;
}
.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--medium-grey);
    margin-top: 1rem;
    letter-spacing: 0.03em;
}

/* ── Speaking ── */
.speaking-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.speaking-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.speaking-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.speaking-card .event {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}
.speaking-card .location {
    color: var(--light-grey);
    margin: 0.5rem 0 2rem;
}

/* ── Expertise Grid ── */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.expertise-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.expertise-item:hover {
    border-color: var(--teal);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.1);
    transform: translateY(-5px);
}
.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.expertise-item h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

/* ── Vision ── */
.vision-block {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}
.vision-block .quote-icon {
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.4;
    margin-bottom: 1rem;
}
.vision-block blockquote {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    letter-spacing: -0.01em;
}
.vision-block .vision-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}
.vision-tag {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact-form input,
.contact-form textarea {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
    resize: vertical;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}
.contact-form textarea {
    min-height: 140px;
}
.contact-form button {
    align-self: flex-start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--light-grey);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition-smooth);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--glass-bg);
}
.contact-link:hover {
    color: var(--gold);
    border-color: var(--border-gold);
}
.contact-link .link-icon {
    font-size: 1.5rem;
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--medium-grey);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* ── Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Projects Grid ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.project-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
}
.project-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--charcoal);
}
.project-slideshow .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.project-slideshow .slide.active {
    opacity: 1;
    pointer-events: auto;
}
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    z-index: 2;
    opacity: 0;
}
.project-slideshow:hover .slideshow-arrow {
    opacity: 1;
}
.slideshow-arrow.prev { left: 12px; }
.slideshow-arrow.next { right: 12px; }
.slideshow-arrow:hover {
    background: var(--gold);
    color: #000;
}
.slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background var(--transition-smooth);
    border: none;
    padding: 0;
}
.dot.active {
    background: var(--gold);
}
.project-info {
    padding: 1.5rem 1.8rem;
}
.project-info h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.project-info p {
    color: var(--light-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.project-tag {
    display: inline-block;
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-light);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-right: 0.5rem;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

/* ── Lightbox Overlay ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; color: var(--gold); }
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    transition: opacity 0.4s ease;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
    opacity: 0.7;
}
.lightbox-nav:hover { background: var(--gold); border-color: var(--gold); color: #000; opacity: 1; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
}
.lightbox-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.5); cursor: pointer; border: none;
    transition: background 0.3s;
}
.lightbox-dots .dot.active { background: var(--gold); }
body.lightbox-active { overflow: hidden; }

/* ── Utility classes ── */
.mt-1 { margin-top: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-2-5 { margin-bottom: 2.5rem; }
.mb-0-5 { margin-bottom: 0.5rem; }
.text-light-grey { color: var(--light-grey); }
.text-gold { color: var(--gold); }
.fw-600 { font-weight: 600; }
.speaking-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}
.footer-tagline {
    margin-top: 0.3rem;
    color: var(--gold);
    font-weight: 600;
}

/* ── Responsive Media Queries ── */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
        aspect-ratio: 1/1;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
        margin-right: 26px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .hero-stat-number {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline {
        padding-left: 1rem;
    }
    .timeline-item {
        padding-left: 1.5rem;
    }
    .speaking-card {
        padding: 2rem 1.5rem;
    }
    .vision-block {
        padding: 2rem 1.5rem;
    }
    .vision-block blockquote {
        font-size: 1.1rem;
    }
    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .certs-grid {
        grid-template-columns: 1fr;
    }
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
}

/* If you still want the desktop sections to be tighter, keep this */
@media (min-width: 1025px) {
    .section {
        padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
        padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
    }
}

/* ── Chat Widget ── */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}
.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    z-index: 9999;
}
.chat-toggle:hover {
    background: var(--gold-light);
    transform: scale(1.1);
}
.chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    max-height: 480px;
    background: var(--charcoal);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.chat-panel.open {
    display: flex;
}
.chat-header {
    background: var(--gold);
    color: #000;
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-close {
    background: none;
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 340px;
    background: var(--dark-surface);
}
.chat-message {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: fadeInUp 0.3s ease;
}
.chat-message.user {
    align-self: flex-end;
    background: var(--gold);
    color: #000;
    border-bottom-right-radius: 4px;
}
.chat-message.assistant {
    align-self: flex-start;
    background: var(--card-bg);
    color: var(--white);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}
.chat-input-area {
    display: flex;
    padding: 0.6rem;
    gap: 0.5rem;
    background: var(--charcoal);
    border-top: 1px solid var(--border-subtle);
}
.chat-input-area input {
    flex: 1;
    background: var(--dark-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--white);
    outline: none;
    font-size: 0.85rem;
}
.chat-input-area input:focus {
    border-color: var(--gold);
}
.chat-input-area button {
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-input-area button:hover {
    background: var(--gold-light);
}
/* Mobile adjust */
@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 2rem);
        right: 1rem;
    }
}

/* ── Achievement Detail Overlay ── */
/* ── Overlay now scrolls from top, never cuts the hero image ── */
.detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 11, 20, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;       /* ← key change: start at the top, not centre */
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;            /* breathing room for the close button */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.detail-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.detail-container {
    background: var(--charcoal);
    max-width: 860px;
    width: 100%;
    margin: 2rem 0;                /* auto vertical margin, but spaced from top */
    border-radius: 24px;
    border: 1px solid var(--border-gold);
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    color: var(--white);
}

.detail-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: var(--charcoal);   /* solid background to cover content under it */
    border: none;
    color: var(--light-grey);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;                   /* sits above the image */
    padding: 0.2rem 0.6rem;
    border-radius: 50%;
    transition: color 0.2s;
}
.detail-close:hover { color: var(--gold); }

.detail-hero {
    display: block;
    width: 100%;
    object-fit: contain;
    border-radius: 14px;
    margin: 1.5rem 0 1.5rem 0;     /* space above and below */
    border: 1px solid var(--border-subtle);
}

.detail-close:hover {
     color: var(--gold); }

.detail-pane {
    display: none;
}
.detail-pane.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}
.detail-pane h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.detail-pane p {
    color: var(--light-grey);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.detail-gallery {
    column-count: 2;
    column-gap: 0.6rem;          /* small gap between columns */
}

.detail-gallery img {
    width: 100%;
    display: block;
    margin-bottom: 0.6rem;       /* small gap between images in the same column */
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s;
    object-fit: unset;           /* no cropping / stretching */
}
.detail-gallery img:hover {
    transform: scale(1.02);
}
.detail-gallery img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s;
}
.detail-gallery img:hover {
    transform: scale(1.03);
}

/* Small icon inside achievement card (if you use <img>) */
.achievement-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.8rem;
    display: block;
}

/* Keep existing emoji style if you still use span */
.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 480px) {
    .detail-gallery {
        column-count: 1;
    }
}

/* ── "View" button on achievement cards ── */
.card-view-btn {
    display: inline-block;
    margin-top: auto;                 /* pushes it to the bottom */
    align-self: center;               /* redundant when parent has align-items:center, but safe */
    padding: 0.45rem 1.8rem;
    border: 1.5px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.25s ease;
    background: transparent;
    cursor: pointer;
}

.card-view-btn:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(201,168,76,0.3);
}



/* ── Articles Grid (original) ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.article-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
}

.article-card-image {
    height: 180px;
    background: linear-gradient(135deg, #1a2740, #0d1b2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.7;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-body h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.article-card-body p {
    color: var(--light-grey);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--medium-grey);
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.article-card-link:hover {
    color: var(--gold-light);
}
/* Ensure the cards shrink correctly inside the column */
.achievements-layout .achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ── Achievements two‑column layout: equal height, refined image ── */
.achievements-layout {
    align-items: stretch;           /* both columns become the same height */
    gap: 3rem;
}

/* Image wrapper fills its column, styled like a premium card */
.achievements-layout .about-image-wrapper {
    height: 100%;                  /* exactly matches the text column */
    aspect-ratio: unset;
    max-width: none;
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    position: relative;
}

/* Gold hover effect (optional) */
.achievements-layout .about-image-wrapper:hover {
    border-color: var(--border-gold);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.25);
    transform: translateY(-4px);
}

/* Image fits inside the container without cropping or stretching */
.achievements-layout .about-image-wrapper .profile-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;          /* shows the whole image elegantly */
    display: block;
}

/* Badge stays in place */
.achievements-layout .about-image-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--gold);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-gold);
    z-index: 2;
}
