:root {
    --primary-color: #0ea5e9;
    --secondary-color: #ec4899;
    --primary-glow: rgba(14, 165, 233, 0.06);
    --primary-border-glow: rgba(14, 165, 233, 0.15);
    
    /* Default Light Mode Colors */
    --background-color: #f1f5f9;
    --text-color: #0f172a;
    --text-secondary: #334155;
    --card-color: #ffffff;
    --card-color-glass: rgba(255, 255, 255, 0.85);
    --border-color-glass: rgba(15, 23, 42, 0.06);
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    --card-shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.06), 0 0 20px rgba(14, 165, 233, 0.08);
    
    /* Header theme colors */
    --header-bg: rgba(255, 255, 255, 0.4);
    --header-bg-scrolled: rgba(255, 255, 255, 0.85);
    --header-border: rgba(15, 23, 42, 0.05);
    --header-border-scrolled: rgba(15, 23, 42, 0.08);
    --header-shadow-scrolled: 0 15px 35px rgba(0, 0, 0, 0.04), 0 0 20px rgba(14, 165, 233, 0.05);
    
    /* Chatbot theme colors */
    --chat-window-bg: rgba(255, 255, 255, 0.95);
    --chat-bubble-bot-bg: rgba(241, 245, 249, 0.9);
    --chat-bubble-bot-color: #1e293b;
    --chat-input-bg: rgba(241, 245, 249, 0.8);
    
    /* Navigation Link variables */
    --nav-link-color: #475569;
    --nav-link-hover-color: #0f172a;
    --nav-link-hover-bg: rgba(15, 23, 42, 0.05);
    --nav-link-hover-border: rgba(15, 23, 42, 0.08);
    --nav-menu-bg: rgba(248, 250, 252, 0.95);
    
    --success-color: #22c55e;
    --error-color: #ef4444;
    --header-font: 'Outfit', sans-serif;
    --body-font: 'Plus Jakarta Sans', sans-serif;
}

body.dark-theme {
    --primary-glow: rgba(14, 165, 233, 0.08);
    --primary-border-glow: rgba(14, 165, 233, 0.2);
    
    /* Dark Mode Overrides */
    --background-color: #020617;
    --text-color: #e2e8f0;
    --text-secondary: #94a3b8;
    --card-color: #0f172a;
    --card-color-glass: rgba(15, 23, 42, 0.7);
    --border-color-glass: rgba(14, 165, 233, 0.2);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(14, 165, 233, 0.22);
    
    /* Header theme colors */
    --header-bg: rgba(2, 6, 23, 0.4);
    --header-bg-scrolled: rgba(8, 12, 30, 0.7);
    --header-border: rgba(14, 165, 233, 0.08);
    --header-border-scrolled: rgba(14, 165, 233, 0.2);
    --header-shadow-scrolled: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(14, 165, 233, 0.15), inset 0 0 12px rgba(14, 165, 233, 0.08);
    
    /* Chatbot theme colors */
    --chat-window-bg: rgba(15, 23, 42, 0.95);
    --chat-bubble-bot-bg: rgba(30, 41, 59, 0.7);
    --chat-bubble-bot-color: #e2e8f0;
    --chat-input-bg: rgba(2, 6, 23, 0.6);
    
    /* Navigation Link variables */
    --nav-link-color: #94a3b8;
    --nav-link-hover-color: #f8fafc;
    --nav-link-hover-bg: rgba(255, 255, 255, 0.05);
    --nav-link-hover-border: rgba(255, 255, 255, 0.08);
    --nav-menu-bg: rgba(2, 6, 23, 0.95);
}

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

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1.2px, transparent 1.2px);
    background-size: 18px 18px;
    position: relative;
    z-index: 1;
    overflow-x: hidden; /* Prevent horizontal scrolling of the page */
}

body.dark-theme {
    background-image: radial-gradient(rgba(14, 165, 233, 0.08) 1.2px, transparent 1.2px);
}

.aurora-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -2;
    filter: blur(100px);
    opacity: 0.3;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}

.aurora-dot {
    position: absolute;
    border-radius: 50%;
    animation: moveAurora 20s infinite alternate;
}

.aurora-dot:nth-child(1) {
    width: 500px;
    height: 500px;
    background-color: var(--primary-color);
    top: -100px;
    left: -200px;
    animation-duration: 15s;
}

.aurora-dot:nth-child(2) {
    width: 400px;
    height: 400px;
    background-color: var(--secondary-color);
    bottom: -150px;
    right: -150px;
    animation-duration: 20s;
}

.aurora-dot:nth-child(3) {
    width: 300px;
    height: 300px;
    background-color: #3b82f6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes moveAurora {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(100px, 50px) rotate(180deg);
    }
    100% {
        transform: translate(-50px, -100px) rotate(360deg);
    }
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

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



.main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.1rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--header-border);
}

.main-header.scrolled {
    top: 15px;
    width: calc(100% - 30px);
    max-width: 1000px;
    border-radius: 50px;
    background: var(--header-bg-scrolled);
    border: 1px solid var(--header-border-scrolled);
    box-shadow: var(--header-shadow-scrolled);
    padding: 0.55rem 0.5rem;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #0ea5e9, #f43f5e, #0ea5e9);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 6s linear infinite;
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo:hover {
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.6));
    transform: scale(1.03);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.4rem;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    display: inline-flex;
    align-items: center;
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--nav-link-hover-color);
    background: var(--nav-link-hover-bg);
    border-color: var(--nav-link-hover-border);
}

/* Nav Badges (GIIP-2026 and APCSIP-2026) */
.main-nav ul li a.nav-badge {
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-nav ul li a.nav-badge i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.main-nav ul li a.nav-badge:hover i {
    transform: scale(1.18) rotate(-6deg);
}

.main-nav ul li a.nav-badge-ait {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.25);
    color: #38bdf8;
}

.main-nav ul li a.nav-badge-ait:hover,
.main-nav ul li a.nav-badge-ait.active {
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(14, 165, 233, 0.6);
    color: #e0f2fe;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}

.main-nav ul li a.nav-badge-police {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.25);
    color: #fb923c;
}

.main-nav ul li a.nav-badge-police:hover,
.main-nav ul li a.nav-badge-police.active {
    background: rgba(249, 115, 22, 0.22);
    border-color: rgba(249, 115, 22, 0.6);
    color: #ffedd5;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.25);
}

.main-nav ul li a.nav-badge-opensource {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.25);
    color: #c084fc;
}

.main-nav ul li a.nav-badge-opensource:hover,
.main-nav ul li a.nav-badge-opensource.active {
    background: rgba(168, 85, 247, 0.22);
    border-color: rgba(168, 85, 247, 0.6);
    color: #f3e8ff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

/* Floating scrolled state adjustments */
@media (min-width: 1025px) {
    .main-header.scrolled .main-nav ul li a {
        font-size: 0.8rem;
        padding: 0.38rem 0.75rem;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-globe-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.5));
    animation: rotateGlobe 12s linear infinite;
}

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

.lang-switch-capsule {
    position: relative;
    display: flex;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 30px;
    padding: 3px;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 82px;
    height: 32px;
    overflow: hidden;
}

.lang-switch-capsule:hover {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
}

.lang-switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 36px;
    height: calc(100% - 6px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), background 0.35s ease;
    z-index: 1;
}

.lang-switch-btn {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 20px;
    color: #94a3b8;
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 0.75rem;
    width: 36px;
    height: 100%;
    cursor: pointer;
    transition: color 0.35s ease;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lang-switch-btn.active {
    color: #fff;
}

.lang-switch-btn:hover:not(.active) {
    color: #fff;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1050;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    margin-left: 0.5rem;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}

.hamburger .bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px auto;
    background-color: #f8fafc;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}


#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

#stars,
#stars2,
#stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

#stars {
    background: transparent url(https://www.script-tutorials.com/demos/360/images/stars.png) repeat top center;
    animation: move-twink-back 200s linear infinite;
}

#stars2 {
    background: transparent url(https://www.script-tutorials.com/demos/360/images/twinkling.png) repeat top center;
    animation: move-twink-back 150s linear infinite;
}

#stars3 {
    background: transparent url(https://www.script-tutorials.com/demos/360/images/clouds.png) repeat top center;
    animation: move-twink-back 100s linear infinite;
    opacity: 0.5;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-color);
}

.hero-content h1 span {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    min-height: 50px;
}

body.dark-theme .hero-content h1 span {
    background: linear-gradient(135deg, #a855f7 0%, #38bdf8 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-theme .hero-content .subtitle {
    color: #bdc8d3;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-social-links {
    margin-bottom: 2rem;
}

.hero-social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.hero-social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
    transition: all 0s;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.cta-button:hover::after {
    left: 130%;
    opacity: 1;
    transition: all 0.6s ease;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.cta-button:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -20px); }
    60% { transform: translate(-50%, -10px); }
}

section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% auto;
    border-radius: 2px;
    animation: textGradient 5s linear infinite;
}

.section-wrapper {
     background-color: var(--card-color-glass);
     backdrop-filter: blur(12px);
     border-radius: 10px;
     padding: 6rem 0;
     margin-bottom: 4rem;
     border: 1px solid var(--border-color-glass);
}

#about, #services, #education, #achievements, #contact {
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
}

 #skills, #projects {
    padding: 6rem 0;
 }

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 3rem;
}

.about-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary-color);
    animation: pulse-border 4s infinite ease-in-out;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0px rgba(14, 165, 233, 0.7), 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0), 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0px rgba(14, 165, 233, 0), 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

.about-text .highlight {
    font-weight: 600;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
}

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

.about-text ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.about-text ul li.highlight-item::before {
     content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
}

.about-text ul li.tech-list {
    padding-left: 1.5rem;
    color: #94a3b8;
}
.about-text ul li.tech-list strong {
    color: var(--text-color);
}

.skill-card,
.project-card,
.service-card {
    background: var(--card-color-glass);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color-glass);
    box-shadow: var(--card-shadow);
    z-index: 1;
    will-change: transform;
}

.skill-card::before,
.project-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(14, 165, 233, 0.1), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.skill-card:hover::before,
.project-card:hover::before,
.service-card:hover::before {
    opacity: 1;
}

.skill-card,
.project-card,
.service-card,
.linkedin-card,
.premium-timeline-card,
.bento-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.skill-card:hover,
.project-card:hover,
.service-card:hover {
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: var(--card-shadow-hover);
}

/* Global 3D Depth Hover Pop */
.skill-card:hover .skill-item,
.project-card:hover .project-icon,
.project-card:hover .project-link,
.linkedin-card:hover .linkedin-user,
.linkedin-card:hover .linkedin-content,
.premium-timeline-card:hover h3,
.premium-timeline-card:hover p,
.premium-timeline-card:hover .premium-timeline-chips,
.os-stat-card:hover .os-stat-icon,
.os-stat-card:hover .os-stat-info,
.os-feature-card:hover h3,
.os-feature-card:hover p,
.os-feature-card:hover .os-badges,
.os-feed-card:hover .os-feed-header,
.os-feed-card:hover .wiki-controls-wrapper,
.os-feed-card:hover .os-feed-list {
    transform: translateZ(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.skill-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-card h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Category Themes for Cards */
.skill-card.frontend-theme h3 {
    color: #0ea5e9;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}
.skill-card.backend-theme h3 {
    color: #a855f7;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}
.skill-card.security-theme h3 {
    color: #ec4899;
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}
.skill-card.devops-theme h3 {
    color: #22c55e;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.skill-card.frontend-theme:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(14, 165, 233, 0.25);
}
.skill-card.backend-theme:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(168, 85, 247, 0.25);
}
.skill-card.security-theme:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(236, 72, 153, 0.25);
}
.skill-card.devops-theme:hover {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(34, 197, 94, 0.25);
}

.skill-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

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

@media (min-width: 992px) {
    .skill-items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    padding: 1.2rem 0.8rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    box-shadow: var(--card-shadow);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item:hover {
    transform: translateY(-6px) scale(1.03);
    background: var(--nav-link-hover-bg);
}

.frontend-theme .skill-item:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(14, 165, 233, 0.15);
}
.backend-theme .skill-item:hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(168, 85, 247, 0.15);
}
.security-theme .skill-item:hover {
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(236, 72, 153, 0.15);
}
.devops-theme .skill-item:hover {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(34, 197, 94, 0.15);
}

.skill-item i, 
.skill-item svg {
    font-size: 2.2rem;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-item:hover i,
.skill-item:hover svg {
    transform: scale(1.15) translateY(-2px);
}

.skill-item span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.skill-item:hover span {
    color: var(--primary-color);
}

/* Micro-Progress Bar styles */
.skill-progress-wrap {
    width: 70%;
    height: 4px;
    background: var(--border-color-glass);
    border-radius: 10px;
    margin-top: 0.3rem;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.1, 1, 0.1, 1);
}

.frontend-theme .skill-progress-bar {
    background: #0ea5e9;
    box-shadow: 0 0 6px #0ea5e9;
}
.backend-theme .skill-progress-bar {
    background: #a855f7;
    box-shadow: 0 0 6px #a855f7;
}
.security-theme .skill-progress-bar {
    background: #ec4899;
    box-shadow: 0 0 6px #ec4899;
}
.devops-theme .skill-progress-bar {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Glass-shine reflection overlay sweep */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(56, 189, 248, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.85s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: 5;
}

.project-card:hover {
    transform: translateY(-8px) translateZ(12px) scale(1.018) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.45), 
        0 0 25px rgba(14, 165, 233, 0.22),
        0 0 10px rgba(168, 85, 247, 0.12) !important;
    border-color: rgba(14, 165, 233, 0.6) !important;
}

.project-card:hover::after {
    left: 150%;
}

.project-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.project-link i {
    margin-left: 5px;
}

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

.service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    flex-grow: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: #0f172a;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--secondary-color);
    border: 4px solid var(--border-color-glass);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--secondary-color);
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

#achievements .timeline-item::after {
     border: 4px solid var(--border-color-glass); 
}

.timeline-content {
    padding: 20px 30px;
    background: var(--background-color);
    position: relative;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    font-size: 0.9rem;
    font-weight: 300;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

/* === PREMIUM CONTACT SECTION === */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

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

.contact-info-card {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-card:hover {
    transform: translateY(-4px);
}

.contact-info-card.theme-blue { border-color: rgba(14, 165, 233, 0.12); }
.contact-info-card.theme-blue:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(14, 165, 233, 0.2);
}

.contact-info-card.theme-green { border-color: rgba(34, 197, 94, 0.12); }
.contact-info-card.theme-green:hover {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(34, 197, 94, 0.2);
}

.contact-info-card.theme-orange { border-color: rgba(249, 115, 22, 0.12); }
.contact-info-card.theme-orange:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(249, 115, 22, 0.2);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-info-card.theme-blue .contact-info-icon {
    color: var(--primary-color);
    background: rgba(14, 165, 233, 0.1);
}
.contact-info-card.theme-green .contact-info-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}
.contact-info-card.theme-orange .contact-info-icon {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.contact-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.contact-info-details span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-details h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.contact-info-details a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-card.theme-blue .contact-info-details a:hover { color: var(--primary-color); }
.contact-info-card.theme-green .contact-info-details a:hover { color: #22c55e; }
.contact-info-card.theme-orange .contact-info-details a:hover { color: #f97316; }

/* Contact Form Card Wrapper */
.contact-form-wrapper {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-form-wrapper:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: var(--card-shadow-hover);
}

.premium-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.premium-form-group {
    position: relative;
    width: 100%;
}

.premium-form-input,
.premium-form-textarea {
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 14px;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.premium-form-textarea {
    resize: vertical;
    min-height: 140px;
}

/* Floating labels or placeholder behavior styling */
.premium-form-input:focus,
.premium-form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
    background: var(--card-color);
}

body.dark-theme .premium-form-input,
body.dark-theme .premium-form-textarea {
    background: rgba(2, 6, 23, 0.6);
    color: #fff;
    border-color: rgba(14, 165, 233, 0.2);
}

body.dark-theme .premium-form-input:focus,
body.dark-theme .premium-form-textarea:focus {
    background: rgba(2, 6, 23, 0.8);
}

.premium-form-input::placeholder,
.premium-form-textarea::placeholder {
    color: #64748b;
    font-size: 0.95rem;
}

/* Submit Actions */
.form-submit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.submit-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-family: var(--body-font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-sizing: border-box;
}

.submit-action-btn.btn-email {
    background: linear-gradient(135deg, var(--primary-color), #0284c7);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.submit-action-btn.btn-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
    background: linear-gradient(135deg, #0284c7, var(--primary-color));
}

.submit-action-btn.btn-whatsapp {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.submit-action-btn.btn-whatsapp:hover {
    transform: translateY(-3px);
    background: #22c55e;
    color: #fff;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    border-color: transparent;
}

.submit-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive grid overrides */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .form-submit-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

#form-status .success {
    color: var(--success-color);
}

#form-status .error {
    color: var(--error-color);
}

/* === PREMIUM FOOTER === */
.footer {
    background: var(--card-color-glass);
    border-top: 1px solid var(--border-color-glass);
    padding: 6rem 0 0;
    margin-top: 8rem;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    box-shadow: 0 0 15px var(--primary-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-col .footer-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links ul li a i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.footer-links ul li a:hover i {
    transform: translateX(3px);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact p a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.footer-contact p i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer-contact p:hover i {
    transform: scale(1.2) rotate(15deg);
    color: var(--secondary-color);
    filter: drop-shadow(0 0 8px var(--secondary-color));
}

.footer-cta {
    margin-top: 1.5rem;
}

.footer-cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.footer-bottom {
    background: var(--nav-link-hover-bg);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color-glass);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-container p {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom-container .fa-heart {
    color: var(--secondary-color);
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 7rem; /* desktop spacing adjacent to chatbot widget */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.scroll-to-top:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.footer-social-links {
    margin-bottom: 1.5rem;
}

.footer-social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0 1rem 0 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --c1: var(--primary-color);
    --c2: var(--secondary-color);
    background: linear-gradient(90deg, var(--c1), var(--c2), var(--c1));
    background-size: 300% auto;
    background-position: 90% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transform-style: preserve-3d;
    will-change: transform;
}

.footer-social-links a:hover {
    filter: drop-shadow(0 0 12px var(--c1));
    background-position: 10% 50%;
}

/* === NEW DYNAMIC COMPONENTS STYLE === */
/* Voice Narrator Card */
.voice-narrator-card {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.voice-player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: inline-block;
}

.pulse-dot.active {
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.voice-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.narrator-btn {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--border-color-glass);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.narrator-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.narrator-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.voice-selector-wrapper select {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid var(--border-color-glass);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-family: var(--body-font);
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.visualizer-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
}

.visualizer-wrapper .bar {
    width: 3px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: height 0.3s ease;
}

.visualizer-wrapper.active .bar {
    animation: bounceBar 0.8s ease infinite alternate;
}

.visualizer-wrapper.active .bar:nth-child(1) { animation-delay: 0.1s; background-color: var(--primary-color); }
.visualizer-wrapper.active .bar:nth-child(2) { animation-delay: 0.3s; background-color: var(--secondary-color); }
.visualizer-wrapper.active .bar:nth-child(3) { animation-delay: 0.5s; background-color: var(--primary-color); }
.visualizer-wrapper.active .bar:nth-child(4) { animation-delay: 0.2s; background-color: var(--secondary-color); }
.visualizer-wrapper.active .bar:nth-child(5) { animation-delay: 0.4s; background-color: var(--primary-color); }
.visualizer-wrapper.active .bar:nth-child(6) { animation-delay: 0.6s; background-color: var(--secondary-color); }
.visualizer-wrapper.active .bar:nth-child(7) { animation-delay: 0.15s; background-color: var(--primary-color); }
.visualizer-wrapper.active .bar:nth-child(8) { animation-delay: 0.35s; background-color: var(--secondary-color); }

@keyframes bounceBar {
    0% { height: 4px; }
    100% { height: 24px; }
}

/* Floating AI Chat Twin */
.chatbot-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.35);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(14, 165, 233, 0.25);
    overflow: visible;
}

.avatar-toggle-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#avatar-toggle-canvas {
    width: 60px;
    height: 60px;
    display: block;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 35px rgba(236, 72, 153, 0.5);
}

.chatbot-toggle i {
    font-size: 1.5rem;
}

.chatbot-toggle .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--background-color);
    animation: bounce 2s infinite;
}

.chatbot-window {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: 360px;
    height: 520px;
    background: var(--chat-window-bg);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-theme .chatbot-window {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.chatbot-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(236, 72, 153, 0.1));
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-hologram-viewport {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

#avatar-chat-canvas {
    width: 36px;
    height: 36px;
    display: block;
}

.chat-header-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.chat-header-info span {
    font-size: 0.75rem;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 3px;
}

.chat-header-info span::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--success-color);
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.chat-close-btn:hover {
    color: var(--secondary-color);
}

.chat-settings-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.chat-settings-btn:hover {
    color: var(--primary-color);
}

.chat-messages {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.2) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.2);
    border-radius: 10px;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-bubble.bot {
    background: var(--chat-bubble-bot-bg);
    border: 1px solid rgba(14, 165, 233, 0.1);
    color: var(--chat-bubble-bot-color);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.chat-bubble.user {
    background: linear-gradient(135deg, var(--primary-color), #0284c7);
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.chat-typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.4rem 0.8rem;
}

.chat-typing-indicator span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: chatBounce 1.4s infinite both;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-quick-options {
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    background: rgba(15, 23, 42, 0.4);
}

.quick-opt-btn {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--primary-color);
    font-family: var(--body-font);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-opt-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.chat-input-bar {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    display: flex;
    gap: 0.5rem;
    background: var(--chat-window-bg);
}

.chat-input-bar input {
    flex-grow: 1;
    background: var(--chat-input-bg);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-bar input:focus {
    border-color: var(--primary-color);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

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

/* Blogs & LinkedIn General Feed Layouts */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color-glass);
    color: #94a3b8;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: var(--primary-color);
    background: rgba(14, 165, 233, 0.05);
}

.filter-tab.active {
    color: #fff;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.search-box-wrapper {
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.search-box-wrapper input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 2.8rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color-glass);
    border-radius: 30px;
    color: #fff;
    font-family: var(--body-font);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.search-box-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
}

/* LinkedIn Feed Cards */
.linkedin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* LinkedIn Carousel/Slider Styles */
.linkedin-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.linkedin-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 1.5rem;
    width: 100%;
}

.linkedin-track .linkedin-card {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .linkedin-track .linkedin-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }
}

@media (min-width: 1024px) {
    .linkedin-track .linkedin-card {
        flex: 0 0 calc((100% - 3rem) / 3);
        max-width: calc((100% - 3rem) / 3);
    }
}

.linkedin-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color-glass);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.linkedin-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    color: #020617;
}

.linkedin-arrow.prev {
    left: 10px;
}

.linkedin-arrow.next {
    right: 10px;
}

.linkedin-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(14, 165, 233, 0.1);
    box-shadow: none;
    color: #475569;
}

.linkedin-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.linkedin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.linkedin-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 24px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-color);
}

.linkedin-card {
    background: var(--card-color-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color-glass);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    will-change: transform;
}

.linkedin-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(14, 165, 233, 0.25);
}

.linkedin-header {
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.linkedin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.linkedin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.linkedin-user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.linkedin-user-info span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.linkedin-logo-icon {
    font-size: 1.5rem;
    color: #0a66c2;
}

.linkedin-body {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.linkedin-body p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.linkedin-image-wrapper {
    margin-top: auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    background-color: #0f172a;
}

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

.linkedin-card:hover .linkedin-image {
    transform: scale(1.05);
}

.linkedin-footer {
    padding: 1rem 1.2rem;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.linkedin-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.linkedin-stats span i {
    color: var(--primary-color);
    margin-right: 4px;
}

.linkedin-stats span:nth-child(2) i {
    color: var(--secondary-color);
}

.linkedin-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.linkedin-btn:hover {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 4px var(--secondary-color));
}

/* Blogs Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-color-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color-glass);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(236, 72, 153, 0.1);
}

.blog-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #0f172a;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.blog-content-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.blog-content-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content-body p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    margin-top: auto;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.blog-read-more:hover {
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

/* Detailed Blog Modal Reader */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.blog-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.blog-modal-content {
    background: #0f172a;
    border: 1px solid var(--border-color-glass);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

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

.blog-modal-content::-webkit-scrollbar {
    width: 6px;
}

.blog-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.blog-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color-glass);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    z-index: 10;
}

.blog-modal-close:hover {
    background: var(--error-color);
    border-color: var(--error-color);
}

.blog-modal-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color-glass);
}

.blog-modal-body {
    padding: 2.5rem;
}

.blog-modal-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.blog-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-modal-text {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-modal-text p {
    margin-bottom: 1.5rem;
}

.blog-modal-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-modal-text ul, .blog-modal-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-modal-text li {
    margin-bottom: 0.5rem;
}

.blog-modal-text strong {
    color: var(--primary-color);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {

    .cursor-dot,
    .cursor-follower {
        display: none;
    }

    * { cursor: auto !important; }

    .container {
        padding: 0 1.5rem;
    }
    
    .main-nav ul li {
        margin-left: 0;
    }

    .main-nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: var(--nav-menu-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        overflow-y: auto;
        padding: 90px 2rem 40px;
    }

    .main-nav ul.active {
        left: 0;
    }

    .main-nav ul li {
        margin: 1.25rem 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav ul li a {
        font-size: 1.15rem;
        display: inline-block;
        width: auto;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-image {
        margin: 0 auto;
        width: 240px;
        height: 240px;
    }

    .about-text ul li {
        padding-left: 0;
        text-align: left;
    }

    .about-text ul li.highlight-item::before {
        position: static;
        padding-right: 10px;
    }
    .about-text ul li.tech-list {
        padding-left: 1rem;
    }

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

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item::after {
        left: 10px;
    }
    
    .section-wrapper {
         padding: 4rem 1.5rem;
         margin-bottom: 2rem;
    }
    #skills, #projects {
        padding: 4rem 0;
    }
    
    /* Footer responsiveness for tablets */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .chatbot-window {
        width: calc(100% - 2rem);
        right: 1rem;
        left: 1rem;
        bottom: 5rem;
        height: 480px;
    }
    
    .chatbot-toggle {
        bottom: 1rem;
        right: 1rem;
    }

    .scroll-to-top {
        right: 5rem;
        bottom: 1rem;
        width: 45px;
        height: 45px;
    }

    .blog-modal-body {
        padding: 1.5rem;
    }
    .blog-modal-img {
        height: 220px;
    }
    .blog-modal-title {
        font-size: 1.6rem;
    }

    /* Staggered mobile links entrance */
    @keyframes slideInLink {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-nav ul.active li {
        animation: slideInLink 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        opacity: 0;
    }
    .main-nav ul.active li:nth-child(1) { animation-delay: 0.04s; }
    .main-nav ul.active li:nth-child(2) { animation-delay: 0.08s; }
    .main-nav ul.active li:nth-child(3) { animation-delay: 0.12s; }
    .main-nav ul.active li:nth-child(4) { animation-delay: 0.16s; }
    .main-nav ul.active li:nth-child(5) { animation-delay: 0.20s; }
    .main-nav ul.active li:nth-child(6) { animation-delay: 0.24s; }
    .main-nav ul.active li:nth-child(7) { animation-delay: 0.28s; }
    .main-nav ul.active li:nth-child(8) { animation-delay: 0.32s; }
    .main-nav ul.active li:nth-child(9) { animation-delay: 0.36s; }
    .main-nav ul.active li:nth-child(10) { animation-delay: 0.40s; }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social-links {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .section-wrapper {
         padding: 3rem 1rem;
    }
}

@media (max-width: 380px) {
    .skill-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
     .skill-item i {
        font-size: 2rem;
     }
     .skill-item span {
        font-size: 0.8rem;
     }
}

/* === CUSTOM PREMIUM SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    border: 2px solid var(--background-color);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

/* === PREMIUM SKELETON SHIMMER LOADER === */
.skeleton-card {
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(14, 165, 233, 0.15) !important;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(14, 165, 233, 0.08) 25%,
        rgba(236, 72, 153, 0.15) 50%,
        rgba(14, 165, 233, 0.08) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: premium-shimmer 2s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    flex-shrink: 0;
}

.skeleton-line {
    height: 12px;
    background: rgba(14, 165, 233, 0.12);
    border-radius: 6px;
    width: 100%;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.half {
    width: 50%;
}

.skeleton-line.heading {
    height: 18px;
    background: rgba(14, 165, 233, 0.2);
    border-radius: 8px;
}

.skeleton-image {
    height: 180px;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 12px;
    width: 100%;
    margin-top: 0.5rem;
}

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

/* === PROFILE SHARE WIDGET === */
.share-portfolio-container {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-color-glass);
}

.share-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-title i {
    color: var(--secondary-color);
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.share-btn:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(236, 72, 153, 0.2));
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
}

.share-btn.copy-btn {
    border-color: var(--primary-color);
}

.share-btn.copy-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

/* Share Toast/Status notification styling */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-toast.active {
    transform: translateX(-50%) translateY(0);
}

.share-toast i {
    color: var(--success-color);
}

/* === 3D CYBERNETIC AVATAR STYLES === */
.avatar-toggle-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

#avatar-toggle-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chat-hologram-viewport {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    animation: hologram-pulse 2s infinite alternate;
}

#avatar-chat-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes hologram-pulse {
    0% {
        border-color: var(--primary-color);
        box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
    }
    100% {
        border-color: var(--secondary-color);
        box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
    }
}

/* Premium Audio Waveform in Chatbot Header */
.chat-audio-wave {
    display: none; /* hidden by default, shown during speech */
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 20px;
    margin-left: 0.5rem;
}

.chat-audio-wave.active {
    display: flex;
}

.chat-audio-wave span {
    display: block;
    width: 3px;
    height: 4px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: bounce-wave 0.8s infinite ease-in-out;
}

.chat-audio-wave span:nth-child(2) { animation-delay: 0.15s; }
.chat-audio-wave span:nth-child(3) { animation-delay: 0.3s; }
.chat-audio-wave span:nth-child(4) { animation-delay: 0.45s; }
.chat-audio-wave span:nth-child(5) { animation-delay: 0.6s; }

@keyframes bounce-wave {
    0%, 100% {
        height: 4px;
    }
    50% {
        height: 18px;
    }
}

/* === BENTO GRID COLLABORATION SECTION === */
#services {
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.05) 0%, transparent 75%);
    top: 5%;
    left: 2%;
    pointer-events: none;
    z-index: 0;
}

#services::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.04) 0%, transparent 75%);
    bottom: 5%;
    right: 2%;
    pointer-events: none;
    z-index: 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3.5rem;
    position: relative;
    z-index: 2;
}

.bento-card {
    background: radial-gradient(circle at top right, rgba(var(--theme-rgb), 0.14), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(var(--theme-rgb), 0.04) 100%);
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(var(--theme-rgb), 0.08), 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1.5px solid rgba(var(--theme-rgb), 0.22);
    --theme-rgb: 66, 133, 244; /* Default: Google Blue */
}

/* Premium Apple-Style Animated Gradient Border Mask */
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(var(--theme-rgb), 0.25), rgba(var(--theme-rgb), 0.05) 60%, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    -webkit-mask-composite: exclude;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Radial Light Sweep / Glow behind Card */
.bento-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(var(--theme-rgb), 0.12) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    z-index: 0;
}

.bento-card:hover {
    background: radial-gradient(circle at top right, rgba(var(--theme-rgb), 0.18), transparent 60%), linear-gradient(180deg, #ffffff 0%, rgba(var(--theme-rgb), 0.08) 100%);
    box-shadow: 
        0 20px 40px -5px rgba(var(--theme-rgb), 0.2), 
        0 0 25px rgba(var(--theme-rgb), 0.15);
    border-color: rgba(var(--theme-rgb), 0.55);
}

/* Dark Mode Overrides for Bento Grid Cards */
body.dark-theme .bento-card {
    background: radial-gradient(circle at top right, rgba(var(--theme-rgb), 0.08), transparent 60%), rgba(15, 23, 42, 0.45);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.06);
}
body.dark-theme .bento-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 60%, transparent);
}
body.dark-theme .bento-card:hover {
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.55), 
        0 0 35px hsla(var(--theme-hsl), 0.35),
        inset 0 0 15px hsla(var(--theme-hsl), 0.1);
    border-color: hsla(var(--theme-hsl), 0.55);
}

.bento-card:hover::before {
    background: linear-gradient(135deg, hsla(var(--theme-hsl), 0.95) 0%, hsla(var(--theme-hsl), 0.35) 50%, transparent);
}

.bento-card:hover::after {
    opacity: 1;
    top: -20%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, hsla(var(--theme-hsl), 0.16) 0%, transparent 70%);
}

/* Bento Themes (Branded Brand Colors) */
.bento-theme-blue {
    --theme-rgb: 66, 133, 244; /* Google Blue: #4285F4 */
    --theme-hsl: 217, 89%, 61%;
}
.bento-theme-pink {
    --theme-rgb: 236, 72, 153; /* AI Pink: #EC4899 */
    --theme-hsl: 327, 81%, 60%;
}
.bento-theme-orange {
    --theme-rgb: 249, 115, 22; /* Cyber security Orange: #F97316 */
    --theme-hsl: 25, 95%, 53%;
}
.bento-theme-green {
    --theme-rgb: 52, 168, 83; /* Google Green: #34A853 */
    --theme-hsl: 136, 53%, 43%;
}
.bento-theme-purple {
    --theme-rgb: 168, 85, 247; /* Strategy Purple: #A855F7 */
    --theme-hsl: 271, 91%, 65%;
}
.bento-theme-cyan {
    --theme-rgb: 6, 182, 212; /* Data Science Cyan: #06B6D4 */
    --theme-hsl: 188, 94%, 43%;
}
.bento-theme-red {
    --theme-rgb: 234, 67, 53; /* Google Red: #EA4335 */
    --theme-hsl: 5, 81%, 56%;
}

/* Bento Layout Span Overrides */
.bento-card.col-span-2 {
    grid-column: span 2;
}

.bento-split-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.bento-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    min-width: 0;
}

@media (min-width: 992px) {
    .bento-card.col-span-2 .bento-split-layout {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2.5rem;
        align-items: start;
    }
    
    .bento-card.col-span-2 .bento-split-layout .bento-subgrid {
        grid-template-columns: 1fr;
        margin: 0;
    }
}


@media (max-width: 1024px) {
    .bento-card.col-span-2 {
        grid-column: span 2;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .bento-card.col-span-2 {
        grid-column: span 1;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2.5rem;
    }
    .bento-card {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
}

/* Inner Bento Layout Components */
.bento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

.bento-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: rgba(var(--theme-rgb), 1);
    background: linear-gradient(135deg, rgba(var(--theme-rgb), 0.18), rgba(var(--theme-rgb), 0.08));
    border: 1.5px solid rgba(var(--theme-rgb), 0.3);
    box-shadow: 0 4px 12px rgba(var(--theme-rgb), 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover .bento-icon {
    transform: scale(1.2) rotateY(180deg) rotateZ(-8deg) translate3d(0, -2px, 15px);
    color: #fff;
    background: linear-gradient(135deg, hsla(var(--theme-hsl), 0.95), hsla(var(--theme-hsl), 0.5));
    box-shadow: 
        0 10px 25px hsla(var(--theme-hsl), 0.55), 
        inset 0 4px 8px rgba(255, 255, 255, 0.45),
        inset 0 -4px 8px rgba(0, 0, 0, 0.35);
    border-color: hsla(var(--theme-hsl), 0.85);
}

.bento-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    background: rgba(var(--theme-rgb), 0.12);
    color: rgba(var(--theme-rgb), 1);
    border: 1.5px solid rgba(var(--theme-rgb), 0.35);
    box-shadow: 0 2px 8px rgba(var(--theme-rgb), 0.12);
    transition: all 0.3s ease;
}

.bento-card:hover .bento-badge {
    background: rgba(var(--theme-rgb), 0.22);
    color: rgba(var(--theme-rgb), 1);
    border-color: rgba(var(--theme-rgb), 0.6);
}

body.dark-theme .bento-badge {
    background: rgba(var(--theme-rgb), 0.08);
    border: 1px solid rgba(var(--theme-rgb), 0.22);
    box-shadow: none;
}

body.dark-theme .bento-card:hover .bento-badge {
    background: rgba(var(--theme-rgb), 0.22);
    color: #fff;
}

.bento-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    position: relative;
    z-index: 3;
}

/* Premium KPI Stats Metric Style */
.bento-metric {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 0.25rem;
    color: rgba(var(--theme-rgb), 1);
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(var(--theme-rgb), 1) 0%, var(--text-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-metric {
    transform: scale(1.05) translate3d(0, 0, 8px);
    background: linear-gradient(135deg, rgba(var(--theme-rgb), 1) 0%, hsla(var(--theme-hsl), 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-content h3 {
    background: linear-gradient(90deg, var(--text-color) 0%, hsla(var(--theme-hsl), 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-content p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: color 0.3s ease;
}

.bento-card:hover .bento-content p {
    color: var(--text-color);
}

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

.bento-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(var(--theme-rgb), 1);
    background: rgba(var(--theme-rgb), 0.08);
    border: 1px solid rgba(var(--theme-rgb), 0.25);
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-tag {
    background: rgba(var(--theme-rgb), 0.12);
    border-color: rgba(var(--theme-rgb), 0.35);
    color: rgba(var(--theme-rgb), 1);
}

/* Dark mode overrides for Bento grid elements */
body.dark-theme .bento-metric {
    background: linear-gradient(135deg, #ffffff 40%, hsla(var(--theme-hsl), 0.8) 100%);
}
body.dark-theme .bento-card:hover .bento-metric {
    background: linear-gradient(135deg, #ffffff 10%, hsla(var(--theme-hsl), 1) 100%);
}
body.dark-theme .bento-content h3 {
    color: #fff;
}
body.dark-theme .bento-card:hover .bento-content h3 {
    background: linear-gradient(90deg, #ffffff 0%, hsla(var(--theme-hsl), 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px hsla(var(--theme-hsl), 0.35));
}
body.dark-theme .bento-content p {
    color: #94a3b8;
}
body.dark-theme .bento-card:hover .bento-content p {
    color: #cbd5e1;
}
body.dark-theme .bento-tag {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
body.dark-theme .bento-card:hover .bento-tag {
    color: #94a3b8;
}

.bento-tag:hover {
    background: linear-gradient(135deg, hsla(var(--theme-hsl), 0.9) 0%, hsla(var(--theme-hsl), 0.75) 100%) !important;
    border-color: hsla(var(--theme-hsl), 0.85) !important;
    transform: translateY(-4px) scale(1.08) translate3d(0, 0, 15px);
    color: #fff !important;
    box-shadow: 0 8px 20px hsla(var(--theme-hsl), 0.45);
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

/* === PREMIUM TIMELINE SYSTEM === */
.premium-timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0 auto;
    padding: 2rem 0;
}

/* Central glowing gradient line */
.premium-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, 
        rgba(14, 165, 233, 0.8) 0%, 
        rgba(236, 72, 153, 0.8) 50%, 
        rgba(168, 85, 247, 0.8) 100%
    );
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}

.premium-timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 3.5rem;
    box-sizing: border-box;
}

.premium-timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.premium-timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Glowing central timeline node */
.premium-timeline-node {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0b0f19;
    border: 3px solid var(--primary-color);
    top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary-color);
    z-index: 10;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.35);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-timeline-item:nth-child(odd) .premium-timeline-node {
    right: -23px;
}

.premium-timeline-item:nth-child(even) .premium-timeline-node {
    left: -23px;
}

/* Node glows matching themed cards */
.premium-timeline-item.theme-blue .premium-timeline-node {
    border-color: #0ea5e9;
    color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}
.premium-timeline-item.theme-cyan .premium-timeline-node {
    border-color: #06b6d4;
    color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}
.premium-timeline-item.theme-purple .premium-timeline-node {
    border-color: #a855f7;
    color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}
.premium-timeline-item.theme-green .premium-timeline-node {
    border-color: #22c55e;
    color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}
.premium-timeline-item.theme-orange .premium-timeline-node {
    border-color: #f97316;
    color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}
.premium-timeline-item.theme-red .premium-timeline-node {
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}
.premium-timeline-item.theme-gold .premium-timeline-node {
    border-color: #eab308;
    color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}
.premium-timeline-item.theme-pink .premium-timeline-node {
    border-color: #ec4899;
    color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

/* Hover scales node */
.premium-timeline-item:hover .premium-timeline-node {
    transform: scale(1.18);
}
.premium-timeline-item.theme-blue:hover .premium-timeline-node { box-shadow: 0 0 25px rgba(14, 165, 233, 0.7); }
.premium-timeline-item.theme-cyan:hover .premium-timeline-node { box-shadow: 0 0 25px rgba(6, 182, 212, 0.7); }
.premium-timeline-item.theme-purple:hover .premium-timeline-node { box-shadow: 0 0 25px rgba(168, 85, 247, 0.7); }
.premium-timeline-item.theme-green:hover .premium-timeline-node { box-shadow: 0 0 25px rgba(34, 197, 94, 0.7); }
.premium-timeline-item.theme-orange:hover .premium-timeline-node { box-shadow: 0 0 25px rgba(249, 115, 22, 0.7); }
.premium-timeline-item.theme-red:hover .premium-timeline-node { box-shadow: 0 0 25px rgba(239, 68, 68, 0.7); }
.premium-timeline-item.theme-gold:hover .premium-timeline-node { box-shadow: 0 0 25px rgba(234, 179, 8, 0.7); }
.premium-timeline-item.theme-pink:hover .premium-timeline-node { box-shadow: 0 0 25px rgba(236, 72, 153, 0.7); }

/* Premium Timeline Card */
.premium-timeline-card {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Card Glow Themes */
.premium-timeline-item.theme-blue .premium-timeline-card { border-color: rgba(14, 165, 233, 0.12); }
.premium-timeline-item.theme-blue:hover .premium-timeline-card {
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 25px rgba(14, 165, 233, 0.2);
}
.premium-timeline-item.theme-cyan .premium-timeline-card { border-color: rgba(6, 182, 212, 0.12); }
.premium-timeline-item.theme-cyan:hover .premium-timeline-card {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 25px rgba(6, 182, 212, 0.2);
}
.premium-timeline-item.theme-purple .premium-timeline-card { border-color: rgba(168, 85, 247, 0.12); }
.premium-timeline-item.theme-purple:hover .premium-timeline-card {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 25px rgba(168, 85, 247, 0.2);
}
.premium-timeline-item.theme-green .premium-timeline-card { border-color: rgba(34, 197, 94, 0.12); }
.premium-timeline-item.theme-green:hover .premium-timeline-card {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 25px rgba(34, 197, 94, 0.2);
}
.premium-timeline-item.theme-orange .premium-timeline-card { border-color: rgba(249, 115, 22, 0.12); }
.premium-timeline-item.theme-orange:hover .premium-timeline-card {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 25px rgba(249, 115, 22, 0.2);
}
.premium-timeline-item.theme-red .premium-timeline-card { border-color: rgba(239, 68, 68, 0.12); }
.premium-timeline-item.theme-red:hover .premium-timeline-card {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 25px rgba(239, 68, 68, 0.2);
}
.premium-timeline-item.theme-gold .premium-timeline-card { border-color: rgba(234, 179, 8, 0.12); }
.premium-timeline-item.theme-gold:hover .premium-timeline-card {
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 25px rgba(234, 179, 8, 0.2);
}
.premium-timeline-item.theme-pink .premium-timeline-card { border-color: rgba(236, 72, 153, 0.12); }
.premium-timeline-item.theme-pink:hover .premium-timeline-card {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 25px rgba(236, 72, 153, 0.2);
}

.premium-timeline-item:hover .premium-timeline-card {
    /* Handled smoothly by VanillaTilt 3D dynamics */
}

/* Card Content Elements */
.premium-timeline-card h3 {
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.premium-timeline-card .institution {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.premium-timeline-item.theme-cyan .premium-timeline-card .institution { color: #06b6d4; }
.premium-timeline-item.theme-purple .premium-timeline-card .institution { color: #c084fc; }
.premium-timeline-item.theme-green .premium-timeline-card .institution { color: #4ade80; }
.premium-timeline-item.theme-orange .premium-timeline-card .institution { color: #fb923c; }
.premium-timeline-item.theme-red .premium-timeline-card .institution { color: #f87171; }
.premium-timeline-item.theme-gold .premium-timeline-card .institution { color: #fbbf24; }
.premium-timeline-item.theme-pink .premium-timeline-card .institution { color: #f472b6; }

.premium-timeline-card .date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
    background: var(--border-color-glass);
    padding: 3px 12px;
    border-radius: 30px;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.premium-timeline-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.premium-timeline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
    justify-content: flex-start;
}
.premium-timeline-item:nth-child(odd) .premium-timeline-chips {
    justify-content: flex-end;
}

.premium-timeline-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    color: var(--text-secondary);
}

/* Custom left/right accent bar */
.premium-timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    left: 0;
}
.premium-timeline-item:nth-child(odd) .premium-timeline-card::before {
    left: auto;
    right: 0;
}

.premium-timeline-item.theme-blue .premium-timeline-card::before { background: #0ea5e9; }
.premium-timeline-item.theme-cyan .premium-timeline-card::before { background: #06b6d4; }
.premium-timeline-item.theme-purple .premium-timeline-card::before { background: #a855f7; }
.premium-timeline-item.theme-green .premium-timeline-card::before { background: #22c55e; }
.premium-timeline-item.theme-orange .premium-timeline-card::before { background: #f97316; }
.premium-timeline-item.theme-red .premium-timeline-card::before { background: #ef4444; }
.premium-timeline-item.theme-gold .premium-timeline-card::before { background: #eab308; }
.premium-timeline-item.theme-pink .premium-timeline-card::before { background: #ec4899; }

/* Responsive styles for tablet and mobile */
@media (max-width: 900px) {
    .premium-timeline::after {
        left: 30px;
    }
    
    .premium-timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 1rem;
        left: 0 !important;
        text-align: left !important;
    }

    .premium-timeline-item:nth-child(odd) .premium-timeline-chips {
        justify-content: flex-start;
    }

    .premium-timeline-item:nth-child(odd) .premium-timeline-card::before {
        left: 0;
        right: auto;
    }

    .premium-timeline-node {
        left: 8px !important;
        right: auto !important;
        width: 42px;
        height: 42px;
        font-size: 1rem;
        top: 1.75rem;
    }
}

/* === OPEN SOURCE DASHBOARD & STATS === */
.os-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.os-stat-card {
    background: var(--card-color-glass);
    border: 2px solid rgba(var(--theme-rgb, 14, 165, 233), 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: var(--card-shadow);
}

.os-stat-card:hover {
    background: rgba(var(--theme-rgb, 14, 165, 233), 0.1);
    border-color: hsla(var(--theme-hsl, 200, 95%, 49%), 0.8);
    box-shadow: 0 12px 30px rgba(var(--theme-rgb, 14, 165, 233), 0.25);
    transform: translateY(-4px) scale(1.02);
}

.os-stat-icon {
    font-size: 2.15rem;
    color: rgb(var(--theme-rgb, 14, 165, 233));
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-rgb, 14, 165, 233), 0.08);
    border: 1px solid rgba(var(--theme-rgb, 14, 165, 233), 0.18);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.os-stat-card:hover .os-stat-icon {
    transform: scale(1.15) rotateY(180deg) rotateZ(-5deg) translate3d(0, -2px, 15px);
    color: #fff;
    background: linear-gradient(135deg, hsla(var(--theme-hsl), 0.95), hsla(var(--theme-hsl), 0.5));
    box-shadow: 
        0 10px 25px hsla(var(--theme-hsl), 0.55), 
        inset 0 4px 8px rgba(255, 255, 255, 0.45),
        inset 0 -4px 8px rgba(0, 0, 0, 0.35);
    border-color: hsla(var(--theme-hsl), 0.85);
}

.os-stat-info {
    display: flex;
    flex-direction: column;
}

.os-stat-num {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.os-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* --- STATS CARD GLOW THEMES --- */
.os-theme-blue {
    --theme-rgb: 14, 165, 233;
    --theme-hsl: 200, 95%, 49%;
}
.os-theme-cyan {
    --theme-rgb: 6, 182, 212;
    --theme-hsl: 188, 94%, 43%;
}
.os-theme-pink {
    --theme-rgb: 236, 72, 153;
    --theme-hsl: 327, 81%, 60%;
}
.os-theme-orange {
    --theme-rgb: 249, 115, 22;
    --theme-hsl: 25, 95%, 53%;
}
.os-theme-purple {
    --theme-rgb: 168, 85, 247;
    --theme-hsl: 271, 91%, 65%;
}
.os-theme-green {
    --theme-rgb: 34, 197, 94;
    --theme-hsl: 142, 72%, 45%;
}

/* === SHOWCASE PANEL & FEED === */
.os-showcase-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .os-showcase-panel {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.os-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.os-feature-card {
    background: var(--card-color-glass);
    border: 2px solid rgba(var(--theme-rgb, 14, 165, 233), 0.25);
    border-radius: 14px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: var(--card-shadow);
}

.os-feature-card:hover {
    background: rgba(var(--theme-rgb, 14, 165, 233), 0.08);
    border-color: hsla(var(--theme-hsl), 0.8);
    box-shadow: 0 15px 35px rgba(var(--theme-rgb, 14, 165, 233), 0.25);
    transform: translateY(-4px) scale(1.015);
}

.os-feature-card h3 i {
    color: rgb(var(--theme-rgb)) !important;
}

.os-feature-card h3 {
    font-size: 1.35rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.os-feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.os-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.os-badge {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.os-badge:hover {
    background: linear-gradient(135deg, hsla(var(--theme-hsl), 0.15) 0%, hsla(var(--theme-hsl), 0.05) 100%) !important;
    border-color: hsla(var(--theme-hsl), 0.75) !important;
    transform: translateY(-4px) scale(1.08) translate3d(0, 0, 15px);
    color: rgb(var(--theme-rgb)) !important;
    box-shadow: 0 8px 20px rgba(var(--theme-rgb), 0.15);
}

/* === PIPELINE FLOW GRAPHIC === */
.os-pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    margin-top: 1.5rem;
    padding: 1.1rem;
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 12px;
    overflow-x: auto;
    position: relative;
}

/* Custom scrollbar for pipeline */
.os-pipeline-flow::-webkit-scrollbar {
    height: 4px;
}
.os-pipeline-flow::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.3);
}
.os-pipeline-flow::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
    flex: 1;
    min-width: 75px;
}

.pipeline-step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #94a3b8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.pipeline-step:hover .pipeline-step-icon {
    transform: scale(1.12);
    color: #fff;
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.1);
}

.pipeline-step.active-code .pipeline-step-icon {
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.pipeline-step.active-gerrit .pipeline-step-icon {
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.15);
}

.pipeline-step.active-ci .pipeline-step-icon {
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.35);
    background: rgba(234, 179, 8, 0.1);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
    animation: pipeline-pulse-yellow 2s infinite;
}

.pipeline-step.active-merge .pipeline-step-icon {
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

.pipeline-step.active-phab .pipeline-step-icon {
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.35);
    background: rgba(249, 115, 22, 0.1);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.15);
}

@keyframes pipeline-pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.pipeline-step-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pipeline-step:hover .pipeline-step-label {
    color: var(--text-color);
}

.pipeline-arrow {
    color: #334155;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    user-select: none;
    flex-shrink: 0;
}

/* === WIKIPEDIA FEED/EXPLORER CARD === */
.os-feed-card {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 14px;
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 580px; /* Expanded slightly to house filters and list */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
    will-change: transform;
    --theme-rgb: 14, 165, 233;
    --theme-hsl: 200, 95%, 49%;
}

.os-feed-card:hover {
    background: var(--card-color-glass);
    border-color: var(--primary-color);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08), 
        0 0 25px rgba(14, 165, 233, 0.15);
    transform: translateY(-4px) scale(1.015);
}

.os-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-color-glass);
    margin-bottom: 1.25rem;
}

.os-feed-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Dark theme overrides for Wikipedia Explorer */
body.dark-theme .os-feed-card {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(var(--theme-rgb, 14, 165, 233), 0.12);
}
body.dark-theme .os-feed-card:hover {
    background: rgba(15, 23, 42, 0.65);
    border-color: hsla(var(--theme-hsl), 0.55);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.55), 
        0 0 35px hsla(var(--theme-hsl), 0.35),
        inset 0 0 15px hsla(var(--theme-hsl), 0.1);
}
body.dark-theme .os-feed-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.dark-theme .os-feed-title {
    color: #fff;
}

.os-feed-username {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(14, 165, 233, 0.08);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

a.os-feed-username:hover {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.45);
}

/* --- WIKI CONTROLS AND SEARCH --- */
.wiki-controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.wiki-search-box {
    position: relative;
    width: 100%;
}

.wiki-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.wiki-search-input {
    width: 100%;
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 8px;
    padding: 0.65rem 1rem 0.65rem 2.6rem;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s ease;
}

.wiki-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
    background: var(--card-color);
}

.wiki-search-input:focus + i {
    color: var(--primary-color);
}

/* Category Filter Tabs */
.wiki-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.wiki-filter-tab {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 6px;
    padding: 4px 11px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
}

.wiki-filter-tab:hover {
    background: var(--nav-link-hover-bg);
    color: var(--text-color);
}

.wiki-filter-tab.active {
    background: var(--primary-glow);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

body.dark-theme .wiki-search-input {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}
body.dark-theme .wiki-search-input:focus {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(14, 165, 233, 0.45);
}
body.dark-theme .wiki-filter-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}
body.dark-theme .wiki-filter-tab:hover {
    background: hsla(var(--theme-hsl), 0.08);
    color: #fff;
    border-color: hsla(var(--theme-hsl), 0.35);
}
body.dark-theme .wiki-filter-tab.active {
    background: hsla(var(--theme-hsl), 0.16);
    color: #fff;
    border-color: hsla(var(--theme-hsl), 0.55);
    box-shadow: 0 0 15px hsla(var(--theme-hsl), 0.25);
}

/* --- ARTICLES LIST VIEW --- */
.os-feed-list {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.4rem;
}

/* Scrollbar customization */
.os-feed-list::-webkit-scrollbar {
    width: 5px;
}
.os-feed-list::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.3);
    border-radius: 3px;
}
.os-feed-list::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.18);
    border-radius: 3px;
    transition: background 0.3s;
}
.os-feed-list::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.45);
}

.os-feed-item {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.os-feed-item:hover {
    background: var(--nav-link-hover-bg);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

body.dark-theme .os-feed-item {
    background: rgba(30, 41, 59, 0.25);
    border-color: rgba(255, 255, 255, 0.03);
}
body.dark-theme .os-feed-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(14, 165, 233, 0.25);
}

.wiki-item-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-grow: 1;
    min-width: 0;
}

.wiki-icon {
    font-size: 1.25rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* --- FEED ITEM CATEGORY STYLES --- */
.os-feed-item.cat-tech .wiki-icon {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
}
.os-feed-item.cat-science .wiki-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
}
.os-feed-item.cat-general .wiki-icon {
    color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.os-feed-item:hover .wiki-icon {
    transform: scale(1.08) rotate(-3deg);
}

.wiki-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wiki-title-wrapper {
    font-size: 0.92rem;
    color: var(--text-color);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.wiki-title-primary {
    font-weight: 600;
}

.wiki-title-secondary {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
}

body.dark-theme .wiki-title-wrapper {
    color: #fff;
}
body.dark-theme .wiki-title-secondary {
    color: #94a3b8;
}

.wiki-meta {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* Points Badge inside Feed Item */
.wiki-pts-badge {
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.wiki-status-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    flex-shrink: 0;
}





/* =======================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERHAUL
   Breakpoints: 768px, 600px, 480px, 380px
   ======================================================= */

/* ---------- 768px - Tablet ---------- */
@media (max-width: 768px) {
    #hero { padding-top: 80px; height: auto; min-height: 100svh; padding-bottom: 3rem; }
    .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-content .subtitle { font-size: clamp(0.95rem, 3.5vw, 1.2rem); min-height: unset; padding: 0 1rem; }
    .hero-social-links a { font-size: 1.5rem; margin: 0 0.6rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
    .hero-buttons .cta-button { width: 100%; max-width: 280px; text-align: center; }
    section { padding: 4rem 0; }
    .section-title { font-size: clamp(1.6rem, 5vw, 2rem); margin-bottom: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .linkedin-grid { grid-template-columns: 1fr; }
    .os-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .os-feed-card { height: auto; max-height: 480px; }
    .form-submit-actions { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .chatbot-window { width: calc(100vw - 2rem); right: 1rem; left: 1rem; height: 70svh; max-height: 500px; bottom: 5rem; }
    .chatbot-toggle { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
    .scroll-to-top { right: 5rem; bottom: 1rem; width: 42px; height: 42px; }
    .blog-modal-img { height: 200px; }
    .blog-modal-body { padding: 1.5rem; }
    .blog-modal-title { font-size: 1.4rem; }
    .blog-modal-meta { flex-wrap: wrap; gap: 0.6rem; }
    .voice-narrator-card { max-width: 100%; }
}

/* ---------- 600px - Large Phones ---------- */
@media (max-width: 600px) {
    .container { padding: 0 1rem; }
    .section-wrapper { padding: 3rem 0; margin-bottom: 1.5rem; border-radius: 0; }
    .about-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .about-image { width: 180px; height: 180px; margin: 0 auto; }
    .about-text ul { text-align: left; }
    .hero-buttons .cta-button { padding: 12px 28px; font-size: 0.95rem; }
    .hero-social-links a { font-size: 1.35rem; margin: 0 0.4rem; }
    .bento-tag { font-size: 0.72rem; padding: 2px 8px; }
    .bento-content h3 { font-size: 1.15rem; }
    .bento-content p { font-size: 0.88rem; }
    .os-stats-grid { grid-template-columns: 1fr; }
    .os-stat-card { padding: 1rem; }
    .os-pipeline-flow { justify-content: flex-start; }
    .premium-timeline { margin-top: 2rem; padding: 1rem 0; }
    .premium-timeline-card { padding: 1.25rem 1rem; }
    .premium-timeline-card h3 { font-size: 1.05rem; }
    .premium-timeline-card .institution { font-size: 0.85rem; }
    .premium-timeline-card p { font-size: 0.85rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
    .contact-form-wrapper { padding: 1.5rem 1rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-social-links { display: flex; justify-content: center; }
    .footer-bottom-container { flex-direction: column; text-align: center; gap: 0.5rem; }
    .filter-tabs { gap: 0.5rem; margin-bottom: 1.5rem; }
    .filter-tab { font-size: 0.82rem; padding: 0.4rem 1rem; }
    .search-box-wrapper { margin-bottom: 1.5rem; }
    .linkedin-arrow { width: 38px; height: 38px; font-size: 1rem; }
    .linkedin-arrow.prev { left: 4px; }
    .linkedin-arrow.next { right: 4px; }
    .skill-items-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .section-title { font-size: clamp(1.4rem, 5vw, 1.8rem); margin-bottom: 2rem; }
    .blog-modal { align-items: flex-end; padding: 0; }
    .blog-modal-content { border-radius: 16px 16px 0 0; max-height: 90svh; max-width: 100%; }
    .blog-modal-img { height: 160px; }
    .scroll-to-top { right: 4.5rem; width: 40px; height: 40px; font-size: 0.85rem; }
}

/* ---------- 480px - Small Phones ---------- */
@media (max-width: 480px) {
    .logo { font-size: 1.4rem; }
    .hero-content h1 { font-size: clamp(1.7rem, 9vw, 2.5rem); }
    .bento-grid { gap: 1rem; }
    .bento-card { padding: 1.25rem !important; }
    .skill-items-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .skill-item i { font-size: 2rem; }
    .skill-item span { font-size: 0.78rem; }
    .os-feed-card { max-height: 380px; }
    .premium-timeline-item { padding: 1rem 1rem 1rem 70px; }
    .premium-timeline-node { width: 38px; height: 38px; font-size: 0.9rem; }
    .premium-timeline-chips { gap: 0.35rem; }
    .premium-timeline-chip { font-size: 0.7rem; padding: 2px 8px; }
    .contact-info-card { padding: 1.25rem; gap: 1rem; }
    .contact-info-icon { width: 42px; height: 42px; font-size: 1.2rem; }
    .submit-action-btn { font-size: 0.88rem; padding: 0.85rem 1rem; }
    .footer { padding: 3rem 0 0; margin-top: 3rem; }
    .chatbot-window { height: 65svh; max-height: 420px; }
    .scroll-down { bottom: 1rem; font-size: 1.5rem; }
    .pipeline-step-label { font-size: 0.58rem; }
    .pipeline-step-icon { width: 32px; height: 32px; font-size: 0.8rem; }
    .tech-tag { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
    .blog-img-wrapper { height: 160px; }
    .linkedin-image-wrapper { height: 160px; }
}

/* ---------- 380px - Very Small Phones ---------- */
@media (max-width: 380px) {
    .container { padding: 0 0.75rem; }
    .logo { font-size: 1.25rem; }
    .hero-content h1 { font-size: 1.6rem; }
    .cta-button { padding: 11px 22px; font-size: 0.88rem; }
    .skill-items-grid { grid-template-columns: repeat(2, 1fr); }
    .skill-item i { font-size: 2rem; }
    .skill-item span { font-size: 0.8rem; }
    .bento-tag { font-size: 0.68rem; padding: 2px 6px; }
    .bento-grid { gap: 0.85rem; }
    .premium-timeline-card { padding: 1rem 0.75rem; }
    .os-stats-grid { grid-template-columns: 1fr; }
}

/* === LIVE GITHUB REPOS STYLING === */
.github-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.github-search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.github-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 50px;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--body-font);
}

.github-search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: color 0.3s ease;
}

.github-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
    background: var(--card-color);
}

.github-search-input:focus + i {
    color: var(--primary-color);
}

body.dark-theme .github-search-input {
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
}
body.dark-theme .github-search-input:focus {
    background: rgba(15, 23, 42, 0.85);
}

.github-filter-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.github-filter-tab {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.github-filter-tab:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.15);
}

.github-filter-tab.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* GitHub Cards Styling */
.github-repo-card {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.github-repo-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 0 20px rgba(14, 165, 233, 0.15);
}

body.dark-theme .github-repo-card {
    background: rgba(15, 23, 42, 0.5);
    border-color: var(--border-color-glass);
}
body.dark-theme .github-repo-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.2);
}

/* Stat badges */
.github-repo-stats {
    display: flex;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.github-repo-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.github-repo-stat.stars i {
    color: #f59e0b; /* Gold star */
}

.github-repo-stat.forks i {
    color: #ec4899; /* Pink fork */
}

.github-repo-stat.updated i {
    color: #38bdf8; /* Slate/blue clock */
}

/* Language badges */
.lang-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lang-badge.python {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.lang-badge.javascript {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.lang-badge.typescript {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.lang-badge.htmlcss {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.lang-badge.php {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.lang-badge.other {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Media Query Responsive adaptation for Controls */
@media (max-width: 768px) {
    .github-controls-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    .github-search-box {
        max-width: 100%;
    }
    .github-filter-tabs {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    .github-filter-tab {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}


/* ==========================================================================
   CYBERNETIC & HOLOGRAM ABOUT ME SECTION STYLES
   ========================================================================== */

/* Holographic Avatar Scanner Viewport */
.profile-scanner-viewport {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(14, 165, 233, 0.25),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-scanner-viewport .about-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    animation: none; /* Override default animation */
    z-index: 2;
    transition: transform 0.5s ease;
}

.profile-scanner-viewport:hover .about-image {
    transform: scale(1.05);
}

/* Glowing Sweep Laser Line */
.scanner-laser-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    box-shadow: 
        0 0 12px var(--primary-color), 
        0 0 25px rgba(236, 72, 153, 0.8);
    z-index: 10;
    pointer-events: none;
    animation: scanSweep 3s ease-in-out infinite;
}

@keyframes scanSweep {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

/* Cybernetic Scanner Coordinates */
.scanner-coordinates {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 11;
    font-family: monospace;
    font-size: 0.65rem;
    color: rgba(14, 165, 233, 0.85);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.coord-item {
    position: absolute;
    background: rgba(2, 6, 23, 0.75);
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(14, 165, 233, 0.25);
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    pointer-events: none;
    font-weight: 600;
}

.coord-item.top-left { top: 25px; left: 25px; }
.coord-item.top-right { top: 25px; right: 25px; }
.coord-item.bottom-left { bottom: 25px; left: 25px; }
.coord-item.bottom-right { bottom: 25px; right: 25px; }

.scanner-badge {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(14, 165, 233, 0.5);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 12;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(14, 165, 233, 0.3);
    pointer-events: none;
}

.scanner-frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(236, 72, 153, 0.45);
    animation: spinScannerRing 25s linear infinite;
    pointer-events: none;
    z-index: 5;
}

.scanner-hud-ring-1 {
    position: absolute;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    left: 12px;
    top: 12px;
    border-radius: 50%;
    border: 2px dashed rgba(14, 165, 233, 0.35);
    animation: rotateHUD1 20s linear infinite;
    pointer-events: none;
    z-index: 4;
}

.scanner-hud-ring-2 {
    position: absolute;
    width: calc(100% - 48px);
    height: calc(100% - 48px);
    left: 24px;
    top: 24px;
    border-radius: 50%;
    border: 1px dotted rgba(236, 72, 153, 0.5);
    animation: rotateHUD2 15s linear infinite reverse;
    pointer-events: none;
    z-index: 4;
}

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

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

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

/* Micro-Stats Pill Badges */
.about-micro-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 320px;
}

.about-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    font-weight: 600;
}

.about-stat-pill.theme-blue {
    border-color: rgba(14, 165, 233, 0.25);
    background: rgba(14, 165, 233, 0.05);
}
.about-stat-pill.theme-pink {
    border-color: rgba(236, 72, 153, 0.25);
    background: rgba(236, 72, 153, 0.05);
}
.about-stat-pill.theme-yellow {
    border-color: rgba(234, 179, 8, 0.25);
    background: rgba(234, 179, 8, 0.05);
}

.about-stat-pill i {
    font-size: 0.95rem;
}

.about-stat-pill.theme-blue i { color: #0284c7; }
.about-stat-pill.theme-pink i { color: #db2777; }
.about-stat-pill.theme-yellow i { color: #d97706; }

.about-stat-pill:hover {
    transform: translateY(-4px) scale(1.05);
    color: var(--text-color);
}
.about-stat-pill.theme-blue:hover {
    border-color: #0ea5e9;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}
.about-stat-pill.theme-pink:hover {
    border-color: #ec4899;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.15);
}
.about-stat-pill.theme-yellow:hover {
    border-color: #eab308;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.15);
}

/* Dark mode overrides for stat pills */
body.dark-theme .about-stat-pill {
    color: #cbd5e1;
}
body.dark-theme .about-stat-pill.theme-blue i { color: #0ea5e9; }
body.dark-theme .about-stat-pill.theme-pink i { color: #ec4899; }
body.dark-theme .about-stat-pill.theme-yellow i { color: #eab308; }
body.dark-theme .about-stat-pill:hover {
    color: #fff;
}
body.dark-theme .about-stat-pill.theme-blue:hover {
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}
body.dark-theme .about-stat-pill.theme-pink:hover {
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
}
body.dark-theme .about-stat-pill.theme-yellow:hover {
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.35);
}

/* Developer Profile Terminal */
.terminal-card {
    background: #05070c !important;
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: 12px;
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(14, 165, 233, 0.15),
        inset 0 0 15px rgba(14, 165, 233, 0.05);
    margin: 1.5rem 0 2rem 0;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-card:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(236, 72, 153, 0.3),
        inset 0 0 20px rgba(236, 72, 153, 0.05);
}

.terminal-header {
    background: #0b0e14 !important;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 7px;
    display: inline-block;
}

.terminal-dot.red { background-color: #ef4444; }
.terminal-dot.yellow { background-color: #f59e0b; }
.terminal-dot.green { background-color: #10b981; }

.terminal-title {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--body-font);
    font-weight: 600;
}

.terminal-body {
    padding: 1.25rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #e2e8f0;
    overflow-x: auto;
    text-align: left;
}

.terminal-body pre {
    margin: 0;
}

.terminal-body code {
    font-family: inherit;
}

/* Syntax Coloration */
.terminal-body .keyword { color: #ff007f; font-weight: 600; text-shadow: 0 0 8px rgba(255, 0, 127, 0.4); }
.terminal-body .property { color: #00f3ff; text-shadow: 0 0 8px rgba(0, 243, 255, 0.4); }
.terminal-body .string { color: #39ff14; text-shadow: 0 0 8px rgba(57, 255, 20, 0.4); }
.terminal-body .number { color: #ffaa00; text-shadow: 0 0 8px rgba(255, 170, 0, 0.4); }
.terminal-body .cursor {
    color: #0ea5e9;
    font-weight: 700;
    animation: blinkCaret 1s infinite step-end;
}

@keyframes blinkCaret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* About Highlights Grid & Glass Cards */
.about-highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

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

.about-highlight-card {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.about-highlight-card:has(.cyan) {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.05), transparent 65%), var(--card-color-glass);
}
.about-highlight-card:has(.pink) {
    background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.05), transparent 65%), var(--card-color-glass);
}
.about-highlight-card:has(.yellow) {
    background: radial-gradient(circle at top right, rgba(234, 179, 8, 0.05), transparent 65%), var(--card-color-glass);
}

.about-highlight-card:hover {
    transform: translateY(-6px) scale(1.03) translate3d(0, 0, 10px);
}

.about-highlight-card:has(.cyan):hover {
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.06),
        0 0 20px rgba(14, 165, 233, 0.15);
}
.about-highlight-card:has(.pink):hover {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.06),
        0 0 20px rgba(236, 72, 153, 0.15);
}
.about-highlight-card:has(.yellow):hover {
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.06),
        0 0 20px rgba(234, 179, 8, 0.15);
}

/* Dark overrides for highlight cards */
body.dark-theme .about-highlight-card {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.06);
}
body.dark-theme .about-highlight-card:has(.cyan) {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 65%), rgba(15, 23, 42, 0.4);
}
body.dark-theme .about-highlight-card:has(.pink) {
    background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.08), transparent 65%), rgba(15, 23, 42, 0.4);
}
body.dark-theme .about-highlight-card:has(.yellow) {
    background: radial-gradient(circle at top right, rgba(234, 179, 8, 0.08), transparent 65%), rgba(15, 23, 42, 0.4);
}
body.dark-theme .about-highlight-card:has(.cyan):hover {
    border-color: rgba(14, 165, 233, 0.65);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(14, 165, 233, 0.25);
}
body.dark-theme .about-highlight-card:has(.pink):hover {
    border-color: rgba(236, 72, 153, 0.65);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(236, 72, 153, 0.25);
}
body.dark-theme .about-highlight-card:has(.yellow):hover {
    border-color: rgba(234, 179, 8, 0.65);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(234, 179, 8, 0.25);
}

.about-card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.about-card-icon-wrapper.cyan {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.about-card-icon-wrapper.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.about-card-icon-wrapper.yellow {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.about-highlight-card:hover .about-card-icon-wrapper {
    transform: scale(1.1) rotate(5deg) translateZ(15px);
}

.about-highlight-card:hover .about-card-icon-wrapper.cyan {
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.about-highlight-card:hover .about-card-icon-wrapper.pink {
    background: #ec4899;
    color: #fff;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.about-highlight-card:hover .about-card-icon-wrapper.yellow {
    background: #eab308;
    color: #fff;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

.about-highlight-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: transform 0.4s ease;
}

.about-highlight-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    transition: transform 0.4s ease;
}

body.dark-theme .about-highlight-card h4 {
    color: #fff;
}
body.dark-theme .about-highlight-card p {
    color: #94a3b8;
}

.about-highlight-card:hover h4,
.about-highlight-card:hover p {
    transform: translateZ(10px);
}

/* ==========================================================================
   SERVICES BENTO SUBGRID & SUBBOXES STYLES
   ========================================================================== */

/* Introductory text modification */
.bento-intro {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1.5rem !important;
}

body.dark-theme .bento-intro {
    color: #cbd5e1;
}

/* Grid layout for Bento sub-boxes */
.bento-subgrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    width: 100%;
}

@media (min-width: 992px) {
    .col-span-2 .bento-subgrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-subbox {
    background: rgba(var(--theme-rgb), 0.05);
    border: 1.5px solid rgba(var(--theme-rgb), 0.18);
    border-radius: 10px;
    padding: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 12px rgba(var(--theme-rgb), 0.05);
}

.bento-subbox:hover {
    background: rgba(var(--theme-rgb), 0.14);
    border-color: rgba(var(--theme-rgb), 0.55);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--theme-rgb), 0.18);
}

body.dark-theme .bento-subbox {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
}

body.dark-theme .bento-subbox:hover {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(var(--theme-rgb), 0.45);
}

/* Compact list overrides for sub-boxes in 1-column bento cards to eliminate empty vertical space */
.bento-card:not(.col-span-2) .bento-subgrid {
    margin: 0.75rem 0;
    gap: 0.5rem;
}

.bento-card:not(.col-span-2) .bento-subbox {
    padding: 0.6rem 0.8rem;
    align-items: center;
    gap: 0.6rem;
}

.bento-card:not(.col-span-2) .bento-subbox p {
    display: none; /* Hide descriptions on 1-column cards for compact design */
}

.subbox-icon {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.bento-subbox:hover .subbox-icon {
    transform: scale(1.15) rotate(-3deg);
}

/* Bento Theme coloring for subboxes icons */
.bento-theme-blue .subbox-icon { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.bento-theme-blue .bento-subbox:hover {
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(14, 165, 233, 0.2);
}

.bento-theme-pink .subbox-icon { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.bento-theme-pink .bento-subbox:hover {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(236, 72, 153, 0.2);
}

.bento-theme-orange .subbox-icon { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.bento-theme-orange .bento-subbox:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(249, 115, 22, 0.2);
}

.bento-theme-green .subbox-icon { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.bento-theme-green .bento-subbox:hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(34, 197, 94, 0.2);
}

.bento-theme-purple .subbox-icon { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.bento-theme-purple .bento-subbox:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(168, 85, 247, 0.2);
}

.bento-theme-cyan .subbox-icon { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.bento-theme-cyan .bento-subbox:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(6, 182, 212, 0.2);
}

.bento-theme-red .subbox-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.bento-theme-red .bento-subbox:hover {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(239, 68, 68, 0.2);
}

.subbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.subbox-text h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.subbox-text p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

/* === BENTO PIPELINE VISUALIZER === */
.pipeline-monitor {
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin: 0.5rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.pipeline-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pipeline-status-indicator {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    display: inline-block;
}

.pipeline-status-indicator.blink {
    animation: pulseStatus 2s infinite ease-in-out;
}

@keyframes pulseStatus {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 4px #22c55e; }
    50% { opacity: 1; box-shadow: 0 0 10px #22c55e; }
}

.pipeline-title {
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.pipeline-nodes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    background: var(--card-color-glass);
    border: 1px solid var(--border-color-glass);
    border-radius: 8px;
    min-width: 75px;
    transition: all 0.3s ease;
}

.pipeline-node i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.pipeline-node span {
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Glow themes for nodes */
.pipeline-node.cyan-glow i { color: #0ea5e9; }
.pipeline-node.cyan-glow {
    border-color: rgba(14, 165, 233, 0.2);
}
.pipeline-node.cyan-glow:hover {
    border-color: #0ea5e9;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
    transform: translateY(-2px);
}

.pipeline-node.purple-glow i { color: #a855f7; }
.pipeline-node.purple-glow {
    border-color: rgba(168, 85, 247, 0.2);
}
.pipeline-node.purple-glow:hover {
    border-color: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.pipeline-node.green-glow i { color: #22c55e; }
.pipeline-node.green-glow {
    border-color: rgba(34, 197, 94, 0.2);
}
.pipeline-node.green-glow:hover {
    border-color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
    transform: translateY(-2px);
}

/* Connective lines and data flow pulse */
.pipeline-arrow {
    flex-grow: 1;
    height: 2px;
    background: var(--border-color-glass);
    position: relative;
    overflow: hidden;
}

.line-flow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: flowPulse 2s linear infinite;
}

/* Secondary flow line has slightly different timing and color */
.pipeline-arrow:nth-of-type(2) .line-flow {
    animation-delay: 1s;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

@keyframes flowPulse {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* === BENTO SPECIALIZED CAPABILITIES GRID === */
.bento-special-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 1.25rem;
}

.stack-section-title {
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.special-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 480px) {
    .special-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bento-card.col-span-2 .special-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.special-badge {
    background: rgba(var(--theme-rgb), 0.07);
    border: 1.5px solid rgba(var(--theme-rgb), 0.22);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 2px 8px rgba(var(--theme-rgb), 0.06);
}

.special-badge:hover {
    background: rgba(var(--theme-rgb), 0.16);
    transform: translateY(-2px);
    border-color: rgba(var(--theme-rgb), 0.5);
    box-shadow: 0 6px 16px rgba(var(--theme-rgb), 0.15);
}

.badge-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.badge-icon-wrap svg {
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.special-badge span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.25;
}

body.dark-theme .special-badge {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

body.dark-theme .special-badge:hover {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-theme .special-badge span {
    color: #cbd5e1;
}

/* Vibrant Gradients for Icons */
.red-gradient {
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}
.cyan-gradient {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}
.green-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}
.pink-gradient {
    background: linear-gradient(135deg, #ec4899, #d946ef);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.3);
}
.purple-gradient {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}
.yellow-gradient {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.special-badge:hover .badge-icon-wrap {
    transform: scale(1.1);
}

/* ==========================================================================
   ADDED FOR UP POLICE INTERNSHIP SUBPAGE INTEGRATION (HERO PILL & BENTO BUTTON)
   ========================================================================= */

/* Hero Announcement Badge */
.hero-announcement {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* UP Police Pill */
.announcement-pill.up-police-pill {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
}
.announcement-pill.up-police-pill:hover {
    border-color: rgba(249, 115, 22, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}
.announcement-pill.up-police-pill .announcement-ping {
    background-color: rgb(249, 115, 22);
}
.announcement-pill.up-police-pill .ping-wave {
    border: 3px solid rgba(249, 115, 22, 0.5);
}

/* AIT Bangkok Pill */
.announcement-pill.ait-bangkok-pill {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
}
.announcement-pill.ait-bangkok-pill:hover {
    border-color: rgba(14, 165, 233, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
}
.announcement-pill.ait-bangkok-pill .announcement-ping {
    background-color: rgb(14, 165, 233);
}
.announcement-pill.ait-bangkok-pill .ping-wave {
    border: 3px solid rgba(14, 165, 233, 0.5);
}

.announcement-pill:hover {
    border-color: rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
}

.announcement-ping {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.ping-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pingGlow 1.8s infinite;
    opacity: 0.75;
}

@keyframes pingGlow {
    0% { transform: scale(1); opacity: 0.75; }
    70% { transform: scale(2.8); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.announcement-text {
    font-family: var(--header-font);
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bento Action Button inside Bento Cards */
.bento-action-wrapper {
    margin-top: 1.5rem;
    display: block;
    width: 100%;
}

.bento-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.7rem 1.35rem;
    background: linear-gradient(135deg, rgba(var(--theme-rgb), 0.15), rgba(var(--theme-rgb), 0.08));
    border: 1.5px solid rgba(var(--theme-rgb), 0.45);
    border-radius: 12px;
    color: rgba(var(--theme-rgb), 1);
    text-decoration: none;
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(var(--theme-rgb), 0.12);
}

.bento-action-btn:hover {
    background: linear-gradient(135deg, rgba(var(--theme-rgb), 1), hsla(var(--theme-hsl), 0.85));
    border-color: rgba(var(--theme-rgb), 1);
    transform: translateY(-2px);
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(var(--theme-rgb), 0.4);
}

.bento-action-btn:hover i {
    color: #ffffff !important;
}

body.dark-theme .bento-action-btn {
    color: #fff;
    background: rgba(var(--theme-rgb), 0.1);
    border: 1px solid rgba(var(--theme-rgb), 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-theme .bento-action-btn:hover {
    color: #fff;
    background: rgba(var(--theme-rgb), 0.25);
    border-color: rgba(var(--theme-rgb), 0.8);
}


.bento-action-btn i {
    color: rgb(var(--theme-rgb));
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE — PHASE 2
   Fixes: Timeline collapse, header overflow, touch targets, overflow clipping
   ========================================================================== */

/* Prevent ANY horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Header container should never overflow */
.main-header .container {
    overflow: hidden;
    gap: 0.5rem;
}

/* ---- PREMIUM TIMELINE — MOBILE SINGLE COLUMN ---- */
@media (max-width: 768px) {
    /* Switch to left-side single-column layout */
    .premium-timeline::after {
        left: 20px;
        margin-left: 0;
        width: 4px;
    }

    .premium-timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding: 1rem 1rem 1rem 65px;
        text-align: left !important;
    }

    /* Both odd and even nodes move to left side */
    .premium-timeline-item:nth-child(odd) .premium-timeline-node,
    .premium-timeline-item:nth-child(even) .premium-timeline-node {
        left: -3px;
        right: auto;
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    /* Chips alignment fix */
    .premium-timeline-item:nth-child(odd) .premium-timeline-chips {
        justify-content: flex-start;
    }

    /* Card connector arrow — point left always */
    .premium-timeline-item:nth-child(odd) .premium-timeline-card::before {
        left: -8px;
        right: auto;
        border-width: 8px 8px 8px 0;
        border-color: transparent rgba(15, 23, 42, 0.45) transparent transparent;
    }

    /* Section padding tightening */
    .section-title { margin-bottom: 2rem; }

    /* Announcement pill on mobile */
    .announcement-pill {
        padding: 0.4rem 0.85rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .announcement-text {
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }

    /* Header actions compact */
    .header-actions {
        gap: 0.6rem;
    }

    /* Lang switch smaller */
    .lang-switch-capsule {
        width: 70px;
        height: 28px;
    }
    .lang-switch-slider {
        width: 30px;
    }
    .lang-switch-btn {
        width: 30px;
        font-size: 0.68rem;
    }

    /* Pipeline nodes wrap on small screens */
    .pipeline-nodes {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .pipeline-arrow {
        display: none;
    }
    .pipeline-node {
        min-width: 60px;
        padding: 0.35rem 0.5rem;
    }
    .pipeline-node span {
        font-size: 0.58rem;
    }

    /* Scroll-to-top not overlapping chatbot too much */
    .scroll-to-top {
        right: 5rem;
        bottom: 1.25rem;
    }

    /* Contact form fix */
    .contact-form-wrapper { border-radius: 16px; }

    /* OS Section */
    .os-feed-card { max-height: 400px; }
}

/* ---- 480px: Small Phones ---- */
@media (max-width: 480px) {
    /* Header — tighter layout */
    .main-header .container {
        padding: 0 0.85rem;
    }

    /* Premium timeline even tighter */
    .premium-timeline-item {
        padding: 0.85rem 0.75rem 0.85rem 55px;
    }
    .premium-timeline-item:nth-child(odd) .premium-timeline-node,
    .premium-timeline-item:nth-child(even) .premium-timeline-node {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
        left: -1px;
    }
    .premium-timeline::after {
        left: 16px;
        width: 3px;
    }
    .premium-timeline-card {
        padding: 1rem 0.85rem;
    }
    .premium-timeline-card h3 {
        font-size: 0.95rem;
    }
    .premium-timeline-chips {
        gap: 0.3rem;
    }
    .premium-timeline-chip {
        font-size: 0.65rem;
        padding: 2px 7px;
    }

    /* Skill items 3-column */
    .skill-items-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .skill-item i { font-size: 1.85rem; }
    .skill-item span { font-size: 0.72rem; }

    /* Project card images */
    .project-img-wrapper { height: 160px; }

    /* Bento metric number */
    .bento-metric { font-size: 1.2rem; }
}

/* ---- 380px: Very Small Phones ---- */
@media (max-width: 380px) {
    .skill-items-grid { grid-template-columns: repeat(2, 1fr); }

    /* Hero CTA full-width */
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .cta-button { width: 100%; max-width: 260px; text-align: center; }

    /* Section titles */
    .section-title { font-size: 1.35rem; }

    /* Bento tags shrink */
    .bento-tag { font-size: 0.62rem; padding: 2px 6px; }

    /* Chips even smaller */
    .premium-timeline-chip { font-size: 0.6rem; padding: 1px 6px; }

    /* Contact form */
    .contact-form-wrapper { padding: 1.25rem 0.85rem; }

    /* Footer */
    .footer { padding: 2.5rem 0 0; }
}

/* ==========================================================================
   Project Tab Component Styling (TripSync Premium Integration)
   ========================================================================== */
.project-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 0.75rem 0 1.25rem 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.project-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-family: var(--body-font);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-tab-btn:hover {
    color: var(--text-color);
    background: rgba(14, 165, 233, 0.08);
}

.project-tab-btn.active {
    color: var(--primary-color);
    background: rgba(14, 165, 233, 0.15);
    box-shadow: inset 0 0 8px rgba(14, 165, 233, 0.1);
}

/* Project Tab Content */
.project-tab-content {
    display: none;
    font-size: 0.88rem;
    line-height: 1.6;
    animation: projectTabFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    flex-grow: 1;
}

.project-tab-content.active {
    display: flex;
    flex-direction: column;
}

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



/* ==========================================================================
   MOBILE OVERHAUL — Responsive Improvements (All Breakpoints)
   Applied mobile-first fluid typography and layout fixes
   ========================================================================== */

/* ---- Fluid Typography — Clamp-based Sizing ---- */
.hero-title,
#hero h1 {
    font-size: clamp(2rem, 6vw, 4.5rem) !important;
    line-height: 1.15;
}

.typed-text {
    font-size: clamp(1rem, 3.5vw, 1.6rem) !important;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem) !important;
}

/* Global touch-action for interactive elements */
button, a, [role="button"], .cta-button, .project-card {
    touch-action: manipulation;
}

/* Prevent text size inflation on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Safe area padding for iPhone notch */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* ---- 1024px: Tablet/Laptop ---- */
@media (max-width: 1024px) {
    #hero {
        padding-top: 80px;
    }
    .hero-announcement {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
}

/* ---- 768px: Tablets ---- */
@media (max-width: 768px) {
    /* Hero announcement pills responsive */
    .hero-announcement {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .announcement-pill {
        width: auto;
        max-width: 90vw;
    }

    /* Hero section */
    #hero {
        min-height: 100dvh;
        padding-top: 70px;
        padding-bottom: 2rem;
    }

    /* Hero CTA buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }
    .hero-buttons .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    /* Stats row — wrap */
    .stats-row,
    .about-stats,
    .achievement-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Bento grid */
    .bento-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem;
    }
    .bento-card.bento-span-3,
    .bento-card.bento-span-2 {
        grid-column: span 2 !important;
    }

    /* Section padding */
    section, .section-wrapper {
        padding: clamp(2.5rem, 6vw, 5rem) 0;
    }
}

/* ---- 640px: Small-Mid Phones ---- */
@media (max-width: 640px) {
    /* Bento grid — single column */
    .bento-grid {
        grid-template-columns: 1fr !important;
    }
    .bento-card.bento-span-3,
    .bento-card.bento-span-2 {
        grid-column: span 1 !important;
    }
    .bento-card {
        min-height: auto !important;
    }

    /* Hero announcement pills — full width */
    .announcement-pill {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }

    /* Project cards */
    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    /* Contact form */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents iOS auto-zoom */
        padding: 0.75rem 1rem;
    }
}

/* ---- 480px: Small Phones ---- */
@media (max-width: 480px) {
    /* Container tighter */
    .container {
        padding: 0 1rem;
    }

    /* Hero */
    #hero {
        padding-top: 65px;
    }

    /* Remove bento height minimums on small phones */
    .bento-card {
        height: auto !important;
        min-height: 0 !important;
    }

    /* Skill items — 3 col on 480 */
    .skill-items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }

    /* About image smaller */
    .about-image {
        width: 180px;
        height: 180px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
    }

    /* Announcement pills smaller */
    .hero-announcement {
        padding: 0 0.5rem;
    }
}

/* ---- 380px: Very Small Phones ---- */
@media (max-width: 380px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-buttons .cta-button {
        max-width: 240px;
        font-size: 0.85rem;
        padding: 0.65rem 1.2rem;
    }

    /* Bento text */
    .bento-title {
        font-size: 0.95rem;
    }
    .bento-metric {
        font-size: 1.1rem;
    }
    .bento-tag {
        font-size: 0.6rem;
    }

    /* Skill items — 2 col on 380 */
    .skill-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Section title even smaller */
    .section-title {
        font-size: 1.4rem !important;
    }
}

/* Custom Navbar Navigation Menu Icon Styling */
.nav-icon {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-right: 0.45rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.main-nav ul li a:hover .nav-icon,
.main-nav ul li a.active .nav-icon {
    transform: scale(1.22) rotate(6deg);
    opacity: 1;
}

.footer-col ul li a::before {
    content: '\f054'; /* FontAwesome Chevron-Right character code */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.6rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    opacity: 0.65;
    transition: all 0.3s ease;
    display: inline-block;
}


/* ═══════════════════════════════════════════════════════
   PREMIUM INTERNSHIP CARDS (Hero Section)
═══════════════════════════════════════════════════════ */
.hero-internship-cards {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    margin-top: 1.6rem;
}
.internship-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.1rem;
    border-radius: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 390px;
    border: 1px solid transparent;
}
.internship-card.ait-card {
    background: rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.22);
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.04);
}
.internship-card.ait-card:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15);
    transform: translateY(-3px) scale(1.01);
}
.internship-card.ait-card .ic-icon-wrap { background: rgba(14,165,233,0.1); color: #0284c7; }
.internship-card.ait-card .ic-tag { color: #0369a1; }
.internship-card.ait-card .ic-dot-core { background: #0ea5e9; }
.internship-card.ait-card .ic-dot-ring { border-color: #0ea5e9; }
.internship-card.ait-card .ic-arrow { color: #0ea5e9; }

.internship-card.police-card {
    background: rgba(249, 115, 22, 0.06);
    border-color: rgba(249, 115, 22, 0.22);
    box-shadow: 0 4px 24px rgba(249, 115, 22, 0.04);
}
.internship-card.police-card:hover {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.15);
    transform: translateY(-3px) scale(1.01);
}
.internship-card.police-card .ic-icon-wrap { background: rgba(249,115,22,0.1); color: #ea580c; }
.internship-card.police-card .ic-tag { color: #c2410c; }
.internship-card.police-card .ic-dot-core { background: #ea580c; }
.internship-card.police-card .ic-dot-ring { border-color: #ea580c; }
.internship-card.police-card .ic-arrow { color: #ea580c; }

/* Open Source Card — purple */
.internship-card.opensource-card {
    background: rgba(168, 85, 247, 0.06);
    border-color: rgba(168, 85, 247, 0.22);
    box-shadow: 0 4px 24px rgba(168, 85, 247, 0.04);
}
.internship-card.opensource-card:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
    transform: translateY(-3px) scale(1.01);
}
.internship-card.opensource-card .ic-icon-wrap { background: rgba(168,85,247,0.1); color: #7e22ce; }
.internship-card.opensource-card .ic-tag { color: #6b21a8; }
.internship-card.opensource-card .ic-dot-core { background: #a855f7; }
.internship-card.opensource-card .ic-dot-ring { border-color: #a855f7; }
.internship-card.opensource-card .ic-arrow { color: #a855f7; }

.ic-live-dot { position: relative; width: 8px; height: 8px; flex-shrink: 0; }
.ic-dot-core { width: 8px; height: 8px; border-radius: 50%; display: block; }
.ic-dot-ring {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 18px; height: 18px;
    border-radius: 50%; border: 2px solid;
    animation: ic-ping 1.8s ease infinite; opacity: 0;
}
@keyframes ic-ping {
    0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0.8; }
    100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}
.ic-icon-wrap {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; flex-shrink: 0;
    transition: transform 0.3s ease;
}
.internship-card:hover .ic-icon-wrap { transform: scale(1.12) rotate(-5deg); }
.ic-body { text-align: left; flex: 1; min-width: 0; }
.ic-tag {
    font-size: 0.67rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 0.2rem; opacity: 0.95;
}
.ic-title {
    font-family: var(--header-font, 'Outfit', sans-serif);
    font-weight: 700; font-size: 0.82rem; color: var(--text-color); line-height: 1.3;
}
.ic-sub { font-size: 0.68rem; color: var(--text-secondary); margin-top: 0.15rem; }
.ic-arrow {
    font-size: 0.85rem; flex-shrink: 0;
    transition: transform 0.3s ease; opacity: 0.7;
}
.internship-card:hover .ic-arrow { transform: translateX(5px); opacity: 1; }

/* Dark mode overrides for hero cards */
body.dark-theme .internship-card.ait-card {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.28);
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.12);
}
body.dark-theme .internship-card.ait-card:hover {
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3);
}
body.dark-theme .internship-card.ait-card .ic-icon-wrap { background: rgba(14,165,233,0.15); color: #38bdf8; }
body.dark-theme .internship-card.ait-card .ic-tag { color: #7dd3fc; }

body.dark-theme .internship-card.police-card {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: 0 4px 24px rgba(249, 115, 22, 0.12);
}
body.dark-theme .internship-card.police-card:hover {
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
}
body.dark-theme .internship-card.police-card .ic-icon-wrap { background: rgba(249,115,22,0.15); color: #fb923c; }
body.dark-theme .internship-card.police-card .ic-tag { color: #fdba74; }

body.dark-theme .internship-card.opensource-card {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.28);
    box-shadow: 0 4px 24px rgba(168, 85, 247, 0.12);
}
body.dark-theme .internship-card.opensource-card:hover {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}
body.dark-theme .internship-card.opensource-card .ic-icon-wrap { background: rgba(168,85,247,0.15); color: #c084fc; }
body.dark-theme .internship-card.opensource-card .ic-tag { color: #d8b4fe; }

body.dark-theme .ic-title { color: #f1f5f9; }
body.dark-theme .ic-sub { color: #94a3b8; }

/* Navbar internship highlights */
.nav-highlight-ait {
    background: rgba(14, 165, 233, 0.1) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
    color: #38bdf8 !important;
}
.nav-highlight-ait:hover {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: rgba(14, 165, 233, 0.65) !important;
    box-shadow: 0 0 16px rgba(14,165,233,0.35) !important;
}
.nav-highlight-police {
    background: rgba(249, 115, 22, 0.1) !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
    color: #fb923c !important;
}
.nav-highlight-police:hover {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: rgba(249, 115, 22, 0.65) !important;
    box-shadow: 0 0 16px rgba(249,115,22,0.35) !important;
}
.main-nav ul li a i { font-size: 0.73rem; opacity: 0.75; }


/* Mobile nav improvements */
@media (max-width: 1024px) {
    .hero-internship-cards { flex-direction: column; align-items: center; gap: 0.65rem; margin-top: 1.2rem; }
    .internship-card { max-width: 100%; width: min(420px, 90vw); }
    
    .hamburger {
        display: flex !important;
    }
    
    .main-nav ul {
        background: rgba(8, 12, 30, 0.98);
        border-left: 1px solid rgba(14, 165, 233, 0.15);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding-top: 100px;
        width: 280px;
        left: auto;
        right: -280px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .main-nav ul.active {
        left: auto;
        right: 0;
    }
    
    .main-nav ul li a {
        width: 85%;
        text-align: center;
        justify-content: center;
        border-radius: 12px;
        padding: 0.65rem 1.2rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        margin: 0 auto;
    }

    .main-nav ul li a.nav-badge {
        width: 85%;
        display: inline-flex;
    }
    
    .main-nav ul li a.nav-badge-ait {
        background: rgba(14, 165, 233, 0.1) !important;
        border-color: rgba(14, 165, 233, 0.3) !important;
        color: #38bdf8 !important;
    }
    
    .main-nav ul li a.nav-badge-police {
        background: rgba(249, 115, 22, 0.1) !important;
        border-color: rgba(249, 115, 22, 0.3) !important;
        color: #fb923c !important;
    }
    
    .main-nav ul li a.nav-badge-opensource {
        background: rgba(168, 85, 247, 0.1) !important;
        border-color: rgba(168, 85, 247, 0.3) !important;
        color: #c084fc !important;
    }
}
@media (max-width: 480px) {
    .ic-sub { display: none; }
    .internship-card { padding: 0.65rem 0.9rem; }
}

/* ═══════════════════════════════════════════════════════
   CYBERNETIC FLOATING BACKGROUND ICONS (Hero Section)
═══════════════════════════════════════════════════════ */
.cyber-floaters-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.cyber-floater {
    position: absolute;
    pointer-events: auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(10, 15, 30, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(56, 189, 248, 0.7);
    font-size: 1.35rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.1s ease;
    transform-style: preserve-3d;
}

.cyber-floater:hover {
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 
        0 0 25px rgba(14, 165, 233, 0.45), 
        inset 0 0 8px rgba(14, 165, 233, 0.2);
}

/* Bobbing float animations */
@keyframes floatBob1 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes floatBob2 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-4deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes floatBob3 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Floater layout coordinate mappings */
.floater-1 {
    top: 15%;
    left: 8%;
    animation: floatBob1 6s ease-in-out infinite;
    color: rgba(168, 85, 247, 0.7); /* Purple */
}
.floater-2 {
    top: 25%;
    right: 8%;
    animation: floatBob2 7s ease-in-out infinite 1s;
    color: rgba(236, 72, 153, 0.7); /* Pink */
}
.floater-3 {
    bottom: 25%;
    left: 12%;
    animation: floatBob3 8s ease-in-out infinite 0.5s;
    color: rgba(14, 165, 233, 0.7); /* Cyan */
}
.floater-4 {
    bottom: 28%;
    right: 11%;
    animation: floatBob1 6.5s ease-in-out infinite 1.5s;
    color: rgba(16, 185, 129, 0.7); /* Emerald */
}
.floater-5 {
    top: 50%;
    left: 6%;
    animation: floatBob2 7.5s ease-in-out infinite 2s;
    color: rgba(249, 115, 22, 0.7); /* Orange */
}
.floater-6 {
    top: 55%;
    right: 12%;
    animation: floatBob3 8.5s ease-in-out infinite 0.8s;
    color: rgba(245, 158, 11, 0.7); /* Amber */
}

/* Hide background floaters on smaller viewports to keep hero clean and legible */
@media (max-width: 1024px) {
    .cyber-floaters-container,
    .cyber-texts-container {
        display: none;
    }
}

/* Subtle Floating Code Texts in Background */
.cyber-texts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-text {
    position: absolute;
    pointer-events: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 700;
    color: rgba(56, 189, 248, 0.45);
    background: rgba(10, 15, 30, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(14, 165, 233, 0.12);
    padding: 0.38rem 0.95rem;
    border-radius: 12px;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    user-select: none;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    animation: floatText 12s ease-in-out infinite;
}

.floating-text:hover {
    color: #38bdf8;
    background: rgba(10, 15, 30, 0.55);
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes floatText {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-18px) rotate(6deg); opacity: 0.7; }
    100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
}

.t-1 { top: 12%; left: 22%; animation-duration: 10s; }
.t-2 { top: 8%; right: 28%; animation-duration: 12s; animation-delay: 1.5s; }
.t-3 { bottom: 12%; left: 32%; animation-duration: 14s; animation-delay: 0.5s; }
.t-4 { bottom: 20%; right: 30%; animation-duration: 11s; animation-delay: 2s; }
.t-5 { top: 40%; left: 16%; animation-duration: 13s; animation-delay: 1s; }
.t-6 { top: 45%; right: 22%; animation-duration: 12.5s; animation-delay: 2.5s; }

/* Premium Plus Grid Background Overlay */
.plus-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 35v10M35 40h10' stroke='rgba%2856, 189, 248, 0.08%29' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

/* ==========================================================================
   Subpages Header Design Optimizations (Premium Layout & Responsiveness)
   ========================================================================== */

/* Hide icons on desktop viewports to save significant horizontal space and look more premium */
@media (min-width: 1025px) {
    .internship-page .main-nav ul li a .nav-icon,
    .open-source-page .main-nav ul li a .nav-icon {
        display: none !important;
    }
    
    /* Optimize gap and padding on subpages to fit items comfortably without wrapping */
    .internship-page .main-nav ul,
    .open-source-page .main-nav ul {
        gap: 0.35rem !important;
    }
    
    .internship-page .main-nav ul li a,
    .open-source-page .main-nav ul li a {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.82rem !important;
    }
    
    /* Expand header scrolled max-width slightly for subpages with many sections */
    .internship-page .main-header.scrolled,
    .open-source-page .main-header.scrolled {
        max-width: 1100px !important;
    }
}

/* Ensure language switcher button text displays Hindi characters correctly by falling back to native fonts */
.lang-switch-btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

/* ==========================================================================
   Theme Toggling and Visibility Overrides for Light/Dark Mode
   ========================================================================== */

/* Global Transition Smoothness */
body, header, section, .project-card, .experience-card, .blog-card, .linkedin-card, .contact-container, .footer, .chatbot-window, .chat-bubble.bot, .chat-input-bar, .chat-input-bar input, .main-header.scrolled {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Secondary Text visibility override in light mode */
.section-subtitle, 
.subtitle,
p.section-desc, 
p.desc, 
p.subtitle,
.project-card p,
.experience-card p,
.blog-card p,
.linkedin-card p,
.timeline-item p,
.contact-info p,
.footer-text,
.card-subtitle,
.hero-subtitle,
.about-desc,
.skills-category p,
.experience-details,
.blog-card-excerpt,
.linkedin-excerpt,
.footer-desc,
.share-toast,
.chat-bubble.bot {
    color: var(--text-secondary) !important;
}

/* Highlight elements */
.project-card h3, .experience-card h3, .blog-card h3, .linkedin-card h4, .about-text h3 {
    color: var(--text-color) !important;
}

/* Theme Toggle Button styling */
.theme-toggle-btn {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #4b5563; /* Slate grey for moon icon */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    outline: none;
    margin-right: 0.5rem;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

/* Scrolled state adjustment */
.main-header.scrolled .theme-toggle-btn {
    border-color: var(--header-border-scrolled);
}

/* Dark theme overrides for Toggle button */
body.dark-theme .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fbbc05; /* Golden Yellow for sun icon */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body.dark-theme .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fbbc05;
    box-shadow: 0 0 15px rgba(255, 188, 5, 0.35);
}

/* Add support for canvas / background adjustments in light mode */
body:not(.dark-theme) #matrix-canvas {
    opacity: 0.08; /* make matrix rain very subtle in light mode */
}

body:not(.dark-theme) .aurora-wrapper {
    opacity: 0.2; /* make background aurora blobs softer in light mode */
}

body:not(.dark-theme) #stars, body:not(.dark-theme) #stars2, body:not(.dark-theme) #stars3 {
    opacity: 0.15; /* make hero stars very subtle in light mode */
}

/* Fix visualizer and wave colors in light mode */
body:not(.dark-theme) .chat-audio-wave span {
    background-color: var(--primary-color);
}

/* Dark mode visibility overrides */
body.dark-theme .skill-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .skill-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .skill-item span {
    color: #cbd5e1;
}

body.dark-theme .skill-item:hover span {
    color: #fff;
}

body.dark-theme .skill-progress-wrap {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-theme .project-content p {
    color: #94a3b8;
}

body.dark-theme .service-card p {
    color: #94a3b8;
}

body.dark-theme .contact-info-details h4 {
    color: #fff;
}

body.dark-theme .os-stat-card:hover {
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.45), 
        0 0 30px hsla(var(--theme-hsl, 200, 95%, 49%), 0.3),
        inset 0 0 15px hsla(var(--theme-hsl, 200, 95%, 49%), 0.1);
}

body.dark-theme .os-stat-num {
    color: #fff;
}

body.dark-theme .os-stat-label {
    color: #94a3b8;
}

body.dark-theme .cta-button.secondary {
    color: #fff !important;
}

body.dark-theme .cta-button.secondary:hover {
    color: #fff !important;
}

body.dark-theme .github-filter-tab {
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
}

body.dark-theme .github-filter-tab:hover {
    color: #fff;
    border-color: var(--secondary-color);
}

body.dark-theme .os-stat-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .os-feature-card {
    border: 1px solid rgba(var(--theme-rgb, 14, 165, 233), 0.12);
}

body.dark-theme .os-feature-card:hover {
    background: rgba(15, 23, 42, 0.65);
    border-color: hsla(var(--theme-hsl), 0.55);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.55), 
        0 0 35px hsla(var(--theme-hsl), 0.35),
        inset 0 0 15px hsla(var(--theme-hsl), 0.1);
}

body.dark-theme .os-feature-card h3 {
    color: #fff;
}

body.dark-theme .os-feature-card p {
    color: #cbd5e1;
}

body.dark-theme .os-badge {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

body.dark-theme .os-badge:hover {
    background: linear-gradient(135deg, hsla(var(--theme-hsl), 0.3) 0%, hsla(var(--theme-hsl), 0.1) 100%) !important;
    border-color: hsla(var(--theme-hsl), 0.75) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px hsla(var(--theme-hsl), 0.45);
}

body.dark-theme .os-pipeline-flow {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .pipeline-step:hover .pipeline-step-label {
    color: #cbd5e1;
}

body.dark-theme .bento-subbox {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .bento-subbox:hover {
    background: rgba(15, 23, 42, 0.75);
}

body.dark-theme .subbox-text h4 {
    color: #fff;
}

body.dark-theme .subbox-text p {
    color: #94a3b8;
}

body.dark-theme .pipeline-monitor {
    background: rgba(9, 13, 22, 0.45);
    border-color: rgba(14, 165, 233, 0.15);
}

body.dark-theme .pipeline-title {
    color: #94a3b8;
}

body.dark-theme .pipeline-node {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .pipeline-node span {
    color: #94a3b8;
}

body.dark-theme .premium-timeline-card {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

body.dark-theme .premium-timeline-card h3 {
    color: #fff;
}

body.dark-theme .premium-timeline-card .date {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

body.dark-theme .premium-timeline-card p {
    color: #cbd5e1;
}

body.dark-theme .premium-timeline-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

body.dark-theme .contact-info-card {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

body.dark-theme .contact-info-details a {
    color: #fff;
}

body.dark-theme .contact-form-wrapper {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark-theme .footer {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 
        0 -20px 40px rgba(0, 0, 0, 0.4), 
        inset 0 20px 40px rgba(14, 165, 233, 0.05);
}

body.dark-theme .footer-col h4 {
    color: #fff;
}

body.dark-theme .footer-col .footer-bio {
    color: #94a3b8;
}

body.dark-theme .footer-links ul li a {
    color: #94a3b8;
}

body.dark-theme .footer-contact p {
    color: #94a3b8;
}

body.dark-theme .footer-contact p a {
    color: #cbd5e1;
}

body.dark-theme .footer-bottom {
    background: #01040f;
    border-color: rgba(14, 165, 233, 0.05);
}

body.dark-theme .share-title {
    color: #e2e8f0;
}

body.dark-theme .share-btn {
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
}




