/* Premium Portfolio Styling */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #06b6d4;
    --dark-bg: #111827;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --navbar-bg: rgba(11, 15, 25, 0.85);
    --navbar-collapse-bg: rgba(11, 15, 25, 0.98);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-color-card: rgba(255, 255, 255, 0.08);
    --border-color-btn: rgba(255, 255, 255, 0.15);
    --bg-alt: #0d1220;
    --title-gradient-start: #ffffff;
    --title-gradient-end: #cbd5e1;
    --code-window-bg: rgba(30, 41, 59, 0.4);
    --footer-bg: #0b0f19;
    --input-bg: rgba(15, 23, 42, 0.3);
    --input-text: #ffffff;
    --timeline-connector: #334155;
    --highlight-card-shadow: rgba(0, 0, 0, 0.2);
    --theme-btn-bg: rgba(255, 255, 255, 0.08);
    --theme-btn-hover: rgba(255, 255, 255, 0.15);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.05);
    --navbar-height: 68px;
}


/* ===================================================
   LIGHT THEME VARIABLES
   =================================================== */
[data-theme="light"] {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #0284c7;
    --dark-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;

    --navbar-bg: rgba(241, 245, 249, 0.90);
    --navbar-collapse-bg: rgba(241, 245, 249, 0.98);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-card: rgba(0, 0, 0, 0.10);
    --border-color-btn: rgba(0, 0, 0, 0.20);
    --bg-alt: #e2e8f0;
    --title-gradient-start: #0f172a;
    --title-gradient-end: #334155;
    --code-window-bg: rgba(255, 255, 255, 0.7);
    --footer-bg: #1e293b;
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-text: #0f172a;
    --timeline-connector: #cbd5e1;
    --highlight-card-shadow: rgba(0, 0, 0, 0.08);
    --theme-btn-bg: rgba(0, 0, 0, 0.06);
    --theme-btn-hover: rgba(0, 0, 0, 0.12);
    --btn-secondary-hover-bg: rgba(0, 0, 0, 0.05);
}

/* Light theme body & common overrides */
[data-theme="light"] body {
    background-color: #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] .navbar:not(.scrolled) {
    background-color: transparent !important;
}

[data-theme="light"] .section-wrapper,
[data-theme="light"] section {
    background-color: var(--dark-bg);
    color: var(--text-primary);
}

[data-theme="light"] .card,
[data-theme="light"] .project-card,
[data-theme="light"] .skill-card,
[data-theme="light"] .experience-card,
[data-theme="light"] .highlight-card,
[data-theme="light"] .summary-card,
[data-theme="light"] .skill-category-card {
    background-color: #ffffff !important;
    border-color: rgba(0,0,0,0.10) !important;
    color: #0f172a !important;
}

[data-theme="light"] .card h1,
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .card h5,
[data-theme="light"] .card h6,
[data-theme="light"] .card p,
[data-theme="light"] .card span,
[data-theme="light"] .project-card h1, [data-theme="light"] .project-card h2, [data-theme="light"] .project-card h3, [data-theme="light"] .project-card h4, [data-theme="light"] .project-card h5, [data-theme="light"] .project-card h6, [data-theme="light"] .project-card p,
[data-theme="light"] .skill-card h1, [data-theme="light"] .skill-card h2, [data-theme="light"] .skill-card h3, [data-theme="light"] .skill-card h4, [data-theme="light"] .skill-card h5, [data-theme="light"] .skill-card h6, [data-theme="light"] .skill-card p,
[data-theme="light"] .experience-card h1, [data-theme="light"] .experience-card h2, [data-theme="light"] .experience-card h3, [data-theme="light"] .experience-card h4, [data-theme="light"] .experience-card h5, [data-theme="light"] .experience-card h6, [data-theme="light"] .experience-card p,
[data-theme="light"] .highlight-card h1, [data-theme="light"] .highlight-card h2, [data-theme="light"] .highlight-card h3, [data-theme="light"] .highlight-card h4, [data-theme="light"] .highlight-card h5, [data-theme="light"] .highlight-card h6, [data-theme="light"] .highlight-card p,
[data-theme="light"] .summary-card h1, [data-theme="light"] .summary-card h2, [data-theme="light"] .summary-card h3, [data-theme="light"] .summary-card h4, [data-theme="light"] .summary-card h5, [data-theme="light"] .summary-card h6, [data-theme="light"] .summary-card p,
[data-theme="light"] .skill-category-card h1, [data-theme="light"] .skill-category-card h2, [data-theme="light"] .skill-category-card h3, [data-theme="light"] .skill-category-card h4, [data-theme="light"] .skill-category-card h5, [data-theme="light"] .skill-category-card h6, [data-theme="light"] .skill-category-card p {
    color: #0f172a !important;
}

/* Light theme skills section elements */
[data-theme="light"] .tech-chip {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}

[data-theme="light"] .tech-chip:hover {
    background: #e2e8f0 !important;
    border-color: var(--primary-color) !important;
}

[data-theme="light"] .tool-item {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .tool-item:hover {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .tool-item span,
[data-theme="light"] .tool-item .text-white {
    color: #0f172a !important;
}

[data-theme="light"] .OS-card {
    background: #ffffff !important;
}

[data-theme="light"] .OS-chip {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #475569 !important;
}

[data-theme="light"] .skill-item {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .highlighted-skill {
    background: #f1f5f9 !important;
    border-color: rgba(79, 70, 229, 0.3) !important;
}

[data-theme="light"] .skill-name {
    color: #0f172a !important;
}

[data-theme="light"] .skill-desc {
    color: #475569 !important;
}

[data-theme="light"] .badge.bg-dark {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .core-stack-container {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .core-stack-step {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .core-stack-step.highlighted-step {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
}



[data-theme="light"] .text-theme-primary,
[data-theme="light"] .section-title {
    color: #0f172a !important;
}

[data-theme="light"] .text-theme-secondary {
    color: #475569 !important;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #e2e8f0;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #94a3b8;
}



html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

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

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

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
    position: fixed !important;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    padding: 1.5rem 0 !important;
    box-shadow: none !important;
    transition: padding 0.3s ease, background-color 0.3s ease, border-bottom 0.3s ease !important;
}

.navbar.scrolled {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0.85rem 0 !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3) !important;
}

/* Light theme overrides for scrolled navbar */
[data-theme="light"] .navbar.scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .navbar.scrolled .nav-link {
    color: var(--text-primary) !important;
}

[data-theme="light"] .navbar.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

[data-theme="light"] .navbar.scrolled .nav-link.active {
    color: var(--primary-color) !important;
}

[data-theme="light"] .navbar.scrolled .navbar-brand span:nth-child(1),
[data-theme="light"] .navbar.scrolled .navbar-brand span:nth-child(3) {
    color: var(--text-primary) !important;
}

[data-theme="light"] .navbar.scrolled .navbar-brand span:nth-child(2) {
    color: var(--secondary-color) !important;
}

[data-theme="light"] .navbar.scrolled .navbar-brand span:nth-child(4):not(.brand-shining-name) {
    color: var(--primary-color) !important;
}

[data-theme="light"] .navbar.scrolled .theme-toggle-btn {
    border-color: rgba(0, 0, 0, 0.15) !important;
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .navbar.scrolled .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    perspective: 500px;
}

.brand-shining-name {
    font-weight: 700;
    background: linear-gradient(120deg, #00a8ff 0%, #00a8ff 35%, #ffffff 50%, #00a8ff 65%, #00a8ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brandShine 3s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 168, 255, 0.4));
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
    transform-style: preserve-3d;
}

.navbar-brand:hover .brand-shining-name {
    transform: translateY(-1px) scale(1.04) rotateX(15deg) rotateY(-5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 168, 255, 0.7));
}

[data-theme="light"] .brand-shining-name {
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--primary-color) 35%, #ffffff 50%, var(--primary-color) 65%, var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.25));
}

@keyframes brandShine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.nav-link {
    color: #f5f7ff !important;
    font-weight: 500;
    margin: 0 0.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 1rem;
    padding: 7px 16px !important;
    border-radius: 20px;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #00a8ff !important;
}

.nav-link.active {
    color: #00a8ff !important;
    background: rgba(0, 168, 255, 0.12);
    border-color: rgba(0, 168, 255, 0.35);
    box-shadow: 0 0 12px rgba(0, 168, 255, 0.2);
}

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

/* ===================================================
   THEME TOGGLE BUTTON (independent of Bootstrap)
   =================================================== */
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    outline: none;
    padding: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.08);
}

/* ===================================================
   NAVBAR TOGGLER & HAMBURGER (High Contrast 3 Lines)
   =================================================== */
.navbar-toggler {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0, 168, 255, 0.5) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 0 14px rgba(0, 168, 255, 0.25) !important;
}

.navbar-toggler:hover {
    background: rgba(0, 168, 255, 0.22) !important;
    border-color: #00a8ff !important;
    box-shadow: 0 0 22px rgba(0, 168, 255, 0.55) !important;
    transform: scale(1.08);
}

.hamburger-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    pointer-events: none;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #ffffff !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.navbar-toggler:hover .hamburger-line {
    background-color: #00a8ff !important;
    box-shadow: 0 0 8px #00a8ff;
}

/* Light Theme Navbar Toggler & Hamburger */
[data-theme="light"] .navbar.scrolled .navbar-toggler {
    border: 1.5px solid rgba(0, 0, 0, 0.2) !important;
    background: rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
}

[data-theme="light"] .navbar.scrolled .navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: #00a8ff !important;
}

[data-theme="light"] .navbar.scrolled .hamburger-line {
    background-color: #0f172a !important;
    box-shadow: none;
}

[data-theme="light"] .navbar:not(.scrolled) .navbar-toggler {
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    box-shadow: 0 0 12px rgba(0, 168, 255, 0.2) !important;
}

[data-theme="light"] .navbar:not(.scrolled) .hamburger-line {
    background-color: #ffffff !important;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}



/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 0;
    margin: 0;
    /*
     * Layer 1 (top):    navbar fade-in  – solid dark → transparent down from 0–140px
     * Layer 2 (bottom): bottom fade-out – transparent → solid dark over last 120px
     * Layer 3:          portrait image  – height fixed to 100% so it fits exactly in 100vh
     */
    background-image:
        linear-gradient(to bottom,  #04152d 0px,   #04152d 75px,  transparent 140px),
        linear-gradient(to top,     #04152d 0px,   #04152d 60px,  transparent 150px),
        url('../images/hero-bg.png');
    background-size:
        100% 100%,
        100% 100%,
        auto 100%;
    background-position:
        left top,
        left bottom,
        right top;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-color: #04152d;
    overflow: hidden;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, var(--title-gradient-start), var(--title-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.typing-cursor {
    font-weight: 400;
    color: var(--secondary-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        color: transparent
    }

    50% {
        color: var(--secondary-color);
    }
}

/* ── Hero role typewriter animation ── */
.hero-role-animated {
    color: #f5f7ff;
    font-weight: 500;
}

.hero-cursor {
    color: #00a8ff;
    font-weight: 300;
    animation: cursor-blink 0.75s step-end infinite;
    margin-left: 1px;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ===================================================
   PREMIUM CODE EDITOR WINDOW — Hero Section
   =================================================== */
.code-editor-window {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 120px);
    border-radius: 14px;
    overflow: hidden;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 25px 60px -15px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(79, 70, 229, 0.08);
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem;
    line-height: 1.65;
    animation: codeWindowFloat 6s ease-in-out infinite;
    position: relative;
    display: flex;
    flex-direction: column;
}

@keyframes codeWindowFloat {

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

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

.code-editor-topbar {
    background: #1c1f26;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-editor-dots {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-shrink: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #ff5f57;
    box-shadow: 0 0 5px rgba(255, 95, 87, 0.5);
}

.dot-yellow {
    background: #febc2e;
    box-shadow: 0 0 5px rgba(254, 188, 46, 0.5);
}

.dot-green {
    background: #28c840;
    box-shadow: 0 0 5px rgba(40, 200, 64, 0.5);
}

.code-editor-filename {
    flex: 1;
    text-align: center;
    color: #8b949e;
    font-size: 0.78rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}

.code-editor-lang {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: #6272a4;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: 4px;
}

.code-editor-body {
    display: flex;
    background: #0d1117;
    padding: 12px 0;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.code-line-numbers {
    display: flex;
    flex-direction: column;
    padding: 0 12px 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
}

.code-line-numbers span {
    color: #3d4454;
    font-size: 0.78rem;
    line-height: 1.7;
    text-align: right;
    display: block;
    min-width: 20px;
}

.code-content {
    flex: 1;
    padding: 0 16px;
    overflow-x: auto;
}

.code-line {
    white-space: pre;
    display: block;
    line-height: 1.7;
}

.code-line:empty::before {
    content: '\00a0';
}

.code-comment {
    color: #6272a4;
    font-style: italic;
}

.code-kw {
    color: #ff79c6;
    font-weight: 700;
}

.code-class {
    color: #8be9fd;
    font-weight: 700;
}

.code-attr {
    color: #bd93f9;
}

.code-op {
    color: #ff79c6;
}

.code-string {
    color: #f1fa8c;
}

.code-punct {
    color: #f8f8f2;
}

.code-cursor-blink {
    color: #bd93f9;
    animation: cursorBlink 1.1s step-end infinite;
    font-weight: 400;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.code-editor-statusbar {
    background: #4f46e5;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 4px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
}

.status-item {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    white-space: nowrap;
}

.status-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===================================================
   HERO STATS ROW
   =================================================== */
.hero-stats {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

.hero-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 168, 255, 0.4);
    border-radius: 12px;
    background: rgba(0, 168, 255, 0.05);
    transition: all 0.3s ease;
}

.hero-stat-icon:hover {
    background: rgba(0, 168, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.2);
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color-card);
    align-self: center;
}

.hero-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.hero-typing {
    font-size: 1.05rem;
    font-weight: 600;
    min-height: 30px;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-typing .typing-cursor {
    -webkit-text-fill-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* ===================================================
   CUSTOM BUTTONS
   =================================================== */
.btn-custom {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-custom-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4);
    color: #fff;
}

.btn-custom-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color-btn);
}

.btn-custom-secondary:hover {
    border-color: var(--text-primary);
    background-color: var(--btn-secondary-hover-bg);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-section {
    position: relative;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.about-heading {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--title-gradient-start), var(--title-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===================================================
   3D DEVELOPER ID CARD DESIGN (Photorealistic 3D & High Contrast)
   =================================================== */
.physical-id-card-container {
    width: 320px;
    max-width: 100%;
    margin: 0 auto 2rem;
    perspective: 1200px;
    position: relative;
    padding-top: 75px; /* Room for lanyard hardware */
    animation: idCardFloat 5s ease-in-out infinite;
    cursor: grab;
    user-select: none;
}

.physical-id-card-container:active {
    cursor: grabbing;
}

.physical-id-card-container:hover {
    animation-play-state: paused;
}

/* Floating animation */
@keyframes idCardFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    50% {
        transform: translateY(-8px) rotateZ(0.5deg);
    }
}

/* Floating Interactive Status Pill: "OPEN TO WORK" */
.card-floating-status-pill {
    position: absolute;
    top: 54px;
    right: 6px;
    left: auto;
    transform: none;
    z-index: 35;
    background: rgba(11, 19, 41, 0.95);
    border: 1.5px solid #22c55e;
    color: #4ade80;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4), 0 0 10px rgba(34, 197, 94, 0.2);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.card-floating-status-pill.pill-hire-mode {
    border-color: #00a8ff;
    color: #00a8ff;
    box-shadow: 0 4px 18px rgba(0, 168, 255, 0.5), 0 0 14px rgba(0, 168, 255, 0.3);
}

.card-floating-status-pill.pill-hire-mode .status-pulse-dot {
    background-color: #00a8ff;
    box-shadow: 0 0 8px #00a8ff;
}

.card-floating-status-pill .status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.7; }
}

[data-theme="light"] .card-floating-status-pill {
    background: #ffffff;
    border-color: #16a34a;
    color: #16a34a;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

/* ---------------------------------------------------
   Lanyard Strap & 3D Metallic Clasp Assembly
   --------------------------------------------------- */
.id-card-lanyard {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 30;
    pointer-events: none;
}

.lanyard-strap {
    width: 36px;
    height: 100px;
    background: repeating-linear-gradient(
        45deg,
        #1e293b,
        #1e293b 3px,
        #0f172a 3px,
        #0f172a 6px
    );
    position: absolute;
    top: -95px;
    border-radius: 3px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    border-left: 2px solid #00a8ff;
    border-right: 2px solid #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lanyard-strap-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    font-family: 'Space Grotesk', monospace;
}

.lanyard-clip {
    width: 24px;
    height: 28px;
    background: linear-gradient(135deg, #ffffff, #cbd5e1 35%, #94a3b8 65%, #64748b);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    z-index: 3;
    margin-top: -2px;
}

.clip-lever {
    position: absolute;
    top: 3px;
    right: -3px;
    width: 4px;
    height: 11px;
    background: #64748b;
    border-radius: 2px;
}

.clip-ring {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 28px;
    border: 3.5px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* ---------------------------------------------------
   3D Physical ID Card Body (High Visibility in Dark Theme)
   --------------------------------------------------- */
.physical-id-card {
    width: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1);
    border-radius: 22px;
    overflow: hidden;
    padding: 16px 18px 20px;
    
    /* DARK THEME: Elevated contrast, MNC corporate pass look */
    background: linear-gradient(165deg, #18284a 0%, #121f38 50%, #0a1324 100%) !important;
    border: 2px solid rgba(0, 168, 255, 0.7) !important;
    box-shadow: 
        0 25px 65px -10px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(0, 168, 255, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.45),
        inset 0 0 25px rgba(0, 168, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Light Theme Card */
[data-theme="light"] .physical-id-card {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid rgba(0, 168, 255, 0.4) !important;
    box-shadow: 
        0 25px 50px -12px rgba(15, 23, 42, 0.2),
        0 0 25px rgba(0, 168, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
}

/* Top Accent & Punch Slot Hole */
.id-card-top-accent {
    height: 4px;
    width: 70px;
    background: linear-gradient(90deg, #00a8ff, #6366f1);
    border-radius: 4px;
    margin: 0 auto 10px;
}

.id-card-hole {
    width: 48px;
    height: 9px;
    border-radius: 6px;
    background: #060911;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 auto 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .id-card-hole {
    background: #cbd5e1;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Micro Header: Chip & Pass */
.id-card-micro-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

[data-theme="light"] .id-card-micro-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Realistic Gold EMV Smart Chip */
.id-card-chip {
    width: 34px;
    height: 26px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ffd700, #b8860b 40%, #ffd700 70%, #d4af37);
    position: relative;
    border: 1px solid #8b6508;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 2px 5px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.id-card-chip .chip-line.horizontal {
    position: absolute;
    width: 100%;
    height: 1px;
    top: 50%;
    background: #5c4205;
}

.id-card-chip .chip-line.vertical {
    position: absolute;
    height: 100%;
    width: 1px;
    left: 50%;
    background: #5c4205;
}

.id-card-chip .chip-core {
    position: absolute;
    width: 12px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #5c4205;
    background: rgba(184, 134, 11, 0.2);
}

.id-card-badge-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #00a8ff;
    background: rgba(0, 168, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 255, 0.25);
    display: inline-flex;
    align-items: center;
}

.id-card-contactless {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

[data-theme="light"] .id-card-contactless {
    color: rgba(0, 0, 0, 0.5);
}

/* Photo Wrapper with Online Status */
.id-card-photo-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00a8ff, #6366f1);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.4);
    position: relative;
}

.id-card-photo {
    border-radius: 50%;
    border: 2px solid var(--dark-bg);
}

.photo-online-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid var(--dark-bg);
    box-shadow: 0 0 10px #22c55e;
}

/* Card Typography */
.id-card-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

[data-theme="light"] .id-card-name {
    color: #0f172a !important;
}

.id-card-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: #00a8ff !important;
    letter-spacing: 1.5px;
}

/* HIRE ME Button */
.id-card-hire-btn {
    background: linear-gradient(135deg, #00a8ff 0%, #2563eb 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    padding: 9px 26px;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.id-card-hire-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.65), 0 0 18px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: rgba(255, 255, 255, 0.7);
}

/* QR Mockup */
.qr-mockup {
    width: 62px;
    height: 62px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

[data-theme="light"] .qr-mockup {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.qr-mockup:hover {
    transform: scale(1.1);
    border-color: #00a8ff;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.35);
}

.id-barcode-num {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

/* Bottom Accent Bar */
.id-card-bottom-accent {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #00a8ff, #6366f1, #00a8ff);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Dynamic Specular Glare Overlay */
.id-card-glare {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    background: radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 30%),
        rgba(255, 255, 255, 0.32) 0%,
        rgba(255, 255, 255, 0.06) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 25;
    mix-blend-mode: overlay;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* Magic Floating Text Particle: "✨ OPEN TO WORK ✨" / "🚀 HIRE ME" */
.magic-text-particle {
    position: absolute;
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 1px;
    padding: 7px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.98), rgba(37, 99, 235, 0.98));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.55), 0 0 20px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.7);
    z-index: 100;
    white-space: nowrap;
    animation: floatUpAndFade 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.magic-text-particle.magic-open-work {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.55), 0 0 20px rgba(255, 255, 255, 0.6) !important;
}

.magic-text-particle.magic-hire-me {
    background: linear-gradient(135deg, #00a8ff 0%, #2563eb 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.55), 0 0 20px rgba(255, 255, 255, 0.6) !important;
}

@keyframes floatUpAndFade {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.6);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -18px) scale(1.08);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -48px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -75px) scale(0.88);
    }
}

.id-card-flip-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.id-card-flip-btn:hover {
    background: rgba(0, 168, 255, 0.15);
    border-color: #00a8ff;
    color: #00a8ff;
    transform: translateY(-1px);
}

[data-theme="light"] .id-card-flip-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
    border-color: rgba(0, 0, 0, 0.12);
}

.id-card-barcode-row {
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .id-card-barcode-row {
    border-top-color: rgba(0, 0, 0, 0.12);
}

.barcode-visual {
    height: 18px;
    width: 140px;
    background: repeating-linear-gradient(
        90deg,
        #94a3b8 0,
        #94a3b8 2px,
        transparent 2px,
        transparent 4px,
        #94a3b8 4px,
        #94a3b8 7px,
        transparent 7px,
        transparent 9px
    );
    opacity: 0.8;
}

[data-theme="light"] .barcode-visual {
    background: repeating-linear-gradient(
        90deg,
        #475569 0,
        #475569 2px,
        transparent 2px,
        transparent 4px,
        #475569 4px,
        #475569 7px,
        transparent 7px,
        transparent 9px
    );
}

.barcode-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.58rem;
    color: #64748b;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 2px;
}

.id-card-qr-box {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.id-card-qr-box:hover {
    transform: scale(1.1);
}

/* ---------------------------------------------------
   Back Face (Security Credentials & Matrix)
   --------------------------------------------------- */
.id-card-back {
    transform: rotateY(180deg);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.id-card-magnetic-stripe {
    height: 44px;
    width: 100%;
    background: linear-gradient(180deg, #1e1e1e 0%, #0a0a0a 50%, #222222 100%);
    margin-top: 36px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.8);
}

.security-hologram {
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f43f5e, #ec4899, #8b5cf6, #3b82f6, #10b981);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hologram-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: holoShine 3s infinite;
}

@keyframes holoShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.back-id-code {
    color: #00a8ff;
    letter-spacing: 1px;
}

.back-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f8fafc;
    text-transform: uppercase;
}

[data-theme="light"] .back-section-title {
    color: #0f172a;
}

.back-skill-row {
    font-size: 0.72rem;
    line-height: 1.45;
    color: #cbd5e1;
    margin-bottom: 3px;
}

[data-theme="light"] .back-skill-row {
    color: #334155;
}

.signature-strip {
    height: 32px;
    background: #f1f5f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 1px solid #cbd5e1;
}

.signature-handwritten {
    font-family: 'Brush Script MT', 'Dancing Script', cursive, sans-serif;
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 600;
    transform: rotate(-2deg);
}

.signature-label {
    font-size: 0.54rem;
    letter-spacing: 1px;
    color: #64748b;
    margin-top: 3px;
    font-weight: 600;
}

.back-disclaimer {
    font-size: 0.65rem;
    line-height: 1.4;
    color: #64748b;
}

.id-card-back-footer {
    margin-top: auto;
}

.back-flip-btn {
    padding: 6px 12px;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem 2rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    text-align: left;
}

.quick-info-key {
    font-weight: 600;
    color: var(--primary-color);
}

.quick-info-val {
    color: var(--text-primary);
}

.highlight-card {
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: var(--transition);
    text-align: left;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.2) !important;
    background: rgba(30, 41, 59, 0.4);
    box-shadow: 0 10px 30px -15px rgba(79, 70, 229, 0.3);
}

.text-cyan {
    color: #06b6d4;
}

.text-purple {
    color: #a855f7;
}

/* =====================================================
   FOOTER  –  Premium redesign
   ===================================================== */

/* ── Brand ── */
.footer-brand {
    gap: 0.6rem;
}
.footer-brand-icon {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.footer-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* ── Role & Bio ── */
.footer-role {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}
.footer-bio {
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 360px;
}

/* ── Availability badge ── */
.footer-avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 200, 150, 0.10);
    border: 1px solid rgba(0, 200, 150, 0.30);
    color: #00c896;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}
.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c896;
    box-shadow: 0 0 6px #00c896;
    animation: pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ── Section headings ── */
.footer-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

/* ── Contact list ── */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.96rem;
    color: #cbd5e1;
    line-height: 1.4;
}
.fc-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary-color);
    flex-shrink: 0;
}
.footer-contact-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.96rem;
    word-break: break-all;
}
.footer-contact-list a:hover {
    color: var(--primary-color);
}

/* ── Tech chips ── */
.footer-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.fc-chip {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: 50px;
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(79, 70, 229, 0.30);
    color: #a5b4fc;
    letter-spacing: 0.2px;
}

/* ── Social grid ── */
.footer-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.fs-social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    transition: all 0.22s ease;
}
.fs-social-link i {
    font-size: 1.1rem;
}
.fs-social-link:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.40);
    color: #a5b4fc;
    transform: translateY(-2px);
}
.fs-social-link[style*="--sc"] {
    /* WhatsApp custom colour */
}
.fs-social-link[style*="--sc"]:hover {
    color: #25D366;
    background: rgba(37, 211, 102, 0.10);
    border-color: rgba(37, 211, 102, 0.30);
}

/* ── Built-with text ── */
.footer-built {
    font-size: 0.93rem;
    color: #64748b;
}

/* ── Bottom bar ── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-copy,
.footer-location {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
}

/* ── Footer links (fallback) ── */
footer a {
    text-decoration: none;
    transition: color 0.2s;
}

/* ===================================================
   SKILLS SECTION
   =================================================== */
.skills-section {
    position: relative;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.core-stack-container {
    background: var(--code-window-bg);
    border: 1px solid var(--border-color);
}

.core-stack-step {
    background: var(--card-bg);
    border: 1px solid var(--border-color-card);
    min-width: 210px;
    box-shadow: 0 4px 20px -5px var(--highlight-card-shadow);
    transition: var(--transition);
}

.core-stack-step:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.2);
}

.highlighted-step {
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15) 0%, var(--card-bg) 100%);
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.2);
}

.core-stack-label {
    font-weight: 700;
    letter-spacing: 1.5px;
}

.core-stack-techs {
    font-weight: 500;
}

.core-stack-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseConnector 2s infinite ease-in-out;
}

@keyframes pulseConnector {

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

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.skill-category-card {
    background: var(--code-window-bg);
    border: 1px solid var(--border-color-card) !important;
    transition: var(--transition);
}

.skill-category-card:hover {
    border-color: rgba(79, 70, 229, 0.2) !important;
    box-shadow: 0 12px 30px -15px var(--highlight-card-shadow);
}

.skill-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color-card);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.highlighted-skill {
    background: radial-gradient(circle at 10% 50%, rgba(79, 70, 229, 0.08) 0%, var(--card-bg) 100%);
    border: 1px solid rgba(79, 70, 229, 0.25);
    box-shadow: 0 4px 15px -5px rgba(79, 70, 229, 0.15);
}

.highlighted-skill:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px -3px rgba(79, 70, 229, 0.25);
}

.skill-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    flex-shrink: 0;
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-desc {
    font-size: 0.75rem;
}

.tech-chip {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-chip:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--secondary-color);
}

.OS-card {
    background: rgba(30, 41, 59, 0.1) !important;
}

.OS-chip {
    background: rgba(15, 23, 42, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.02) !important;
    font-weight: 400 !important;
}

.OS-chip:hover {
    border-color: var(--text-secondary) !important;
    color: var(--text-primary) !important;
}

.tool-item {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.tool-item:hover {
    transform: translateX(4px);
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

/* ===================================================
   SCROLL REVEAL
   =================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1), transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

/* Stagger items inside reveal sections */
.reveal-on-scroll .project-card,
.reveal-on-scroll .timeline-card,
.reveal-on-scroll .cert-card,
.reveal-on-scroll .skill-category-card,
.reveal-on-scroll .edu-cert-item,
.reveal-on-scroll .quick-info-item,
.reveal-on-scroll .about-info-container p {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1), transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.active .project-card,
.reveal-on-scroll.active .timeline-card,
.reveal-on-scroll.active .cert-card,
.reveal-on-scroll.active .skill-category-card,
.reveal-on-scroll.active .edu-cert-item,
.reveal-on-scroll.active .quick-info-item,
.reveal-on-scroll.active .about-info-container p {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays (Desktop / Large Viewports) */
@media (min-width: 768px) {

    /* Project card staggers */
    .reveal-on-scroll.active .col-lg-4:nth-child(1) .project-card {
        transition-delay: 0ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(2) .project-card {
        transition-delay: 50ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(3) .project-card {
        transition-delay: 100ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(4) .project-card {
        transition-delay: 150ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(5) .project-card {
        transition-delay: 200ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(6) .project-card {
        transition-delay: 250ms;
    }

    /* Timeline card staggers */
    .reveal-on-scroll.active .timeline-item:nth-child(1) .timeline-card {
        transition-delay: 0ms;
    }

    .reveal-on-scroll.active .timeline-item:nth-child(2) .timeline-card {
        transition-delay: 60ms;
    }

    .reveal-on-scroll.active .timeline-item:nth-child(3) .timeline-card {
        transition-delay: 120ms;
    }

    .reveal-on-scroll.active .timeline-item:nth-child(4) .timeline-card {
        transition-delay: 180ms;
    }

    /* Skills staggers */
    .reveal-on-scroll.active .col-lg-4:nth-child(1) .skill-category-card {
        transition-delay: 0ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(2) .skill-category-card {
        transition-delay: 50ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(3) .skill-category-card {
        transition-delay: 100ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(4) .skill-category-card {
        transition-delay: 150ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(5) .skill-category-card {
        transition-delay: 200ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(6) .skill-category-card {
        transition-delay: 250ms;
    }

    /* Education card staggers */
    .reveal-on-scroll.active .education-timeline .timeline-item:nth-child(1) .timeline-card {
        transition-delay: 0ms;
    }

    .reveal-on-scroll.active .education-timeline .timeline-item:nth-child(2) .timeline-card {
        transition-delay: 60ms;
    }

    /* Certifications card staggers */
    .reveal-on-scroll.active .col-lg-4:nth-child(1) .cert-card {
        transition-delay: 0ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(2) .cert-card {
        transition-delay: 50ms;
    }

    .reveal-on-scroll.active .col-lg-4:nth-child(3) .cert-card {
        transition-delay: 100ms;
    }
}

/* Reduced motion and mobile viewport override */
@media (max-width: 767.98px) {

    .reveal-on-scroll .project-card,
    .reveal-on-scroll .timeline-card,
    .reveal-on-scroll .cert-card,
    .reveal-on-scroll .skill-category-card,
    .reveal-on-scroll .edu-cert-item,
    .reveal-on-scroll .quick-info-item,
    .reveal-on-scroll .about-info-container p {
        transition-duration: 300ms !important;
        transition-delay: 0ms !important;
    }
}

/* ===================================================
   EXPERIENCE SECTION
   =================================================== */
.experience-section {
    position: relative;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.summary-card {
    background: var(--code-window-bg);
    border: 1px solid var(--border-color-card) !important;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.2) !important;
    background: var(--card-bg);
    box-shadow: 0 10px 30px -15px var(--highlight-card-shadow);
}

.summary-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

/* ===================================================
   TIMELINE
   =================================================== */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item-left {
    left: 0;
}

.timeline-item-right {
    left: 50%;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 3px solid var(--primary-color);
    position: absolute;
    right: -8px;
    top: 25px;
    z-index: 10;
    box-shadow: 0 0 10px var(--primary-color);
    transition: var(--transition);
}

.timeline-item-right .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.2);
}

.timeline-item-right:hover .timeline-dot {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

.timeline-date-badge {
    position: absolute;
    top: 22px;
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline-item-left .timeline-date-badge {
    left: calc(100% + 30px);
}

.timeline-item-right .timeline-date-badge {
    right: calc(100% + 30px);
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color-card) !important;
    position: relative;
    transition: var(--transition);
    text-align: left;
}

.timeline-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.2) !important;
    box-shadow: 0 12px 30px -15px var(--highlight-card-shadow);
}

.timeline-item-right .timeline-card:hover {
    border-color: rgba(6, 182, 212, 0.2) !important;
}

.timeline-card::after {
    content: '';
    position: absolute;
    border-style: solid;
    top: 20px;
    width: 0;
    height: 0;
}

.timeline-item-left .timeline-card::after {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--card-bg);
}

.timeline-item-right .timeline-card::after {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--card-bg) transparent transparent;
}

.responsibility-list {
    padding-left: 1.25rem;
    list-style-type: square;
    line-height: 1.6;
}

.responsibility-list li {
    margin-bottom: 0.5rem;
}

.tag-badge {
    background: var(--code-window-bg);
    border: 1px solid var(--border-color-card);
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-block;
}

.tag-badge:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
    background: var(--card-bg);
    transform: translateY(-1px);
}

/* ===================================================
   EDUCATION SECTION
   =================================================== */
.education-section {
    position: relative;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.progression-tracker {
    background: var(--code-window-bg);
    border: 1px solid var(--border-color-card);
}

.progression-step {
    transition: var(--transition);
}

.progression-step:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.2) !important;
}

.progression-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-timeline::after {
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
}

.education-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.85rem;
    background: var(--dark-bg) !important;
    border: 2px solid var(--primary-color) !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    right: -16px;
    top: 20px;
    z-index: 10;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
    transition: var(--transition);
}

.timeline-item-right .education-dot {
    left: -16px;
}

.education-dot.highlighted-dot {
    color: #fff;
    background: var(--primary-color) !important;
    box-shadow: 0 0 20px var(--primary-color);
    border-color: var(--primary-color) !important;
}

.timeline-item:hover .education-dot {
    transform: scale(1.15) rotate(-10deg);
}

.highlighted-education-card {
    background: radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.15) 0%, var(--card-bg) 100%) !important;
    border: 1.5px solid var(--primary-color) !important;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.15) !important;
}

.highlighted-education-card:hover {
    box-shadow: 0 0 35px rgba(79, 70, 229, 0.25) !important;
}

/* ===================================================
   CERTIFICATIONS SECTION
   =================================================== */
.certifications-section {
    position: relative;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color-card) !important;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.2) !important;
    box-shadow: 0 12px 30px -15px var(--highlight-card-shadow);
}

.cert-card .btn-outline-secondary.disabled {
    border-color: var(--border-color-card);
    color: var(--text-secondary);
}

/* ===================================================
   PROJECTS SECTION
   =================================================== */
.projects-section {
    position: relative;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color-card) !important;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.2) !important;
    box-shadow: 0 12px 30px -15px var(--highlight-card-shadow);
}

.project-card .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: var(--transition);
}

.project-card:hover .btn-outline-secondary {
    border-color: var(--secondary-color);
    color: #fff;
    background-color: rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .project-card:hover .btn-outline-secondary {
    color: var(--secondary-color) !important;
    background-color: rgba(2, 132, 199, 0.1) !important;
}

/* Modal overlay for project details */
.project-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.project-modal-overlay.active {
    display: block;
}

.project-modal-content {
    background: #0d1220;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

[data-theme="light"] .project-modal-close {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

[data-theme="light"] .project-modal-close:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* ===================================================
   CONTACT SECTION
   =================================================== */
.contact-section {
    position: relative;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.dot-status {
    display: inline-block;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
}

/* ===================================================
   THEME TOGGLE BUTTON
   =================================================== */
.btn-theme-toggle {
    background-color: var(--theme-btn-bg);
    border: 1px solid var(--border-color-card);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.btn-theme-toggle:hover {
    background-color: var(--theme-btn-hover);
    transform: scale(1.05);
    color: var(--secondary-color);
}

/* ===================================================
   BACK TO TOP BUTTON
   =================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

section {
    scroll-margin-top: var(--navbar-height);
}

/* Footer link helpers */
.hover-white {
    transition: var(--transition);
}

.hover-white:hover {
    color: #fff !important;
}

.hover-primary {
    transition: var(--transition);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.hover-cyan {
    transition: var(--transition);
}

.hover-cyan:hover {
    color: var(--secondary-color) !important;
}

/* ===================================================
   RESPONSIVE OVERRIDES
   =================================================== */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 32px 0;
        min-height: auto;
    }

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

    .navbar-collapse {
        background-color: var(--navbar-collapse-bg);
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        margin-top: 1rem;
    }

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

    .profile-card-container {
        width: 220px;
        height: 220px;
        margin-top: 2rem;
    }

    .floating-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .badge-python {
        left: -10%;
    }

    .badge-django {
        right: -10%;
    }

    .core-stack-techs {
        font-size: 0.8rem;
    }

    .core-stack-step {
        width: 100%;
        max-width: 320px;
    }

    .core-stack-connector {
        margin: 0.25rem 0;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 0;
        margin-bottom: 1.5rem;
    }

    .timeline-item-right {
        left: 0;
    }

    .timeline-dot {
        left: 12px;
        right: auto;
    }

    .timeline-item-right .timeline-dot {
        left: 12px;
    }

    .timeline-date-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.5rem;
    }

    .timeline-item-left .timeline-card::after,
    .timeline-item-right .timeline-card::after {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(30, 41, 59, 0.9) transparent transparent;
    }

    .education-timeline::after {
        left: 20px;
    }

    .education-timeline .timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 0;
        margin-bottom: 1.5rem;
    }

    .education-timeline .education-dot {
        left: 20px;
        margin-left: -16px;
        right: auto;
    }

    .education-timeline .timeline-item-right .education-dot {
        left: 20px;
        margin-left: -16px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .about-heading {
        font-size: 1.75rem;
    }

    .profile-card-container {
        width: 200px;
        height: 200px;
    }
}

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

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

    .profile-card-container {
        width: 180px;
        height: 180px;
    }
}

/* ===================================================
   THEME UTILITY CLASSES
   =================================================== */
.theme-card-bg {
    background-color: var(--card-bg) !important;
}

.text-theme-primary {
    color: var(--text-primary) !important;
}

.text-theme-secondary {
    color: var(--text-secondary) !important;
}

.theme-border {
    border-color: var(--border-color-card) !important;
}

/* ===================================================
   GLOBAL DARK MODE BOOTSTRAP OVERRIDES
   =================================================== */
body {
    color: var(--text-primary) !important;
    background-color: var(--dark-bg) !important;
}

:root:not([data-theme="light"]) .text-white {
    color: #f8fafc !important;
}

[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

.skill-name {
    color: var(--text-primary) !important;
}

.skill-desc {
    color: var(--text-secondary) !important;
}

.tech-chip {
    color: var(--text-primary) !important;
}

.tool-item span,
.tool-item .text-white {
    color: var(--text-primary) !important;
}

.core-stack-step .core-stack-techs {
    color: var(--text-primary) !important;
}

.skill-category-card h4,
.skill-category-card h5,
.skill-category-card h6 {
    color: var(--text-primary) !important;
}

.responsibility-list,
.responsibility-list li {
    color: var(--text-secondary) !important;
}

.tag-badge {
    color: var(--text-secondary) !important;
}

.timeline-card p,
.timeline-card li,
.timeline-card span {
    color: var(--text-secondary) !important;
}

.timeline-card h3,
.timeline-card h4,
.timeline-card h5,
.timeline-card h6,
.timeline-card .text-white {
    color: var(--text-primary) !important;
}

.summary-card p,
.summary-card span {
    color: var(--text-secondary) !important;
}

.summary-card h4,
.summary-card h5,
.summary-card .text-white {
    color: var(--text-primary) !important;
}

.cert-card h4,
.cert-card h5,
.cert-card .text-white {
    color: var(--text-primary) !important;
}

.cert-card p,
.cert-card .text-secondary {
    color: var(--text-secondary) !important;
}

.project-card h4,
.project-card h5,
.project-card .text-white {
    color: var(--text-primary) !important;
}

.project-card p,
.project-card .text-secondary {
    color: var(--text-secondary) !important;
}

.highlight-card h4,
.highlight-card h5,
.highlight-card .text-white {
    color: var(--text-primary) !important;
}

.highlight-card p,
.highlight-card .text-secondary {
    color: var(--text-secondary) !important;
}

.quick-info-val {
    color: var(--text-primary) !important;
}

.badge.text-white {
    color: var(--text-primary) !important;
    background-color: var(--card-bg) !important;
}

.bg-dark {
    background-color: var(--card-bg) !important;
}

footer .text-white {
    color: var(--text-primary) !important;
}

.progression-step {
    color: var(--text-secondary) !important;
    background-color: var(--card-bg) !important;
}

.floating-badge {
    color: var(--text-primary) !important;
    background: var(--card-bg) !important;
}

.form-label {
    color: var(--text-primary) !important;
}

.form-control {
    background-color: var(--input-bg) !important;
    color: var(--input-text) !important;
    border-color: var(--border-color-card) !important;
}

.form-control::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.8;
}

.form-control:focus {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.15) !important;
}

.btn-outline-secondary.text-white {
    color: var(--text-primary) !important;
    border-color: var(--border-color-card) !important;
}

.btn-outline-secondary.text-white:hover {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

/* =========================================================
   REDESIGNED HERO SECTION (Cinematic Developer Aesthetic)
   ========================================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #030712 !important;
    /* Premium dark navy-black */
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 120px !important;
    padding-bottom: 60px !important;
    box-sizing: border-box !important;
}

/* Background Gradients */
.hero-bg-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 15% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    z-index: -4;
    pointer-events: none;
}

/* Digital Smoke Effects */
.hero-smoke-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
    filter: blur(50px);
}

.smoke-layer {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    opacity: 0.8;
}

.smoke-1 {
    width: 500px;
    height: 500px;
    bottom: -10%;
    right: 10%;
    animation: driftSmoke1 25s infinite ease-in-out;
}

.smoke-2 {
    width: 450px;
    height: 450px;
    bottom: 10%;
    right: -5%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    animation: driftSmoke2 20s infinite ease-in-out;
}

.smoke-3 {
    width: 380px;
    height: 380px;
    top: 15%;
    right: 25%;
    animation: driftSmoke3 30s infinite ease-in-out;
}

@keyframes driftSmoke1 {

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

    50% {
        transform: translate(-40px, -60px) scale(1.15);
    }
}

@keyframes driftSmoke2 {

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

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

@keyframes driftSmoke3 {

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

    50% {
        transform: translate(-20px, 40px) scale(1.1);
    }
}

/* Floating Code Particles */
.hero-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.code-particle {
    position: absolute;
    bottom: -60px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 500;
    pointer-events: none;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@keyframes floatUp {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    10% {
        opacity: 0.18;
    }

    85% {
        opacity: 0.18;
    }

    100% {
        transform: translate3d(var(--drift-x, 0), -115vh, 0);
        opacity: 0;
    }
}

/* Developer Graphics */
.hero-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.graphic-brace {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 15vw;
    color: rgba(6, 182, 212, 0.03);
    pointer-events: none;
    line-height: 1;
}

.left-brace {
    top: 15%;
    left: 3%;
}

.right-brace {
    bottom: 10%;
    right: 4%;
}

/* Code Snippet Background */
.bg-code-snippet {
    position: absolute;
    font-size: 0.8rem;
    line-height: 1.6;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    border-left: 1px dashed rgba(0, 168, 255, 0.2);
    padding-left: 15px;
    color: rgba(0, 168, 255, 0.15);
}

.bg-code-snippet .line-num {
    color: rgba(0, 168, 255, 0.08);
    margin-right: 12px;
}

.bg-code-snippet .c-keyword {
    color: rgba(255, 121, 198, 0.22);
}

.bg-code-snippet .c-class {
    color: rgba(139, 233, 253, 0.25);
}

.bg-code-snippet .c-func {
    color: rgba(80, 250, 123, 0.22);
}

.bg-code-snippet .c-string {
    color: rgba(241, 250, 140, 0.22);
}

/* Subtle Blue Radial Glow behind the profile image */
.profile-glow {
    position: absolute;
    right: 18%;
    top: 45%;
    transform: translate(50%, -50%);
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.14) 0%, rgba(0, 168, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(25px);
}



/* Left Hero Typography */
.hero-subtitle {
    font-size: 0.82rem !important;
    color: #00a8ff !important;
    letter-spacing: 2.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-bottom: 0.35rem !important;
}

.hero-title {
    font-size: clamp(1.85rem, 3.2vw, 2.75rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    line-height: 1.18 !important;
    margin-bottom: 0.5rem !important;
}

.hero-role {
    font-size: 1.35rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.hero-description {
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    color: #f8fafc;
    max-width: 600px;
    line-height: 1.7;
    position: relative;
    z-index: 20;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    margin-bottom: 1.75rem;
}

/* Dynamic Stats Grid with Outline Icons */
.hero-stats {
    gap: 1rem 1.5rem !important;
    margin-bottom: 2rem !important;
}

.hero-stat-item {
    min-width: 90px;
}

.hero-stat-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(6, 182, 212, 0.02);
    transition: var(--transition);
}

.hero-stat-item:hover .hero-stat-icon {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-2px);
}

.hero-stat-number {
    font-size: 1.25rem !important;
    font-weight: 700;
    margin-bottom: 0 !important;
}

.hero-stat-label {
    font-size: 0.65rem !important;
    letter-spacing: 0.5px;
}

.hero-stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.08);
    align-self: center;
}

/* Button Refinement */
.btn-custom-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35) !important;
    border: none !important;
}

.btn-custom-primary:hover {
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.55) !important;
    transform: translateY(-2px);
}

.btn-custom-secondary {
    background: rgba(15, 23, 42, 0.3) !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
    color: #fff !important;
}

.btn-custom-secondary:hover {
    border-color: #06b6d4 !important;
    background: rgba(6, 182, 212, 0.1) !important;
    transform: translateY(-2px);
}

/* Right Column Portrait Layout */
.hero-portrait-col {
    height: 100%;
    align-self: flex-end;
}

.hero-portrait-container {
    width: 100%;
    max-width: 440px;
    height: auto;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: -15px;
    /* Blend bottom border flush with page bottom */
}

.hero-portrait-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 0 35px rgba(6, 182, 212, 0.18));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.portrait-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 90%;
    height: 80%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

.portrait-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 60%, #030712 100%);
    z-index: 3;
    pointer-events: none;
}

/* =========================================================
   RESPONSIVE OVERRIDES
   ========================================================= */

/* Global Mobile Fixes */
* {
    box-sizing: border-box;
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

img {
    max-width: 100% !important;
    height: auto !important;
}

.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.container, .container-fluid {
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure background code decorations, glow and overlays do not create overflow */
.hero-graphics, .hero-bg-glows, .smoke-1, .smoke-2, .smoke-3, .bg-code-snippet {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* 1. Breakpoint: max-width 1200px */
@media (max-width: 1200px) {
    .bg-code-snippet {
        font-size: 0.75rem;
    }
}

/* 2. Breakpoint: max-width 991.98px (Tablets) */
@media (max-width: 991.98px) {
    /* Navbar Collapse Dropdown styling */
    .navbar-collapse {
        background: rgba(13, 18, 32, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        width: 100%;
    }
    
    [data-theme="light"] .navbar-collapse {
        background: rgba(241, 245, 249, 0.98);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        align-items: center !important;
        gap: 1rem !important;
        width: 100%;
    }
    
    .nav-link {
        margin: 0.25rem 0 !important;
        width: 100%;
        text-align: center;
        padding: 8px 0;
        color: #f5f7ff !important;
    }
    
    .nav-link:hover {
        color: #00a8ff !important;
    }

    .nav-link.active {
        border-bottom: none !important;
        color: #00a8ff !important;
        font-weight: 600;
    }

    [data-theme="light"] .nav-link {
        color: var(--text-primary) !important;
    }

    [data-theme="light"] .nav-link:hover {
        color: var(--primary-color) !important;
    }

    [data-theme="light"] .nav-link.active {
        color: var(--primary-color) !important;
    }

    /* Force background screenshot images to hide on mobile/tablet */
    .hero-section {
        display: block !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 120px 0 60px 0 !important;
        background-image:
            linear-gradient(to bottom,  #04152d 0px,   #04152d 75px,  transparent 140px),
            linear-gradient(to top,     #04152d 0px,   #04152d 60px,  transparent 150px) !important;
        background-size: 100% 100%, 100% 100% !important;
        background-position: left top, left bottom !important;
        background-repeat: no-repeat, no-repeat !important;
    }

    .hero-section .row {
        height: auto !important;
    }

    .hero-left-content {
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-portrait-col {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 40px !important;
        position: relative !important;
        z-index: 5 !important;
    }

    .hero-portrait-container {
        position: relative !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-portrait-img {
        width: 100% !important;
        height: auto !important;
        max-height: 48vh !important;
        object-fit: contain !important;
        filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.25)) !important;
        z-index: 2 !important;
    }

    .portrait-glow {
        position: absolute !important;
        width: 280px !important;
        height: 280px !important;
        background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%) !important;
        filter: blur(35px) !important;
        z-index: 1 !important;
        pointer-events: none !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 50% !important;
    }

    .portrait-overlay {
        display: none !important;
    }

    .hero-stats {
        justify-content: center !important;
    }

    .hero-stat-divider {
        display: none !important;
    }
}

/* 3. Breakpoint: max-width 767.98px (Mobiles) */
@media (max-width: 767.98px) {
    /* Prevent heading wrapping problems and nowrap rules */
    h1, h2, h3, h4, h5, h6, .hero-title, .about-heading {
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Mobile Navbar Formatting */
    .navbar {
        padding: 0.75rem 0 !important;
    }
    
    .navbar > .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .navbar-brand {
        font-size: clamp(1.1rem, 4.5vw, 1.35rem) !important;
        margin-right: 0 !important;
        white-space: nowrap !important;
    }

    .theme-toggle-btn,
    .navbar-toggler {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
    }

    .navbar-toggler-icon {
        width: 18px !important;
        height: 18px !important;
    }

    /* High contrast mobile toggler for scrolled light theme */
    [data-theme="light"] .navbar.scrolled .navbar-toggler-icon {
        filter: invert(1) !important;
    }
    [data-theme="light"] .navbar.scrolled .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.15) !important;
    }

    /* Rebuild Mobile Hero Layout Behaviour */
    .hero-section {
        display: block !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.3rem) !important;
        line-height: 1.15 !important;
        word-break: normal !important;
    }

    .hero-role {
        font-size: clamp(1.1rem, 5vw, 1.5rem) !important;
        white-space: normal !important;
        min-height: auto !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        max-width: 100% !important;
    }

    /* Stats Grid behavior */
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-stat-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    .hero-stats > .hero-stat-item:last-child {
        grid-column: span 2 !important;
    }

    /* Action buttons responsive stacking */
    .hero-left-content .btn-custom {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        height: 48px !important;
        min-height: 44px !important;
    }

    .hero-left-content .d-flex {
        gap: 12px !important;
        width: 100% !important;
    }

    /* Mobile portrait image positioning */
    .hero-portrait-col {
        margin-top: 30px !important;
    }

    .hero-portrait-container {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: min(100%, 360px) !important;
        margin: 20px auto 0 !important;
    }

    .hero-portrait-img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* About avatar scaling & layout */
    .profile-card-container {
        max-width: 280px !important;
        margin-bottom: 2rem !important;
        width: 280px !important;
        height: 280px !important;
    }

    .floating-badge {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
    }

    #badge-python { top: 5% !important; left: 0px !important; }
    #badge-django { top: 25% !important; right: 0px !important; }
    #badge-js { bottom: 25% !important; left: -10px !important; }
    #badge-mysql { bottom: 5% !important; right: 0px !important; }

    /* Experience Timeline stack shift (Fully overridden date selectors) */
    .timeline::after {
        left: 20px !important;
        margin-left: 0 !important;
    }

    .timeline-item {
        width: 100% !important;
        padding-left: 45px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item-left, .timeline-item-right {
        left: 0 !important;
    }

    .timeline-dot {
        left: 20px !important;
        margin-left: -6px !important;
        right: auto !important;
    }

    .timeline-item-left .timeline-date-badge,
    .timeline-item-right .timeline-date-badge {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        display: inline-block !important;
        margin-bottom: 0.75rem !important;
        text-align: left !important;
        width: auto !important;
        background: rgba(6, 182, 212, 0.1) !important;
        padding: 4px 10px !important;
        border-radius: 4px !important;
        font-size: 0.8rem !important;
    }

    .timeline-card::before {
        display: none !important;
    }

    /* Modal dialog */
    .project-modal-content {
        margin: 1rem !important;
        border-radius: 12px !important;
    }

    .project-modal-content .p-4 {
        padding: 1.5rem !important;
    }

    /* All card and grid elements collapse */
    .col-md-6, .col-lg-4, .col-lg-5, .col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* 4. Breakpoint: max-width 575.98px (Small Mobiles) */
@media (max-width: 575.98px) {
    /* Ensure no card overflows its parent wrapper */
    .card, .project-card, .skill-card, .experience-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* 5. Breakpoint: max-width 360px (Extra Small Mobiles) */
@media (max-width: 360px) {
    .hero-stats {
        grid-template-columns: 1fr !important;
    }
    .hero-stat-item:nth-child(9) {
        grid-column: span 1 !important;
    }
}

/* 6. Breakpoint: max-width 320px */
@media (max-width: 320px) {
    .profile-card-container {
        max-width: 240px !important;
        width: 240px !important;
        height: 240px !important;
    }
    
    #badge-js { left: 0px !important; }
}

/* ===================================================
   NAVBAR RANDOM SHINE & SPARKLE EFFECT
   =================================================== */
.navbar-nav .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav .nav-link {
    position: relative;
    z-index: 2;
    overflow: hidden;
    cursor: pointer;
}

/* Dynamic Specular Shimmer Sweep on the Nav Link */
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 300%;
    height: 200%;
    background: linear-gradient(
        var(--shine-deg, 115deg),
        transparent 32%,
        rgba(255, 255, 255, 0.2) 42%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(0, 229, 255, 0.95) 52%,
        rgba(255, 255, 255, 0.95) 54%,
        rgba(255, 255, 255, 0.2) 60%,
        transparent 70%
    );
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition: opacity 0.15s ease;
    mix-blend-mode: overlay;
    z-index: 5;
}

[data-theme="light"] .navbar-nav .nav-link::before {
    background: linear-gradient(
        var(--shine-deg, 115deg),
        transparent 32%,
        rgba(2, 132, 199, 0.15) 42%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(0, 168, 255, 0.9) 52%,
        rgba(255, 255, 255, 0.95) 54%,
        rgba(2, 132, 199, 0.15) 60%,
        transparent 70%
    );
    mix-blend-mode: hard-light;
}

.navbar-nav .nav-link.shining::before {
    opacity: 1;
    animation: navShineSweep var(--shine-duration, 0.6s) cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

@keyframes navShineSweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Nav Link Hover Pill Glow */
.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(0, 168, 255, 0.12) !important;
    border-color: rgba(0, 168, 255, 0.4) !important;
    box-shadow: 0 0 16px rgba(0, 168, 255, 0.25), inset 0 0 10px rgba(0, 168, 255, 0.12) !important;
    transform: translateY(-1px);
}

[data-theme="light"] .navbar-nav .nav-link:hover {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.35) !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15) !important;
    transform: translateY(-1px);
}

/* Micro Sparkle Star Particles (Random Shine Stars) */
.nav-sparkle-star {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    animation: navSparklePop var(--sparkle-duration, 0.65s) cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.nav-sparkle-star svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px var(--star-glow, rgba(0, 229, 255, 0.8)));
}

@keyframes navSparklePop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    35% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3) rotate(45deg);
    }
    70% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.9) rotate(90deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--drift-x, 0px)), calc(-50% + var(--drift-y, -10px))) scale(0.2) rotate(140deg);
    }
}

/* ===================================================
   SHINING BUTTON EFFECT + 3D FLOAT ANIMATION
   =================================================== */
.shining-btn {
    position: relative;
    overflow: hidden !important;
    animation: btn3dFloat 3.5s ease-in-out infinite;
    transform-origin: center bottom;
}

/* Stagger float timing between the two hero buttons */
.shining-btn:nth-of-type(2),
#btn-download-resume,
#btn-cta-contact {
    animation-delay: 1.4s;
}

@keyframes btn3dFloat {
    0%   { transform: translateY(0px) rotateX(0deg) scale(1); }
    25%  { transform: translateY(-5px) rotateX(4deg) scale(1.02); }
    50%  { transform: translateY(-8px) rotateX(6deg) scale(1.03); box-shadow: 0 20px 50px rgba(35,136,255,0.4); }
    75%  { transform: translateY(-5px) rotateX(4deg) scale(1.02); }
    100% { transform: translateY(0px) rotateX(0deg) scale(1); }
}

/* Shining light sweep pseudo-element */
.shining-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.08) 70%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: btnShine 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

#btn-download-resume::before,
#btn-cta-contact::before {
    animation-delay: 1.4s;
}

@keyframes btnShine {
    0%   { left: -100%; }
    45%  { left: 150%; }
    100% { left: 150%; }
}

/* Text inside shining button */
.shining-btn-text {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Subtle border glow pulse on primary button */
.btn-custom-primary.shining-btn {
    box-shadow: 0 0 0 0 rgba(35, 136, 255, 0.5);
    animation: btn3dFloat 3.5s ease-in-out infinite,
               btnGlowPulse 2.8s ease-in-out infinite;
}

#btn-download-resume.btn-custom-primary.shining-btn,
#btn-cta-download-resume.shining-btn {
    animation-delay: 1.4s;
}

@keyframes btnGlowPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(35,136,255,0.25), 0 0 0 0 rgba(35,136,255,0.2); }
    50%       { box-shadow: 0 12px 40px rgba(35,136,255,0.55), 0 0 20px rgba(100,200,255,0.25); }
}

/* Secondary button subtle border glow */
.btn-custom-secondary.shining-btn {
    animation: btn3dFloat 3.5s ease-in-out infinite,
               btnSecondaryGlow 2.8s ease-in-out infinite;
}

@keyframes btnSecondaryGlow {
    0%, 100% { border-color: rgba(70, 130, 220, 0.35); box-shadow: 0 4px 15px rgba(70,130,220,0.1); }
    50%       { border-color: rgba(100, 180, 255, 0.7);  box-shadow: 0 10px 35px rgba(70,130,220,0.35); }
}

/* The shine animation will continue to play on hover, 
   while the 3D float is naturally overridden by the hover transform. */

/* ===================================================
   HERO BUTTON SPARKLE STAR EFFECT
   =================================================== */
.star-btn {
    position: relative;
    /* overflow is controlled by .shining-btn (hidden) — stars append to body so no need for visible */
    isolation: isolate;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                filter 0.25s ease !important;
}

.star-btn:hover,
.star-btn:active {
    transform: translateY(-3px) scale(1.04) perspective(600px) rotateX(6deg) !important;
    box-shadow: 0 14px 40px rgba(35, 136, 255, 0.45), 0 4px 12px rgba(0,168,255,0.25) !important;
    filter: brightness(1.15) !important;
}

.btn-custom-secondary.star-btn:hover,
.btn-custom-secondary.star-btn:active {
    box-shadow: 0 14px 40px rgba(100, 180, 255, 0.25), 0 4px 12px rgba(100,168,255,0.15) !important;
}

/* Sparkle star particles */
.star-btn .sparkle-star {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    width: 16px;
    height: 16px;
    animation: sparkle-pop 700ms ease-out forwards;
    transform-origin: center;
}

.star-btn .sparkle-star svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

@keyframes sparkle-pop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg) translateY(0);
    }
    25% {
        opacity: 1;
        transform: scale(1.2) rotate(60deg) translateY(-6px);
    }
    60% {
        opacity: 0.7;
        transform: scale(0.9) rotate(120deg) translateY(-14px);
    }
    100% {
        opacity: 0;
        transform: scale(0.2) rotate(200deg) translateY(-26px);
    }
}

@keyframes sparkle-pop-down {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg) translateY(0);
    }
    25% {
        opacity: 1;
        transform: scale(1.1) rotate(-50deg) translateY(8px);
    }
    60% {
        opacity: 0.7;
        transform: scale(0.85) rotate(-110deg) translateY(18px);
    }
    100% {
        opacity: 0;
        transform: scale(0.2) rotate(-200deg) translateY(30px);
    }
}

@keyframes sparkle-pop-left {
    0%   { opacity: 0; transform: scale(0) rotate(0deg) translate(0,0); }
    25%  { opacity: 1; transform: scale(1.1) rotate(80deg) translate(-10px, -5px); }
    60%  { opacity: 0.7; transform: scale(0.9) rotate(150deg) translate(-22px, 2px); }
    100% { opacity: 0; transform: scale(0.2) rotate(240deg) translate(-34px, 8px); }
}

@keyframes sparkle-pop-right {
    0%   { opacity: 0; transform: scale(0) rotate(0deg) translate(0,0); }
    25%  { opacity: 1; transform: scale(1.1) rotate(-80deg) translate(10px, -5px); }
    60%  { opacity: 0.7; transform: scale(0.9) rotate(-150deg) translate(22px, 2px); }
    100% { opacity: 0; transform: scale(0.2) rotate(-240deg) translate(34px, 8px); }
}
/* Magic Hire Text */
.magic-text-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ff3264;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 50, 100, 0.8), 0 0 20px rgba(255, 50, 100, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    animation: magicFlyOut 1.5s ease-out forwards;
}

@keyframes magicFlyOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) translateY(0px) translateZ(0px);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) translateY(-20px) translateZ(50px);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5) translateY(-80px) translateZ(100px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2) translateY(-120px) translateZ(150px);
    }
}

/* ===================================================
   WHATSAPP FLOAT BUTTON
   =================================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 85px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

/* ===================================================
   RESPONSIVE & THEME FIXES APPLIED VIA AGENT
   =================================================== */

/* Footer Light Theme Fixes */
[data-theme='light'] {
    --footer-bg: #ffffff !important;
}

[data-theme='light'] .footer-role,
[data-theme='light'] .footer-bio,
[data-theme='light'] .footer-contact-list li,
[data-theme='light'] .footer-contact-list a,
[data-theme='light'] .footer-built,
[data-theme='light'] .footer-copy,
[data-theme='light'] .footer-location {
    color: var(--text-primary) !important;
}

[data-theme='light'] .footer-section-title {
    color: var(--text-secondary) !important;
}

[data-theme='light'] .fc-chip {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
    border-color: rgba(0,0,0,0.1);
}

[data-theme='light'] .fs-social-link {
    color: var(--text-primary);
    border-color: rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.05);
}

[data-theme='light'] .fs-social-link:hover {
    color: var(--primary-color) !important;
    background: rgba(0,0,0,0.1);
}

[data-theme='light'] footer {
    border-top: 1px solid var(--border-color) !important;
}

/* Ensure global horizontal scroll is disabled */
html, body {
    overflow-x: hidden !important;
}

/* Ensure all cards take full height to avoid flex breaks */
.card, .project-card, .skill-card, .experience-card, .highlight-card, .summary-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-category-card.h-100 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-category-card {
    height: auto;
}

/* Contact form input widths */
.contact-section form .form-control {
    width: 100% !important;
    max-width: 100% !important;
}

/* Hero Section Image Mobile/Tablet fixes */
@media (max-width: 991.98px) {
    .hero-portrait-img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix Navbar Collapse Overlap */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
        max-height: 85vh;
        overflow-y: auto;
        margin-top: 0 !important;
        border-radius: 0 0 12px 12px !important;
    }
}

/* Ensure hero section text remains clear and white/light in both themes */
.hero-section {
    color: #f8fafc !important;
}

[data-theme='light'] .hero-section,
[data-theme='light'] .hero-title,
[data-theme='light'] .hero-description,
[data-theme='light'] .hero-role,
[data-theme='light'] .hero-role-animated {
    color: #f8fafc !important;
}

[data-theme='light'] .hero-stat-label {
    color: #e2e8f0 !important; /* Brighter grey for visibility against dark bg */
}

/* Fix navbar links turning dark on light theme when they are over the dark hero */
[data-theme='light'] .navbar-dark:not(.scrolled) .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme='light'] .navbar-dark:not(.scrolled) .navbar-nav .nav-link.active {
    color: #ffffff !important;
}

/* ===================================================
   RESPONSIVE OVERRIDES
   =================================================== */
/* Base styles for images */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Media Queries properly grouped */
@media (max-width: 1200px) {
    .hero-stats {
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem) !important;
    }
    .hero-role {
        font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
        min-height: 2.5em; /* Prevent layout shift */
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center;
        justify-content: flex-start;
    }
    .hero-role-animated {
        height: auto;
        display: inline-block;
    }
    .hero-section {
        min-height: auto !important;
        height: auto !important;
        padding-top: 100px; /* Offset fixed navbar */
        padding-bottom: 40px;
    }
    
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 100% !important;
    }
    .hero-stat-divider {
        display: none !important;
    }
    .hero-stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100% !important;
    }
    
    .hero-buttons-wrapper {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }
    .hero-stats .hero-stat-item:last-child {
        grid-column: auto;
        justify-self: center;
    }
    .hero-portrait-col {
        margin-top: 1.5rem;
    }
    .hero-portrait-img {
        width: 75%;
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
    .hero-stats {
        max-width: 100% !important;
    }

    /* Fix invisible links in mobile menu on light theme */
    [data-theme='light'] .navbar-dark .navbar-nav .nav-link {
        color: rgba(15, 23, 42, 0.85) !important;
    }
    [data-theme='light'] .navbar-dark .navbar-nav .nav-link:hover,
    [data-theme='light'] .navbar-dark .navbar-nav .nav-link.active {
        color: #0f172a !important;
    }
}

@media (max-width: 768px) {
    /* Mobile Navbar Overrides */
    .navbar {
        height: 64px !important;
        max-height: 64px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex;
        align-items: center;
    }
    .navbar > .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
    .navbar-brand {
        font-size: clamp(1.1rem, 4.5vw, 1.25rem) !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .theme-toggle-btn, .navbar-toggler {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
    }

    .hero-section {
        text-align: center;
        padding-top: 80px; /* Reduced for mobile */
        padding-bottom: 20px;
        min-height: auto !important;
        height: auto !important;
    }
    .hero-left-content {
        padding-right: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-title {
        margin-bottom: 0.25rem !important;
    }
    .hero-role {
        justify-content: center;
        min-height: auto;
        margin-bottom: 1rem !important;
    }
    .hero-accent-line {
        margin-bottom: 1rem !important;
    }
    .hero-description {
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        margin-bottom: 1.5rem !important; /* Overriding .mb-5 */
    }
    
    .hero-buttons-wrapper {
        flex-direction: column !important;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 1.5rem auto !important;
        gap: 16px;
        justify-content: center;
        align-items: center;
    }
    .hero-buttons-wrapper .btn {
        width: 100%;
        margin-bottom: 0;
    }
    
    .hero-stats {
        margin-bottom: 1.5rem !important; /* Overriding .mb-5 */
    }

    .hero-portrait-col {
        margin-top: 0rem;
    }
    .hero-portrait-img {
        width: 75%;
        max-width: 280px;
    }
    
    /* Footer responsiveness */
    footer .row {
        text-align: center;
    }
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .hero-stat-item:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .hero-role {
        font-size: 1.2rem !important;
    }
    .hero-section {
        padding-top: 70px;
    }
}

@media (max-width: 375px) {
    .hero-stats {
        gap: 12px;
    }
    .hero-stat-icon {
        font-size: 1.2rem !important;
    }
    .hero-stat-number {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 2rem !important;
    }
}
}

/* 3D Glassmorphism Cards */
.glass-card-3d {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    border-radius: 1rem !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.glass-card-3d::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    pointer-events: none;
}

.glass-card-3d:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(0, 168, 255, 0.4) !important;
}

.glass-card-3d:hover::before {
    left: 200%;
}

[data-theme="light"] .glass-card-3d {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08) !important;
}

[data-theme="light"] .glass-card-3d::before {
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
}

[data-theme="light"] .glass-card-3d:hover {
    box-shadow: 0 15px 45px 0 rgba(31, 38, 135, 0.15) !important;
    border-color: var(--primary-color) !important;
}
