:root {
    --color-bg: #2C3E50;
    --color-panel: #34495E;
    --color-border: #7F8C8D;
    --color-muted: #BDC3C7;
    --color-light: #ECF0F1;
    --color-text: #ECF0F1;
    --panel-shadow: 0 15px 35px rgba(20, 30, 40, 0.5);
    --font-primary: "Inter", sans-serif;
    --font-heading: "Poppins", sans-serif;
    --sticky-bg: rgba(44, 62, 80, 0.95);
    --input-bg: rgba(255, 255, 255, 0.05);
    --badge-bg: rgba(255, 255, 255, 0.05);
    --footer-bg: rgba(0, 0, 0, 0.2);
    --footer-border: rgba(255, 255, 255, 0.1);
    --back-gradient: radial-gradient(circle at 0% 0%, rgba(196, 181, 253, 0.85) 0%, rgba(147, 108, 247, 0.4) 28%, rgba(139, 92, 246, 0.16) 48%, rgba(139, 92, 246, 0) 62%), #0B1120;
    --back-border: rgba(255, 255, 255, 0.16);
    --crystal-glass: linear-gradient(135deg,
            rgba(236, 240, 241, 0.14) 0%,
            rgba(52, 73, 94, 0.26) 50%,
            rgba(44, 62, 80, 0.36) 100%);
    --crystal-solid: rgba(52, 73, 94, 0.30);
    --crystal-edge: rgba(236, 240, 241, 0.18);
    --crystal-inset: inset 0 1px 0 rgba(236, 240, 241, 0.15);
}

[data-theme="light"] {
    --color-bg: #F2F8FF;
    --color-panel: #FFFFFF;
    --color-border: #CFE4F8;
    --color-muted: #5B728A;
    --color-light: #0F172A;
    --color-text: #15243A;
    --panel-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    --sticky-bg: rgba(242, 248, 255, 0.92);
    --input-bg: rgba(255, 255, 255, 0.9);
    --badge-bg: rgba(15, 23, 42, 0.05);
    --footer-bg: rgba(248, 251, 255, 0.9);
    --footer-border: rgba(207, 228, 248, 0.9);
    --back-gradient: radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.35) 0%, rgba(59, 130, 246, 0.18) 30%, rgba(14, 165, 233, 0.08) 58%, rgba(14, 165, 233, 0) 74%), #F7FBFF;
    --back-border: rgba(15, 23, 42, 0.1);
    --crystal-glass: linear-gradient(135deg,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(238, 247, 255, 0.8) 48%,
            rgba(214, 232, 248, 0.68) 100%);
    --crystal-solid: rgba(255, 255, 255, 0.7);
    --crystal-edge: rgba(15, 23, 42, 0.12);
    --crystal-inset: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    font-family: var(--font-primary);
    transition: background-color 0.35s ease, color 0.35s ease;
    box-sizing: border-box;
}

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

body {
    width: 100%;
}

body {
    background-color: var(--color-bg);
    font-family: var(--font-primary);
    color: var(--color-text);
    position: relative;
    z-index: 0;
    padding-top: 70px;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

button, input, select, textarea, optgroup {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6,
.hero-heading,
.navbar .navbar-brand {
    font-family: var(--font-heading);
}

section h2 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-heading {
    font-weight: 600;
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
}

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

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

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

.hero-description {
    color: var(--color-muted) !important;
}

/* --- Hero Section & Video / Tech Network Sphere Styling --- */
.hero-badge {
    background: linear-gradient(135deg,
            rgba(236, 240, 241, 0.14) 0%,
            rgba(52, 73, 94, 0.26) 50%,
            rgba(44, 62, 80, 0.36) 100%);
    border: 1px solid rgba(236, 240, 241, 0.18);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-light);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 8px 25px rgba(20, 25, 45, 0.18), inset 0 1px 0 rgba(236, 240, 241, 0.15);
    transition: all 0.3s ease;
}

[data-theme="light"] .hero-badge {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.75) 0%,
            rgba(235, 243, 250, 0.55) 50%,
            rgba(203, 213, 225, 0.42) 100%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-badge .badge-icon {
    color: #3b82f6;
}

.hero-heading {
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#element.gradient-text-purple {
    background: linear-gradient(135deg, #7dd3fc 0%, #a78bfa 35%, #818cf8 60%, #e0e7ff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] #element.gradient-text-purple {
    background: linear-gradient(135deg, #0B1120 0%, #312e81 30%, #5b21b6 55%, #93c5fd 78%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .gradient-text-blue {
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text-purple {
    background: linear-gradient(135deg, #9333ea 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Concentric Infinite Looping Tech Orbit System --- */
.tech-network-container {
    width: 100%;
    max-width: 440px;
    height: 440px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

@media (max-width: 576px) {
    .tech-network-container {
        max-width: 280px;
        height: 280px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .tech-network-container {
        max-width: 360px;
        height: 360px;
    }
}

.tech-orbit-core {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid #61dafb;
    box-shadow: 0 0 35px rgba(97, 218, 251, 0.5), inset 0 0 15px rgba(97, 218, 251, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #61dafb;
    z-index: 10;
    animation: corePulse 3s ease-in-out infinite alternate;
}

[data-theme="light"] .tech-orbit-core {
    background: rgba(255, 255, 255, 0.95);
}

@keyframes corePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 25px rgba(97, 218, 251, 0.4); }
    100% { transform: scale(1.08); box-shadow: 0 0 45px rgba(97, 218, 251, 0.7); }
}

.tech-orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-1 {
    width: 190px;
    height: 190px;
    z-index: 5;
    animation: orbitRotate 16s linear infinite;
}

.ring-2 {
    width: 300px;
    height: 300px;
    z-index: 4;
    border-color: rgba(168, 85, 247, 0.22);
    animation: orbitRotateReverse 24s linear infinite;
}

.ring-3 {
    width: 410px;
    height: 410px;
    z-index: 3;
    border-color: rgba(6, 182, 212, 0.2);
    animation: orbitRotate 32s linear infinite;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitRotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Orbit Node Item Styling */
.orbit-item {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

[data-theme="light"] .orbit-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #1e293b;
    box-shadow: 0 6px 18px rgba(30, 41, 59, 0.12);
}

.orbit-item:hover {
    transform: scale(1.4) !important;
    border-color: #3b82f6;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.7);
    color: #3b82f6 !important;
    z-index: 20;
}

/* Individual Icon Brand Colors */
.orbit-item i.fa-js { color: #f7df1e; }
.orbit-item i.fa-python { color: #3776ab; }
.orbit-item i.fa-html5 { color: #e34f26; }
.orbit-item i.fa-css3-alt { color: #1572b6; }
.orbit-item i.fa-database { color: #38bdf8; }
.orbit-item i.fa-git-alt { color: #f05032; }

.orbit-item i.fa-node-js { color: #68a063; }
.orbit-item i.fa-code { color: #a855f7; }
.orbit-item i.fa-brain { color: #ec4899; }
.orbit-item i.fa-cloud { color: #06b6d4; }
.orbit-item i.fa-github { color: #e2e8f0; }
.orbit-item i.fa-mobile-screen { color: #10b981; }
.orbit-item i.fa-laptop-code { color: #3b82f6; }
.orbit-item i.fa-server { color: #f59e0b; }

.orbit-item i.fa-bootstrap { color: #7952b3; }
.orbit-item i.fa-shield-halved { color: #ef4444; }
.orbit-item i.fa-network-wired { color: #06b6d4; }
.orbit-item i.fa-fire { color: #ffca28; }
.orbit-item i.fa-bolt { color: #facc15; }
.orbit-item i.fa-cubes { color: #8b5cf6; }
.orbit-item i.fa-terminal { color: #22c55e; }
.orbit-item i.fa-layer-group { color: #3b82f6; }

/* Skill Badge Icon Colors — matching orbit colors */
.badge i.fa-python { color: #3776ab; }
.badge i.fa-java { color: #007396; }
.badge i.fa-js { color: #f7df1e; }
.badge i.fa-code { color: #a855f7; }
.badge i.fa-html5 { color: #e34f26; }
.badge i.fa-css3-alt { color: #1572b6; }
.badge i.fa-bootstrap { color: #7952b3; }
.badge i.fa-react { color: #61dafb; }
.badge i.fa-wand-magic-sparkles { color: #06b6d4; }
.badge i.fa-mobile-screen { color: #10b981; }
.badge i.fa-database { color: #38bdf8; }
.badge i.fa-node-js { color: #68a063; }
.badge i.fa-bolt { color: #facc15; }
.badge i.fa-plug { color: #f59e0b; }
.badge i.fa-lock { color: #ef4444; }
.badge i.fa-cloud { color: #06b6d4; }
.badge i.fa-github { color: #e2e8f0; }
.badge i.fa-git-alt { color: #f05032; }
.badge i.fa-fire { color: #ffca28; }
.badge i.fa-code-branch { color: #8b5cf6; }

/* Counter Rotate Children so Icons Stay Upright While Orbiting */
.ring-1 .orbit-item { animation: counterRotate 16s linear infinite; }
.ring-2 .orbit-item { animation: counterRotateReverse 24s linear infinite; }
.ring-3 .orbit-item { animation: counterRotate 32s linear infinite; }

@keyframes counterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes counterRotateReverse {
    from { transform: rotate(-360deg); }
    to { transform: rotate(0deg); }
}

/* Orbit Node Positioning around Rings */
/* Ring 1 (6 Items - 60 deg steps) */
.item-1-1 { top: -22px; left: calc(50% - 22px); }
.item-1-2 { top: 25px; right: -10px; }
.item-1-3 { bottom: 25px; right: -10px; }
.item-1-4 { bottom: -22px; left: calc(50% - 22px); }
.item-1-5 { bottom: 25px; left: -10px; }
.item-1-6 { top: 25px; left: -10px; }

/* Ring 2 (8 Items - 45 deg steps) */
.item-2-1 { top: -22px; left: calc(50% - 22px); }
.item-2-2 { top: 20px; right: 20px; }
.item-2-3 { top: calc(50% - 22px); right: -22px; }
.item-2-4 { bottom: 20px; right: 20px; }
.item-2-5 { bottom: -22px; left: calc(50% - 22px); }
.item-2-6 { bottom: 20px; left: 20px; }
.item-2-7 { top: calc(50% - 22px); left: -22px; }
.item-2-8 { top: 20px; left: 20px; }

/* Ring 3 (8 Items - Outer Ring) */
.item-3-1 { top: -22px; left: calc(50% - 22px); }
.item-3-2 { top: 38px; right: 38px; }
.item-3-3 { top: calc(50% - 22px); right: -22px; }
.item-3-4 { bottom: 38px; right: 38px; }
.item-3-5 { bottom: -22px; left: calc(50% - 22px); }
.item-3-6 { bottom: 38px; left: 38px; }
.item-3-7 { top: calc(50% - 22px); left: -22px; }
.item-3-8 { top: 38px; left: 38px; }

.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    z-index: 1030;
}

@media (max-width: 768px) {
    .navbar {
        transition: none;
    }

    .offcanvas {
        backdrop-filter: none;
    }

    .sticky {
        backdrop-filter: none;
    }

    .offcanvas ~ .container,
    .offcanvas ~ * {
        transition: none;
    }
}



.navbar .navbar-brand {
    color: var(--color-light);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.navbar-toggler {
    color: var(--color-light);
    border: none;
    font-size: 28px;
}

.navbar .nav-link {
    color: var(--color-muted);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    margin: 0 10px;
    position: relative;
    background-clip: text;
    -webkit-background-clip: text;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #c084fc, #7dd3fc);
    transition: width 0.3s ease, left 0.3s ease;
}

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

.navbar .nav-link:hover {
    background: linear-gradient(135deg, #c084fc, #7dd3fc) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.navbar .nav-link.glass-click {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.22);
    transition: box-shadow 0.3s ease;
}

[data-theme="light"] .navbar .nav-link.glass-click {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.72) 0%,
            rgba(235, 243, 250, 0.52) 50%,
            rgba(203, 213, 225, 0.38) 100%) !important;
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 4px 18px rgba(30, 41, 59, 0.10);
}

[data-theme="light"] .navbar .nav-link:hover {
    background: linear-gradient(135deg, #9333ea, #2563eb) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

[data-theme="light"] .navbar .nav-link::after {
    background: linear-gradient(90deg, #9333ea, #2563eb);
}

[data-theme="light"] .offcanvas-body .nav-link:hover {
    background: transparent;
}

.btn.glass-click {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.4s ease-out;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="light"] .btn.glass-click {
    background: rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
}

/* Experience timeline scroll line */
.experience-timeline {
    position: relative;
    padding-left: 26px;
}

.timeline-line-bg {
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(127, 140, 141, 0.3);
    border-radius: 999px;
}

.timeline-line-fill {
    position: absolute;
    left: 10px;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #ECF0F1 0%, #34495E 100%);
    box-shadow: 0 0 20px rgba(189, 195, 199, 0.45);
    border-radius: 999px;
}

[data-theme="light"] .timeline-line-bg {
    background: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .timeline-line-fill {
    background: linear-gradient(180deg, #0F172A 0%, #94A3B8 100%);
    box-shadow: 0 0 20px rgba(71, 85, 105, 0.35);
}

.timeline-center-dot {
    position: absolute;
    left: 12px;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-center-dot .dot-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #ECF0F1 0%, #34495E 100%);
}

.timeline-center-dot .dot-hollow {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--color-bg);
}

.timeline-center-dot .dot-fill {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ECF0F1 0%, #34495E 100%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.timeline-center-dot.filled .dot-fill {
    transform: scale(1);
    opacity: 1;
}

[data-theme="light"] .timeline-center-dot .dot-ring {
    background: linear-gradient(180deg, #0F172A 0%, #94A3B8 100%);
}

[data-theme="light"] .timeline-center-dot .dot-fill {
    background: linear-gradient(180deg, #0F172A 0%, #94A3B8 100%);
}

@media (max-width: 575.98px) {
    .timeline-center-dot {
        left: 8px;
    }
}

@media (max-width: 575.98px) {
    .experience-timeline {
        padding-left: 22px;
    }

    .timeline-line-bg {
        left: 7px;
    }

    .timeline-line-fill {
        left: 6px;
    }
}

/* Info stats strip */
.info-grid-strip {
    position: relative;
    padding: 20px;
    overflow: hidden;
    width: 100%;
    min-width: 100%;
}

.info-grid-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    will-change: transform;
}

.info-set {
    display: flex;
    gap: 24px;
    padding-right: 24px;
}

.info-grid-fade-left,
.info-grid-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 1;
}

.info-grid-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}

.info-grid-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

.info-card {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    min-height: 190px;
    border: 1px solid rgba(118, 115, 115, 0.724);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #020b27;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(85% 110% at 50% -5%, rgba(120, 60, 220, 0.6) 0%, rgba(90, 40, 180, 0.22) 40%, transparent 68%);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.info-card-label {
    position: relative;
    z-index: 1;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.info-card-stat {
    position: relative;
    z-index: 1;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}

.info-card-bottom {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(141, 89, 255, 0.3);
    transition: border-color 0.3s ease;
}

.info-card:hover .info-card-glow {
    opacity: 1;
}

.info-card:hover .info-card-bottom {
    transform: translateY(-6px);
    opacity: 0.8;
}

[data-theme="light"] .info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 248, 255, 0.94) 45%, rgba(222, 239, 250, 0.95) 100%);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .info-card-glow {
    background: radial-gradient(85% 110% at 50% -5%, rgba(56, 189, 248, 0.26) 0%, rgba(59, 130, 246, 0.12) 42%, transparent 70%);
    opacity: 0;
}

[data-theme="light"] .info-card:hover .info-card-glow {
    opacity: 0.9;
}

[data-theme="light"] .info-card-label {
    color: rgba(30, 41, 59, 0.62);
}

[data-theme="light"] .info-card-stat {
    color: #0F172A;
}

[data-theme="light"] .info-card-bottom {
    color: rgba(15, 23, 42, 0.58);
}

[data-theme="light"] .info-card:hover {
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 20px 40px -16px rgba(59, 130, 246, 0.22);
}

@media (max-width: 640px) {
    .info-grid-strip {
        padding: 30px 20px;
    }

    .info-grid-fade-left,
    .info-grid-fade-right {
        width: 60px;
    }

    .info-set {
        gap: 12px;
        padding-right: 12px;
    }

    .info-card {
        width: 200px;
        min-height: 160px;
        padding: 16px;
    }

    .info-card-stat {
        font-size: 26px;
    }
    .info-card-label {
        font-size: 12px;
    }
    .info-card-bottom {
        font-size: 12px;
    }
}

.sticky {
    background: var(--sticky-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1030 !important;
}

@media (max-width: 768px) {
    .sticky {
        backdrop-filter: none;
    }
}

/* Glassmorphism navbar (large screens) — crystal glass on scroll */
@media (min-width: 769px) {
    .navbar {
        background: transparent;
        transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
    }

    .navbar.sticky {
        background: linear-gradient(135deg,
                rgba(44, 62, 80, 0.62) 0%,
                rgba(52, 73, 94, 0.46) 28%,
                rgba(127, 140, 141, 0.30) 52%,
                rgba(236, 240, 241, 0.10) 72%,
                rgba(44, 62, 80, 0.62) 100%) !important;
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        border-bottom: 1px solid rgba(189, 195, 199, 0.22);
        box-shadow:
            0 8px 32px rgba(20, 25, 45, 0.28),
            inset 0 1px 0 rgba(236, 240, 241, 0.16),
            0 0 44px rgba(44, 62, 80, 0.35);
    }

    .navbar.sticky::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,
                transparent,
                rgba(236, 240, 241, 0.85) 30%,
                rgba(127, 140, 141, 0.85) 70%,
                transparent);
        pointer-events: none;
    }

    .navbar.sticky .nav-link {
        color: var(--color-light);
    }

    [data-theme="light"] .navbar {
        background: transparent;
    }

    [data-theme="light"] .navbar.sticky {
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.88) 0%,
                rgba(235, 243, 250, 0.74) 30%,
                rgba(203, 213, 225, 0.55) 55%,
                rgba(71, 85, 105, 0.28) 82%,
                rgba(255, 255, 255, 0.88) 100%) !important;
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        border-bottom: 1px solid rgba(15, 23, 42, 0.12);
        box-shadow:
            0 8px 32px rgba(30, 41, 59, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.8),
            0 0 40px rgba(203, 213, 225, 0.6);
    }

    [data-theme="light"] .navbar.sticky::before {
        background: linear-gradient(90deg,
                transparent,
                rgba(71, 85, 105, 0.55) 30%,
                rgba(203, 213, 225, 0.9) 70%,
                transparent);
    }
}

.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--color-light);
    color: var(--color-light);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, color 0.3s ease;
    transform: scale(1);
    outline: none;
    padding: 0;
}

.theme-toggle-btn:hover {
    background: var(--color-light);
    color: var(--color-bg);
    transform: scale(1.08);
}

/* Full-screen Theme Transition Burst Effect */
.theme-burst-overlay {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%) scale(0.1);
    animation: themeBurstExpand 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.2);
}

@keyframes themeBurstExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0.95;
    }

    60% {
        opacity: 0.95;
    }

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

.theme-transitioning .theme-toggle-btn,
.theme-transitioning .navbar,
.theme-transitioning .hero-badge,
.theme-transitioning .info-card,
.theme-transitioning .tech-orbit-core,
.theme-transitioning .orbit-item,
.theme-transitioning .project-card,
.theme-transitioning .contact-card,
.theme-transitioning .footer,
.theme-transitioning .btn-dark,
.theme-transitioning .btn-orange,
.theme-transitioning .btn-outline-light,
.theme-transitioning .btn-light {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.btn-flip-wrapper {
    display: inline-block;
    perspective: 400px;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.btn-dark,
.btn-orange,
.btn-outline-light {
    min-width: 140px;
    width: auto;
    padding: 0 24px;
    height: 50px;
    border: 2px solid var(--color-light);
    outline: none;
    border-radius: 20px;
    background-color: transparent;
    color: var(--color-light);
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform: perspective(400px) rotateY(0deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-flip-wrapper:hover .btn-dark,
.btn-flip-wrapper:hover .btn-orange,
.btn-flip-wrapper:hover .btn-outline-light {
    background-color: var(--color-light);
    color: var(--color-bg) !important;
    transform: perspective(400px) translateY(-3px) rotateY(180deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-light {
    min-width: 140px;
    width: auto;
    padding: 0 24px;
    height: 50px;
    border: 2px solid var(--color-light);
    border-radius: 20px;
    background-color: transparent;
    color: var(--color-light);
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform: perspective(400px) rotateY(0deg);
}

.btn-flip-wrapper:hover .btn-light {
    background-color: var(--color-light);
    color: var(--color-bg) !important;
    transform: perspective(400px) translateY(-3px) rotateY(180deg);
}

[data-theme="light"] .btn-dark,
[data-theme="light"] .btn-orange,
[data-theme="light"] .btn-outline-light,
[data-theme="light"] .btn-light {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform: perspective(400px) rotateY(0deg);
}

[data-theme="light"] .btn-flip-wrapper:hover .btn-dark,
[data-theme="light"] .btn-flip-wrapper:hover .btn-orange,
[data-theme="light"] .btn-flip-wrapper:hover .btn-outline-light,
[data-theme="light"] .btn-flip-wrapper:hover .btn-light {
    transform: perspective(400px) translateY(-3px) rotateY(180deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-flip-wrapper:hover .btn span,
[data-theme="light"] .btn-flip-wrapper:hover .btn i {
    transform: rotateY(-180deg);
}

/* Counter-rotate button text and icons so they remain readable and don't spin 360 degrees */
.btn span,
.btn i {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotateY(0deg);
}

.btn-flip-wrapper:hover .btn span,
.btn-flip-wrapper:hover .btn i {
    transform: rotateY(-180deg);
}

/* === Crystal glass effect on all buttons (all screen sizes) === */
.btn-dark,
.btn-orange,
.btn-outline-light,
.btn-light,
.theme-toggle-btn,
.scroll-top-btn,
.btn-close-tooltip,
.flip-pill,
.flip-linkedin-pill,
.flip-icon-link1,
.flip-icon-link2,
.project-link,
.skills-tabs .nav-link .tab-flip-inner {
    background-image: var(--crystal-glass) !important;
    background-color: transparent !important;
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    box-shadow: 0 2px 10px rgba(20, 25, 45, 0.10), var(--crystal-inset);
}

.project-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--crystal-edge);
    font-size: 1.2rem;
    text-decoration: none;
}

.flip-pill-deploy {
    background-image: linear-gradient(135deg, rgba(46, 204, 113, 0.16) 0%, transparent 55%), var(--crystal-glass) !important;
    border-color: rgba(46, 204, 113, 0.45) !important;
}

.flip-pill-disabled {
    background-image: linear-gradient(135deg, rgba(127, 140, 141, 0.18) 0%, transparent 55%), var(--crystal-glass) !important;
}

/* Restore solid hover/active backgrounds over the crystal glass */
.btn-flip-wrapper:hover .btn-dark,
.btn-flip-wrapper:hover .btn-orange,
.btn-flip-wrapper:hover .btn-outline-light,
.btn-flip-wrapper:hover .btn-light {
    background: var(--color-light) !important;
}

.theme-toggle-btn:hover,
.scroll-top-btn:hover {
    background: var(--color-light) !important;
}

.flip-linkedin-pill:hover,
.flip-icon-link1:hover,
.flip-icon-link2:hover,
.project-link:hover {
    background: #ffffff !important;
}

.flip-pill:hover {
    background: rgba(127, 140, 141, 0.2) !important;
}

.btn-close-tooltip:hover {
    background-image: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) !important;
}

/* Keep the click flash visible on top of the crystal glass */
.btn.glass-click {
    background: rgba(255, 255, 255, 0.12) !important;
    background-image: none !important;
}

[data-theme="light"] .btn.glass-click {
    background: rgba(15, 23, 42, 0.08) !important;
    background-image: none !important;
}



/* Skills Tab Navigation */
.skills-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start !important;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.skills-tabs::-webkit-scrollbar {
    height: 3px;
}
.skills-tabs::-webkit-scrollbar-track {
    background: transparent;
}
.skills-tabs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}
.skills-tabs .nav-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}
.skills-tabs .nav-link {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: inherit;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    perspective: 400px;
    overflow: visible;
}
.skills-tabs .nav-link .tab-flip-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 50px !important;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    transform: rotateY(0deg);
}
.skills-tabs .nav-link:hover .tab-flip-inner {
    transform: rotateY(180deg);
    background: var(--color-light) !important;
    border-color: var(--color-light) !important;
    color: #1e293b !important;
}
[data-theme="light"] .skills-tabs .nav-link:hover .tab-flip-inner {
    color: #fff !important;
    background: #334155 !important;
    border-color: #334155 !important;
}
.skills-tabs .nav-link.active .tab-flip-inner {
    background: var(--color-light) !important;
    border-color: var(--color-light) !important;
    color: #1e293b !important;
    transform: rotateY(0deg);
}
[data-theme="light"] .skills-tabs .nav-link.active .tab-flip-inner {
    color: #fff !important;
    background: #334155 !important;
    border-color: #334155 !important;
}
.skills-tabs .nav-link .tab-flip-text {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotateY(0deg) translateZ(0);
}
.skills-tabs .nav-link:hover .tab-flip-text {
    transform: rotateY(-180deg);
}
.skills-tabs .nav-link.active .tab-flip-text {
    transform: rotateY(0deg);
}

/* Slide-in animation for tab panes */
#skills .tab-content {
    user-select: none;
}
#skills .tab-pane.slide-in-right {
    animation: slideFromRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#skills .tab-pane.slide-in-left {
    animation: slideFromLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes slideFromRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

.p-4.bg-dark {
    background: var(--color-panel) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 24px !important;
    box-shadow: var(--panel-shadow) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.p-4.bg-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 210px;
    height: 210px;
    border-radius: 24px 0 24px 0;
    background: radial-gradient(circle at top left,
            rgba(236, 240, 241, 0.13) 0%,
            rgba(189, 195, 199, 0.05) 40%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .p-4.bg-dark::before {
    background: radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(203, 213, 225, 0.18) 45%,
            transparent 65%);
}

.p-4.bg-dark:hover {
    transform: translateY(-10px);
    border-color: var(--color-light) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

#project h4,
#skills h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-light) !important;
}

.badge {
    background: var(--badge-bg) !important;
    border: 1px solid var(--color-border);
    color: var(--color-light) !important;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.badge:hover {
    background: rgba(127, 140, 141, 0.2) !important;
    border-color: var(--color-light);
}

.skill-badge {
    width: 100px;
    height: 100px;
    border-radius: 20px !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 !important;
    overflow: hidden;
}
.skill-badge i {
    font-size: 2rem;
    line-height: 1;
}
.skill-badge .small {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    max-width: 85px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Square skill card */
.skill-card {
    max-width: 90%;
    margin: 0 auto;
    border-radius: 24px !important;
}
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 100px);
    gap: 0.5rem;
    justify-content: center;
    align-items: start;
}

/* Responsive grid adjustments */
@media (max-width: 1199px) {
    .skill-grid {
        grid-template-columns: repeat(auto-fit, 105px);
        gap: 0.6rem;
    }
}

@media (max-width: 991px) {
    .skill-grid {
        grid-template-columns: repeat(auto-fit, 100px);
        gap: 0.5rem;
    }
}

@media (max-width: 767px) {
    .skill-grid {
        grid-template-columns: repeat(auto-fit, 90px);
        gap: 0.4rem;
    }
}

@media (max-width: 575px) {
    .skill-grid {
        grid-template-columns: repeat(auto-fit, 80px);
        gap: 0.35rem;
    }
}

@media (max-width: 400px) {
    .skill-grid {
        grid-template-columns: repeat(auto-fit, 70px);
        gap: 0.3rem;
    }
}

#contact form .form-control {
    background: var(--input-bg);
    border: 1px solid var(--color-border);
    color: var(--color-light);
    border-radius: 15px;
    padding: 15px;
    transition: 0.3s;
}

#contact form .form-control:focus {
    background: var(--color-panel);
    border-color: var(--color-light);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    color: var(--color-light);
}

.project-link {
    color: var(--color-muted) !important;
    font-size: 1.5rem;
    transition: 0.3s;
}

.project-link:hover {
    color: var(--color-light) !important;
    transform: scale(1.2);
}

/* ─── Advanced Footer ─────────────────────────────────── */
.site-footer {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(11, 17, 32, 0.0)  0%,
        rgba(11, 17, 32, 0.72) 18%,
        rgba(11, 17, 32, 0.92) 100%
    ), var(--footer-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-top: 1px solid var(--footer-border);
    color: var(--color-muted);
    overflow: hidden;
}

/* Animated gradient glow line at the very top of the footer */
.footer-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #a855f7 25%,
        #3b82f6 50%,
        #06b6d4 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: footerGlowSweep 4s linear infinite;
}

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

.footer-inner {
    padding-top: 4rem;
    padding-bottom: 3rem;
}

/* Brand */
.footer-brand {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-light);
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.footer-brand-dot {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    max-width: 320px;
}

/* Social buttons */
.footer-social-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--crystal-edge);
    background: var(--crystal-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-muted);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.footer-social-btn:hover {
    transform: translateY(-4px) scale(1.08);
    color: #fff;
}

/* Brand-specific hover colors */
.footer-social-btn[data-social="github"]:hover {
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(226, 232, 240, 0.3);
    background: rgba(226, 232, 240, 0.12);
    color: #e2e8f0;
}

.footer-social-btn[data-social="linkedin"]:hover {
    border-color: #0a66c2;
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.45);
    background: rgba(10, 102, 194, 0.15);
    color: #0a66c2;
}

.footer-social-btn[data-social="whatsapp"]:hover {
    border-color: #25d366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
}

.footer-social-btn[data-social="email"]:hover {
    border-color: #ea4335;
    box-shadow: 0 8px 24px rgba(234, 67, 53, 0.4);
    background: rgba(234, 67, 53, 0.12);
    color: #ea4335;
}

/* Column title */
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-light);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
}

/* Quick links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--color-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s ease, gap 0.25s ease;
    position: relative;
}

.footer-links a::before {
    content: '›';
    font-size: 1rem;
    line-height: 1;
    color: #a855f7;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
    color: var(--color-light);
    gap: 0.6rem;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact list */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #c084fc;
    margin-top: 1px;
}

.footer-contact-list a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.25s ease;
    word-break: break-word;
}

.footer-contact-list a:hover {
    color: var(--color-light);
}

.footer-contact-list span {
    color: var(--color-muted);
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 1rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.footer-copy strong {
    color: var(--color-light);
    font-weight: 600;
}

.footer-made-with {
    font-size: 0.82rem;
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-code-icon {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
}

/* Light theme overrides */
[data-theme="light"] .site-footer {
    background: linear-gradient(
        180deg,
        rgba(235, 243, 250, 0.0)  0%,
        rgba(235, 243, 250, 0.85) 18%,
        rgba(235, 243, 250, 0.97) 100%
    ), var(--footer-bg);
}

[data-theme="light"] .footer-brand {
    color: var(--color-light);
}

[data-theme="light"] .footer-social-btn {
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--color-muted);
}

[data-theme="light"] .footer-social-btn[data-social="github"]:hover  { color: #1f2937; border-color: #1f2937; box-shadow: 0 8px 24px rgba(31,41,55,0.2); background: rgba(31,41,55,0.08); }
[data-theme="light"] .footer-social-btn[data-social="linkedin"]:hover { color: #0a66c2; border-color: #0a66c2; box-shadow: 0 8px 24px rgba(10,102,194,0.3); background: rgba(10,102,194,0.08); }
[data-theme="light"] .footer-social-btn[data-social="whatsapp"]:hover { color: #128c7e; border-color: #128c7e; box-shadow: 0 8px 24px rgba(18,140,126,0.3); background: rgba(18,140,126,0.08); }
[data-theme="light"] .footer-social-btn[data-social="email"]:hover    { color: #ea4335; border-color: #ea4335; box-shadow: 0 8px 24px rgba(234,67,53,0.3);  background: rgba(234,67,53,0.08); }

[data-theme="light"] .footer-contact-icon {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(37, 99, 235, 0.08));
    border-color: rgba(147, 51, 234, 0.18);
    color: #9333ea;
}

/* Responsive footer */
@media (max-width: 767px) {
    .footer-inner {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.35rem;
    }
}

@media (max-width: 575px) {
    .footer-brand {
        font-size: 1.5rem;
    }

    .footer-col-title {
        font-size: 0.72rem;
    }

    .footer-links a,
    .footer-contact-list li {
        font-size: 0.8rem;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-panel);
    border: 2px solid var(--color-light);
    color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s, visibility 0.3s, background 0.4s, border-color 0.4s;
    box-shadow: var(--panel-shadow);
}

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

.scroll-top-btn:hover {
    background: var(--color-light);
    color: var(--color-bg);
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* --- About Section Redesign --- */

/* ── Reveal animation keyframes ── */
@keyframes aboutSlideLeft {
    0%   { opacity: 0; transform: translateX(-52px) scale(0.97); }
    60%  { opacity: 1; transform: translateX(6px)  scale(1.01); }
    100% { opacity: 1; transform: translateX(0)    scale(1);    }
}

@keyframes aboutSlideRight {
    0%   { opacity: 0; transform: translateX(52px)  scale(0.97); }
    60%  { opacity: 1; transform: translateX(-6px)  scale(1.01); }
    100% { opacity: 1; transform: translateX(0)     scale(1);    }
}

@keyframes aboutSlideUp {
    0%   { opacity: 0; transform: translateY(44px) scale(0.96); }
    60%  { opacity: 1; transform: translateY(-5px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Pre-animation hidden state */
[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
}

/* Instant reset when leaving viewport — no flash */
[data-reveal].reveal-reset {
    animation: none !important;
    transition: none !important;
}

[data-reveal="slide-left"]  { transform: translateX(-52px) scale(0.97); }
[data-reveal="slide-right"] { transform: translateX(52px)  scale(0.97); }
[data-reveal="slide-up"]    { transform: translateY(44px)  scale(0.96); }

/* Triggered state */
[data-reveal="slide-left"].revealed {
    animation: aboutSlideLeft 0.75s cubic-bezier(0.34, 1.26, 0.64, 1) forwards;
}

[data-reveal="slide-right"].revealed {
    animation: aboutSlideRight 0.75s cubic-bezier(0.34, 1.26, 0.64, 1) forwards;
}

[data-reveal="slide-up"].revealed {
    animation: aboutSlideUp 0.65s cubic-bezier(0.34, 1.26, 0.64, 1) forwards;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 0; transform: none; }
    [data-reveal].revealed {
        animation: none;
        opacity: 1;
        transform: none;
        transition: opacity 0.4s ease;
    }
}


.about-heading-underline {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
}

/* Journey Card */
.about-journey-card {
    background: var(--crystal-glass);
    border: 1px solid var(--crystal-edge);
    border-radius: 18px;
    padding: 2rem 2rem 1.75rem;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: var(--panel-shadow);
    transition: transform 0.18s ease-out, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.about-journey-card:hover {
    box-shadow: 0 22px 50px rgba(100, 60, 200, 0.3), 0 0 0 1px rgba(168, 85, 247, 0.2);
}

.about-journey-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-light);
    margin-bottom: 1.25rem;
}

.about-journey-text {
    font-family: var(--font-primary);
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.about-journey-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--crystal-solid);
    border: 1px solid var(--crystal-edge);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-muted);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    flex-shrink: 0;
}

/* Trait Cards */
.about-trait-card {
    background: var(--crystal-glass);
    border: 1px solid var(--crystal-edge);
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: var(--panel-shadow);
    transition: transform 0.18s ease-out, box-shadow 0.3s ease;
    height: 100%;
    will-change: transform;
}

.about-trait-card:hover {
    box-shadow: 0 18px 42px rgba(100, 60, 200, 0.28), 0 0 0 1px rgba(168, 85, 247, 0.18);
}

.about-trait-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--icon-gradient, linear-gradient(135deg, #a855f7, #3b82f6));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 6px 18px rgba(100, 60, 200, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-radius 0.35s ease;
}

.about-trait-icon i {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-trait-card:hover .about-trait-icon {
    transform: scale(1.18) translateY(-3px);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.55), 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.about-trait-card:hover .about-trait-icon i {
    transform: rotate(360deg) scale(1.1);
}

.about-trait-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-light);
    margin-bottom: 0.5rem;
}

.about-trait-text {
    font-family: var(--font-primary);
    color: var(--color-muted);
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Light theme overrides for about cards */
[data-theme="light"] .about-journey-card,
[data-theme="light"] .about-trait-card {
    box-shadow: 0 8px 28px rgba(30, 41, 59, 0.1);
}

[data-theme="light"] .about-journey-card:hover,
[data-theme="light"] .about-trait-card:hover {
    box-shadow: 0 14px 36px rgba(30, 41, 59, 0.16);
}

[data-theme="light"] .about-journey-title,
[data-theme="light"] .about-trait-title {
    color: var(--color-light);
}

[data-theme="light"] .about-heading-underline {
    background: linear-gradient(90deg, #9333ea, #2563eb);
}

/* Project Card Thumbnails */
.project-card-img-wrapper {
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.2rem;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #090d16;
    border: 2px solid var(--color-border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.project-card-img-wrapper:hover .project-card-img {
    transform: scale(1.05);
}

/* === 3D Flip Cards === */
.company-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
}

.flip-card {
    perspective: 1400px;
    width: 100%;
    min-height: 260px;
    cursor: pointer;
    outline: none;
}

.flip-card-inner {
    display: grid;
    width: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow: var(--panel-shadow);
    padding: 1.5rem;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: border-color 0.3s ease;
    position: relative;
}

/* Crystal corner sheen on card faces */
.flip-face::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 190px;
    height: 190px;
    border-radius: 24px 0 24px 0;
    background: radial-gradient(circle at top left,
            rgba(236, 240, 241, 0.14) 0%,
            rgba(189, 195, 199, 0.06) 40%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .flip-face::before {
    background: radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.65) 0%,
            rgba(203, 213, 225, 0.20) 45%,
            transparent 65%);
}

.flip-back {
    transform: rotateY(180deg);
    gap: 0.9rem;
    background: var(--back-gradient);
    border-color: var(--back-border);
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-face h3,
.flip-face h4 {
    color: var(--color-light);
    font-weight: 600;
    margin: 0;
}

.flip-sub {
    color: var(--color-muted);
    margin: 0;
}

.flip-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-muted);
}

.flip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-light) !important;
    background: var(--badge-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    text-decoration: none;
    transition: 0.3s;
}

.flip-pill:hover {
    background: rgba(127, 140, 141, 0.2);
    border-color: var(--color-light);
    transform: translateY(-2px);
}

.flip-pill-deploy {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.45);
}

.flip-pill-deploy i {
    color: #2ecc71;
}

.flip-pill-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.flip-progress {
    height: 8px;
    background: var(--badge-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    overflow: hidden;
}

.flip-progress-fill {
    height: 100%;
    width: 50%;
    border-radius: 999px;
    background: var(--icon-color, linear-gradient(90deg, #8D59FF, #B26BFF));
}

.flip-bullets {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--color-muted);
    line-height: 1.6;
    text-align: left;
}

/* Project flip cards */
#project .flip-card {
    min-height: 380px;
}

#project .flip-impact {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-light);
}

/* Experience flip cards */
#experience .flip-card {
    min-height: 320px;
}

/* Skill flip cards */
.flip-skill {
    width: 100%;
    min-height: 150px;
    cursor: pointer;
    outline: none;
    margin: 0;
}

.flip-skill .flip-face:not(.flip-back) {
    width: 100%;
    aspect-ratio: 1;
    max-width: 100px;
    margin: 0 auto;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}

.flip-skill .flip-face:not(.flip-back)::before {
    display: none;
}

.flip-skill .flip-face:not(.flip-back) i {
    font-size: 2rem;
    line-height: 1;
    color: var(--color-light);
}

.flip-skill .flip-face:not(.flip-back) i.fa-python { color: #3776ab; }
.flip-skill .flip-face:not(.flip-back) i.fa-java { color: #007396; }
.flip-skill .flip-face:not(.flip-back) i.fa-js { color: #f7df1e; }
.flip-skill .flip-face:not(.flip-back) i.fa-code { color: #a855f7; }
.flip-skill .flip-face:not(.flip-back) i.fa-html5 { color: #e34f26; }
.flip-skill .flip-face:not(.flip-back) i.fa-css3-alt { color: #1572b6; }
.flip-skill .flip-face:not(.flip-back) i.fa-bootstrap { color: #7952b3; }
.flip-skill .flip-face:not(.flip-back) i.fa-react { color: #61dafb; }
.flip-skill .flip-face:not(.flip-back) i.fa-wand-magic-sparkles { color: #06b6d4; }
.flip-skill .flip-face:not(.flip-back) i.fa-mobile-screen { color: #10b981; }
.flip-skill .flip-face:not(.flip-back) i.fa-database { color: #38bdf8; }
.flip-skill .flip-face:not(.flip-back) i.fa-node-js { color: #68a063; }
.flip-skill .flip-face:not(.flip-back) i.fa-bolt { color: #facc15; }
.flip-skill .flip-face:not(.flip-back) i.fa-plug { color: #f59e0b; }
.flip-skill .flip-face:not(.flip-back) i.fa-lock { color: #ef4444; }
.flip-skill .flip-face:not(.flip-back) i.fa-cloud { color: #06b6d4; }
.flip-skill .flip-face:not(.flip-back) i.fa-github { color: #e2e8f0; }
.flip-skill .flip-face:not(.flip-back) i.fa-git-alt { color: #f05032; }
.flip-skill .flip-face:not(.flip-back) i.fa-fire { color: #ffca28; }
.flip-skill .flip-face:not(.flip-back) i.fa-code-branch { color: #8b5cf6; }

.flip-skill .flip-face:not(.flip-back) .small {
    font-size: 0.7rem;
    line-height: 1.2;
    color: var(--color-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flip-skill .flip-back {
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem !important;
    border-radius: 20px !important;
}

.flip-skill .flip-back .flip-card-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
}

.flip-skill .flip-back .flip-progress {
    width: 100%;
}

.flip-skill .flip-back .used-in {
    font-size: 0.66rem;
    line-height: 1.35;
    color: var(--color-muted);
}

.flip-linkedin-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 0.9rem;
    font-size: 1.15rem;
    color: var(--color-light) !important;
    background: var(--badge-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.flip-linkedin-pill:hover {
    color: #0A66C2 !important;
    background: #ffffff;
    border-color: #0A66C2;
    transform: translateY(-2px);
}
    
.flip-icon-link1, .flip-icon-link2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;    
    width: 40px;
    height: 40px;
    margin-top: 0.9rem;
    font-size: 1.15rem;
    color: var(--color-light) !important;
    background: var(--badge-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.flip-icon-link1:hover {
    color: #F59E0B !important;
    background: #ffffff;
    border-color: #F59E0B;
    transform: translateY(-2px);
}
.flip-icon-link2:hover {
    color: #000000 !important;
    background: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
}

#experience .flip-back .flip-top-actions .flip-linkedin-pill,
#experience .flip-back .flip-top-actions .flip-icon-link1 {
    margin-top: 0;
}

/* Education & Experience flip cards - icon links top right */
#education .flip-back,
#experience .flip-back {
    position: relative;
}
#education .flip-back .flip-icon-group,
#experience .flip-back .flip-icon-group {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
#education .flip-back .flip-icon-group .flip-icon-link1,
#education .flip-back .flip-icon-group .flip-icon-link2,
#experience .flip-back .flip-icon-group .flip-icon-link1,
#experience .flip-back .flip-icon-group .flip-icon-link2 {
    position: static;
    margin-top: 0;
}

/* Degree status mini card */
.degree-status-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--back-gradient);
    border: 1px solid var(--back-border);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--panel-shadow), 0 0 40px rgba(168, 85, 247, 0.15);
    z-index: 10000;
    text-align: left;
    min-width: 320px;
    max-width: 90vw;
    width: auto;
    animation: fadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}
.degree-status-tooltip.hidden {
    display: none;
}
.tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-bottom: 1px solid var(--back-border);
}
.tooltip-header i {
    font-size: 1.5rem;
    color: #a855f7;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tooltip-header h4 {
    margin: 0;
    color: var(--color-light);
    font-size: 1.1rem;
    font-weight: 600;
}
.tooltip-body {
    padding: 1.25rem 1.5rem;
}
.tooltip-body p {
    margin: 0.6rem 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.tooltip-body strong {
    color: var(--color-light);
}
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.pursuing {
    background: rgba(104, 160, 99, 0.2);
    color: #68a063;
    border: 1px solid rgba(104, 160, 99, 0.3);
}
.coming-soon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f59e0b !important;
    font-weight: 500;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px dashed rgba(245, 158, 11, 0.3);
}
.coming-soon i {
    color: #f59e0b;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.btn-close-tooltip {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: none;
    border-top: 1px solid var(--back-border);
    color: var(--color-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-close-tooltip:hover {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    color: #fff;
}
.degree-status-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
}
.degree-status-overlay.visible {
    display: block;
}
.certificate-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    font-size: 2rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 50%;
}
.certificate-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f59e0b !important;
    font-weight: 500;
}
.certificate-status i {
    color: #f59e0b;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .degree-status-tooltip {
        min-width: auto;
        width: 92vw;
        margin: 0 1rem;
    }
    .tooltip-header, .tooltip-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .btn-close-tooltip {
        padding: 0.875rem 1rem;
    }
}

/* Education flip cards */
#education .flip-card {
    min-height: 300px;
}

#education .flip-card .flip-face {
    min-height: 300px;
}

/* Make education cards layout identical to experience section */
#education .experience-cards {
    display: flex;
    flex-wrap: wrap;
}

#education .experience-cards .col-lg-10 {
    width: 100%;
    max-width: 83.3333%;
    flex: 0 0 83.3333%;
    margin-bottom: 1rem;
}

#education .experience-cards .col-lg-10:last-child {
    margin-bottom: 0 !important;
}

#education .flip-face:not(.flip-back) {
    border-left: 4px solid var(--color-light);
}

#education .company-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    #project .flip-card,
    #experience .flip-card,
    #education .flip-card {
        min-height: 340px;
    }
}

/* --- Offcanvas Drawer Mobile Navigation Menu --- */
.offcanvas {
    color: var(--color-text);
    border-left: 1px solid rgba(192, 132, 252, 0.25);
    background: linear-gradient(145deg,
            rgba(11, 17, 32, 0.18) 0%,
            rgba(44, 62, 80, 0.12) 50%,
            rgba(11, 17, 32, 0.22) 100%) !important;
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    box-shadow:
        inset 0 0 0 1px rgba(192, 132, 252, 0.18),
        inset 1px 0 0 rgba(125, 211, 252, 0.12),
        -12px 0 48px rgba(10, 15, 35, 0.25);
    width: min(280px, 100%) !important;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1055 !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
}


[data-theme="light"] .offcanvas {
    color: var(--color-text);
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(235, 243, 250, 0.12) 50%,
            rgba(203, 213, 225, 0.15) 100%) !important;
    border-left: 1px solid rgba(147, 51, 234, 0.2);
    box-shadow:
        inset 0 0 0 1px rgba(147, 51, 234, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        -12px 0 48px rgba(30, 41, 59, 0.06);
}

/* Remove Bootstrap's dark page-overlay behind drawer in light mode */
[data-theme="light"] .offcanvas-backdrop {
    background-color: transparent !important;
    opacity: 0 !important;
}

@media (min-width: 992px) {
    .offcanvas,
    [data-theme="light"] .offcanvas {
        background: transparent !important;
        border-left: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .offcanvas .offcanvas-header {
        display: none;
    }
}


.offcanvas-header {
    border-bottom: 1px solid var(--color-border) !important;
    padding: 1.25rem 1.5rem;
}

.btn-close-custom {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ECF0F1'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="light"] .btn-close-custom {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230F172A'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
}

.btn-close-custom:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.btn-close-custom {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 50% !important;
    border: 1px solid var(--crystal-edge) !important;
    background-color: var(--crystal-solid) !important;
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    box-shadow: var(--crystal-inset);
}

.offcanvas-body .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin: 4px 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.offcanvas-body .nav-link:hover {
    background: var(--badge-bg);
    transform: translateX(6px);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #a855f7, #3b82f6);
    background-color: transparent;
}

/* --- COMPREHENSIVE RESPONSIVENESS MEDIA QUERIES --- */

/* Small Devices / Phones (up to 576px) */
@media screen and (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .hero-heading {
        font-size: clamp(1.9rem, 7vw, 2.5rem);
    }

    .navbar .navbar-brand {
        font-size: 1.6rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

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

    .hero-btn-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px !important;
    }

    /* Scaling Tech Orbit Constellation for small phone screens */
    .tech-network-container {
        max-width: 290px;
        height: 290px;
        margin-top: 25px;
    }

    .tech-orbit-core {
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }

    .ring-1 {
        width: 130px;
        height: 130px;
    }

    .ring-2 {
        width: 205px;
        height: 205px;
    }

    .ring-3 {
        width: 260px;
        height: 260px;
    }

    .orbit-item {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    /* Adjust Ring Item Offsets for 260px diameter ring 3 */
    .item-3-1 { top: -16px; left: calc(50% - 16px); }
    .item-3-3 { top: calc(50% - 16px); right: -16px; }
    .item-3-5 { bottom: -16px; left: calc(50% - 16px); }
    .item-3-7 { top: calc(50% - 16px); left: -16px; }
    .item-3-2 { top: 22px; right: 22px; }
    .item-3-4 { bottom: 22px; right: 22px; }
    .item-3-6 { bottom: 22px; left: 22px; }
    .item-3-8 { top: 22px; left: 22px; }

    .item-2-2 { top: 12px; right: 12px; }
    .item-2-4 { bottom: 12px; right: 12px; }
    .item-2-6 { bottom: 12px; left: 12px; }
    .item-2-8 { top: 12px; left: 12px; }

    /* Adjust Section Headings and Cards */
    section h2 {
        font-size: 1.75rem !important;
    }

    .p-4.bg-dark {
        padding: 1.25rem !important;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* Medium Devices / Tablets (576px - 991.98px) */
@media screen and (min-width: 576px) and (max-width: 991.98px) {
    .hero-heading {
        font-size: clamp(2.5rem, 5vw, 3.2rem);
    }

    .tech-network-container {
        max-width: 380px;
        height: 380px;
        margin-top: 30px;
    }

    .ring-1 {
        width: 160px;
        height: 160px;
    }

    .ring-2 {
        width: 260px;
        height: 260px;
    }

    .ring-3 {
        width: 360px;
        height: 360px;
    }

    .orbit-item {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* Large Screens & Desktop (992px and above) */
@media screen and (min-width: 992px) {
    .offcanvas {
        position: static !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        backdrop-filter: none !important;
    }

    .offcanvas-header {
        display: none !important;
    }

    .offcanvas-body {
        display: flex !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .offcanvas-body .nav-link {
        font-size: 16px;
        font-weight: 500;
        padding: 0.5rem 1rem;
        margin: 0;
        color: var(--color-muted);
    }

    .offcanvas-body .nav-link:hover {
        background: transparent;
        transform: none;
    }
}

/* Extra Large Screens / High Resolution Displays (1400px+) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-heading {
        font-size: 3.8rem;
    }
}

/* Local animate.css replacements for existing wow/animate__ classes */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ============================================ */
/* RESPONSIVE ENHANCEMENTS                      */
/* ============================================ */

/* Phones (max-width: 576px) */
@media (max-width: 576px) {
    .wow {
        animation: none !important;
        visibility: visible !important;
    }

    .animate__animated {
        animation: none !important;
        visibility: visible !important;
    }

    .navbar-toggler,
    .navbar-toggler-icon,
    .navbar-toggler-icon i {
        animation: none !important;
        transition: none !important;
    }

    .scroll-top-btn {
        transition: opacity 0.3s ease, visibility 0.3s ease;
        transform: none;
    }

    .scroll-top-btn.show {
        transform: none;
    }

    .btn-dark,
    .btn-orange,
    .btn-outline-light,
    .btn-light {
        min-width: 100px;
        max-width: 160px;
        padding: 0 14px;
        height: 40px;
        font-size: 12px;
    }

    .btn-flip-wrapper {
        max-width: fit-content;
    }

    .navbar-brand {
        font-size: 1.2rem !important;
    }

    .display-4,
    .hero-heading {
        font-size: 1.6rem !important;
    }

    .lead,
    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    header .fs-5,
    .hero-description {
        font-size: 0.85rem !important;
    }

    section h2 {
        font-size: 1.3rem !important;
    }

    section.py-5.my-3 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .about-section.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Journey card compact */
    .about-journey-card {
        padding: 1.4rem 1.25rem 1.25rem;
    }

    .about-journey-title {
        font-size: 1.15rem;
        margin-bottom: 0.9rem;
    }

    .about-journey-text {
        font-size: 0.85rem;
        line-height: 1.65;
        margin-bottom: 0.65rem;
    }

    /* Trait cards compact — keeps 2-per-row */
    .about-trait-card {
        padding: 1.1rem 1rem;
    }

    .about-trait-icon {
        width: 42px;
        height: 42px;
        border-radius: 11px;
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }

    .about-trait-title {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .about-trait-text {
        font-size: 0.76rem;
        line-height: 1.55;
    }

    #project .p-4,
    #skills .p-4,
    #experience .p-4,
    #education .p-4,
    #contact .p-4 {
        padding: 1rem !important;
    }

    #project h4 {
        font-size: 0.95rem;
    }

    #project p {
        font-size: 0.8rem;
    }

    #skills h5 {
        font-size: 0.85rem;
    }

    #skills .skill-badge {
        width: 75px;
        height: 75px;
        padding: 0 !important;
    }
    #skills .skill-badge i {
        font-size: 1.5rem !important;
    }
    #skills .skill-badge .small {
        font-size: 0.55rem !important;
        max-width: 65px;
    }
    #skills .skill-card {
        max-width: 380px;
    }
    #skills .flip-skill {
        width: 100%;
        min-height: 110px;
    }
    #skills .flip-skill .flip-face:not(.flip-back) {
        width: 100%;
        aspect-ratio: 1;
        max-width: 75px;
        margin: 0 auto;
        padding: 0;
    }
    #skills .flip-skill .flip-face:not(.flip-back) i {
        font-size: 1.5rem;
    }
    #skills .flip-skill .flip-face:not(.flip-back) .small {
        font-size: 0.55rem;
    }
    #skills .flip-skill .flip-back {
        padding: 0.75rem !important;
        border-radius: 16px !important;
        gap: 0.4rem;
    }
    #skills .flip-skill .flip-back .flip-card-label {
        font-size: 0.55rem;
    }
    #skills .flip-skill .flip-back .used-in {
        font-size: 0.6rem;
    }

    #experience h4,
    #education h4 {
        font-size: 0.95rem;
    }

    #experience h5,
    #education h5 {
        font-size: 0.85rem;
    }

    #experience ul,
    #education p {
        font-size: 0.8rem;
    }

    #contact h5 {
        font-size: 0.95rem;
    }

    #contact p,
    #contact a {
        font-size: 0.8rem;
    }

    #contact .fs-4 {
        font-size: 1.6rem !important;
    }

    #contact .d-flex.gap-3.mt-2 {
        gap: 1rem !important;
    }

    #contact form .form-control {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    #contact form .form-label {
        font-size: 0.8rem;
    }

    .d-flex.gap-3.mt-5.mb-4 {
        gap: 0.4rem !important;
        flex-wrap: wrap;
    }
    /*small grid for small devices*/
    .info-card {
        width: 180px;
        min-height: 160px;
        padding: 16px;
    }
}

/* Small tablets (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .btn-dark,
    .btn-orange,
    .btn-outline-light,
    .btn-light {
        min-width: 120px;
        padding: 0 18px;
        height: 44px;
        font-size: 13px;
    }

    .nav-link {
        font-size: 14px;
    }

    .navbar-brand {
        font-size: 1.4rem !important;
    }

    .hero-heading {
        font-size: 2rem !important;
    }

    section h2 {
        font-size: 1.5rem !important;
    }
}

/* Contact section social icons hover */
#contact .d-flex.gap-3 a[aria-label="Email"]:hover {
    color: #EA4335 !important;
    transform: translateY(-2px);
}
#contact .d-flex.gap-3 a[aria-label="WhatsApp"]:hover {
    color: #25D366 !important;
    transform: translateY(-2px);
}
#contact .d-flex.gap-3 a[aria-label="LinkedIn"]:hover {
    color: #0A66C2 !important;
    transform: translateY(-2px);
}
#contact .d-flex.gap-3 a[aria-label="GitHub"]:hover {
    color: #24292E !important;
    transform: translateY(-2px);
}

/* Medium tablets / small laptops (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .btn-dark,
    .btn-orange,
    .btn-outline-light,
    .btn-light {
        min-width: 130px;
        height: 46px;
    }

    .hero-heading {
        font-size: 2.5rem !important;
    }

    section h2 {
        font-size: 1.75rem !important;
    }
}

/* === Ice Crystal Glass Cursor === */
:root {
    --cursor-size: 16px;
    --cursor-body: rgba(170, 210, 255, 0.92);
    --cursor-border: rgba(200, 225, 255, 0.8);
    --cursor-glow-inner: rgba(255, 255, 255, 0.9);
    --cursor-glow-outer: rgba(120, 180, 255, 0.55);
    --cursor-ring: rgba(140, 190, 255, 0.3);
    --cursor-highlight: rgba(255, 255, 255, 1);
    --cursor-trail: rgba(140, 190, 255, 0.7);
}

[data-theme="light"] {
    --cursor-body: rgba(40, 95, 190, 0.92);
    --cursor-border: rgba(100, 160, 235, 0.8);
    --cursor-glow-inner: rgba(255, 255, 255, 0.85);
    --cursor-glow-outer: rgba(60, 130, 230, 0.55);
    --cursor-ring: rgba(60, 130, 230, 0.32);
    --cursor-highlight: rgba(255, 255, 255, 0.95);
    --cursor-trail: rgba(60, 130, 230, 0.65);
}

#ice-cursor {
    --cursor-scale: 1;
    --cursor-rotate: 0deg;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    margin: 0;
    padding: 0;
    transform: translate3d(-50%, -50%, 0) scale(var(--cursor-scale)) rotate(var(--cursor-rotate));
    pointer-events: none;
    z-index: 9999999;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.18s ease,
        visibility 0.18s,
        border-color 0.22s ease,
        border-radius 0.25s ease,
        background 0.25s ease,
        box-shadow 0.22s ease,
        transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, left, top;
    backface-visibility: hidden;
    animation: crystalShimmer 4s ease-in-out infinite;
    /* faceted crystal shard (diamond) */
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: var(--cursor-body);
    border: 2px solid var(--cursor-border);
    box-shadow:
        inset 0 0 3px 2px var(--cursor-highlight),
        0 0 5px 2px var(--cursor-glow-inner),
        0 0 10px 4px var(--cursor-glow-outer),
        0 0 0 0px var(--cursor-ring);
}

#ice-cursor.visible {
    visibility: visible;
    opacity: 1;
}

/* Hover boost: transforms into a hollow crystal ring (scale/rotate driven by JS) */
#ice-cursor.interact {
    --cursor-scale: 1.08;
    clip-path: none;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--cursor-border);
    box-shadow:
        inset 0 0 3px 1px var(--cursor-highlight),
        0 0 7px 3px var(--cursor-glow-inner),
        0 0 18px 7px var(--cursor-glow-outer),
        0 0 0 8px var(--cursor-ring);
}

#ice-cursor.hidden {
    visibility: hidden;
    opacity: 0;
}

/* Subtle rotation oscillation for shiny facet-catch effect */
@keyframes crystalShimmer {
    0%, 100% { --cursor-rotate: 0deg; }
    25%      { --cursor-rotate: 6deg; }
    75%      { --cursor-rotate: -6deg; }
}

/* Moving specular highlight across the crystal surface */
#ice-cursor::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(
        135deg,
        transparent 20%,
        rgba(255, 255, 255, 0.7) 45%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.7) 55%,
        transparent 80%
    );
    background-size: 250% 250%;
    animation: shimmerSweep 2.5s ease-in-out infinite;
    pointer-events: none;
}

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

/* White specular highlight dot on the facet */
#ice-cursor::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cursor-highlight);
    box-shadow: 0 0 4px 2px var(--cursor-highlight);
    pointer-events: none;
}

/* Trail light particles */
.ice-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999998;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cursor-trail);
    box-shadow:
        0 0 6px 2px var(--cursor-trail),
        0 0 12px 4px var(--cursor-glow-outer);
    opacity: 0;
}

/* Hide the native cursor everywhere & reveal the ice crystal element */
html.use-ice-cursor,
html.use-ice-cursor *,
html.use-ice-cursor *::before,
html.use-ice-cursor *::after {
    cursor: none !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html.use-ice-cursor {
        cursor: auto;
    }
    #ice-cursor,
    .ice-trail {
        display: none;
    }
}

/* On small screens: hide the ice cursor, restore native cursor, keep glow trail only */
@media (max-width: 576px) {
    #ice-cursor {
        display: none !important;
    }

    html.use-ice-cursor,
    html.use-ice-cursor *,
    html.use-ice-cursor *::before,
    html.use-ice-cursor *::after {
        cursor: auto !important;
    }

    .ice-trail {
        width: 10px;
        height: 10px;
        box-shadow:
            0 0 10px 4px var(--cursor-trail),
            0 0 22px 8px var(--cursor-glow-outer),
            0 0 32px 14px rgba(120, 180, 255, 0.22);
    }
}
