/* styles.css - Minimalist Text-Based Theme (No Cards) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&family=Outfit:wght@500;600;700&display=swap');

:root {
    /* Theme Palette */
    --bg-color: #000000;
    --bg-gradient: none;

    /* Typography */
    --primary-text: #ffffff;
    --secondary-text: #cccccc;
    /* Lighter grey for better visibility */
    --muted-text: #888888;

    /* Accents */
    --highlight-color: #FF7043;
    /* Terracotta / Orange */

    /* Functional */
    --radius-pill: 9999px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s ease;

    /* --- ALIGNMENT FIXES FOR MOBILE/TABLET --- */
    --bottom-bar-height: 24px;
    --bottom-bar-gap: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

/* Header / Brand */
.site-header {
    position: fixed;
    top: 24px;
    left: 40px;
    z-index: 1002;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-text);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.brand-initial {
    position: relative;
    z-index: 1;
}

.brand-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--highlight-color);
    bottom: 4px;
    right: 4px;
}

.brand-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 112, 67, 0.4), transparent 55%);
    opacity: 0.7;
}

.brand-tagline {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-text);
    font-family: 'Fira Code', monospace;
}

/* Layout */
.container {
    max-width: 1000px;
    /* Slightly tighter for text readability */
    margin: 0 auto;
    display: flex;
    padding: 100px 40px;
    gap: 120px;
    opacity: 0;
    animation: fadeIn 1s var(--transition-smooth) forwards;
    position: relative;
    z-index: 10;
    /* Above particle background */
}

/* GitHub Graph Container */
.github-graph-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

.github-graph-container img {
    display: block;
    min-width: 600px;
    /* Ensure graph is readable */
}

@media (max-width: 768px) {
    .github-graph-container img {
        min-width: 100%;
    }
}

@media (max-width: 1024px) {
    .container {
        gap: 60px;
        padding: 80px 30px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 40px 20px;
        gap: 60px;
        margin-top: 60px;
    }
}

/* Sidebar & Navigation */
.sidebar {
    width: 180px;
    flex-shrink: 0;
}

.nav {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Increased spacing */
}

.nav-link {
    display: block;
    color: var(--muted-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--highlight-color);
}

.nav-link.active::before {
    content: '→';
    /* Minimalist indicator */
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--highlight-color);
    font-size: 14px;
}

/* Mobile Nav - Full Screen Overlay */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #000000;
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    color: var(--primary-text);
    padding: 10px 16px;
    border-radius: 999px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-text);
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu-overlay.active .mobile-nav-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link:hover {
    color: var(--highlight-color);
    transform: scale(1.05);
}

.mobile-nav-link.active {
    color: var(--highlight-color);
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
        /* Hide default sidebar on mobile */
    }

    .mobile-menu-btn {
        display: block;
    }

    .container {
        padding-top: 40px;
    }

    .site-header {
        top: 18px;
        left: 20px;
    }

    .brand-tagline {
        display: none;
    }
}


/* Main Content Area */
.content {
    flex-grow: 1;
    max-width: 700px;
    /* Optimal reading width */
}

.section {
    margin-bottom: 120px;
    /* Premium vertical spacing */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 2s var(--transition-smooth) forwards;
    position: relative;
}

/* Coding Theme Separator Removed */
/* Scroll to Top Button - Modern Design */
.scroll-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1.5px solid rgba(255, 112, 67, 0.3);
    border-radius: 50%;
    color: var(--highlight-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(255, 112, 67, 0.15);
}

.scroll-to-top.active {
    opacity: 1;
    pointer-events: all;
    animation: scrollButtonPulse 2s ease-in-out infinite;
}

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

.scroll-to-top:hover {
    border-color: var(--highlight-color);
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 112, 67, 0.15);
    box-shadow: 0 8px 24px rgba(255, 112, 67, 0.3);
    animation: none;
}

.scroll-to-top:active {
    transform: translateY(-4px) scale(1);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .scroll-to-top svg {
        width: 22px;
        height: 22px;
    }
}

.section::before,
.section::after {
    display: none;
}

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

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

/* Typography */
.section-title {
    font-size: 32px;
    /* Slightly smaller, more refined */
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: var(--primary-text);
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
    /* Modern Geometric Sans */
}

.section-title::before {
    content: '# ';
    color: var(--highlight-color);
}

.section-title.main-name {
    font-size: 48px;
    margin-bottom: 24px;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--primary-text);
    text-shadow: 0 0 20px rgba(255, 112, 67, 0.3);
    /* Subtle Glow */
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.aka-text {
    font-size: 16px;
    font-weight: 400;
    color: var(--muted-text);
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.1em;
    opacity: 0.8;
    position: relative;
    top: -4px;
}

.section-text {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: 32px;
    max-width: 640px;
    font-weight: 400;
    line-height: 1.7;
}

.section-text strong {
    color: var(--primary-text);
    font-weight: 500;
}

.section-text a {
    color: var(--highlight-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 112, 67, 0.3);
    transition: all 0.2s;
}

.section-text a:hover {
    border-bottom-color: var(--highlight-color);
    opacity: 0.8;
}

/* Buttons (Minimalist) */
.main-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.view-button,
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #333;
    /* Pill border */
    color: var(--secondary-text);
    padding: 8px 16px;
    /* Pill padding */
    border-radius: 999px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-button svg,
.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0.7;
}

.view-button:hover,
.social-link:hover {
    color: var(--primary-text);
    transform: none;
    background: transparent;
    box-shadow: none;
    border-color: var(--highlight-color);
    background: rgba(255, 112, 67, 0.1);
    /* Subtle orange tint */
    color: var(--primary-text);
}

.view-button:hover svg,
.social-link:hover svg {
    opacity: 1;
    fill: var(--highlight-color);
}

/* Social Links Row */
.social-links {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

/* Skills / Strengths - Text Columns */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px 40px;
    /* Large vertical gap */
    margin: 40px 0;
}

.strength-card {
    background: transparent;
    border: none;
    padding: 20px;
    /* Added padding for hover box */
    padding-bottom: 24px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
    position: relative;
    /* For pseudo-elements */
    transition: background 0.3s;
}

.strength-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(to right, var(--highlight-color) 0px, var(--highlight-color) 4px, transparent 4px, transparent 8px),
        repeating-linear-gradient(to bottom, var(--highlight-color) 0px, var(--highlight-color) 4px, transparent 4px, transparent 8px),
        repeating-linear-gradient(to left, var(--highlight-color) 0px, var(--highlight-color) 4px, transparent 4px, transparent 8px),
        repeating-linear-gradient(to top, var(--highlight-color) 0px, var(--highlight-color) 4px, transparent 4px, transparent 8px);
    background-size: 0% 1px, 1px 0%, 0% 1px, 1px 0%;
    background-position: 50% 0%, 100% 50%, 50% 100%, 0% 50%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
    pointer-events: none;
}

.strength-card::after {
    display: none;
    /* Not needed for center-out animation */
}



.strength-card:hover {
    background: rgba(255, 255, 255, 0.02);
    /* Subtle fill on hover */
}

.strength-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: var(--highlight-color);
}

.strength-icon {
    width: auto;
    height: auto;
    margin-bottom: 16px;
    color: var(--highlight-color);
    background: transparent;
    border-radius: 0;
    display: block;
    padding: 0;
}

.strength-icon svg {
    width: 28px;
    height: 28px;
}

.strength-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 12px;
}

.strength-card p {
    font-size: 16px;
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Role Badge - Minimal Text */
.role-badge {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: var(--highlight-color);
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 24px;
    border: none;
}

/* Experience - Timeline Text */
.work-item {
    background: transparent;
    border: none;
    padding: 24px;
    /* Added padding for hover box */
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    margin-bottom: 40px;
    /* Spacing between items */
    padding-bottom: 40px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    /* Brighter sub-item border */
    position: relative;
    transition: background 0.3s;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(to right, var(--highlight-color) 0px, var(--highlight-color) 4px, transparent 4px, transparent 8px),
        repeating-linear-gradient(to bottom, var(--highlight-color) 0px, var(--highlight-color) 4px, transparent 4px, transparent 8px),
        repeating-linear-gradient(to left, var(--highlight-color) 0px, var(--highlight-color) 4px, transparent 4px, transparent 8px),
        repeating-linear-gradient(to top, var(--highlight-color) 0px, var(--highlight-color) 4px, transparent 4px, transparent 8px);
    background-size: 0% 1px, 1px 0%, 0% 1px, 1px 0%;
    background-position: 50% 0%, 100% 50%, 50% 100%, 0% 50%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
    pointer-events: none;
}

.work-item::after {
    display: none;
    /* Not needed for center-out animation */
}



/* Mobile Scroll Animation (In-View State) - now handled by ::before */

/* Desktop: hover only */
@media (min-width: 769px) {

    .work-item:hover::before,
    .strength-card:hover::before,
    .skill-tag:hover {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    }
}

/* Mobile: scroll animation only */
@media (max-width: 768px) {

    .work-item.in-view::before,
    .strength-card.in-view::before,
    .skill-tag.in-view {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    }
}



.work-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: var(--highlight-color);
}

.work-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.work-description {
    color: var(--secondary-text);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Projects - Text Grid */
#projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px 40px;
}

.work-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--highlight-color);
    /* Orange for experience links */
    text-decoration: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.work-link:hover {
    background: transparent;
    color: var(--primary-text);
}

.work-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Skills Section - Clean Minimal Design */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 52px;
    margin-top: 48px;
}

.skill-category {
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
}

.skill-category-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--highlight-color);
    margin-bottom: 16px;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.skill-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: flex-start;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--secondary-text);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    user-select: none;
}

/* Dark Mode Hover */
.skill-tag:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--primary-text);
    transform: translateY(-1px);
}

.skill-logo {
    width: 17px;
    height: 17px;
    object-fit: contain;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.skill-tag:hover .skill-logo {
    opacity: 1;
    transform: scale(1.08);
}

/* Dark logos need outline for visibility */
.skill-logo.outline {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

.skill-tag:hover .skill-logo.outline {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .skills-container {
        gap: 42px;
    }

    .skill-category-title {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .skill-category-grid {
        gap: 8px;
    }

    .skill-tag {
        padding: 7px 13px;
        font-size: 12px;
    }

    .skill-logo {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .skills-container {
        gap: 36px;
    }

    .skill-category-title {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .skill-category-grid {
        gap: 7px;
    }

    .skill-tag {
        padding: 7px 12px;
        font-size: 11px;
        gap: 7px;
    }

    .skill-logo {
        width: 15px;
        height: 15px;
    }
}

/* Blog List - Removed duplicate, keeping card design below */

/* Blog Content */
.blog-content {
    font-size: 18px;
    line-height: 1.7;
    color: var(--secondary-text);
    margin-top: 60px;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
    color: var(--primary-text);
    margin-top: 48px;
    margin-bottom: 24px;
}

.blog-content p {
    margin-bottom: 24px;
}

.blog-content a {
    color: var(--primary-text);
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.blog-content a:hover {
    border-bottom-color: var(--highlight-color);
}

.blog-content pre {
    background: #111;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #222;
    overflow-x: auto;
    margin: 32px 0;
}

.blog-content code {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

/* Blog Content Lists */
.blog-content ul,
.blog-content ol {
    margin: 24px 0;
    padding-left: 0;
    list-style: none;
}

.blog-content li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--secondary-text);
    line-height: 1.7;
}

.blog-content ul li::before {
    content: '→';
    position: absolute;
    left: 8px;
    color: var(--highlight-color);
    font-weight: 600;
}

.blog-content ol {
    counter-reset: item;
}

.blog-content ol li::before {
    content: counter(item) '.';
    counter-increment: item;
    position: absolute;
    left: 8px;
    color: var(--highlight-color);
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Fixed CTA Buttons - Blur Glass with Attention Animation */
:root {
    /* ...existing variables... */
    --bottom-bar-height: 24px;
    --bottom-bar-gap: 60px;
}

.cta-btn {
    position: fixed;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    cursor: pointer;
    overflow: visible;
    left: 40px;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* Hire Me - Top of Stack (Pure Black + Animation) */
.cta-hire-me {
    background: #000000;
    border: 1.5px solid rgba(255, 112, 67, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 112, 67, 0.2),
        0 0 0 0 rgba(255, 112, 67, 0.4);
    animation: ctaPulseOrange 3s ease-in-out infinite;
}

.cta-hire-me:hover {
    background: rgba(0, 0, 0, 0.98);
    border-color: rgba(255, 112, 67, 0.8);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(255, 112, 67, 0.4);
    color: #ffffff;
    animation: none;
}

.cta-hire-me:active {
    transform: translateX(2px);
}

/* Let's Talk - Bottom of Stack (Pure Black + Animation) */
.cta-lets-talk {
    background: #000000;
    border: 1.5px solid rgba(37, 211, 102, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2),
        0 0 0 0 rgba(37, 211, 102, 0.4);
    animation: ctaPulseGreen 3s ease-in-out infinite 1.5s;
}

.cta-lets-talk:hover {
    background: rgba(0, 0, 0, 0.98);
    border-color: rgba(37, 211, 102, 0.8);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    color: #ffffff;
    animation: none;
}

.cta-lets-talk:active {
    transform: translateX(2px);
}

/* Light Mode Overrides for Fixed CTAs */
body.light-mode .cta-hire-me {
    background: #ffffff;
    color: #000000;
    border-color: rgba(255, 112, 67, 0.8);
}

body.light-mode .cta-hire-me:hover {
    background: #ffffff;
    color: #000000;
}

body.light-mode .cta-lets-talk {
    background: #ffffff;
    color: #000000;
    border-color: rgba(37, 211, 102, 0.8);
}

body.light-mode .cta-lets-talk:hover {
    background: #ffffff;
    color: #000000;
}

/* Attention-Grabbing Pulse Animations */
@keyframes ctaPulseOrange {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 112, 67, 0.2),
            0 0 0 0 rgba(255, 112, 67, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 112, 67, 0.3),
            0 0 0 8px rgba(255, 112, 67, 0);
    }
}

@keyframes ctaPulseGreen {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3),
            0 0 0 8px rgba(37, 211, 102, 0);
    }
}

/* CTA Icon Styling */
.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.cta-btn:hover .cta-icon {
    transform: scale(1.15);
    opacity: 1;
}

.cta-icon svg {
    width: 100%;
    height: 100%;
}

/* CTA Text */
.cta-text {
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Desktop - Larger Screens */
@media (min-width: 1025px) {
    .cta-btn {
        padding: 14px 26px;
        font-size: 15px;
    }

    .cta-icon {
        width: 22px;
        height: 22px;
    }
}

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .cta-btn {
        left: 30px;
    }

    .cta-hire-me {
        bottom: 85px;
    }

    .cta-lets-talk {
        bottom: 30px;
    }
}

/* Mobile - Stacked Compact Buttons */
@media (max-width: 768px) {
    .cta-btn {
        left: 20px;
        padding: 11px 18px;
        font-size: 13px;
        gap: 8px;
        backdrop-filter: blur(18px) saturate(180%);
    }

    .cta-hire-me {
        bottom: 90px;
    }

    .cta-lets-talk {
        bottom: 30px;
    }

    .cta-icon {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile - Refined Stacked Design */
@media (max-width: 480px) {
    .cta-btn {
        left: 16px;
        padding: 10px 16px;
        font-size: 12px;
        gap: 8px;
    }

    .cta-hire-me {
        bottom: 85px;
    }

    .cta-lets-talk {
        bottom: 30px;
    }

    .cta-icon {
        width: 18px;
        height: 18px;
    }

    .cta-text {
        font-size: 12px;
    }
}

/* Extra Small Mobile - Icon Only Circles */
@media (max-width: 380px) {
    .cta-btn {
        width: 46px;
        height: 46px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        gap: 0;
        left: 16px;
    }

    .cta-text {
        display: none;
    }

    .cta-icon {
        width: 20px;
        height: 20px;
    }

    .cta-hire-me {
        bottom: 80px;
    }

    .cta-lets-talk {
        bottom: 30px;
    }

    /* Tooltip on tap */
    .cta-btn::after {
        content: attr(aria-label);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) scale(0.9);
        background: rgba(0, 0, 0, 0.95);
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cta-btn:active::after {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    /* Arrow pointer */
    .cta-btn::before {
        content: '';
        position: absolute;
        left: calc(100% + 6px);
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-right: 6px solid rgba(0, 0, 0, 0.95);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease;
    }

    .cta-btn:active::before {
        opacity: 1;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .cta-btn:active {
        transform: scale(0.96);
    }

    .cta-hire-me:hover {
        transform: translateX(0);
    }

    .cta-lets-talk:hover {
        transform: translateX(0);
    }
}

/* Accessibility - Focus States */
.cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.cta-btn:focus-visible {
    outline: 2px solid var(--highlight-color);
    outline-offset: 3px;
}

/* Ensure CTAs are above scroll button but below mobile menu */
.scroll-to-top {
    z-index: 997;
}

/* Featured Badge */
.featured-badge {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #000;
    background: var(--highlight-color);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    transform: translateY(-2px);
}

/* Blog Content Images */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blog Posts - Minimal List Design */
#blog-posts-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
}

.blog-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    transition: width 0.3s ease;
}

.blog-card:hover::after {
    width: 60px;
}

/* Mobile Blog Cards */
@media (max-width: 768px) {
    #blog-posts-container {
        gap: 0;
    }

    .blog-card {
        padding: 24px 0;
    }
}

@media (max-width: 480px) {
    .blog-card {
        padding: 20px 0;
    }
}

.blog-card:hover {
    padding-left: 20px;
}

.blog-card:hover .blog-card-title {
    color: var(--highlight-color);
}

.blog-card-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-text);
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.blog-card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card-summary {
    font-size: 15px;
    color: var(--secondary-text);
    margin-bottom: 16px;
    line-height: 1.6;
    max-width: 720px;
}

.blog-card-link {
    font-size: 13px;
    color: var(--highlight-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link svg {
    transform: translateX(6px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .blog-card-title {
        font-size: 20px;
    }

    .blog-card-summary {
        font-size: 14px;
    }
}

/* Skills Toggle Button */
.skills-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.skills-toggle-btn {
    cursor: pointer;
    min-width: 150px;
    justify-content: center;
}

/* Fade In Animation for Skills */
@keyframes fadeInSkill {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.skill-category.fade-in {
    animation: fadeInSkill 0.5s ease forwards;
    opacity: 0;
    /* Start hidden */
}

/* Chatbot Styles - Terminal Overlay Redesign */

/* 1. The Trigger Button (Styled like CTAs) */
.cta-ask-abp {
    bottom: var(--bottom-bar-height);
    right: 40px; /* Positioned on the right */
    left: auto; /* Override default CTA left positioning */
    background: #000000;
    border: 1.5px solid var(--highlight-color);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 112, 67, 0.2),
                0 0 0 0 rgba(255, 112, 67, 0.4);
    animation: ctaPulseOrange 3s ease-in-out infinite 0.75s; /* Staggered animation */
    z-index: 998;
}

.cta-ask-abp:hover {
    background: rgba(0, 0, 0, 0.98);
    border-color: var(--highlight-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 112, 67, 0.4);
    color: #ffffff;
    animation: none;
}

.cta-ask-abp.hidden {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
}

/* Light Mode Override */
body.light-mode .cta-ask-abp {
    background: #ffffff;
    color: #000000;
    border-color: var(--highlight-color);
}

body.light-mode .cta-ask-abp:hover {
    background: #ffffff;
}

/* 2. Full Screen Blur Overlay */
.chatbot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* 3. The Terminal Window */
.chatbot-terminal {
    width: 800px;
    max-width: 90%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #e0e0e0;
    position: relative;
}

/* Header (Minimal Terminal Bar) */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.terminal-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.close-terminal {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.close-terminal:hover {
    color: #fff;
}

/* Messages Area */
.terminal-messages {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 10px;
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
}

.terminal-messages::-webkit-scrollbar {
    display: none;
}

/* Message Styling (No Boxes) */
.term-msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.term-msg.bot {
    color: #e0e0e0;
}

.term-msg.user {
    color: var(--highlight-color);
}

.msg-prefix {
    font-size: 12px;
    opacity: 0.5;
    margin-bottom: 2px;
}

.msg-content {
    white-space: pre-wrap;
}

.msg-content a {
    color: var(--highlight-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Mascot & Intro */
.mascot-container {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 0.5s ease-out;
}

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

.mascot-wave {
    font-size: 60px;
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    margin-bottom: 20px;
}

@keyframes wave {
    0% { transform: rotate(0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate(0.0deg) }
    100% { transform: rotate(0.0deg) }
}

.intro-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.intro-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Quick Action Buttons */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px 16px 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.quick-actions.hidden {
    opacity: 0;
    max-height: 0;
    padding: 0 16px;
    margin: 0;
    border: none;
}

.quick-btn {
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.15), rgba(255, 112, 67, 0.05));
    border: 1px solid rgba(255, 112, 67, 0.4);
    color: var(--highlight-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

.quick-btn:hover::before {
    left: 100%;
}

.quick-btn:hover {
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.25), rgba(255, 112, 67, 0.15));
    border-color: var(--highlight-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.3);
}

.quick-btn:active {
    transform: translateY(0);
}

/* Typing Indicator - Blinking Cursor */
.typing-cursor {
    color: var(--highlight-color);
    font-weight: bold;
    animation: cursorBlink 0.8s infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Copy Button */
.copy-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--highlight-color);
}

/* Code Syntax Highlighting */
.code-block {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #e0e0e0;
}

.inline-code {
    background: rgba(255, 112, 67, 0.15);
    border: 1px solid rgba(255, 112, 67, 0.3);
    color: var(--highlight-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}

/* Input Area (Command Line Style) */
.terminal-input-area {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.prompt-label {
    color: var(--highlight-color);
    font-weight: bold;
}

.terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 16px;
    outline: none;
}

.terminal-cursor {
    width: 10px;
    height: 20px;
    background: var(--highlight-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Hero Chat Button */
.btn-chat {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
    background: rgba(255, 112, 67, 0.1);
}

.btn-chat:hover {
    background: var(--highlight-color);
    color: #000;
}

/* Mobile */
@media (max-width: 768px) {
    .chatbot-terminal {
        width: 100%;
        height: 100%;
        padding: 20px;
    }
    
    .intro-text {
        font-size: 20px;
    }
    
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }

    /* Stack input on mobile for better typing experience */
    .terminal-input-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .terminal-input {
        width: 100%;
    }

    /* Mobile quick actions */
    .quick-actions {
        padding: 16px 12px 12px;
        gap: 8px;
    }
}

/* Light Mode Variables */
body.light-mode {
    --bg-color: #f5f5f7;
    --primary-text: #1d1d1f;
    --secondary-text: #424245;
    --muted-text: #86868b;
    --highlight-color: #FF5722;
    /* Slightly darker orange for contrast */
}

/* Light Mode Overrides for Chatbot */
body.light-mode .chatbot-overlay {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .chatbot-terminal {
    color: #1d1d1f;
}

body.light-mode .terminal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .terminal-title,
body.light-mode .close-terminal {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .close-terminal:hover {
    color: #000;
}

body.light-mode .term-msg.bot {
    color: #1d1d1f;
}

body.light-mode .intro-text {
    color: #1d1d1f;
}

body.light-mode .intro-sub {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .terminal-input-area {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .terminal-input {
    color: #1d1d1f;
}

body.light-mode .chatbot-toggle {
    background: #fff;
    border-color: var(--highlight-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .chatbot-toggle:hover {
    background: rgba(255, 87, 34, 0.1);
}

body.light-mode .strength-card,
body.light-mode .work-item {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

/* Light Mode Skills Overrides */
body.light-mode .skill-category-title {
    color: var(--highlight-color);
}

/* Light Mode Overrides for New Chatbot Features */
body.light-mode .quick-actions {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .quick-btn {
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.12), rgba(255, 112, 67, 0.06));
    border-color: rgba(255, 112, 67, 0.3);
    color: var(--highlight-color);
}

body.light-mode .quick-btn:hover {
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.2), rgba(255, 112, 67, 0.12));
    border-color: rgba(255, 112, 67, 0.5);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.2);
}

body.light-mode .typing-cursor {
    color: var(--highlight-color);
}

body.light-mode .copy-btn {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .copy-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

body.light-mode .code-block {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .code-header {
    background: rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .inline-code {
    background: rgba(255, 112, 67, 0.08);
    color: #d04a02;
}

body.light-mode .skill-tag {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--secondary-text);
}

body.light-mode .skill-tag:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.18);
    color: var(--primary-text);
}

body.light-mode .skill-logo.outline {
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.15));
}

body.light-mode .skill-tag:hover .skill-logo.outline {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

body.light-mode .view-button,
body.light-mode .social-link {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--secondary-text);
}

body.light-mode .view-button:hover,
body.light-mode .social-link:hover {
    background: rgba(255, 87, 34, 0.1);
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}

body.light-mode .chatbot-window {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

body.light-mode .chatbot-header {
    background: rgba(255, 87, 34, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .chatbot-input-area {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .chatbot-input-area input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-text);
}

body.light-mode .bot-message {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-text);
}

body.light-mode .mobile-menu-overlay {
    background: rgba(245, 245, 247, 0.98);
}

body.light-mode .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.98);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    color: var(--primary-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.light-mode .mobile-menu-btn:hover {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Theme Toggle Switch - Code Style (Reimagined) */
.theme-toggle {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1002;
    background: #000000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: var(--secondary-text);
    transition: all 0.3s ease;
    width: auto;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
    background: rgba(255, 112, 67, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 112, 67, 0.15);
}

/* Remove the old knob */
.theme-toggle::after {
    display: none;
}

/* Icons */
.theme-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Text */
.theme-toggle-text {
    display: inline-block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.theme-toggle-text::before {
    content: '// ';
    color: var(--muted-text);
    opacity: 0.7;
    margin-right: 2px;
}

/* Icon Visibility - Show Current State */
/* Default (Dark Mode) -> Show Moon */
.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

/* Light Mode -> Show Sun */
body.light-mode .theme-toggle .sun-icon {
    display: block;
}

body.light-mode .theme-toggle .moon-icon {
    display: none;
}

/* Light Mode Styles */
body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .theme-toggle:hover {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
    background: rgba(255, 87, 34, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .theme-toggle {
        top: 20px;
        left: 20px;
        right: auto;
        /* Exact match with mobile-menu-btn */
        padding: 10px 16px;
        font-size: 14px;
        background: #000000;
        border: 1px solid #333;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: none; /* Reset desktop shadow */
    }
    
    body.light-mode .theme-toggle {
        background: rgba(255, 255, 255, 0.98);
        border: 1.5px solid rgba(0, 0, 0, 0.15);
        color: var(--primary-text);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    /* Adjust container to prevent overlap */
    .container {
        padding-top: 80px;
    }
}

/* Social Button Brand Colors - Persistent Across Themes */
/* YouTube - Red Fill */
.btn-youtube svg,
.btn-youtube svg path {
    fill: #FF0000 !important;
    color: #FF0000 !important; /* Overrides currentColor */
    opacity: 1 !important;
}

/* Resume - Blue Stroke */
.btn-resume svg,
.btn-resume svg path {
    stroke: #4285F4 !important;
    color: #4285F4 !important; /* Overrides currentColor */
    opacity: 1 !important;
}

/* LinkedIn - Blue Fill */
.btn-linkedin svg,
.btn-linkedin svg path {
    fill: #0077B5 !important;
    color: #0077B5 !important; /* Overrides currentColor */
    opacity: 1 !important;
}

/* GitHub - Theme Adaptive (White in Dark, Black in Light) */
.btn-github svg,
.btn-github svg path {
    fill: #ffffff;
    color: #ffffff;
    opacity: 1;
}

body.light-mode .btn-github svg,
body.light-mode .btn-github svg path {
    fill: #000000 !important;
    color: #000000 !important;
}

/* CTA Icons - Persistent Colors */
.cta-lets-talk svg,
.cta-lets-talk svg path {
    fill: #25D366 !important;
    color: #25D366 !important;
}

.cta-hire-me svg,
.cta-hire-me svg path {
    fill: #EA4335 !important;
    color: #EA4335 !important;
}

/* Text Colors - Theme Dependent */
/* Dark Mode (Default) */
.btn-youtube,
.btn-resume,
.btn-github,
.btn-linkedin,
.cta-hire-me,
.cta-lets-talk {
    color: #ffffff !important;
}

/* Light Mode */
body.light-mode .btn-youtube,
body.light-mode .btn-resume,
body.light-mode .btn-github,
body.light-mode .btn-linkedin,
body.light-mode .cta-hire-me,
body.light-mode .cta-lets-talk {
    color: #000000 !important;
}

/* Hover States - Keep Text Color Consistent */
.btn-youtube:hover,
.btn-resume:hover,
.btn-github:hover,
.btn-linkedin:hover,
.cta-hire-me:hover,
.cta-lets-talk:hover {
    color: #ffffff !important;
}

body.light-mode .btn-youtube:hover,
body.light-mode .btn-resume:hover,
body.light-mode .btn-github:hover,
body.light-mode .btn-linkedin:hover,
body.light-mode .cta-hire-me:hover,
body.light-mode .cta-lets-talk:hover {
    color: #000000 !important;
}

/* Border Colors - Theme Specific (White in Dark, Black in Light) */
.btn-youtube,
.btn-resume,
.btn-linkedin,
.btn-github {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Hover States - Brand Colors on Hover */
.btn-youtube:hover { border-color: #FF0000 !important; }
.btn-resume:hover { border-color: #4285F4 !important; }
.btn-linkedin:hover { border-color: #0077B5 !important; }
.btn-github:hover { border-color: #ffffff !important; }

/* Light Mode Overrides - Black Borders */
body.light-mode .btn-youtube,
body.light-mode .btn-resume,
body.light-mode .btn-linkedin,
body.light-mode .btn-github {
    border-color: #000000 !important;
}

/* Light Mode Hover - Brand Colors */
body.light-mode .btn-youtube:hover { border-color: #FF0000 !important; }
body.light-mode .btn-resume:hover { border-color: #4285F4 !important; }
body.light-mode .btn-linkedin:hover { border-color: #0077B5 !important; }
body.light-mode .btn-github:hover { border-color: #000000 !important; }

.cta-hire-me { border-color: rgba(255, 112, 67, 0.5); }
.cta-lets-talk { border-color: rgba(37, 211, 102, 0.5); }

/* Backgrounds */
.cta-hire-me, .cta-lets-talk { background: #000000; }
body.light-mode .cta-hire-me, body.light-mode .cta-lets-talk { background: #ffffff; }



/* Fixed Buttons Consistency - All match theme */
/* Dark Mode (Default) */
.scroll-to-top,
.chatbot-toggle,
.cta-btn {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-to-top {
    color: var(--highlight-color);
}

.scroll-to-top:hover {
    border-color: var(--highlight-color);
    background: rgba(0, 0, 0, 0.9);
}

.chatbot-toggle {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    color: #fff;
}

.chatbot-toggle:hover {
    background: var(--highlight-color);
    opacity: 0.9;
}

.cta-btn {
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-text);
}

.cta-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--highlight-color);
}

/* Light Mode CTA & Fixed Buttons */
body.light-mode .scroll-to-top {
    background: rgba(255, 255, 255, 0.98);
    border: 1.5px solid rgba(255, 87, 34, 0.3);
    color: var(--highlight-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.light-mode .scroll-to-top:hover {
    background: #ffffff;
    border-color: var(--highlight-color);
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.3);
    color: var(--highlight-color);
}

body.light-mode .scroll-to-top svg {
    stroke: var(--highlight-color);
}

body.light-mode .chatbot-toggle {
    background: var(--highlight-color);
    border: 1.5px solid var(--highlight-color);
    box-shadow: 0 4px 16px rgba(255, 87, 34, 0.4);
    color: #ffffff;
}

body.light-mode .chatbot-toggle:hover {
    background: #FF6B3D;
    border-color: #FF6B3D;
    box-shadow: 0 6px 24px rgba(255, 87, 34, 0.5);
    transform: scale(1.08);
}

body.light-mode .chatbot-toggle svg {
    fill: #ffffff;
}

body.light-mode .cta-btn {
    background: rgba(255, 255, 255, 0.98);
    color: #1d1d1f;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.light-mode .cta-btn:hover {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--highlight-color);
}

/* FINAL OVERRIDES - Ensure Brand Colors Win */
/* This section is intentionally left empty as the rules have been consolidated above */

/* --- ALIGNMENT FIXES FOR MOBILE/TABLET --- */

/* Ensure consistent bottom spacing for all fixed elements */
:root {
    --bottom-bar-height: 30px;
    --bottom-bar-gap: 70px;
}

/* Desktop Alignment - All buttons aligned */
.cta-lets-talk {
    bottom: var(--bottom-bar-height);
    left: 40px;
}

.cta-hire-me {
    bottom: calc(var(--bottom-bar-height) + var(--bottom-bar-gap));
    left: 40px;
}

.cta-ask-abp {
    bottom: var(--bottom-bar-height);
    right: 40px;
}

.scroll-to-top {
    bottom: calc(var(--bottom-bar-height) + var(--bottom-bar-gap));
    right: 40px;
}

/* Mobile Container Padding to prevent content overlap */
@media (max-width: 768px) {
    .container {
        padding-bottom: 220px !important; /* Extra space for the stacked buttons */
    }
}

/* Unified Mobile Stack for Fixed Buttons */
@media (max-width: 768px) {
    /* Left Stack: Let's Talk & Hire Me */
    .cta-lets-talk {
        bottom: var(--bottom-bar-height) !important;
        left: 20px !important;
    }

    .cta-hire-me {
        bottom: calc(var(--bottom-bar-height) + var(--bottom-bar-gap)) !important;
        left: 20px !important;
    }

    /* Right Stack: Ask ABP & Scroll Top */
    .cta-ask-abp {
        bottom: var(--bottom-bar-height) !important;
        right: 20px !important;
        left: auto !important;
    }

    .scroll-to-top {
        bottom: calc(var(--bottom-bar-height) + var(--bottom-bar-gap)) !important;
        right: 20px !important;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 380px) {
    .cta-lets-talk, .cta-hire-me {
        left: 16px !important;
    }
    
    .cta-ask-abp, .scroll-to-top {
        right: 16px !important;
    }
}

/* Chatbot Mode Selection */
.chatbot-mode-selection {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.chatbot-mode-selection.hidden {
    display: none;
}

.mode-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.mode-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
}

.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.mode-btn:hover {
    background: rgba(255, 112, 67, 0.1);
    border-color: var(--highlight-color);
    transform: translateY(-2px);
}

.mode-icon {
    font-size: 24px;
}

.mode-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.mode-desc {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.close-mode-selection {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.2s;
}

.close-mode-selection:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Chatbot Voice Interface - Redesigned */
.chatbot-voice-interface {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    background: radial-gradient(circle at center, rgba(255, 112, 67, 0.05) 0%, transparent 70%);
}

.chatbot-voice-interface.hidden {
    display: none;
}

.voice-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.voice-header {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.voice-title {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Central Visualizer */
.voice-visualizer {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

/* Glowing Orb Effect */
.voice-circle {
    width: 120px;
    height: 120px;
    background: var(--highlight-color);
    border-radius: 50%;
    opacity: 0.1;
    position: absolute;
    filter: blur(20px);
    transition: all 0.5s ease;
}

/* Rings */
.voice-visualizer::before,
.voice-visualizer::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 112, 67, 0.2);
    transition: all 0.5s ease;
}

.voice-visualizer::before {
    width: 180px;
    height: 180px;
    animation: spin 10s linear infinite;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.voice-visualizer::after {
    width: 240px;
    height: 240px;
    animation: spinReverse 15s linear infinite;
    border-left-color: transparent;
    border-right-color: transparent;
}

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

/* Waveform Bars */
.voice-waves {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 60px;
    z-index: 2;
}

.voice-waves span {
    display: block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* States */
/* Listening: Gentle Pulse */
.voice-waves.active span {
    animation: breathe 2s infinite ease-in-out;
    background: var(--highlight-color);
    box-shadow: 0 0 15px var(--highlight-color);
}

.voice-waves.active span:nth-child(1) { animation-delay: 0.0s; }
.voice-waves.active span:nth-child(2) { animation-delay: 0.2s; }
.voice-waves.active span:nth-child(3) { animation-delay: 0.4s; }
.voice-waves.active span:nth-child(4) { animation-delay: 0.2s; }
.voice-waves.active span:nth-child(5) { animation-delay: 0.0s; }

@keyframes breathe {
    0%, 100% { height: 8px; opacity: 0.5; }
    50% { height: 20px; opacity: 1; }
}

/* Speaking: High Energy */
.voice-waves.speaking span {
    animation: soundWave 0.4s infinite ease-in-out;
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.voice-waves.speaking span:nth-child(1) { animation-duration: 0.4s; }
.voice-waves.speaking span:nth-child(2) { animation-duration: 0.5s; }
.voice-waves.speaking span:nth-child(3) { animation-duration: 0.3s; }
.voice-waves.speaking span:nth-child(4) { animation-duration: 0.6s; }
.voice-waves.speaking span:nth-child(5) { animation-duration: 0.4s; }

/* Processing: Rotating/Thinking */
.voice-waves.processing span {
    background: #FFD700; /* Gold */
    height: 10px;
    animation: wave 1s infinite linear;
}

/* Status Text */
.voice-status {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Transcript (Subtitles Style) */
.voice-transcript {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
    min-height: 60px;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

/* Action Display (Tool Calls) */
.voice-action-display {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translate(-50%, 20px);
}

.voice-action-display.active {
    opacity: 1;
    transform: translate(-50%, 0);
}

.action-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
}

.action-icon {
    font-size: 28px;
    background: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.action-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .voice-visualizer {
        width: 240px;
        height: 240px;
    }
    
    .voice-visualizer::before { width: 160px; height: 160px; }
    .voice-visualizer::after { width: 200px; height: 200px; }
    
    .voice-status { font-size: 20px; }
    .voice-transcript { font-size: 16px; padding: 12px 16px; width: 90%; }
    
    .voice-header {
        top: 20px;
        left: 20px;
        right: 20px;
    }
}

/* Preserved Utilities */
.chatbot-terminal.hidden {
    display: none;
}

.switch-mode-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.switch-mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}

.switch-mode-btn .icon {
    font-size: 14px;
}

.terminal-controls, .voice-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-mode-selection {
    display: none !important;
}

