/* ===== CSS Variables - Premium Design System ===== */
:root {
    --primary-color: #0078D4;
    /* Azure Blue */
    --secondary-gradient: linear-gradient(135deg, #7c3aed, #9333ea);
    /* Purple Gradient */
    --accent-purple: #7c3aed;
    --bg-dark: #0a0a0f;
    --bg-navy: #0f0f23;
    --card-bg: rgba(255, 255, 255, 0.03);
    /* Typography Scale */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    /* Type Scale - Desktop */
    --h1-size: 3.25rem;
    /* ~52px */
    --h1-height: 1.15;

    --h2-size: 2.25rem;
    /* ~36px */
    --h2-height: 1.2;

    --h3-size: 1.75rem;
    /* ~28px */
    --h3-height: 1.3;

    --subhead-size: 1.25rem;
    /* ~20px */
    --subhead-height: 1.6;

    --body-size: 1.125rem;
    /* ~18px */
    --body-height: 1.7;

    --small-size: 0.875rem;
    /* ~14px */

    /* Colors - Enhanced Contrast */
    --text-main: #f8fafc;
    /* Slate 50 - High Brightness */
    --text-secondary: #e2e8f0;
    /* Slate 200 - Better readbility than 300 */
    --text-muted: #94a3b8;
    /* Slate 400 - Meta info */

    /* Missing Variables Fix */
    --white: #ffffff;
    --text-light: #cbd5e1;
    /* Slate 300 */
    --text-mobile: #f8fafc;
    /* Same as text-main */
    --text-dark: #0f172a;
    /* Slate 900 */

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== Merged Hero Variables ===== */
    --navy-bg: #020617;
    --navy-card: #1e293b;
    --accent-blue: #38bdf8;
    --accent-purple-light: #a855f7;
    /* Renamed to avoid overlap */
    --glow-primary: rgba(124, 58, 237, 0.15);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: var(--body-height);
    color: var(--text-mobile);
    /* Default, overridden by styles */
    background: var(--bg-dark);
    overflow-x: hidden;
    font-size: var(--body-size);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Standardized Hero Typography */
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* UK Brand Symbol */
/* UK Brand Symbol - Legacy (Removed) */

h1,
h2,
h3,

h1 {
    font-size: var(--h1-size);
    line-height: var(--h1-height);
}

h2 {
    font-size: var(--h2-size);
    line-height: var(--h2-height);
    margin-top: 2rem;
}

h3 {
    font-size: var(--h3-size);
    line-height: var(--h3-height);
    font-weight: 600;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    max-width: 75ch;
}

/* Readability Max Width */

/* Mobile Type Scale */
@media (max-width: 768px) {
    :root {
        --h1-size: 2.25rem;
        /* ~36px */
        --h2-size: 1.75rem;
        /* ~28px */
        --h3-size: 1.375rem;
        /* ~22px */
        --subhead-size: 1.125rem;
        /* 18px */
        --body-size: 1rem;
        /* 16px */
    }
}

section {
    padding: 100px 0;
    background: var(--bg-dark);
    /* Force consistency across all sections */
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Grid Background Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

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

/* ===== Navigation - Dark Theme ===== */
/* ===== Navigation - Dark Theme ===== */
.navbar {
    background: rgba(2, 6, 23, 0.3);
    /* Navy transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

/* Scroll state styling could be added via JS, but this is a good default */

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
}


.nav-brand .brand-title {
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    margin: 0;
}

/* --- Global Navbar Fixes (Applies to all subpages) --- */
/* Excludes Home Page via inline-style override, or safely applies same styles */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand a {
    text-decoration: none;
    color: #fff;
}

/* Fix for outliers using .nav-logo class (e.g. 2026-01-11 post) */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.9;
}

.nav-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

/* Video Logo Styling */
.nav-logo-video {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-tagline {
    color: var(--text-light);
    font-size: 0.95rem;
    /* Increased from 0.85rem for readability */
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

.nav-resume-btn {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-resume-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

/* Resume CTA Button Styling */
.btn-nav-cta {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
}

/* Expertise Dropdown Menu */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Fix: Arrow is now handled by FontAwesome icon in HTML to avoid pseudo-element conflicts */
.nav-menu .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 25, 0.95);
    /* Deeper Premium Navy */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-top: 2px solid rgba(168, 85, 247, 0.5);
    /* Top Accent */
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(168, 85, 247, 0.1);
    /* Glow */
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-menu .dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.15), transparent);
    color: var(--white);
    padding-left: 2rem;
    border-left: 3px solid #a855f7;
    /* Left Accent Interaction */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Accessibility Skip Link */
.skip-to-content {
    position: absolute;
    top: -200px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    z-index: 10001;
    transition: top 0.3s;
    border-radius: 0 0 10px 0;
    text-decoration: none;
    font-weight: bold;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== Hero Section ===== */
.hero {
    background: var(--bg-dark);
    color: var(--white);
    padding: 220px 0 80px;
    /* Optimized padding for compact navbar */
    margin-top: 0;
    /* REMOVED margin so background goes to top */
    position: relative;
    z-index: 2;
    /* Sit above particles */
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Subtle glow effect */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Grid Layout */
.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    /* order overrides removed to keep text first */
    .hero-content {
        order: 1;
    }

    .hero-image-wrapper {
        order: 2;
        margin: 2rem auto 0;
    }

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

/* Profile Photo Section */
.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
}

.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.3), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Floating Glassmorphism Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.floating-badge i {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Badge Positions */
.badge-1 {
    top: -10px;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 40px;
    right: -30px;
    animation-delay: 0.5s;
}

.badge-3 {
    top: 80px;
    left: -40px;
    animation-delay: 1s;
}

.badge-4 {
    bottom: -10px;
    left: -30px;
    animation-delay: 1.5s;
}


/* ===== Hero Content Overrides ===== */
.hero .hero-content {
    text-align: center;
    position: relative;
    /* Ensure z-index works if needed */
    z-index: 10;
}

.hero .hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, #ffffff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero .stat {
    text-align: center;
}

.hero .stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.hero .stat p {
    font-size: 1rem;
    opacity: 0.9;
}

.hero .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@media (max-width: 768px) {
    .hero .hero-title {
        font-size: 2.5rem;
    }

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

    .hero .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero .stat h3 {
        font-size: 2rem;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Unified Section Styling */
.about,
.leadership-section,
.projects,
.expertise,
.certifications,
.contact {
    background: var(--bg-dark) !important;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    /* Slightly larger for Google-level impact */
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--text-main);
    position: relative;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-gradient);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Project Image Shadow */
.project-img-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-img-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Reading Container for Better Typography */
.reading-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reading-container p {
    max-width: 100%;
}

/* ===== About Section ===== */
.about {
    background: var(--light-bg);
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.lead {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 2;
    font-family: 'Inter', sans-serif;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.highlight:hover {
    transform: translateY(-5px);
}

.highlight i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* ===== Projects Section ===== */
.project-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.project-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.project-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.tech-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-highlights {
    margin: 2rem 0;
}

.project-highlights h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-highlights ul {
    list-style: none;
}

.project-highlights li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.project-highlights i {
    color: var(--success);
    margin-right: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== Expertise Section ===== */
.expertise-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}



.expertise-category h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.expertise-category h3 i {
    color: var(--primary-color);
}

.expertise-items {
    display: flex;
    flex-direction: column;
    /* Vertical Stack */
    gap: 0.75rem;
}

.expertise-items span {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    /* Comfortable click area */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary-color);
    /* Accent Line */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    /* Full Width */
}

.expertise-items span:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--white);
    border-color: rgba(56, 189, 248, 0.4);
    border-left-color: var(--secondary-color);
    /* Color shift on hover */
    transform: translateX(5px);
    /* Slide right effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== Skills Section ===== */
.skills {
    background: var(--light-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-category i {
    margin-right: 0.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e1;
    /* Light slate text for visibility */
    transition: all 0.3s;
}

.contact-method:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.5rem;
}

.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Form Input Styles */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    /* Slightly transparent white for dark mode */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Modern rounded corners */
    font-size: 1rem;
    font-family: inherit;
    color: var(--white);
    /* Ensure text is white */
    transition: var(--transition);
}

.form-group select option {
    background: var(--bg-navy);
    /* Ensure dropdown options have dark background */
    color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1002;
        margin-left: auto;
        /* Far right alignment */
        background: rgba(124, 58, 237, 0.2);
        border-color: rgba(124, 58, 237, 0.4);
    }

    .hamburger:active {
        transform: scale(0.95);
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        /* Remove gap for better control */
        transform: translateY(-100%);
        transition: all 0.3s ease-in-out;
        z-index: 1001;
        padding: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.5rem;
        padding: 15px 0;
        /* Touch-friendly padding */
        display: block;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s, transform 0.3s;
    }

    .nav-menu.active a {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(2) a {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(3) a {
        transition-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(4) a {
        transition-delay: 0.5s;
    }

    .nav-menu.active li:nth-child(5) a {
        transition-delay: 0.6s;
    }

    /* Mobile dropdown behavior */
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        margin: 0.5rem 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 8px;
    }

    .nav-menu .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .nav-menu .dropdown-toggle {
        justify-content: center;
    }

    .nav-menu .dropdown-toggle::after {
        margin-left: 0.5rem;
    }

    .nav-menu .dropdown-menu a {
        font-size: 1.2rem;
        padding: 12px 0;
    }

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

    .section-title {
        font-size: 2.25rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }

    .project-featured {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .project-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    /* Uses existing gradient or secondary color if defined, falling back */
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.6);
}

/* ===== Optimized Form Layout ===== */
.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);

}

/* ===== Newsletter / Beehiiv Embed ===== */
.beehiiv-embed-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}

.beehiiv-embed-frame {
    width: 100% !important;
    min-width: 100% !important;
    min-height: 320px;
    border: none;
    background: transparent;
}

/* ===== Premium Card Glows (Unified) ===== */
.pillar-card,
.expertise-category,
.credential-card,
.project-card-premium {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    /* Subtle Depth */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pillar-card:hover,
.expertise-category:hover,
.credential-card:hover,
.project-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 120, 212, 0.15);
    /* Azure Blue Glow */
    border-color: rgba(0, 120, 212, 0.3);
}

/* Specific Adjustments */
.pillar-header,
.credential-card h3 {
    margin-bottom: 0.5rem;
}

.project-card-premium {
    padding: 0;
    /* Remove padding for image bleed */
    display: flex;
    flex-direction: column;
}

.project-card-premium .project-content {
    padding: 2rem;
}

/* ===== Print Optimization ===== */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-family: 'Inter', serif;
    }

    .navbar,
    .footer,
    .scroll-progress,
    .scroll-to-top,
    .particles-canvas,
    canvas,
    .btn-primary,
    .view-case-study-btn,
    .ref-link-style {
        display: none !important;
    }

    .container,
    section,
    article {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    h1,
    h2,
    h3,
    h4 {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
        page-break-after: avoid;
    }

    p,
    li {
        color: #333 !important;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .project-card-premium,
    .blog-card-new,
    .pillar-card {
        page-break-inside: avoid;
        margin-bottom: 2rem !important;
        border: 1px solid #eee !important;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: #666;
    }

    .gradient-text,
    .text-highlight-gradient {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}

/* Premium Interactive Features & Animations */

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:hover i {
    transform: rotate(360deg);
}

/* Dark Theme Variables */
body.dark-theme {
    --bg-color: #0a0a0f;
    --text-color: #f8fafc;
    /* Soft White */
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
}

/* Dark Theme Styles */
body.dark-theme {
    background: var(--bg-dark) !important;
    color: var(--text-main) !important;
}

body.dark-theme .navbar {
    background: rgba(10, 10, 15, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
}

body.dark-theme .leadership-card,
body.dark-theme .cert-platform,
body.dark-theme .expertise-category,
body.dark-theme .pillar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

body.dark-theme .contact-form input,
body.dark-theme .contact-form textarea,
body.dark-theme .contact-form select {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

body.dark-theme .footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

body.dark-theme ::-webkit-scrollbar-track {
    background: #1a1f3a;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0078d4, #50e6ff);
}

/* Smooth theme transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar,
.leadership-card,
.cert-platform,
.expertise-category,
.pillar,
.contact-form input,
.contact-form textarea,
.contact-form select,
.footer {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}


/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    font-size: 4rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    background: var(--white);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ===== Scroll Progress Indicator ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1002;
    transition: width 0.1s ease-out;
}

/* ===== Skip to Content (Accessibility) ===== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    z-index: 1003;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== Scroll Indicator in Hero ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 1;
    transition: opacity 0.3s;
    cursor: pointer;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 36px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll-down 1.5s ease-in-out infinite;
}

@keyframes scroll-down {

    0%,
    100% {
        top: 8px;
        opacity: 1;
    }

    50% {
        top: 16px;
        opacity: 0.5;
    }
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Animated Gradient Orbs ===== */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.15), transparent);
    filter: blur(60px);
    animation: float-orb 20s ease-in-out infinite;
}

.gradient-orb:nth-child(2) {
    background: radial-gradient(circle, rgba(80, 230, 255, 0.15), transparent);
    animation-duration: 25s;
}

.gradient-orb:nth-child(3) {
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15), transparent);
    animation-duration: 30s;
}

@keyframes float-orb {

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

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

    50% {
        transform: translate(-50px, 100px) scale(0.9);
    }

    75% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

@media (max-width: 768px) {
    .orb-container {
        display: none !important;
        /* Performance: Disable on mobile */
    }
}

/* ===== Floating Animation ===== */
@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Glassmorphism Cards ===== */
.glass-card {
    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);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.leadership-card,
.cert-platform,
.expertise-category {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Enhanced Button Animations ===== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.95);
}

/* ===== Hero Image Glow Effect ===== */
.profile-photo img {
    position: relative;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(0, 120, 212, 0.3),
            0 0 40px rgba(0, 120, 212, 0.2);
    }

    50% {
        box-shadow: 0 10px 40px rgba(0, 120, 212, 0.5),
            0 0 60px rgba(0, 120, 212, 0.4);
    }
}

/* ===== Staggered Card Animations ===== */
.leadership-card:nth-child(1) {
    animation-delay: 0.1s;
}

.leadership-card:nth-child(2) {
    animation-delay: 0.2s;
}

.leadership-card:nth-child(3) {
    animation-delay: 0.3s;
}

.leadership-card:nth-child(4) {
    animation-delay: 0.4s;
}

.cert-platform:nth-child(1) {
    animation-delay: 0.1s;
}

.cert-platform:nth-child(2) {
    animation-delay: 0.2s;
}

.cert-platform:nth-child(3) {
    animation-delay: 0.3s;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

/* ===== Enhanced Hamburger Animation ===== */
.hamburger {
    cursor: pointer;
    transition: all 0.3s;
}

.hamburger span {
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active {
    transform: rotate(90deg);
}

/* ===== Parallax Hero Effect ===== */
.hero {
    position: relative;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ===== Card Hover Lift Effect ===== */
.leadership-card,
.cert-platform,
.expertise-category,
.pillar {
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {

    .leadership-card:hover,
    .cert-platform:hover,
    .expertise-category:hover,
    .pillar:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }
}

/* ===== Credential Cards Clickable ===== */
.cert-platform {
    cursor: pointer;
    user-select: none;
}

.cert-platform:active {
    transform: scale(0.98);
}

/* ===== Enhanced Nav Link Active State ===== */
.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

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

/* ===== Expertise Tag Hover Effect ===== */
.expertise-items span {
    position: relative;
    overflow: hidden;
}

.expertise-items span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.expertise-items span:hover::before {
    left: 100%;
}

/* ===== Achievement Number Animation ===== */
.achievement-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Form Focus States ===== */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

/* ===== Loading State for Button ===== */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== Mobile Responsive Enhancements ===== */
@media (max-width: 768px) {

    /* Navbar Layout Fix */
    .navbar .container {
        padding: 0.5rem 1rem !important;
    }

    .nav-brand .brand-title {
        font-size: 1.1rem !important;
    }

    .nav-tagline {
        display: none !important;
    }

    /* Hide Desktop Menu */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        z-index: 999;
        pointer-events: none;
    }

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

    .hamburger {
        display: flex !important;
    }

    /* Hero Text Adjustments */
    .hero-title {
        font-size: 2.5rem !important;
    }

    .gradient-orb {
        width: 250px;
        height: 250px;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .page-loader .loader-logo {
        font-size: 2.5rem;
    }

    /* Fix for Badge Alignment on Mobile */
    .role-badge,
    .tech-tag,
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        white-space: normal;
        /* Allow wrapping if needed */
        text-align: center;
    }
}

/* ===== Reduced Motion Support (Accessibility) ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gradient-orb,
    .scroll-indicator .mouse::before,
    .profile-photo img {
        animation: none !important;
    }
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {

    .glass-card,
    .leadership-card,
    .cert-platform {
        border: 2px solid currentColor;
    }
}

/* ===== Print Styles ===== */
@media print {

    .navbar,
    .scroll-progress,
    .scroll-indicator,
    .orb-container,
    .page-loader {
        display: none !important;
    }

    body {
        background: var(--card-bg);
    }

    .hero {
        page-break-after: always;
    }
}

/* ===== HOTFIX: Force Navbar Visibility (Moved from projects.html) ===== */
.navbar {
    background-color: var(--navy-bg) !important;
    backdrop-filter: none !important;
}

.nav-brand .brand-title {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-menu a {
    color: #e2e8f0 !important;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: #ffffff !important;
}

/* =========================================
   Project Card Fixes (Replacing Tailwind)
   ========================================= */

/* Main Card Container */
.project-card-premium {
    background-color: #0f172a;
    /* bg-slate-900 */
    border-radius: 1rem;
    /* rounded-2xl */
    border: 1px solid #1e293b;
    /* border-slate-800 */
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* shadow-xl */
}

.project-card-premium:hover {
    border-color: rgba(56, 189, 248, 0.3);
    /* hover:border-sky-500/30 */
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* =========================================
   Executive Blog Styling (Optimization Plan)
   ========================================= */

/* Import Merriweather for Journalistic Body Text */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&display=swap');

/* Executive Insight Card */
.executive-insight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left: 4px solid #a855f7;
    padding: 2rem;
    border-radius: 8px;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.executive-insight:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.executive-insight::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 8rem;
    color: rgba(168, 85, 247, 0.1);
    font-family: serif;
    line-height: 1;
}

.executive-insight h4 {
    margin-top: 0;
    color: #d8b4fe;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Strategic Text Highlights */
.blog-post-content.executive-mode p {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #e2e8f0;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 1rem;
    vertical-align: middle;
}

/* Executive Briefing Video Modal */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal-overlay.active .video-modal-content {
    transform: scale(1);
}

.video-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-modal-btn:hover {
    opacity: 1;
}

.video-container-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Interactive Assessment Widget */
.maturity-assessment-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.assessment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.assessment-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(96, 165, 250, 0.3);
}

.assessment-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #60a5fa;
    cursor: pointer;
}

.assessment-score-display {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#60a5fa 0%, rgba(255, 255, 255, 0.1) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    transition: background 0.5s ease;
}

/* Design Reviewer Widget */
.design-reviewer-container {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    margin: 3rem 0;
}

.reviewer-header {
    background: var(--navy-card);
    padding: 1.5rem;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviewer-tabs {
    display: flex;
    background: #0f172a;
    padding: 0.5rem;
    gap: 0.5rem;
    overflow-x: auto;
}

.reviewer-tab {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #94a3b8;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.reviewer-tab.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

.reviewer-content {
    padding: 2rem;
}

.checklist-group {
    display: none;
}

.checklist-group.active {
    display: block;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.check-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.check-item input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}

.check-label strong {
    display: block;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.check-label span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.review-summary {
    background: var(--navy-card);
    padding: 1rem;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #10b981;
    width: 0%;
    transition: width 0.3s ease;
}

.project-image-container {
    height: 12rem;
    /* h-48 */
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #1e293b;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s duration-700 ease-in-out;
}

.project-card-premium:hover .project-image-container img {
    transform: scale(1.05);
    /* group-hover:scale-105 */
}

.image-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a, transparent);
    opacity: 0.6;
}

/* Content Area */
.project-content {
    padding: 2rem;
    /* p-8 */
}

@media (min-width: 768px) {
    .project-content {
        padding: 2.5rem;
        /* md:p-10 */
    }
}

/* Header Flex Row */
.project-header-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .project-header-row {
        flex-direction: row;
        align-items: center;
    }
}

.project-title {
    font-size: 1.875rem;
    /* text-3xl */
    line-height: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    /* tracking-tight */
    font-family: 'Outfit', sans-serif;
}

.view-case-study-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    /* rounded-full */
    border: 1px solid #475569;
    /* border-slate-600 */
    color: #e2e8f0;
    /* text-slate-200 */
    font-weight: 600;
    font-size: 0.875rem;
    /* text-sm */
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.view-case-study-btn:hover {
    background-color: #1e293b;
    /* bg-slate-800 */
    border-color: rgba(14, 165, 233, 0.5);
    /* hover:border-sky-500/50 */
    color: #ffffff;
}

@media (min-width: 768px) {
    .view-case-study-btn {
        margin-top: 0;
    }
}

.project-description {
    color: #cbd5e1;
    /* text-slate-300 */
    font-size: 1.125rem;
    /* text-lg */
    line-height: 1.75;
    /* leading-relaxed */
    margin-bottom: 2rem;
    max-width: 56rem;
    /* max-w-4xl */
}

/* Metrics Grid - The Fix for Alignment */
.metrics-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background-color: rgba(30, 41, 59, 0.3);
    /* bg-slate-800/30 */
    padding: 1.5rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    border: 1px solid rgba(51, 65, 85, 0.3);
    /* border-slate-700/30 */
}

@media (min-width: 768px) {
    .metrics-grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* md:grid-cols-2 */
    }
}

.metric-column h4 {
    display: flex;
    align-items: center;
    color: #94a3b8;
    /* text-slate-400 */
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    /* text-xs */
    letter-spacing: 0.05em;
    /* tracking-wider */
}

.metric-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metric-list li {
    color: #cbd5e1;
    /* text-slate-300 */
    font-size: 0.875rem;
    /* text-sm */
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.metric-list li strong {
    color: #ffffff;
}

/* Tags Container - The Fix for Formatting */
.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    /* px-3 py-1 */
    border-radius: 9999px;
    /* rounded-full */
    background-color: #1e293b;
    /* bg-slate-800 */
    color: #cbd5e1;
    /* text-slate-300 */
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 500;
    border: 1px solid #334155;
    /* border-slate-700 */
    white-space: nowrap;
}

/* Vertical Stack Layout */
.projects-stack-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 64rem;
    /* max-w-5xl */
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
}

/* =========================================
   Contact Section Grid Layout
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    /* Wrapper padding */
}

/* Ensure Form Styling is Consistent */
.contact-form {
    padding: 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
}

/* Fix Social Links Spacing in Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem !important;
    /* Force gap */
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   Premium Contact Form Overrides
   ========================================= */

/* 1. Form Container - Enhanced Glassmorphism */
.contact-form {
    background: rgba(30, 41, 59, 0.4) !important;
    /* Darker Slate with opacity */
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2.5rem !important;
}

/* 2. Input Fields - High Contrast & Modern */
.contact-form input,
.contact-form textarea,
.contact-form select {
    background: rgba(15, 23, 42, 0.6) !important;
    /* Darker Slate Background */
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    /* Slate 600 Border */
    color: #f8fafc !important;
    /* Slate 50 Text - High Contrast */
    border-radius: 8px !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8 !important;
    /* Slate 400 Placeholder */
    opacity: 1;
}

/* Focus State - Glow Effect */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #0ea5e9 !important;
    /* Sky 500 */
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

/* Select Styling */
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem !important;
}

/* 3. Submit Button - Premium Gradient */
.contact-form button[type="submit"] {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4);
    filter: brightness(1.1);
}

.contact-form button[type="submit"]:active {
    transform: translateY(0);
}

/* 4. Layout Improvements */
.form-group {
    margin-bottom: 1.5rem;
    /* Breathing room */
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem !important;
    }
}

/* 5. Contact Info Polish - Premium Cards */
.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem !important;
    background: rgba(30, 41, 59, 0.4) !important;
    /* Glass Dark */
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    border-radius: 12px !important;
    color: #e2e8f0 !important;
    /* Slate 200 */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
}

.contact-method:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(14, 165, 233, 0.5);
    /* Sky 500 */
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-method i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-blue);
    /* Sky 400 */
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-method:hover i {
    background: #0ea5e9;
    color: white;
}

/* Highlights (Role/Location) */
.contact-highlight {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
    border: none;
}

.contact-highlight i {
    color: var(--accent-blue);
    /* Sky 400 */
    margin-top: 0.25rem;
    font-size: 1.25rem;
}

.contact-highlight h4 {
    color: #f8fafc;
    /* Slate 50 */
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}


/* 6. Core Capabilities Polish - Premium Badges */
.expertise-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.expertise-items span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    /* Slate 300 */
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    /* Pill shape */
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    display: inline-block;
}

.expertise-items span:hover {
    background: rgba(56, 189, 248, 0.15);
    /* Sky tint */
    border-color: rgba(56, 189, 248, 0.3);
    color: #e0f2fe;
    /* Sky 50 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

/* Ensure Category Headers look good */
.expertise-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}


/* 7. Credentials Section Dark Mode Fix */
.certifications {
    background: transparent !important;
    /* Remove light gradient */
}

.cert-platform {
    background: rgba(30, 41, 59, 0.4) !important;
    /* Dark Glass */
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.cert-platform h3 {
    color: #f8fafc !important;
    /* Slate 50 */
}

.cert-platform p {
    color: #94a3b8 !important;
    /* Slate 400 */
}

.cert-platform .btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 9999px !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3) !important;
}

.cert-platform .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4) !important;
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%) !important;
}


/* 8. Global Visual Overhaul - Purple-Blue Gradient */
body {
    /* Rich Gradient: Deep Slate -> Dark Indigo -> Deep Blue */
    background: linear-gradient(135deg, #020617 0%, #2e1065 45%, #172554 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    min-height: 100vh;
    color: var(--text-main);
    /* Ensure text is visible on dark bg */
}

/* Make sections transparent to reveal gradient */
.hero,
.about,
.projects,
.contact,
.footer,
section,
.cv-download-section,
.leadership-section,
.expertise,
.certifications {
    background-color: transparent !important;
    background: transparent !important;
}

/* Ensure glass cards still look good */
.leadership-card,
.cert-platform,
.project-card-premium,
.contact-container {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background: rgba(30, 41, 59, 0.4) !important;
    /* Consistent Dark Glass */
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
}

/* Footer specific polish */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(2, 6, 23, 0.8) !important;
    /* Slightly darker for footer */
    backdrop-filter: blur(10px) !important;
}

/* Fix Navbar Visibility over scrolling content */
.navbar {
    background: rgba(2, 6, 23, 0.7) !important;
    /* Semi-transparent Navy */
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 9. Leadership Pillars Premium Grid */
.leadership-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pillar-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Variant Colors */
.pillar-card-icon.icon-cyan {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

.pillar-card-icon.icon-purple {
    color: var(--accent-purple-light);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.pillar-card-icon.icon-green {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: white;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.pillar-card p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 0.25rem 0;
}

.togaf-content p {
    color: #cbd5e1;
    margin: 0;
    font-size: 1rem;
}

.credential-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.credential-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.credential-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.credential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.credential-card .btn-primary {
    margin-top: auto;
    /* Push button to bottom */
    width: 100%;
    justify-content: center;
}

/* 11. Blog Grid Premium Styles */
.blog-card {
    background: rgba(30, 41, 59, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3) !important;
    background: rgba(30, 41, 59, 0.6) !important;
}

.blog-thumbnail {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.blog-content {
    background: transparent !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Hero Title Visibility */
.hero-title {
    color: #ffffff !important;
}

.blog-content .btn-primary {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(168, 85, 247, 0.1)) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.blog-content .btn-primary:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2)) !important;
    border-color: #38bdf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.blog-card h3 {
    margin-top: 0;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Particles Canvas Global Style */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* =========================================
   Home Page Refactoring (Audit Fixes)
   ========================================= */

/* Navigation Logo */
.nav-logo-uk {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-logo-uk:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
}

/* Grid System Overrides (Critical for Layout - Moved from index.html) */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
}

[class*="col-"] {
    position: relative !important;
    width: 100% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
}

.order-1 {
    order: 1 !important;
}

.order-2 {
    order: 2 !important;
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .order-lg-1 {
        order: 1 !important;
    }

    .order-lg-2 {
        order: 2 !important;
    }
}

.align-items-center {
    align-items: center !important;
}

/* Hero Section Refactor */
.hero-premium-layout {
    position: relative !important;
    transform: none !important;
    background-attachment: scroll !important;
    z-index: 1 !important;
    margin-top: 0 !important;
    top: auto !important;
    padding-top: 180px !important;
}

/* Leadership Section Refactor */
.leadership-list-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.leadership-icon-box {
    padding: 12px;
    border-radius: 12px;
    /* Default fallback */
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.leadership-icon-box i {
    font-size: 1.25rem;
}

/* Icon Box Variants */
.leadership-icon-box.blue {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

.leadership-icon-box.blue i {
    color: var(--accent-blue);
}

.leadership-icon-box.green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.leadership-icon-box.green i {
    color: #10b981;
}

.leadership-icon-box.orange {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.leadership-icon-box.orange i {
    color: #f59e0b;
}

.leadership-icon-box.purple {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.leadership-icon-box.purple i {
    color: #8b5cf6;
}


.leadership-title {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.leadership-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =========================================
   Inner Pages Refactoring (Audit Fixes)
   ========================================= */

/* Shared Navigation Link (Light Theme Override) */
.nav-link-light {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link-light:hover,
.nav-link-light.active {
    color: #38bdf8 !important;
    /* Sky blue accent */
}

.nav-resume-btn-light {
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-resume-btn-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Operating Model - RACI Table */
.raci-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-secondary);
}

.raci-table th {
    padding: 1rem;
    border-bottom: 1px solid #334155;
    text-align: left;
    color: #f1f5f9;
}

.raci-table td {
    padding: 1rem;
    border-bottom: 1px solid #1e293b;
}

.raci-role-accountable {
    color: var(--accent-blue);
    font-weight: bold;
}

/* Secure AI Agents - Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.feature-icon {
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.feature-title {
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-desc {
    color: #cbd5e1;
    line-height: 1.6;
}

/* =========================================
   Blog Index Refactoring (Audit Fixes)
   ========================================= */

/* Blog Hero */
.hero.hero-blog-index {
    padding: 240px 0 80px !important;
    min-height: auto !important;
    display: block !important;
    text-align: center !important;
}

.hero-blog-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    /* Tighter gap to subtitle */
    line-height: 1.1;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Blog Grid System */
.blog-grid-system {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .blog-grid-system {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Blog Card (New Semantic Style) */
.blog-card-new {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-new:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blog-thumbnail-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-thumbnail-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Thumbnail Variants */
.thumb-gradient-slate {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.2), rgba(15, 23, 42, 0.2));
}

.thumb-gradient-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
}

.thumb-gradient-pink {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
}

.thumb-gradient-green {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
}

.thumb-gradient-orange {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(245, 158, 11, 0.2));
}

.thumb-gradient-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(168, 85, 247, 0.2));
}

.blog-content-inner {
    padding: 1.5rem;
}

.blog-meta-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-title-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Tags */
.blog-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid;
}

.tag-purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple-light);
    border-color: rgba(168, 85, 247, 0.2);
}

.tag-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.tag-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.tag-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.2);
}

.tag-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.tag-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Newsletter */
.newsletter-card-premium {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.beehiiv-embed-frame {
    width: 100%;
    height: 255px;
    margin: 0 auto;
    border-radius: 0px !important;
    background-color: transparent;
    box-shadow: none;
    max-width: 500px;
    display: block;
    filter: invert(1) hue-rotate(180deg);
}

/* ===== TOGAF Pill Styling ===== */
.togaf-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    margin-top: 2rem;
    margin-bottom: 3.5rem;
    color: #e2e8f0;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.togaf-pill:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.2);
    color: #ffffff;
}

.togaf-pill i {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.section-subtitle-large {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 900px;
    margin: 1rem auto 2rem;
    line-height: 1.6;
    font-weight: 300;
    text-align: center !important;
    display: block;
}

/* Blog Alert Boxes */
.alert-box-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.alert-box-danger p {
    margin: 0;
    color: #fca5a5;
    font-style: italic;
}

/* Blog CTA Cards */
.cta-card-highlight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    text-align: center;
    margin: 3rem 0;
}

.cta-card-highlight i.cta-icon {
    font-size: 3rem;
    color: var(--accent-purple-light);
    margin-bottom: 1.5rem;
}

.cta-card-highlight h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-card-highlight p {
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-card-highlight .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}


/* ===== Navigation Logo Gradient ===== */
.nav-logo-uk {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    border-radius: 8px !important;
}

/* ===== Lightbox for Zoomable Images ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10002;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Add cursor pointer to zoomable images */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoomable-image:hover {
    transform: scale(1.02);
}


/* ===== Refactored Inline Styles ===== */
.nav-brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.no-decoration {
    text-decoration: none;
}

.resume-btn-style {
    line-height: 1.5;
    font-weight: 600;
}

.projects-hero-section {
    max-width: 1100px;
    margin: 150px auto 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hero-subtitle {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.challenge-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #38bdf8;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.challenge-text {
    margin: 0;
    color: #e2e8f0;
}

.project-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.section-header-blue {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .project-grid-layout {
        grid-template-columns: 1fr;
    }
}


.section-header-amber {
    color: #f59e0b;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    padding-bottom: 0.5rem;
}

.section-header-purple {
    color: var(--accent-purple-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.project-tech-row-style {
    margin-top: 1.5rem;
}

.project-footer-btn {
    margin-right: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.reference-section-style {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.reference-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}

.ref-link-style {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ref-link-icon {
    font-size: 0.7rem;
}

.ref-link-alert {
    color: #ef4444;
    font-weight: 600;
}

@media (max-width: 768px) {
    .reference-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Newsletter Embed Responsive Fix (Scale Hack) ===== */
.beehiiv-embed-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    /* Hide the virtual overflow from scaling */
}

.beehiiv-embed {
    width: 100% !important;
    min-width: 100% !important;
    border: none;
    background: transparent;
}

/* Mobile-Specific Scaling for Non-Responsive Iframe */
@media (max-width: 480px) {
    .beehiiv-embed-container {
        display: flex;
        justify-content: center;
        width: 100% !important;
        overflow: hidden;
    }

    .beehiiv-embed {
        /* Force iframe to be wide enough for the "Row" layout */
        width: 450px !important;
        min-width: 450px !important;
        max-width: none !important;

        /* Scale it down to fit ~320px-360px screens */
        transform: scale(0.75);
        transform-origin: top center;

        /* Remove whitespace created by scaling */
        margin-bottom: -60px;
    }
}

/* Premium Glass Cards for Principles */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.principle-glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.principle-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.principle-glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(96, 165, 250, 0.3);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.principle-glass-card:hover::before {
    opacity: 1;
}

.principle-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(96, 165, 250, 0.3));
}

.principle-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.principle-description {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Add a subtle glow/blob behind the grid */
.principles-container {
    position: relative;
}

.principles-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}


/* Cinematic Video Effect for Infographics */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.video-overlay::after {
    content: '\f144';
    /* Font Awesome Play Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.video-container:hover .video-overlay::after {
    transform: scale(1.1);
}

.cinematic-video-effect {
    transition: transform 0.7s ease;
    display: block;
}

.video-container:hover .cinematic-video-effect {
    transform: scale(1.05);
}

/* Accessibility Improvement for Checkboxes */
.check-item {
    cursor: pointer;
    /* Ensure label shows pointer */
}

/* IMPACT LEAD STYLES */
.impact-container {
    position: relative;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.1), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #a855f7;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.impact-container::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: serif;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    pointer-events: none;
}

.impact-hero-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    display: block;
}

.impact-body {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #cbd5e1;
    font-weight: 400;
}

.impact-body strong {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Color Variants for Impact Container */
.impact-container.warning {
    border-left-color: #f59e0b;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.impact-container.alert {
    border-left-color: #ef4444;
    background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.1), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}


/* ===== Social Share Buttons ===== */
.social-share-container {
    margin: 4rem 0;
    text-align: center;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    backdrop-filter: blur(10px);
}

.share-btn i {
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.share-btn.linkedin:hover {
    color: #fff !important;
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

.share-btn.twitter:hover {
    color: #fff !important;
    background: #000;
    border-color: #333;
}

.share-btn.facebook:hover {
    color: #fff !important;
    background: #1877f2;
    border-color: #1877f2;
}

.share-btn.copy-link.copied {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

@media (max-width: 600px) {
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Global Hero Reset */
.hero {
    background-color: transparent !important;
    /* Reveal global gradient */
    background-image: none !important;
    /* Remove old radial gradient */
    position: relative;
    overflow: hidden;
    padding-top: 220px !important;
    padding-bottom: 80px;
    /* Nuclear Reset for Scroll Fix */
    transform: none !important;
    background-attachment: scroll !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-top: 0 !important;
    z-index: 1 !important;
    min-height: 100vh !important;
}

/* Ensure subsequent sections stack correctly */
.about,
.projects,
.leadership-section {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* Left Content */
.hero-content-left {
    z-index: 10;
}

.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-highlight-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Changed from block to inline-block for flow */
}

.hero-subtext {
    font-family: 'Inter', sans-serif;
    color: #94a3b8 !important;
    /* Explicit Slate 400 with override */
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Resume Button Premium */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    font-weight: 600;
    padding: 0.85rem 2.25rem;
    /* Optimised size */
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
    font-size: 1.05rem;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
    color: white;
}

/* Right Content - Clean Profile */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-clean-frame {
    position: relative;
    border-radius: 32px;
    /* Soft rounded square */
    overflow: hidden;
    /* Removed white border, added colored glow */
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.2),
        0 0 0 1px rgba(56, 189, 248, 0.1);
    background: var(--navy-card);
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1/1;
}

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

/* Qualitative Highlights Row */
.hero-highlights-row {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid on standard, 4x1 on large if space */
    gap: 2rem;
}

@media (min-width: 1024px) {
    .hero-highlights-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 0.25rem;
}

.highlight-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-white);
    line-height: 1.2;
}

.highlight-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-slate);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        padding-top: 160px !important;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-headline {
        font-size: 2.75rem;
    }

    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-container {
        order: -1;
        /* Image on top for mobile/tablet */
    }

    .profile-clean-frame {
        max-width: 320px;
    }

    .hero-highlights-row {
        text-align: left;
        /* Keep stats aligned nicely */
        justify-content: center;
        max-width: 600px;
        margin: 3rem auto 0;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-highlights-row {
        grid-template-columns: 1fr;
        /* Stack highlights on very small screens */
        gap: 2rem;
    }
}

/* Additional styles for enhanced features */

/* Quick Links Bar */
.quick-links-bar {
    background: var(--dark-bg);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
}

.quick-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.quick-link {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s;
    padding: 0.5rem;
}

.quick-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Adjust navbar for quick links bar */
.navbar {
    top: 40px;
}

.hero {
    margin-top: 110px;
}

/* Enhanced Nav Brand */
.nav-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.nav-tagline {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: -0.3rem;
}

/* Certifications Section */
.certifications {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.cert-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-platform {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s;
}

.cert-platform:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.cert-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.cert-platform h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cert-platform p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cert-platform .btn {
    margin-top: 1rem;
}

/* Enhanced Social Links in Footer */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px) rotate(360deg);
}

/* Contact Method Icons Enhancement */
.contact-method i {
    color: var(--primary-color);
    transition: all 0.3s;
}

.contact-method:hover i {
    color: var(--white);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-links-bar {
        padding: 0.3rem 0;
    }

    .quick-links {
        justify-content: center;
    }

    .quick-link {
        font-size: 1rem;
        padding: 0.3rem;
    }

    .navbar {
        top: 35px;
    }

    .hero {
        margin-top: 105px;
    }

    .cert-platforms {
        grid-template-columns: 1fr;
    }
}

/* Badge Animation */
@keyframes badge-pulse {

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

    50% {
        transform: scale(1.05);
    }
}

.cert-icon {
    animation: badge-pulse 2s ease-in-out infinite;
}

.cert-platform:hover .cert-icon {
    animation: none;
    transform: scale(1.1);
}

/* ===== Consolidate About Page Styles ===== */
.about-container {
    max-width: 700px;
    margin: 3rem auto 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.about-list {
    margin-top: 1.5rem;
    line-height: 1.7;
}

.about-section-block {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.about-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.about-list-small {
    margin-top: 0.5rem;
    line-height: 1.7;
}

/* Mega Menu Styles */
.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* The Mega Dropdown Box */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 650px;
    /* Wider for 3 columns */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    padding-top: 15px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-header {
    color: #a855f7;
    /* Purple accent */
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Outfit', sans-serif;
}

.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.6rem;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-link i {
    margin-top: 3px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.dropdown-link span {
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
}

.dropdown-link:hover {
    background: rgba(168, 85, 247, 0.15);
    color: #ffffff;
    transform: translateX(4px);
}

.dropdown-link:hover i {
    color: #38bdf8;
    /* Blue on hover */
}

.dropdown-footer {
    grid-column: span 3;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.dropdown-footer-link {
    font-size: 0.85rem;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.dropdown-footer-link:hover {
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .dropdown-menu {
        width: 100% !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        padding-top: 0;
    }

    .dropdown-content {
        grid-template-columns: 1fr;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 1rem;
    }

    .dropdown-footer {
        grid-column: span 1;
    }
}

/* =========================================
   Leadership Revamp - Bento & Spotlight
   ========================================= */

/* Use a more tailored grid for the Bento layout */
.leadership-section {
    position: relative;
    overflow: hidden;
    /* Contain spotlights */
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-col-span-2 {
        grid-column: span 2;
    }

    .bento-row-span-2 {
        grid-row: span 2;
    }
}

/* Spotlight Card Base */
.spotlight-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: 1.5rem;
    padding: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
}

.spotlight-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Spotlight Effect Layer */
.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    pointer-events: none;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.1),
            transparent 40%);
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* Content layer z-index fix */
.spotlight-content {
    position: relative;
    z-index: 2;
    /* Above the spotlight gradient */
}

/* Glowing Icon Containers */
.glow-icon-container {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

/* Specific glows */
.glow-blue {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.glow-orange {
    background: rgba(249, 115, 22, 0.1);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.glow-green {
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.glow-purple {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.spotlight-card:hover .glow-icon-container {
    transform: scale(1.1);
}

/* Typography Enhancements */
.bento-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.bento-text {
    color: #cbd5e1;
    /* Slate-300 */
    font-size: 1rem;
    line-height: 1.6;
}

/* Stats Logic */
.stat-highlight {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.spotlight-card:hover .stat-highlight {
    border-left-color: var(--accent-color, #3b82f6);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Custom Slider */
.premium-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    transition: background 0.3s;
}

.premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f97316;
    /* Orange-500 */
    cursor: pointer;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
    transition: transform 0.2s;
    margin-top: -7px;
    /* Center thumb */
}

.premium-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 4px;
}

.premium-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* Calculator Container */
.calc-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    /* Push to bottom of Flex container */
}

/* =========================================
   RESTORED PROJECT SECTION STYLES
   ========================================= */

.projects-stack-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.project-card-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .project-card-premium {
        flex-direction: row;
        align-items: stretch;
    }
}

.project-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-image-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .project-image-container {
        width: 45%;
        min-height: auto;
    }
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-premium:hover .project-image-container img {
    transform: scale(1.05);
}

.project-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.view-case-study-btn {
    display: inline-flex;
    align-items: center;
    color: #38bdf8;
    /* Sky-400 */
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.view-case-study-btn:hover {
    color: #7dd3fc;
    /* Sky-300 */
    transform: translateX(4px);
}

.project-description {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Metrics Grid matching original layout */
.metrics-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .metrics-grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

.metric-column h4 {
    font-family: 'Outfit', sans-serif;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.metric-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metric-list li {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.metric-list li::before {
    content: "▹";
    color: #3b82f6;
    margin-right: 0.75rem;
    font-weight: bold;
}

/* Tech Stack */
.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}


/* ===== Command Palette (Ctrl+K) ===== */
.cmd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    animation: fadeIn 0.1s ease-out;
}

.cmd-modal {
    width: 100%;
    max-width: 600px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideDown 0.1s ease-out;
}

.cmd-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cmd-icon {
    color: #94a3b8;
    margin-right: 1rem;
    font-size: 1.1rem;
}

#cmd-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.cmd-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cmd-body {
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cmd-category {
    padding: 0.5rem 0.75rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.cmd-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: #e2e8f0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.1s;
}

.cmd-item i {
    width: 24px;
    margin-right: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

.cmd-item.active {
    background: #3b82f6;
    color: white;
}

.cmd-item.active i {
    color: white;
}

.cmd-enter-icon {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.8;
}

.cmd-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: #94a3b8;
    gap: 1rem;
}

.cmd-key {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
}

.cmd-no-results {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
    }

    to {
        transform: translateY(0);
    }
}