/* ==========================================================================
   PREMIUM PORTFOLIO STYLING - WALID M A SHAT (LIGHT MODE)
   ========================================================================== */

/* --- Custom Variables & Reset --- */
:root {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(2, 132, 199, 0.3);

    --accent-blue: #0284c7;
    --accent-blue-deep: #0369a1;
    --accent-gold: #d97706;
    --accent-gold-deep: #b45309;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --section-padding-desktop: 100px 24px;
    --section-padding-mobile: 60px 16px;

    --gradient-blue: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-deep) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-deep) 100%);
    --gradient-text: linear-gradient(135deg, #0f172a 30%, var(--accent-blue-deep) 100%);
    --gradient-text-gold: linear-gradient(135deg, #0f172a 30%, var(--accent-gold-deep) 100%);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-glow-blue: 0 15px 35px rgba(2, 132, 199, 0.08), 0 3px 10px rgba(0, 0, 0, 0.01);
    --shadow-glow-gold: 0 15px 35px rgba(217, 119, 6, 0.08), 0 3px 10px rgba(0, 0, 0, 0.01);

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue-deep) #e2e8f0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Scrollbar Customization --- */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* --- HTML5 Canvas Background --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

/* --- Glassmorphic Card Mixin --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(190%);
    -webkit-backdrop-filter: blur(16px) saturate(190%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.04);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-4px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-blue);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.3);
    transform: scale(1.03);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold-deep);
    border: 1.5px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(217, 119, 6, 0.05);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.15);
    transform: scale(1.03);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    transition: var(--transition-smooth);
}

.btn:hover .btn-icon {
    transform: translateX(3px) translateY(-1px);
}

/* --- Sticky Navigation Bar --- */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: var(--transition-smooth);
}

.navbar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
}

.logo-w {
    color: var(--accent-blue);
}

.logo-s {
    color: var(--accent-gold-deep);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    padding: 8px 20px !important;
    background: rgba(2, 132, 199, 0.03);
    color: var(--accent-blue-deep);
}

.nav-btn:hover {
    background: rgba(2, 132, 199, 0.08);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

.nav-btn::after {
    display: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.mobile-nav-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

/* Ambient Background Glow Orbs */
.hero-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.45;
}

.glow-blue {
    top: 15%;
    left: 20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
    animation: floatGlow 8s infinite alternate ease-in-out;
}

.glow-gold {
    bottom: 20%;
    right: 20%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.22) 0%, transparent 70%);
    animation: floatGlow 10s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -25px) scale(1.1);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    mask-image: radial-gradient(circle, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 75%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 820px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Status Availability Pill */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(2, 132, 199, 0.2);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.hero-status-pill:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.15);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.status-text {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-blue-deep);
    letter-spacing: 0.03em;
}

/* Avatar Frame & Glows */
.hero-avatar-wrapper {
    position: relative;
    width: 175px;
    height: 175px;
    margin: 0 auto 32px;
    animation: heroFloat 5s ease-in-out infinite;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-9px) rotate(0.5deg);
    }
}

.avatar-glow {
    position: absolute;
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(217, 119, 6, 0.12) 50%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 4s infinite ease-in-out;
}

.avatar-border-rotate {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(0deg, var(--accent-blue) 0%, transparent 50%, var(--accent-gold) 100%);
    animation: rotateBorder 5s linear infinite;
    z-index: 0;
}

.avatar-frame {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 4px;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.hero-avatar-wrapper:hover .avatar-img {
    transform: scale(1.05);
}

.badge-visa {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
    z-index: 2;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.hero-avatar-wrapper:hover .badge-visa {
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--accent-gold-deep);
    min-height: 2.4rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typed-cursor {
    color: var(--accent-blue);
    font-weight: 400;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

.hero-tagline {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 36px;
}

.btn-glow {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.03);
}

/* Executive Highlights Bar */
.hero-highlights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 28px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-blue-deep);
    line-height: 1.1;
}

.highlight-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.highlight-divider {
    width: 1px;
    height: 24px;
    background: rgba(15, 23, 42, 0.1);
}

@media (max-width: 640px) {
    .hero-highlights {
        flex-direction: column;
        gap: 12px;
        padding: 18px 24px;
        border-radius: 24px;
    }

    .highlight-divider {
        width: 60px;
        height: 1px;
    }
}

/* Scroll Hint */
.scroll-down-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.scroll-down-hint:hover {
    color: var(--accent-blue-deep);
    transform: translateX(-50%) translateY(3px);
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-icon .wheel {
    width: 3px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* --- Section Structure --- */
section {
    padding: 100px 24px;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.header-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-blue);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 3.5fr 2.5fr;
    gap: 24px;
    align-items: stretch;
}

.about-text-card {
    padding: 40px;
}

.card-highlight-title {
    font-size: 1.4rem;
    color: var(--accent-blue-deep);
    margin-bottom: 24px;
    font-weight: 600;
}

.about-paragraph {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-paragraph:last-of-type {
    margin-bottom: 0;
}

.about-details-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-details-card:hover {
    border-color: rgba(217, 119, 6, 0.25);
    box-shadow: var(--shadow-glow-gold);
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.about-details-card:hover .detail-icon {
    color: var(--accent-gold-deep);
    border-color: rgba(217, 119, 6, 0.2);
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
}

.text-gold {
    color: var(--accent-gold-deep);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.skill-card {
    padding: 32px;
}

.skill-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.skill-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.04);
    border: 1px solid rgba(2, 132, 199, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue-deep);
    flex-shrink: 0;
}

.skill-card:hover .skill-icon-box {
    background: var(--gradient-blue);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.skill-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.skill-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.skill-progress-wrapper {
    width: 100%;
    height: 5px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    /* Loaded dynamically by script.js */
    background: var(--gradient-blue);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card:hover .skill-progress-bar {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-gold) 100%);
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 40px auto 0;
}

.skill-pill {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.skill-pill:hover {
    background: rgba(2, 132, 199, 0.05);
    border-color: var(--accent-blue);
    color: var(--accent-blue-deep);
    transform: translateY(-2px);
}

/* --- Experience Section --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue) 0%, rgba(2, 132, 199, 0.1) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

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

.timeline-badge {
    position: absolute;
    left: 11px;
    top: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold-deep);
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
}

.timeline-card {
    padding: 40px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.role-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue-deep);
}

.company-name {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--accent-gold-deep);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.15);
    color: var(--accent-blue-deep);
    padding: 6px 16px;
    border-radius: 20px;
}

.experience-intro {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.achievements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.achievements-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.bullet-icon {
    color: var(--accent-gold-deep);
    flex-shrink: 0;
    margin-top: 4px;
}

/* --- Projects Section --- */
.projects-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-blue);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-blue);
}

.stat-item:hover::after {
    width: 100%;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.15);
    color: var(--accent-blue-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.stat-item:hover .stat-icon {
    background: var(--gradient-blue);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
    transform: scale(1.05);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

/* --- Project Category Filter Bar --- */
.project-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.filter-btn:hover {
    background: rgba(2, 132, 199, 0.06);
    border-color: var(--accent-blue);
    color: var(--accent-blue-deep);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-blue);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.28);
}

.filter-count {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.08);
    color: inherit;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.project-card {
    padding: 28px 26px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-bottom: 3px solid transparent;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Slide gold border on hover */
.project-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-gold);
    transition: var(--transition-smooth);
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-blue);
}

.project-card:hover::after {
    width: 100%;
    left: 0;
}

/* Fixed Header Alignment for Badges & Icons */
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 46px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.project-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 14px;
    border-radius: 10px;
    z-index: 1;
    white-space: nowrap;
}

.badge-ministry {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge-elections {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-federal {
    background: rgba(3, 105, 161, 0.08);
    color: #0369a1;
    border: 1px solid rgba(3, 105, 161, 0.2);
}

.badge-space {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-fund {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

/* Themed Brand Palette Icons & Micro-Animations */
.project-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.icon-ministry {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.2);
}

.icon-elections {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.2);
}

.icon-federal {
    background: rgba(3, 105, 161, 0.08);
    color: #0369a1;
    border-color: rgba(3, 105, 161, 0.2);
}

.icon-space {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.2);
}

.icon-fund {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.2);
}

/* Interactive Icon Hover Effects */
.project-card:hover .project-card-icon {
    transform: scale(1.12) rotate(4deg);
}

.project-card:hover .icon-ministry {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.project-card:hover .icon-elections {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.project-card:hover .icon-federal {
    background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(3, 105, 161, 0.35);
}

.project-card:hover .icon-space {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.project-card:hover .icon-fund {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

/* Tracking Hover Glow (Uses CSS variables updated by JS) */
.project-card[data-glow] {
    position: relative;
    overflow: hidden;
}

.project-glow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(350px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(2, 132, 199, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-glow-layer {
    opacity: 1;
}

.project-card-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #0f172a;
    transition: var(--transition-smooth);
}

.project-card:hover .project-title {
    color: var(--accent-blue-deep);
}

.project-card .project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.55;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.meta-tag {
    font-size: 0.72rem;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* --- Education & Certifications Section --- */
.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.subsection-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-edu {
    background: rgba(2, 132, 199, 0.08);
    color: var(--accent-blue);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.icon-cert {
    background: rgba(217, 119, 6, 0.08);
    color: var(--accent-gold-deep);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.edu-column,
.cert-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Staggered entry for Education & Cert cards */
.stagger-edu,
.stagger-cert {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.edu-column.visible .stagger-edu:nth-child(2),
.cert-column.visible .stagger-cert:nth-child(2) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.edu-column.visible .stagger-edu:nth-child(3),
.cert-column.visible .stagger-cert:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

/* Education Cards */
.edu-card {
    padding: 28px 26px;
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: rgba(2, 132, 199, 0.3);
    box-shadow: var(--shadow-glow-blue);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.degree-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-blue-deep);
    line-height: 1.3;
}

.school-name {
    font-size: 0.92rem;
    color: var(--accent-gold-deep);
    display: block;
    font-weight: 500;
    margin-top: 2px;
}

.edu-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.credential-meta {
    margin: 10px 0 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.badge-candidate {
    background: rgba(2, 132, 199, 0.08);
    color: var(--accent-blue-deep);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge-gpa {
    background: rgba(217, 119, 6, 0.08);
    color: var(--accent-gold-deep);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-verified {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.edu-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Certifications Layout */
.cert-card {
    display: flex;
    gap: 20px;
    padding: 26px;
    align-items: flex-start;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: var(--shadow-glow-gold);
}

.cert-icon-wrapper {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.logo-google-bg {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.2);
}

.logo-ibm-bg {
    background: rgba(11, 92, 171, 0.08);
    border-color: rgba(11, 92, 171, 0.2);
}

.cert-card:hover .cert-icon-wrapper {
    transform: scale(1.08) rotate(3deg);
}

.cert-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
}

.text-google {
    color: var(--accent-blue-deep);
}

.text-ibm {
    color: #0b5cab;
}

.cert-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cert-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.cert-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.cert-issuer {
    font-size: 0.8rem;
    color: var(--accent-gold-deep);
    font-weight: 600;
    margin-bottom: 8px;
}

.cert-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Recommendations Section --- */
.recommendations-section {
    padding: 100px 24px;
    position: relative;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
    gap: 28px;
    margin-top: 10px;
}

.recommendation-card {
    position: relative;
    padding: 32px 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.recommendation-card:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: var(--shadow-glow-blue);
}

/* Quote background icon */
.quote-icon-bg {
    position: absolute;
    top: 24px;
    right: 28px;
    color: rgba(2, 132, 199, 0.07);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.recommendation-card:hover .quote-icon-bg {
    color: rgba(2, 132, 199, 0.15);
    transform: scale(1.15) rotate(-5deg);
}

/* Header & Avatar */
.rec-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.rec-avatar-wrapper {
    flex-shrink: 0;
}

.rec-avatar-initials {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.avatar-moath {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.avatar-salem {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.avatar-abdul {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.avatar-yousef {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.rec-author-info {
    flex: 1;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rec-author-name {
    font-size: 1.15rem;
    font-weight: 750;
    color: #0f172a;
}

.relation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(2, 132, 199, 0.08);
    color: var(--accent-blue-deep);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.rec-author-role {
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

/* Quote Body */
.rec-body {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.rec-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #334155;
    font-style: italic;
}

.rec-text strong {
    color: var(--accent-blue-deep);
    font-weight: 700;
    font-style: normal;
}

/* Footer & Tags */
.rec-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
    position: relative;
    z-index: 1;
}

.project-tag-pill {
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-gold-deep);
    background: rgba(217, 119, 6, 0.08);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(217, 119, 6, 0.18);
}

.rec-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 24px;
    position: relative;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.contact-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    border-radius: 16px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    min-width: 0;
}

.contact-item-card:hover {
    transform: translateY(-5px);
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: var(--shadow-glow-blue);
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.icon-email {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.icon-phone {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.icon-linkedin {
    background: rgba(3, 105, 161, 0.08);
    color: #0369a1;
    border: 1px solid rgba(3, 105, 161, 0.2);
}

.icon-location {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.contact-item-card:hover .contact-icon {
    transform: scale(1.1) rotate(3deg);
    color: #ffffff;
    border-color: transparent;
}

.contact-item-card:hover .icon-email {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.contact-item-card:hover .icon-phone {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.contact-item-card:hover .icon-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #004182 100%);
}

.contact-item-card:hover .icon-location {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.contact-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.contact-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 0.84rem;
    font-weight: 650;
    color: #0f172a;
    word-break: break-all;
    margin-top: 2px;
    line-height: 1.35;
}

.contact-action-btn {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.contact-item-card:hover .contact-action-btn {
    opacity: 1;
    color: var(--accent-blue-deep);
    transform: translateX(0);
}

@media (max-width: 1150px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 60px 16px;
    }
}

/* --- Footer --- */
.footer-container {
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 24px 30px;
    position: relative;
}

.footer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(2, 132, 199, 0.3) 35%, rgba(217, 119, 6, 0.3) 65%, transparent 100%);
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-main-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-footer {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 6px;
}

.footer-brand-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 380px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-nav-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.footer-nav-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-nav-links a:hover {
    color: var(--accent-blue-deep);
    transform: translateX(3px);
}

.footer-social-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background: var(--gradient-blue);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue-deep);
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.15);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.back-to-top-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

/* Footer Bottom Row */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.copyright-text {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer-visa-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-gold-deep);
    background: rgba(217, 119, 6, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

@media (max-width: 992px) {
    .footer-main-row {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-social-col {
        grid-column: span 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .footer-social-icons {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 44px 20px 24px;
    }

    .footer-wrapper {
        gap: 32px;
    }

    .footer-main-row {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-brand-col {
        align-items: center;
    }

    .footer-brand-desc {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .footer-nav-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
        width: 100%;
        max-width: 320px;
        justify-items: center;
    }

    .footer-nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .footer-social-col {
        grid-column: span 1;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .social-icon-btn {
        width: 44px;
        height: 44px;
    }

    .back-to-top-btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.84rem;
    }

    .footer-bottom-row {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding-top: 20px;
    }
}

/* --- Smooth Reveal on Scroll Animation --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- Directional Reveal Animations --- */
.reveal-fade-up,
.reveal-fade-right,
.reveal-fade-left,
.reveal-fade-down {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up {
    transform: translateY(35px);
}

.reveal-fade-down {
    transform: translateY(-25px);
}

.reveal-fade-right {
    transform: translateX(-40px);
}

.reveal-fade-left {
    transform: translateX(40px);
}

.reveal-fade-up.visible,
.reveal-fade-down.visible,
.reveal-fade-right.visible,
.reveal-fade-left.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered entry for detail items */
.stagger-detail {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-details-card.visible .stagger-detail:nth-child(1) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.about-details-card.visible .stagger-detail:nth-child(2) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.about-details-card.visible .stagger-detail:nth-child(3) {
    transition-delay: 0.45s;
    opacity: 1;
    transform: translateY(0);
}

.about-details-card.visible .stagger-detail:nth-child(4) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

.about-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* --- Animation Keyframes --- */
@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes rotateBorder {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, 8px);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* --- Comprehensive Responsive Media Queries --- */

/* Laptops & Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.4rem, 5vw, 3rem);
    }

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

    .about-text-card,
    .about-details-card {
        padding: 32px;
    }

    .edu-cert-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projects-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .timeline-card {
        padding: 32px;
    }
}

/* Mobile Devices & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
    section {
        padding: 70px 18px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.6rem, 4vw + 0.5rem, 2rem);
    }

    .projects-stats-grid {
        grid-template-columns: 1fr;
    }

    .navbar-wrapper {
        padding: 14px 18px;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(248, 250, 252, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 18px;
        gap: 12px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
        transition: var(--transition-smooth);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        border-radius: 10px;
    }

    .nav-btn {
        width: 100%;
        display: inline-flex;
        justify-content: center;
    }

    .hero-section {
        padding: 100px 18px 50px;
        min-height: auto;
    }

    /* Prevent mobile scroll jitter & layout thrashing */
    .glass-card,
    .contact-item-card,
    .project-card,
    .recommendation-card,
    .skill-card {
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .glow-blue,
    .glow-gold {
        animation: none;
        opacity: 0.25;
    }

    .hero-avatar-wrapper {
        animation: none;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1.25rem;
        min-height: auto;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .contact-form-card {
        padding: 28px 20px;
    }

    .timeline::before {
        left: 14px;
    }

    .timeline-item {
        padding-left: 42px;
        margin-bottom: 30px;
    }

    .timeline-badge {
        left: 5px;
        top: 14px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .timeline-date {
        align-self: flex-start;
        font-size: 0.85rem;
        padding: 4px 12px;
    }

    .about-text-card,
    .about-details-card,
    .skill-card,
    .timeline-card,
    .edu-card,
    .project-card {
        padding: 24px 20px;
    }
}

/* Small Mobile & Compact Devices (max-width: 480px) */
@media (max-width: 480px) {
    section {
        padding: 50px 14px;
    }

    .hero-section {
        padding: 90px 14px 50px;
    }

    .hero-avatar-wrapper {
        width: 140px;
        height: 140px;
        margin-bottom: 28px;
    }

    .badge-visa {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

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

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    .pills-container {
        gap: 8px;
    }

    .skill-pill {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    .contact-item-card {
        padding: 18px 16px;
        gap: 14px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

    .contact-value {
        font-size: 0.88rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .footer-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* Extra Small Screens (max-width: 360px) */
@media (max-width: 360px) {
    .cert-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .cert-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .detail-item {
        gap: 12px;
    }

    .detail-icon {
        width: 38px;
        height: 38px;
    }

    .detail-value {
        font-size: 0.9rem;
    }
}

/* Short Viewport Height Adjustments */
@media (max-height: 650px) {
    .hero-section {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .scroll-down-hint {
        display: none;
    }
}