@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;900&display=swap');

:root {
    --bg-dark: #050816;
    --bg-card: rgba(15, 23, 42, 0.6);
    --cyan: #00E5FF;
    --purple: #8B5CF6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-primary: linear-gradient(90deg, var(--cyan), var(--purple));
    --glass-border: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(5, 8, 22, 0.8);
    --terminal-bg: rgba(15, 23, 42, 0.8);
    --loader-glow: 0 0 10px var(--cyan);
}

body.light-theme {
    --bg-dark: #FAF8F6;
    --bg-card: rgba(255, 255, 255, 0.75);
    --cyan: #4F46E5;
    --purple: #E11D48;
    --text-main: #0F172A;
    --text-muted: #57534E;
    --glass-border: rgba(79, 70, 229, 0.08);
    --header-bg: rgba(250, 248, 246, 0.85);
    --terminal-bg: rgba(255, 255, 255, 0.9);
    --loader-glow: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
.section-title,
.logo,
.btn {
    font-family: 'Outfit', sans-serif;
}



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

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

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 4px;
}

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    box-shadow: 0 0 10px var(--cyan);
}

/* ═══════════════════════════════════════
   PREMIUM PAGE LOADER
═══════════════════════════════════════ */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    overflow: hidden;
}

/* Perspective grid background */
.loader-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,229,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: loaderGridPan 12s linear infinite;
    pointer-events: none;
}

@keyframes loaderGridPan {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Scanlines */
.loader-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.08) 3px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    opacity: 0.4;
}

/* Content container */
.data-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 520px;
    width: 90%;
    position: relative;
    z-index: 2;
    animation: loaderFadeIn 0.6s ease both;
}

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

/* ── Ring wrap ── */
.loader-logo-ring-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Orbit rings */
.loader-orbit-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    border-radius: 50%;
    border: 1.5px solid transparent;
}

.loader-ring-outer {
    width: 196px; height: 196px;
    border-top-color: var(--cyan);
    border-right-color: rgba(0,229,255,0.2);
    border-bottom-color: transparent;
    border-left-color: rgba(0,229,255,0.2);
    animation: loaderSpin 3s linear infinite;
    box-shadow: 0 0 18px rgba(0,229,255,0.15), inset 0 0 18px rgba(0,229,255,0.05);
}

.loader-ring-mid {
    width: 158px; height: 158px;
    border-top-color: transparent;
    border-right-color: var(--purple);
    border-bottom-color: rgba(139,92,246,0.2);
    border-left-color: transparent;
    animation: loaderSpinRev 2.2s linear infinite;
    box-shadow: 0 0 14px rgba(139,92,246,0.15);
}

.loader-ring-inner {
    width: 120px; height: 120px;
    border-top-color: rgba(0,229,255,0.5);
    border-right-color: transparent;
    border-bottom-color: rgba(0,229,255,0.5);
    border-left-color: transparent;
    animation: loaderSpin 1.8s linear infinite;
}

@keyframes loaderSpin    { to { transform: rotate(360deg);  } }
@keyframes loaderSpinRev { to { transform: rotate(-360deg); } }

/* Spinning dot on outer ring */
.loader-ring-dot {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    width: 196px; height: 196px;
    animation: loaderSpin 3s linear infinite;
    pointer-events: none;
}
.loader-ring-dot::before {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 10px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan);
}

/* Corner bracket decorations */
.loader-hex-bracket {
    position: absolute;
    width: 18px; height: 18px;
    opacity: 0.6;
}
.loader-hex-bracket.top-left     { top: 6px;  left: 6px;  border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.loader-hex-bracket.top-right    { top: 6px;  right: 6px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.loader-hex-bracket.bottom-left  { bottom: 6px; left: 6px;  border-bottom: 2px solid var(--purple); border-left: 2px solid var(--purple); }
.loader-hex-bracket.bottom-right { bottom: 6px; right: 6px; border-bottom: 2px solid var(--purple); border-right: 2px solid var(--purple); }

/* AR Monogram */
.loader-monogram {
    font-family: 'Outfit', sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    display: flex;
    align-items: baseline;
    animation: loaderMonoPulse 3s ease-in-out infinite;
}
.loader-mono-a {
    background: linear-gradient(135deg, var(--cyan) 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0,229,255,0.6));
}
.loader-mono-r {
    background: linear-gradient(135deg, var(--purple) 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(139,92,246,0.6));
}
.loader-mono-dot {
    font-size: 5.5rem;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loaderDotBlink 1.2s ease-in-out infinite alternate;
    margin-right: -22px; /* Prevent the dot from throwing off centering, while remaining visible */
}

@keyframes loaderMonoPulse {
    0%, 100% { filter: none; }
    50%       { filter: drop-shadow(0 0 18px rgba(0,229,255,0.3)); }
}
@keyframes loaderDotBlink {
    from { opacity: 1; }
    to   { opacity: 0.3; }
}

/* Tagline under monogram */
.loader-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.5rem;
    opacity: 0.8;
    white-space: nowrap;
    text-align: center;
}

/* ── Terminal block ── */
.loading-terminal {
    width: 100%;
    background: rgba(5, 8, 22, 0.85);
    border: 1px solid rgba(0,229,255,0.15);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,229,255,0.08), 0 20px 60px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
}
body.light-theme .loading-terminal {
    background: rgba(255,255,255,0.90);
    border-color: rgba(79,70,229,0.15);
    box-shadow: 0 0 40px rgba(79,70,229,0.08), 0 20px 60px rgba(0,0,0,0.08);
}

/* Mac-style title bar */
.terminal-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(0,229,255,0.08);
}
body.light-theme .terminal-header {
    background: rgba(0,0,0,0.03);
    border-color: rgba(79,70,229,0.08);
}

.terminal-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.terminal-dot.red    { background: #FF5F57; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green  { background: #28C840; box-shadow: 0 0 6px #28C840; animation: termGreenPulse 2s ease-in-out infinite; }

@keyframes termGreenPulse {
    0%, 100% { box-shadow: 0 0 4px #28C840; }
    50%       { box-shadow: 0 0 10px #28C840, 0 0 20px #28C84066; }
}

.terminal-title {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Terminal body */
#terminal-text {
    color: var(--cyan);
    font-size: 0.88rem;
    font-family: 'Courier New', monospace;
    padding: 14px 18px 10px;
    min-height: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: termCursorBlink 1s step-end infinite;
}
body.light-theme #terminal-text { color: var(--cyan); }

@keyframes termCursorBlink {
    0%, 100% { border-right: 2px solid var(--cyan); }
    50%       { border-right: 2px solid transparent; }
}

/* Progress bar */
.progress-bar-container {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.06);
    margin: 0;
    position: relative;
    overflow: visible;
}
body.light-theme .progress-bar-container { background: rgba(0,0,0,0.06); }

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    position: relative;
    transition: width 0.15s linear;
}
.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -1px; top: -3px;
    width: 3px; height: 11px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--cyan), 0 0 16px var(--cyan);
    opacity: 0.9;
}

/* Bottom row */
.loader-bottom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 14px;
}

.loader-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: loaderStatusPulse 1s ease-in-out infinite alternate;
}
@keyframes loaderStatusPulse {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0.4; transform: scale(0.7); }
}

.loader-status-text {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: 0.7;
}

.loading-percentage {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-left: auto;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Old keyframes kept (referenced by other parts if any) */
@keyframes rotateHex {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes counterRotateHex {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}
@keyframes pulseNeon {
    from { text-shadow: 0 0 10px var(--cyan); }
    to   { text-shadow: 0 0 30px var(--purple); }
}


/* Backgrounds */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.1) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

#menu-icon {
    display: none;
    font-size: 2.2rem;
    color: var(--text-main);
    cursor: pointer;
    transition: 0.3s;
}

#menu-icon:hover {
    color: var(--cyan);
}

.theme-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    margin-left: 1rem;
}

.theme-toggle:hover {
    color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo span {
    color: var(--cyan);
}

.navbar {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar a {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.navbar a:hover,
.navbar a.active {
    color: var(--cyan);
}

.navbar a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.nav-btn {
    border: 1px solid var(--purple);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: var(--purple) !important;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.nav-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Global Section Styles */
section {
    min-height: 100vh;
    padding: 10rem 8% 4rem;
    position: relative;
}

.section-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.content-side {
    flex: 1;
    z-index: 10;
}

.visual-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.energy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.core-inner {
    width: 60px;
    height: 60px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--cyan), 0 0 80px var(--cyan);
    animation: corePulse 2s ease-in-out infinite;
}

.core-outer {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed var(--purple);
    animation: spinRotate 10s linear infinite;
}

.core-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.3);
    animation: spinRotateReverse 15s linear infinite;
}

@keyframes corePulse {

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

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 60px var(--cyan), 0 0 100px var(--purple);
    }
}

@keyframes spinRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes spinRotateReverse {
    0% {
        transform: rotate(360deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(0.9);
    }

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

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .num {
    color: var(--cyan);
    font-size: 1.2rem;
}

h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 span {
    color: var(--purple);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.traits-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.traits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.traits-list li i {
    color: var(--cyan);
    font-size: 1.3rem;
    transition: all 0.4s ease;
}

.traits-list li:hover {
    transform: translateX(15px);
    color: var(--text);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.traits-list li:hover i {
    transform: scale(1.3) rotate(10deg);
    color: var(--purple);
    text-shadow: 0 0 20px var(--purple);
}

.mt-2 {
    margin-top: 2rem;
    display: inline-block;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.small-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Home Hero Section */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10rem;
}

.hero-left {
    flex: 1;
    z-index: 10;
}

.greeting {
    font-size: 1.5rem;
    font-family: 'Outfit';
    color: var(--cyan);
    margin-bottom: 1rem;
    display: block;
}

.name {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.roles {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.amp {
    color: var(--text-muted);
    font-weight: 300;
}

.tags {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.tags span {
    color: var(--cyan);
    font-weight: 500;
}

.desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.social-media {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-media a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-main);
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.social-media a:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-3px);
}

.hero-left .btn-group {
    display: flex;
    gap: 1.5rem;
}

/* Hero Right: Profile Frame */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.profile-frame {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.neon-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    width: 100%;
    height: 100%;
}

.ring-1 {
    border-top-color: var(--cyan);
    border-bottom-color: var(--cyan);
    animation: spinRing 8s linear infinite;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.ring-2 {
    width: 115%;
    height: 115%;
    border-left-color: var(--purple);
    border-right-color: var(--purple);
    animation: spinRingRev 12s linear infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.profile-img-container {
    width: 90%;
    height: 90%;
    background: var(--bg-card);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    z-index: 5;
}

.profile-img-container i {
    font-size: 8rem;
    color: var(--text-muted);
}

.pedestal-glow {
    position: absolute;
    bottom: -50px;
    width: 200px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.5) 0%, transparent 70%);
    filter: blur(10px);
}

@keyframes spinRing {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinRingRev {
    to {
        transform: rotate(-360deg);
    }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-down i {
    font-size: 2rem;
    color: var(--cyan);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

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

    60% {
        transform: translateY(-5px);
    }
}

/* Generated 3D Asset Styles */
.floating-asset {
    position: relative;
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.generated-3d {
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
    animation: floatObj 6s ease-in-out infinite;
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
}

.asset-shadow {
    position: absolute;
    bottom: -30px;
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    filter: blur(8px);
    animation: pulseShadow 6s ease-in-out infinite;
}

@keyframes floatObj {

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

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes pulseShadow {

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

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

/* About Section */
.about p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 550px;
}

.traits-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.traits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-main);
}

.traits-list i {
    color: var(--cyan);
    font-size: 1.2rem;
}

/* 3D Sphere Canvas Container */
#canvas-container,
#skills-canvas-container,
#contact-canvas-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    margin: 0 auto;
}

#canvas-container:active,
#skills-canvas-container:active,
#contact-canvas-container:active {
    cursor: grabbing;
}

#canvas-container canvas,
#skills-canvas-container canvas,
#contact-canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    z-index: 2;
}

/* Full-width Background Canvases */
#education-canvas-container,
#experience-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    z-index: 0;
    pointer-events: none;
}

#education-canvas-container canvas,
#experience-canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    z-index: 0;
    pointer-events: none;
}

.asset-shadow {
    z-index: 1;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.skill-group h3 {
    font-size: 1.1rem;
    color: var(--cyan);
    margin-bottom: 1rem;
    font-weight: 500;
}

.skill-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.skill-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.skill-box:hover {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.1);
}

.skill-box i {
    font-size: 2rem;
    color: var(--text-main);
    transition: 0.3s;
}

.skill-box:hover i {
    color: var(--cyan);
}

.skill-box span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Orbit Paths on Skills Globe */
.orbit-path {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: spinOrbit linear infinite;
}

.path-1 {
    width: 120%;
    height: 120%;
    animation-duration: 15s;
}

.path-2 {
    width: 140%;
    height: 140%;
    animation-duration: 20s;
    animation-direction: reverse;
}

.path-3 {
    width: 160%;
    height: 160%;
    animation-duration: 25s;
}

.orbit-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    font-size: 1.5rem;
    color: var(--cyan);
    background: var(--bg-dark);
    padding: 5px;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    animation: counterSpinOrbit linear infinite;
    box-shadow: 0 0 10px var(--cyan);
}

.path-1 .orbit-icon {
    animation-duration: 15s;
}

.path-2 .orbit-icon {
    animation-duration: 20s;
    animation-direction: reverse;
}

.path-3 .orbit-icon {
    animation-duration: 25s;
}

/* Projects Section */



/* SVG shape animations */
.geo-hex-1,
.geo-hex-2 {
    animation: geoSpin 12s linear infinite;
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

.geo-tri-1 {
    animation: geoFloat 6s ease-in-out infinite;
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

.geo-tri-2 {
    animation: geoFloat 6s ease-in-out infinite reverse;
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

.geo-diamond-1 {
    animation: geoPulse 4s ease-in-out infinite;
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

.geo-diamond-2 {
    animation: geoPulse 4s ease-in-out infinite 2s;
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

.geo-dot-pulse {
    animation: geoGlow 3s ease-in-out infinite;
}

.geo-dot-pulse-2 {
    animation: geoGlow 3s ease-in-out infinite 1.5s;
}

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

@keyframes geoFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes geoPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.15); opacity: 0.85; }
}

@keyframes geoGlow {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.9; }
}

.title-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

/* ── View Mode Toggle Pill ─────────────────────── */
.proj-view-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4px;
    gap: 2px;
    backdrop-filter: blur(10px);
}

.pvt-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.pvt-btn i { font-size: 1rem; }

.pvt-btn.active {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    box-shadow: 0 2px 14px rgba(0,229,255,0.25);
}
.pvt-btn:not(.active):hover {
    color: var(--cyan);
}


.projects-slider-outer {
    position: relative;
    width: 100%;
    max-width: 1150px;
    margin: 3rem auto 0;
    padding-bottom: 4rem; /* space for counter + dots */
}

/* Slide track — clips overflow, one card visible */
.projects-stack-container {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
}

/* Each card: visible by default so Three.js can measure dimensions on init */
.project-stack-card {
    width: 100%;
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

@keyframes projSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes projSlideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.project-stack-card.proj-slide-left {
    animation: projSlideInLeft 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Nav arrow buttons */
.proj-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 2rem)); /* offset up from counter */
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.proj-prev { left: -70px; }
.proj-next { right: -70px; }

.proj-nav-btn:hover {
    background: var(--cyan);
    color: var(--bg-dark);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0,229,255,0.4);
    transform: translateY(calc(-50% - 2rem)) scale(1.08);
}
.proj-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: translateY(calc(-50% - 2rem));
}

/* Counter  1 / 6 */
.proj-counter {
    text-align: center;
    margin-top: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
}
#proj-current {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.proj-sep { opacity: 0.4; }
#proj-total { opacity: 0.5; }

/* Dot indicators */
.proj-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}
.proj-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--glass-border);
    border: 1px solid var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
}
.proj-dot.active {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    opacity: 1;
    transform: scale(1.3);
}

/* Responsive: move nav buttons inside on small screens */
@media (max-width: 1300px) {
    .proj-prev { left: 0; }
    .proj-next { right: 0; }
    .projects-slider-outer { padding-left: 70px; padding-right: 70px; }
}

@media (max-width: 768px) {
    .proj-prev { left: 0; top: auto; bottom: 5.5rem; transform: none; }
    .proj-next { right: 0; top: auto; bottom: 5.5rem; transform: none; }
    .proj-nav-btn:hover { transform: scale(1.08); }
    .proj-nav-btn:disabled { transform: none; }
    .projects-slider-outer { padding-left: 0; padding-right: 0; }
    .project-stack-card {
        border-radius: 16px;
    }
}

/* ═══════════════════════════════════════════════
   STACK MODE  (default — GSAP scroll stacking)
═══════════════════════════════════════════════ */
.projects-slider-outer.mode-stack {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

/* In stack mode: track becomes fixed-height stacking area */
.mode-stack .projects-stack-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 24px;
}

/* In stack mode: all cards absolutely placed on top of each other */
.mode-stack .project-stack-card {
    display: block !important;          /* override slider's display:none */
    position: absolute !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    animation: none !important;         /* no slide-in animation */
    transform-origin: center top;
}

/* Hide slider controls in stack mode */
.mode-stack .proj-nav-btn,
.mode-stack .proj-counter,
.mode-stack .proj-dots {
    display: none !important;
}

/* ═══════════════════════════════════════════════
   SLIDE MODE  (1/6 slider)
═══════════════════════════════════════════════ */
.projects-slider-outer.mode-slide .projects-stack-container {
    position: relative;
    height: auto;
    overflow: hidden;
}

/* In slide mode: hide all cards, show only active */
.mode-slide .project-stack-card {
    position: relative !important;
    display: none;
}
.mode-slide .project-stack-card.proj-active {
    display: block;
    animation: projSlideIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.mode-slide .project-stack-card.proj-active.proj-slide-left {
    animation: projSlideInLeft 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Show slider controls in slide mode */
.mode-slide .proj-nav-btn { display: flex; }
.mode-slide .proj-counter  { display: block; }
.mode-slide .proj-dots     { display: flex; }

body.light-theme .project-stack-card {
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05), 0 15px 35px rgba(0, 0, 0, 0.08);
}

.project-stack-card:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 -15px 40px rgba(0, 229, 255, 0.08), 0 25px 50px rgba(0, 229, 255, 0.1), 0 0 30px rgba(139, 92, 246, 0.05);
}

body.light-theme .project-stack-card:hover {
    box-shadow: 0 -10px 30px rgba(79, 70, 229, 0.04), 0 20px 45px rgba(79, 70, 229, 0.08);
}

.project-card-inner {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 480px;
    padding: 3.5rem;
    gap: 4rem;
    position: relative;
}


.project-visual-side {
    flex: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.project-3d-wrapper {
    width: 100%;
    height: 380px;
    position: relative;
    cursor: grab;
}

.project-3d-wrapper:active {
    cursor: grabbing;
}

.project-3d-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

.project-info-side {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.6rem;
    font-family: 'Outfit', sans-serif;
}

.project-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tech-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    border-radius: 20px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1.2rem;
}

.project-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 0 15px var(--purple);
    transform: scale(1.08);
}

@media (max-width: 991px) {
    .project-card-inner {
        padding: 2.5rem;
        gap: 2.5rem;
    }
    .project-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .project-card-inner {
        flex-direction: column;
        gap: 0.8rem !important;
        padding: 1.2rem 1.5rem !important;
        min-height: auto;
    }
    
    .project-visual-side {
        width: 100%;
        height: 170px !important;
    }
    
    .project-3d-wrapper {
        height: 170px !important;
    }
    
    .project-info-side {
        width: 100%;
        padding-left: 0;
    }
    
    .project-title {
        font-size: 1.35rem !important;
        margin: 0.2rem 0 !important;
    }

    .project-desc {
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.6rem !important;
    }

    .tech-tags {
        gap: 0.35rem !important;
        margin-bottom: 0.6rem !important;
    }

    .tech-tags span {
        padding: 0.15rem 0.5rem !important;
        font-size: 0.72rem !important;
    }

    .project-links {
        margin-top: 0.2rem !important;
    }
}

/* Education Section Centered Trajectory Timeline */
.trajectory-timeline {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 3rem auto 0;
    padding: 3rem 0;
    z-index: 10;
}

.timeline-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; /* Full height, scaled via transform */
    transform: scaleY(0);
    transform-origin: top center;
    background: linear-gradient(to bottom, var(--cyan), var(--purple));
    box-shadow: 0 0 10px var(--cyan);
    transition: transform 0.12s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Glowing progress dot container (translated by JS) */
.timeline-progress-dot {
    position: absolute;
    top: -6px; /* offset half height of dot */
    left: 50%;
    transform: translate(-50%, 0px);
    width: 13px;
    height: 13px;
    pointer-events: none;
    z-index: 10;
    transition: transform 0.12s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Inner pulsing visual dot */
.timeline-progress-dot-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px var(--purple), 0 0 20px var(--cyan);
    border: 2.5px solid var(--purple);
    animation: timelineDotPulse 1.6s infinite alternate ease-in-out;
}

@keyframes timelineDotPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 8px var(--purple), 0 0 14px var(--cyan);
    }
    100% {
        transform: scale(1.2);
        box-shadow: 0 0 18px var(--purple), 0 0 28px var(--cyan);
    }
}

/* Sparkle particles shooting out of vertical timeline dot (wider spread & smoother fade) */
.timeline-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: none;
    z-index: 12;
    animation: timelineSparkleAnim 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes timelineSparkleAnim {
    0% {
        transform: translate(-50%, -50%) scale(1) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.1) translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

.trajectory-item {
    position: relative;
    width: 100%;
    margin-bottom: 5rem;
    display: flex;
    z-index: 2;
}

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

.trajectory-item.left {
    justify-content: flex-start;
}

.trajectory-item.right {
    justify-content: flex-end;
}

.trajectory-year-node {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 5;
    user-select: none;
}

.trajectory-year-node.active {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.08);
}

.trajectory-card {
    width: calc(50% - 40px);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.trajectory-item.left .trajectory-card {
    margin-right: 40px;
    text-align: right;
    transform-origin: right center;
}

.trajectory-item.right .trajectory-card {
    margin-left: 40px;
    text-align: left;
    transform-origin: left center;
}

.trajectory-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.1), 0 0 20px rgba(139, 92, 246, 0.05);
}

.trajectory-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trajectory-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.trajectory-card .university {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.trajectory-card .grade {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Light Theme Overrides for Timeline */
body.light-theme .timeline-center-line {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .trajectory-year-node {
    background: var(--bg-dark);
}

body.light-theme .trajectory-card {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Responsive timeline for mobile */
@media (max-width: 768px) {
    .timeline-center-line {
        left: 25px;
    }
    
    .trajectory-item {
        margin-bottom: 3.5rem;
    }
    
    .trajectory-item.left,
    .trajectory-item.right {
        justify-content: flex-end;
    }
    
    .trajectory-year-node {
        left: 25px;
        top: 25px;
        width: 44px;
        height: 44px;
        font-size: 0.8rem;
    }
    
    .trajectory-card {
        width: calc(100% - 55px) !important;
        padding: 1.5rem;
        text-align: left !important;
        margin-left: 55px !important;
        margin-right: 0 !important;
    }
}

/* ==================== REDESIGNED CERTIFICATIONS SECTION ==================== */

.certifications {
    position: relative;
    padding: 8rem 8% 4rem;
    overflow: hidden;
}

/* Stats Row below title */
.certs-stats-row {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cert-stat-chip {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 10px rgba(0, 229, 255, 0.05);
    transition: all 0.3s ease;
}

.cert-stat-chip:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(0, 229, 255, 0.15);
}

.cert-stat-chip i {
    font-size: 1.05rem;
}


/* CENTERED DISPLAY AREA & PEDESTAL */
.certs-display-area {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Centered Pedestal */
.pedestal-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 320px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.pedestal-ring {
    position: absolute;
    border-radius: 50%;
    transform: rotateX(75deg);
    border: 2px solid transparent;
}

.pedestal-ring-1 {
    width: 320px;
    height: 100px;
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.1), inset 0 0 25px rgba(0, 229, 255, 0.05);
    animation: pulseRing 4s infinite ease-in-out;
}

.pedestal-ring-2 {
    width: 250px;
    height: 78px;
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.2), inset 0 0 35px rgba(139, 92, 246, 0.15);
    animation: pulseRing 4s infinite ease-in-out 1.3s;
}

.pedestal-ring-3 {
    width: 180px;
    height: 56px;
    border-color: rgba(0, 229, 255, 0.6);
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 80%);
    box-shadow: 0 0 45px rgba(0, 229, 255, 0.5), inset 0 0 45px rgba(0, 229, 255, 0.3);
    animation: pulseRing 4s infinite ease-in-out 2.6s;
}

.pedestal-light-beam {
    position: absolute;
    bottom: 30px;
    width: 140px;
    height: 270px;
    background: linear-gradient(to top, rgba(0, 229, 255, 0.25), transparent);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    filter: blur(10px);
    opacity: 0.6;
    animation: glowFlicker 3s infinite alternate ease-in-out;
}

.pedestal-base-glow {
    position: absolute;
    width: 220px;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.45) 0%, transparent 70%);
    filter: blur(15px);
}

@keyframes pulseRing {
    0%, 100% {
        transform: rotateX(75deg) scale(0.95);
        opacity: 0.6;
    }
    50% {
        transform: rotateX(75deg) scale(1.05);
        opacity: 1;
    }
}

@keyframes glowFlicker {
    0%, 100% {
        opacity: 0.5;
        height: 250px;
    }
    50% {
        opacity: 0.8;
        height: 280px;
    }
}


/* Flanking Navigation Buttons */
.main-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-slider-btn.prev-btn {
    left: calc(50% - 320px);
}

.main-slider-btn.next-btn {
    right: calc(50% - 320px);
}

.main-slider-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.main-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}


/* Main Certificate Viewer Stack */
.cert-main-viewer {
    position: relative;
    width: 520px;
    height: 385px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transform: translateY(-20px);
}

.cert-main-card {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(10px) scale(0.92);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 30, 0.94));
    border: 2px solid var(--theme-color, var(--cyan));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 35px var(--theme-glow, rgba(0, 229, 255, 0.2));
    overflow: hidden;
}

.cert-main-card.active {
    opacity: 1;
    transform: translateY(-30px) scale(1);
    pointer-events: auto;
}

/* Holographic sweep animation */
.cert-holo-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.08) 40%, 
        rgba(0, 229, 255, 0.05) 45%, 
        rgba(139, 92, 246, 0.05) 55%, 
        rgba(255, 255, 255, 0.08) 60%, 
        transparent 70%);
    background-size: 200% 100%;
    background-position: -200% 0%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.cert-main-card.active .cert-holo-shine {
    opacity: 1;
    animation: holoSweep 8s infinite linear;
}

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

/* Faint elegant security watermark grid and rings */
.cert-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.cert-watermark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.012);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.005),
                0 0 0 24px rgba(255, 255, 255, 0.008),
                0 0 0 36px rgba(255, 255, 255, 0.005),
                0 0 0 48px rgba(255, 255, 255, 0.008),
                0 0 0 60px rgba(255, 255, 255, 0.005);
}

/* Inner Double Framing Border */
.cert-inner-border {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.cert-inner-border::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    pointer-events: none;
}

.cert-inner-border::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--theme-color, var(--cyan));
    opacity: 0.12;
    border-radius: 8px;
    pointer-events: none;
}

/* Featured Badge Inline Style */
.featured-badge-inline {
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(139, 92, 246, 0.3);
    text-transform: uppercase;
}

/* Card Header */
.cert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.cert-logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cert-logo-icon {
    font-size: 2.2rem;
    color: var(--theme-color, var(--cyan));
    filter: drop-shadow(0 0 5px var(--theme-glow));
}

.tata-logo-svg {
    filter: drop-shadow(0 0 5px var(--theme-glow));
}

.deloitte-wordmark {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
}

.deloitte-wordmark .green-dot {
    color: #86BC25;
}

.issuer-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.cert-meta-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.cert-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.cert-date-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-color, var(--cyan));
}

.cert-index-indicator {
    border: 1px solid var(--theme-color, var(--cyan));
    color: var(--theme-color, var(--cyan));
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 0 5px var(--theme-glow);
}

.cert-id-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Card Body */
.cert-card-body {
    margin: 0.8rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cert-credential-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    display: block;
    opacity: 0.7;
}

.cert-main-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.3rem;
}

.cert-subtitle {
    font-size: 0.85rem;
    color: var(--theme-color, var(--cyan));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.6rem;
}

.cert-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Card Footer */
.cert-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
}

.cert-signature-area {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.signature-font {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 1.6rem;
    color: #f8fafc;
    line-height: 1;
    transform: rotate(-3deg);
    display: inline-block;
}

.signer-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Metallic Badge/Seal */
.cert-metallic-seal {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, var(--theme-color, var(--cyan)) 50%, var(--theme-color-secondary, var(--purple)) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--theme-glow, rgba(0, 229, 255, 0.2));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cert-metallic-seal::before,
.cert-metallic-seal::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 12px;
    height: 24px;
    background: var(--theme-color-secondary, var(--purple));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    z-index: -1;
}

.cert-metallic-seal::before {
    left: 10px;
    transform: rotate(15deg);
}

.cert-metallic-seal::after {
    right: 10px;
    transform: rotate(-15deg);
}

.seal-inner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.seal-inner i {
    font-size: 1rem;
    margin-bottom: 0.1rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.seal-inner span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}


/* BOTTOM SLIDER / CAROUSEL */
.certs-bottom-container {
    width: 100%;
    margin-top: 1rem;
}

.certs-bottom-slider {
    width: 100%;
    overflow-x: auto;
    padding: 1.5rem 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
}

.certs-bottom-slider::-webkit-scrollbar {
    display: none;
}

.certs-bottom-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

.cert-preview-card {
    width: 220px;
    height: 145px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    user-select: none;
    overflow: hidden;
}

.cert-preview-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.cert-preview-card.active {
    border-color: var(--theme-color, var(--cyan));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--theme-glow, rgba(0, 229, 255, 0.15));
    transform: translateY(-5px) scale(1.02);
}

.preview-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-company {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-number {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.cert-preview-card.active .preview-company {
    color: var(--theme-color, var(--cyan));
}

.cert-preview-card.active .preview-number {
    color: var(--theme-color, var(--cyan));
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 5px var(--theme-glow);
}

.preview-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0.4rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.preview-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.cert-preview-card:hover .preview-icon,
.cert-preview-card.active .preview-icon {
    color: var(--theme-color, var(--cyan));
    opacity: 1;
    filter: drop-shadow(0 0 3px var(--theme-glow));
}

/* Active Line Indicator */
.active-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--theme-color, var(--cyan)), var(--theme-color-secondary, var(--purple)));
    transition: width 0.4s ease;
}

.cert-preview-card.active .active-indicator {
    width: 100%;
}


/* PAGINATION DOTS */
.certs-pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.certs-pagination-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.certs-pagination-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.certs-pagination-dots .dot.active {
    background: var(--cyan);
    transform: scale(1.25);
    box-shadow: 0 0 8px var(--cyan);
}


/* BRAND CUSTOM SPECIFIC PROPERTIES */
.cert-main-card[data-theme="tata"], .cert-preview-card[data-theme="tata"] {
    --theme-color: #00E5FF;
    --theme-color-secondary: #8B5CF6;
    --theme-glow: rgba(0, 229, 255, 0.4);
}
.cert-main-card[data-theme="deloitte"], .cert-preview-card[data-theme="deloitte"] {
    --theme-color: #86BC25;
    --theme-color-secondary: #a0d14f;
    --theme-glow: rgba(134, 188, 37, 0.4);
}
.cert-main-card[data-theme="cyber"], .cert-preview-card[data-theme="cyber"] {
    --theme-color: #8B5CF6;
    --theme-color-secondary: #D946EF;
    --theme-glow: rgba(139, 92, 246, 0.4);
}
.cert-main-card[data-theme="python"], .cert-preview-card[data-theme="python"] {
    --theme-color: #3776AB;
    --theme-color-secondary: #FFE052;
    --theme-glow: rgba(55, 118, 171, 0.4);
}
.cert-main-card[data-theme="sql"], .cert-preview-card[data-theme="sql"] {
    --theme-color: #00B4D8;
    --theme-color-secondary: #0077B6;
    --theme-glow: rgba(0, 180, 216, 0.4);
}
.cert-main-card[data-theme="powerbi"], .cert-preview-card[data-theme="powerbi"] {
    --theme-color: #F2C811;
    --theme-color-secondary: #E28900;
    --theme-glow: rgba(242, 200, 17, 0.4);
}
.cert-main-card[data-theme="oracle"], .cert-preview-card[data-theme="oracle"] {
    --theme-color: #F80000;
    --theme-color-secondary: #FF7A00;
    --theme-glow: rgba(248, 0, 0, 0.4);
}
.cert-main-card[data-theme="intel"], .cert-preview-card[data-theme="intel"] {
    --theme-color: #0071C5;
    --theme-color-secondary: #00C4FF;
    --theme-glow: rgba(0, 113, 197, 0.4);
}
.cert-main-card[data-theme="cisco"], .cert-preview-card[data-theme="cisco"] {
    --theme-color: #00B4D8;
    --theme-color-secondary: #0096C7;
    --theme-glow: rgba(0, 180, 216, 0.4);
}
.cert-main-card[data-theme="nptel"], .cert-preview-card[data-theme="nptel"] {
    --theme-color: #FF8C00;
    --theme-color-secondary: #FFD700;
    --theme-glow: rgba(255, 140, 0, 0.4);
}
.cert-main-card[data-theme="tcs"], .cert-preview-card[data-theme="tcs"] {
    --theme-color: #0056B3;
    --theme-color-secondary: #CCCCCC;
    --theme-glow: rgba(0, 86, 179, 0.3);
}
.cert-main-card[data-theme="ipsr"], .cert-preview-card[data-theme="ipsr"] {
    --theme-color: #EC4899;
    --theme-color-secondary: #8B5CF6;
    --theme-glow: rgba(236, 72, 153, 0.4);
}


/* LIGHT THEME COMPATIBILITY */
body.light-theme .cert-stat-chip {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), 0 0 8px rgba(79, 70, 229, 0.1);
}

body.light-theme .cert-main-card {
    background: linear-gradient(135deg, #FAF8F6, #f3f0ec);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 0 25px var(--theme-glow, rgba(79, 70, 229, 0.1));
}

body.light-theme .issuer-name,
body.light-theme .deloitte-wordmark,
body.light-theme .cert-main-title,
body.light-theme .signature-font,
body.light-theme .preview-title {
    color: var(--text-main);
}

body.light-theme .main-slider-btn {
    background: rgba(250, 248, 246, 0.85);
    color: var(--text-main);
}

body.light-theme .certs-pagination-dots .dot {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .certs-pagination-dots .dot.active {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

body.light-theme .preview-number {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-muted);
}

body.light-theme .cert-index-indicator {
    box-shadow: none;
}

body.light-theme .featured-badge-inline {
    box-shadow: none;
}


/* RESPONSIVE LAYOUT BREAKPOINTS */
@media (max-width: 1024px) {
    .cert-main-viewer {
        width: 460px;
        height: 350px;
    }
    .main-slider-btn.prev-btn {
        left: calc(50% - 280px);
    }
    .main-slider-btn.next-btn {
        right: calc(50% - 280px);
    }
}

@media (max-width: 991px) {
    .certs-right-col {
        height: 440px;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Remove horizontal section padding — display area handles its own spacing */
    .certifications {
        padding: 4rem 0 3rem;
    }

    /* Restore padding only for the text header above the card viewer */
    .certifications .section-header {
        padding: 0 6%;
    }

    /*
     * KEY FIX: display area goes full viewport width.
     * Internal side padding = button width (38px) + gap (8px) = 46px each side.
     * This gives the arrows a dedicated lane on left & right, card fills the rest.
     */
    .certs-display-area {
        height: auto;
        min-height: 430px;
        width: 100%;
        max-width: 100%;
        padding: 0 46px;
        box-sizing: border-box;
        align-items: center;
    }

    /* Card fills the padded area — tall enough to show all three sections */
    .cert-main-viewer {
        width: 100%;
        max-width: none;
        height: 345px;
        transform: translateY(-20px);
    }

    /* Active card lifts less on mobile to stay within viewer bounds */
    .cert-main-card.active {
        transform: translateY(-12px) scale(1);
    }

    /* ---- Tighten card internal spacing so footer is always visible ---- */
    .cert-inner-border {
        padding: 0.9rem;
    }

    /* Reduce gap below header divider */
    .cert-card-header {
        padding-bottom: 0.5rem;
    }

    /* Less vertical margin on body — prevents it from pushing footer out */
    .cert-card-body {
        margin: 0.4rem 0;
    }

    /* Clamp description to 2 lines — the main culprit for cut-off footer */
    .cert-description {
        font-size: 0.83rem;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Tighten footer gap above divider */
    .cert-card-footer {
        padding-top: 0.5rem;
    }

    .cert-main-title {
        font-size: 1.25rem;
        margin-bottom: 0.2rem;
    }

    .cert-subtitle {
        margin-bottom: 0.4rem;
    }

    /* Arrows: restored to sides — smaller, centred on card height */
    .main-slider-btn {
        top: 42%;
        bottom: auto;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .main-slider-btn:hover {
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    }

    .main-slider-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .main-slider-btn.prev-btn {
        left: 4px;
        right: auto;
    }

    .main-slider-btn.next-btn {
        right: 4px;
        left: auto;
    }

    .pedestal-container {
        width: 220px;
    }

    .pedestal-ring-1 { width: 220px; height: 68px; }
    .pedestal-ring-2 { width: 170px; height: 52px; }
    .pedestal-ring-3 { width: 120px; height: 38px; }
    .pedestal-light-beam { width: 100px; height: 180px; }
}

@media (max-width: 480px) {
    .certs-stats-row {
        gap: 0.6rem;
    }

    .cert-stat-chip {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    /* Smaller padding = narrower side lanes, buttons also smaller */
    .certs-display-area {
        min-height: 400px;
        padding: 0 40px;
    }

    .cert-main-viewer {
        height: 315px;
    }

    /* Extra tight spacing for very small screens (320–480px) */
    .cert-inner-border {
        padding: 0.75rem;
    }

    .cert-card-header {
        padding-bottom: 0.4rem;
    }

    .cert-card-body {
        margin: 0.3rem 0;
    }

    /* 2-line description clamp — keeps footer visible on small phones */
    .cert-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .cert-card-footer {
        padding-top: 0.4rem;
    }

    .cert-main-title {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }

    .cert-subtitle {
        font-size: 0.78rem;
        margin-bottom: 0.3rem;
    }

    /* Shrink arrows for very small screens */
    .main-slider-btn {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .main-slider-btn.prev-btn {
        left: 3px;
        right: auto;
    }

    .main-slider-btn.next-btn {
        right: 3px;
        left: auto;
    }

    .signature-font {
        font-size: 1.2rem;
    }

    .signer-title {
        font-size: 0.68rem;
    }

    .cert-metallic-seal {
        width: 44px;
        height: 44px;
    }

    .seal-inner {
        width: 34px;
        height: 34px;
    }

    .seal-inner i {
        font-size: 0.85rem;
    }

    .seal-inner span {
        font-size: 0.42rem;
    }

    .cert-metallic-seal::before,
    .cert-metallic-seal::after {
        width: 8px;
        height: 14px;
    }
}

/* Contact Section Redesign */
.contact {
    position: relative;
    padding: 3.5rem 8% 2rem;
    overflow: hidden;
}

/* Background animated glow blob */
.contact-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    animation: contactPulseBlob 8s infinite alternate ease-in-out;
}

@keyframes contactPulseBlob {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: translate(-45%, -55%) scale(1.1);
        opacity: 1.2;
    }
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 540px;
    position: relative;
    z-index: 2;
}

/* Container for vertical list of glass cards */
.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Individual Glassmorphic Contact Card */
.contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Card inner glow and hovering background slide-in */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--card-glow-color, rgba(0, 229, 255, 0.05)), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

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

.contact-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: var(--card-border-hover, rgba(0, 229, 255, 0.3));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--card-glow-shadow, rgba(0, 229, 255, 0.1));
}

.card-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Circular icon on the left with glowing border */
.card-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-icon-border, rgba(0, 229, 255, 0.2));
    color: var(--card-icon-color, var(--cyan));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px var(--card-icon-glow, rgba(0, 229, 255, 0.1));
}

.contact-card:hover .card-icon-circle {
    border-color: var(--card-icon-color, var(--cyan));
    box-shadow: 0 0 15px var(--card-icon-glow-hover, rgba(0, 229, 255, 0.3));
    transform: scale(1.05);
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.card-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--card-label-color, var(--cyan));
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s ease;
}

/* Far right arrow icon */
.card-arrow {
    font-size: 1.25rem;
    color: var(--cyan);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
}

.contact-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(5px) scale(1.1);
    color: var(--cyan);
    filter: drop-shadow(0 0 5px var(--cyan));
}

/* DATA THEMES FOR CONTACT CARDS */
.contact-card[data-card-theme="email"] {
    --card-glow-color: rgba(139, 92, 246, 0.08);
    --card-border-hover: rgba(139, 92, 246, 0.4);
    --card-glow-shadow: rgba(139, 92, 246, 0.15);
    --card-icon-border: rgba(139, 92, 246, 0.25);
    --card-icon-color: #8B5CF6;
    --card-icon-glow: rgba(139, 92, 246, 0.1);
    --card-icon-glow-hover: rgba(139, 92, 246, 0.4);
    --card-label-color: #00E5FF;
}

.contact-card[data-card-theme="whatsapp"] {
    --card-glow-color: rgba(16, 185, 129, 0.08);
    --card-border-hover: rgba(16, 185, 129, 0.4);
    --card-glow-shadow: rgba(16, 185, 129, 0.15);
    --card-icon-border: rgba(16, 185, 129, 0.25);
    --card-icon-color: #10B981;
    --card-icon-glow: rgba(16, 185, 129, 0.1);
    --card-icon-glow-hover: rgba(16, 185, 129, 0.4);
    --card-label-color: #8B5CF6;
}

.contact-card[data-card-theme="linkedin"] {
    --card-glow-color: rgba(2, 132, 199, 0.08);
    --card-border-hover: rgba(2, 132, 199, 0.4);
    --card-glow-shadow: rgba(2, 132, 199, 0.15);
    --card-icon-border: rgba(2, 132, 199, 0.25);
    --card-icon-color: #0284c7;
    --card-icon-glow: rgba(2, 132, 199, 0.1);
    --card-icon-glow-hover: rgba(2, 132, 199, 0.4);
    --card-label-color: #00E5FF;
}

.contact-card[data-card-theme="github"] {
    --card-glow-color: rgba(255, 255, 255, 0.05);
    --card-border-hover: rgba(255, 255, 255, 0.25);
    --card-glow-shadow: rgba(255, 255, 255, 0.1);
    --card-icon-border: rgba(255, 255, 255, 0.15);
    --card-icon-color: #f8fafc;
    --card-icon-glow: rgba(255, 255, 255, 0.05);
    --card-icon-glow-hover: rgba(255, 255, 255, 0.3);
    --card-label-color: #8B5CF6;
}

.contact-card[data-card-theme="call"] {
    --card-glow-color: rgba(245, 158, 11, 0.08);
    --card-border-hover: rgba(245, 158, 11, 0.4);
    --card-glow-shadow: rgba(245, 158, 11, 0.15);
    --card-icon-border: rgba(245, 158, 11, 0.25);
    --card-icon-color: #F59E0B;
    --card-icon-glow: rgba(245, 158, 11, 0.1);
    --card-icon-glow-hover: rgba(245, 158, 11, 0.4);
    --card-label-color: #00E5FF;
}


/* Globe Holographic Pedestal */
.globe-pedestal-container {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.globe-pedestal-container .pedestal-ring {
    position: absolute;
    border-radius: 50%;
    transform: rotateX(75deg);
    border: 2px solid transparent;
}

.globe-pedestal-container .contact-ring-1 {
    width: 300px;
    height: 88px;
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.15), inset 0 0 22px rgba(0, 229, 255, 0.1);
    animation: pulseRing 4s infinite ease-in-out;
}

.globe-pedestal-container .contact-ring-2 {
    width: 228px;
    height: 66px;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.25), inset 0 0 32px rgba(139, 92, 246, 0.2);
    animation: pulseRing 4s infinite ease-in-out 1.3s;
}

.globe-pedestal-container .contact-ring-3 {
    width: 158px;
    height: 46px;
    border-color: rgba(0, 229, 255, 0.7);
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 80%);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6), inset 0 0 40px rgba(0, 229, 255, 0.4);
    animation: pulseRing 4s infinite ease-in-out 2.6s;
}

.globe-pedestal-container .contact-beam {
    position: absolute;
    bottom: 30px;
    width: 130px;
    height: 246px;
    background: linear-gradient(to top, rgba(0, 229, 255, 0.3), transparent);
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
    filter: blur(12px);
    opacity: 0.7;
    animation: glowFlicker 3s infinite alternate ease-in-out;
}

.globe-pedestal-container .contact-glow {
    position: absolute;
    width: 210px;
    height: 52px;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.5) 0%, transparent 70%);
    filter: blur(15px);
}


/* Orbiting HTML Badges & Labels on globe — Cyberpunk Solar Style */
.orbiting-icon {
    position: absolute;
    display: none;
    opacity: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    pointer-events: auto;
    z-index: 10;
    /* JS handles left/top/opacity/transform */
    will-change: transform, opacity, left, top;
    transition: opacity 0.3s ease;
}

.icon-bubble {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(2, 12, 28, 0.88);
    border: 2px solid var(--theme-color, #00e5ff);
    color: var(--theme-color, #00e5ff);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    /* double glow: tight + wide */
    box-shadow:
        0 0 8px  var(--theme-glow, rgba(0,229,255,0.6)),
        0 0 22px var(--theme-glow, rgba(0,229,255,0.3)),
        inset 0 0 10px rgba(0,229,255,0.08);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow  0.25s ease,
                background  0.25s ease;
    position: relative;
}

/* Animated ring around bubble */
.icon-bubble::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--theme-color, #00e5ff);
    opacity: 0.35;
    animation: orbit-ring-pulse 2.4s ease-in-out infinite;
}

.icon-bubble::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed var(--theme-color, #00e5ff);
    opacity: 0.15;
    animation: orbit-ring-pulse 2.4s ease-in-out infinite 0.8s;
}

@keyframes orbit-ring-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.35; }
    50%        { transform: scale(1.1); opacity: 0.12; }
}

.orbiting-icon:hover .icon-bubble {
    transform: scale(1.22);
    background: var(--theme-color, #00e5ff);
    color: #000;
    box-shadow:
        0 0 22px var(--theme-color, #00e5ff),
        0 0 50px var(--theme-color, #00e5ff);
}

.orbit-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.80rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-color, #00e5ff);
    text-shadow: 0 0 8px var(--theme-glow, rgba(0,229,255,0.7));
    pointer-events: none;
    white-space: nowrap;
    background: rgba(0,0,0,0.45);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(0,229,255,0.12);
}

/* Per-icon BRAND colors — dark mode */
#icon-email     { --theme-color: #9c6fff; --theme-glow: rgba(156,111,255,0.55); } /* purple   */
#icon-whatsapp  { --theme-color: #25d366; --theme-glow: rgba(37,211,102,0.55);  } /* WA green */
#icon-linkedin  { --theme-color: #0a84ff; --theme-glow: rgba(10,132,255,0.55);  } /* LI blue  */
#icon-github    { --theme-color: #e2e8f0; --theme-glow: rgba(226,232,240,0.35); } /* white    */
#icon-call      { --theme-color: #ff9f00; --theme-glow: rgba(255,159,0,0.55);   } /* amber    */
#icon-instagram { --theme-color: #e1306c; --theme-glow: rgba(225,48,108,0.55); } /* pink     */
#icon-facebook  { --theme-color: #1877f2; --theme-glow: rgba(24,119,242,0.55);  } /* FB blue  */
#icon-google    { --theme-color: #ea4335; --theme-glow: rgba(234,67,53,0.55);  } /* Google red */
#icon-microsoft { --theme-color: #00a4ef; --theme-glow: rgba(0,164,239,0.55);  } /* MS blue  */


/* LIGHT THEME COMPATIBILITY FOR CONTACT */
body.light-theme .contact-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(79, 70, 229, 0.15);
}

body.light-theme .contact-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 0 15px var(--card-glow-shadow);
}

body.light-theme .card-value {
    color: var(--text-main);
}

/* Light mode overrides — keep brand identity, lighter backgrounds */
body.light-theme .icon-bubble {
    background: rgba(255, 255, 255, 0.94);
    border-width: 2.5px;
    box-shadow:
        0 0 10px var(--theme-glow, rgba(0,100,255,0.25)),
        0 2px 12px rgba(0,0,0,0.10);
}
body.light-theme .orbiting-icon:hover .icon-bubble {
    color: #fff;
    background: var(--theme-color);
}
/* Keep WhatsApp & LinkedIn brand colors in light mode */
body.light-theme #icon-email     { --theme-color: #7c3aed; --theme-glow: rgba(124,58,237,0.30); }
body.light-theme #icon-whatsapp  { --theme-color: #16a34a; --theme-glow: rgba(22,163,74,0.30);  }
body.light-theme #icon-linkedin  { --theme-color: #0066cc; --theme-glow: rgba(0,102,204,0.30);  }
body.light-theme #icon-github    { --theme-color: #0f172a; --theme-glow: rgba(15,23,42,0.20);   }
body.light-theme #icon-call      { --theme-color: #d97706; --theme-glow: rgba(217,119,6,0.30);  }
body.light-theme #icon-instagram { --theme-color: #db2777; --theme-glow: rgba(219,39,119,0.30); }
body.light-theme #icon-facebook  { --theme-color: #1d4ed8; --theme-glow: rgba(29,78,216,0.30);  }
body.light-theme #icon-google    { --theme-color: #db4437; --theme-glow: rgba(219,68,55,0.30);   }
body.light-theme #icon-microsoft { --theme-color: #0078d7; --theme-glow: rgba(0,120,215,0.30);  }
body.light-theme .orbit-label {
    color: var(--theme-color);
    text-shadow: none;
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.10);
    font-weight: 900;
}

@media (max-width: 1024px) {
    .contact-cards-container {
        margin: 0 auto;
    }
}

/* Footer */
.footer {
    position: relative;
    padding: 3rem 8% 2.5rem;
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--purple);
}

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

.footer-logo {
    font-size: 2rem;
    font-family: 'Outfit';
    font-weight: 900;
}

.footer-logo span {
    color: var(--cyan);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.built-with {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.built-with i {
    color: #FF3B30; /* Premium Red Heart color */
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

.code-bracket {
    color: #FF3B30; /* Premium Red Code Bracket color */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

.scroll-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-size: 1.5rem;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.15);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scroll-top:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 16px var(--cyan);
    transform: translateY(-4px) scale(1.05);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 229, 255, 0.12); /* Subtle blue separator line */
    padding-top: 1.5rem;
    text-align: center;
    width: 100%;
}

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

/* Light Theme Compatibility for Footer */
body.light-theme .footer {
    border-top-color: rgba(79, 70, 229, 0.1);
}

body.light-theme .footer-logo,
body.light-theme .copyright,
body.light-theme .built-with {
    color: var(--text-main);
}

body.light-theme .footer-bottom {
    border-top-color: rgba(79, 70, 229, 0.08);
}

body.light-theme .scroll-top {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .scroll-top:hover {
    background: var(--cyan);
    color: #fff;
}

/* Animation Reveal Classes */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

.active-reveal {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 1024px) {

    .home,
    .section-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-right {
        order: -1;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tags {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-media {
        justify-content: center;
    }

    .visual-side {
        margin-top: 3rem;
    }

    .traits-list {
        margin: 0 auto 2rem;
        text-align: left;
    }

    .contact-details {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.2rem 5% !important;
    }

    #menu-icon {
        display: block !important;
        font-size: 2.2rem;
        position: absolute;
        right: 90px !important;
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 2rem;
        background: rgba(5, 8, 22, 0.98);
        flex-direction: column;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .navbar.active {
        display: flex;
    }

    .header-right {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

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

    .name {
        font-size: 3.2rem;
    }

    .roles {
        font-size: 1.4rem;
    }

    .floating-asset {
        max-width: 300px;
    }

    .globe-system,
    .profile-frame {
        width: 250px;
        height: 250px;
    }

    .digital-data-lab {
        transform: scale(0.65);
    }

    /* Keep projects stack view active on mobile but prevent clipping by matching viewport height constraints */
    .mode-stack .projects-stack-container {
        height: 660px !important;
        overflow: hidden !important;
    }
}

/* Digital Data Lab Animation */
.digital-data-lab {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    margin-top: 2rem;
}

.hologram-base {
    position: absolute;
    bottom: 20px;
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
    filter: blur(5px);
    animation: pulseBase 3s infinite alternate;
}

.holo-screen {
    position: absolute;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), inset 0 0 15px rgba(0, 229, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
}

.holo-header {
    font-size: 0.75rem;
    color: var(--cyan);
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--cyan);
}

.main-screen {
    width: 240px;
    height: 180px;
    transform: translateZ(60px) translateY(-20px);
    animation: floatMain 4s ease-in-out infinite;
    z-index: 3;
}

.side-screen {
    width: 150px;
    height: 180px;
    opacity: 0.85;
}

.side-screen.left {
    transform: translateX(-140px) translateZ(-20px) rotateY(25deg);
    animation: floatLeft 5s ease-in-out infinite;
}

.side-screen.right {
    transform: translateX(140px) translateZ(-20px) rotateY(-25deg);
    animation: floatRight 6s ease-in-out infinite;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2), inset 0 0 15px rgba(139, 92, 246, 0.1);
}

.side-screen.right .holo-header {
    color: var(--purple);
    border-bottom-color: rgba(139, 92, 246, 0.3);
    text-shadow: 0 0 5px var(--purple);
}

/* Charts */
.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 110px;
    padding-top: 5px;
}

.chart-bar {
    width: 12%;
    background: linear-gradient(to top, rgba(0, 229, 255, 0.1), var(--cyan));
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    animation: barUpdate 2s infinite alternate ease-in-out;
}

.chart-bar:nth-child(1) {
    animation-delay: 0.1s;
    height: 40%;
}

.chart-bar:nth-child(2) {
    animation-delay: 0.5s;
    height: 70%;
}

.chart-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 50%;
}

.chart-bar:nth-child(4) {
    animation-delay: 0.7s;
    height: 90%;
}

.chart-bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 60%;
}

.chart-bar:nth-child(6) {
    animation-delay: 0.8s;
    height: 30%;
}

/* SQL Queries */
.sql-stream {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    color: var(--cyan);
    line-height: 1.8;
    height: 120px;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.sql-content {
    position: absolute;
    width: 100%;
    animation: scrollSql 12s linear infinite;
}

.sql-keyword {
    color: var(--purple);
    font-weight: bold;
    text-shadow: 0 0 3px rgba(139, 92, 246, 0.5);
}

.sql-string {
    color: #4ade80;
}

/* Data Nodes */
.data-nodes {
    position: relative;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--purple);
    z-index: 2;
}

.node-1 {
    top: 20%;
    left: 20%;
    animation: pulseNode 2s infinite;
}

.node-2 {
    top: 70%;
    left: 75%;
    animation: pulseNode 2.5s infinite 0.5s;
}

.node-3 {
    top: 85%;
    left: 25%;
    animation: pulseNode 3s infinite 1s;
}

.connection-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    background-size: 200% 100%;
    height: 2px;
    transform-origin: left center;
    z-index: 1;
}

.line-1 {
    width: 75px;
    top: 25%;
    left: 25%;
    transform: rotate(42deg);
    animation: dataFlow 3s linear infinite;
}

.line-2 {
    width: 65px;
    top: 75%;
    left: 80%;
    transform: rotate(165deg);
    animation: dataFlow 3.5s linear infinite 1s;
}

/* Energy Particles */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: floatParticle 5s linear infinite;
    opacity: 0;
}

.particle:nth-child(even) {
    background: var(--purple);
    box-shadow: 0 0 10px var(--purple);
}

.p-1 {
    left: 20%;
    bottom: 10%;
    width: 4px;
    height: 4px;
    animation-delay: 0s;
}

.p-2 {
    left: 80%;
    bottom: 20%;
    width: 6px;
    height: 6px;
    animation-delay: 1.5s;
}

.p-3 {
    left: 50%;
    bottom: 5%;
    width: 3px;
    height: 3px;
    animation-delay: 2.5s;
}

.p-4 {
    left: 35%;
    bottom: 15%;
    width: 5px;
    height: 5px;
    animation-delay: 0.8s;
}

.p-5 {
    left: 65%;
    bottom: 25%;
    width: 4px;
    height: 4px;
    animation-delay: 3s;
}

/* Animations */
@keyframes pulseBase {
    from {
        opacity: 0.4;
        transform: scale(0.9) rotateX(75deg);
    }

    to {
        opacity: 0.7;
        transform: scale(1.1) rotateX(75deg);
    }
}

@keyframes floatMain {

    0%,
    100% {
        transform: translateZ(60px) translateY(-20px);
    }

    50% {
        transform: translateZ(60px) translateY(-35px);
    }
}

@keyframes floatLeft {

    0%,
    100% {
        transform: translateX(-140px) translateZ(-20px) rotateY(25deg) translateY(0);
    }

    50% {
        transform: translateX(-140px) translateZ(-20px) rotateY(25deg) translateY(-15px);
    }
}

@keyframes floatRight {

    0%,
    100% {
        transform: translateX(140px) translateZ(-20px) rotateY(-25deg) translateY(0);
    }

    50% {
        transform: translateX(140px) translateZ(-20px) rotateY(-25deg) translateY(-20px);
    }
}

@keyframes barUpdate {
    0% {
        height: 15%;
    }

    100% {
        height: 95%;
    }
}

@keyframes scrollSql {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes pulseNode {

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

    50% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 25px var(--purple);
    }
}

@keyframes dataFlow {
    0% {
        background-position: 200% 0;
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        background-position: -200% 0;
        opacity: 0.3;
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.9;
    }

    80% {
        opacity: 0.9;
    }

    100% {
        transform: translateY(-250px) scale(0);
        opacity: 0;
    }
}

/* Light Theme Overrides for Digital Data Lab */
body.light-theme .holo-screen {
    background: var(--bg-card);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .side-screen.right {
    border-color: rgba(225, 29, 72, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .hologram-base {
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

body.light-theme .chart-bar {
    background: linear-gradient(to top, rgba(79, 70, 229, 0.1), var(--cyan));
    box-shadow: 0 0 5px rgba(79, 70, 229, 0.3);
}

body.light-theme .sql-string {
    color: #16a34a;
}

body.light-theme .holo-header,
body.light-theme .sql-keyword {
    text-shadow: none;
}

body.light-theme .particle {
    box-shadow: 0 0 5px var(--cyan);
}

body.light-theme .particle:nth-child(even) {
    box-shadow: 0 0 5px var(--purple);
}

body.light-theme .node {
    box-shadow: 0 0 10px var(--purple);
}

@keyframes pulseNodeLight {

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

    50% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 15px var(--purple);
    }
}

body.light-theme .node-1,
body.light-theme .node-2,
body.light-theme .node-3 {
    animation-name: pulseNodeLight;
}

/* Solar System 3D Skills Styles */
#skills-canvas-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 100%;
}

.skill-popup-card {
    position: absolute;
    transform: translate(-50%, -100%);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--cyan);
    border-radius: 8px;
    padding: 8px 15px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    pointer-events: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-popup-card.hidden {
    opacity: 0;
    transform: translate(-50%, -80%);
}

.skill-popup-card.visible {
    opacity: 1;
    transform: translate(-50%, -100%);
}

.skill-popup-card i {
    font-size: 1.2rem;
    color: inherit;
}

/* Light Theme Overrides for Solar System Popup */
body.light-theme .skill-popup-card {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-node-icon {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    pointer-events: none;
    /* Let the raycaster underneath handle the hover */
    z-index: 5;
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform, left, top;
    display: none;
    opacity: 0;
}

/* Contact Section Globe and Layout Compactness Overrides */
#contact-canvas-container {
    height: 520px !important;
    max-width: 580px !important;
}

@media (min-width: 1025px) {
    .contact .visual-side {
        align-self: flex-start;
        margin-top: 7rem; /* Aligns the center of the globe with the vertical middle of Email and WhatsApp buttons */
    }
}

/* Mobile responsive fixes for Loader & Typography */
@media (max-width: 480px) {
    .loader-tagline {
        font-size: 0.65rem !important;
        letter-spacing: 1.5px !important;
        white-space: normal !important;
    }
    #terminal-text {
        font-size: 0.78rem !important;
        padding: 10px 14px 8px !important;
        word-break: break-word !important;
    }
    .loading-percentage {
        font-size: 0.85rem !important;
    }
    .loader-mono-dot {
        font-size: 4.5rem !important;
    }
    .loader-monogram {
        font-size: 4.5rem !important;
    }
    
    /* Ensure no body overflow horizontally */
    body, html {
        width: 100%;
        overflow-x: hidden !important;
    }
}