/* ============================================
   KARTHIKEYA PORTFOLIO - STYLES
   AI & Automation Architect
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg: #0C0C0C;
    --bg-elevated: #141414;
    --bg-card: #1a1a1a;
    --text: #ffffff;
    --text-secondary: rgba(255,255,255,0.6);
    --text-muted: rgba(255,255,255,0.4);
    --accent: #CDFF00;
    --accent-glow: rgba(205, 255, 0, 0.15);
    --accent-dark: #a8cc00;
    --gradient: linear-gradient(135deg, #CDFF00 0%, #00FF88 100%);
    --gradient-alt: linear-gradient(135deg, #00FF88 0%, #00D4FF 100%);
    --glass: rgba(255,255,255,0.03);
    --glass-border: rgba(255,255,255,0.08);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg: #f8f9fa;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: rgba(26,26,46,0.7);
    --text-muted: rgba(26,26,46,0.5);
    --accent: #7CB342;
    --accent-glow: rgba(124, 179, 66, 0.25);
    --accent-dark: #558B2F;
    --glass: rgba(0,0,0,0.03);
    --glass-border: rgba(0,0,0,0.1);
}

[data-theme="light"] .grain {
    opacity: 0.02;
}

[data-theme="light"] .hero-orb {
    opacity: 0.15;
}

[data-theme="light"] .hero-orb-1 {
    background: rgba(124, 179, 66, 0.3);
}

[data-theme="light"] .hero-orb-2 {
    background: rgba(0, 200, 100, 0.2);
}

/* Light theme - Navigation */
[data-theme="light"] nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .nav-cta {
    background: var(--text);
    color: var(--bg);
}

/* Light theme - Cards and sections */
[data-theme="light"] .service-card,
[data-theme="light"] .skill-category,
[data-theme="light"] .now-card,
[data-theme="light"] .timeline-content {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

[data-theme="light"] .hero-card {
    background: rgba(255,255,255,0.8);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Light theme - Terminal stays dark */
[data-theme="light"] .terminal {
    background: #1e1e1e;
    color: #ffffff;
}

[data-theme="light"] .terminal-body,
[data-theme="light"] .terminal-input-line,
[data-theme="light"] .terminal-output {
    color: #e0e0e0;
}

[data-theme="light"] .terminal-header {
    background: #2d2d2d;
}

/* Light theme - Typing code stays dark */
[data-theme="light"] .typing-code {
    background: #1e1e1e;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Light theme - Chat widget */
[data-theme="light"] .chat-window {
    background: var(--bg-elevated);
    box-shadow: 0 25px 80px rgba(0,0,0,0.12);
}

[data-theme="light"] .chat-toggle {
    background: var(--bg-card);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .chat-header {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

[data-theme="light"] .chat-toggle-inner {
    background: var(--bg-card);
}

[data-theme="light"] .chat-message.bot .chat-message-content {
    background: #f0f0f0;
    border-color: rgba(0,0,0,0.1);
}

/* Light theme - Status badge */
[data-theme="light"] .status-badge {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Light theme - Footer */
[data-theme="light"] footer {
    background: var(--bg-elevated);
}

/* Light theme - Marquee fade */
[data-theme="light"] .tech-marquee::before {
    background: linear-gradient(to right, var(--bg-elevated), transparent);
}

[data-theme="light"] .tech-marquee::after {
    background: linear-gradient(to left, var(--bg-elevated), transparent);
}

/* Light theme - Buttons */
[data-theme="light"] .btn-primary {
    color: #1a1a2e;
}

[data-theme="light"] .btn-secondary {
    border-color: rgba(0,0,0,0.15);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

/* Light theme - Project cards (keep text white on gradient backgrounds) */
[data-theme="light"] .project-card .project-name,
[data-theme="light"] .project-card .project-desc,
[data-theme="light"] .project-card .project-tag,
[data-theme="light"] .project-card .project-metric-value,
[data-theme="light"] .project-card .project-metric-label {
    color: #ffffff;
}

[data-theme="light"] .project-card .project-desc {
    color: rgba(255,255,255,0.8);
}

[data-theme="light"] .project-card .project-metric-label {
    color: rgba(255,255,255,0.6);
}

[data-theme="light"] .project-card .project-tag {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.preloader.hide {
    animation: preloaderOut 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes preloaderOut {
    0% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

.preloader-logo {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: var(--accent);
    animation: loadProgress 2s ease-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   STATUS BADGE
   ============================================ */
.status-badge {
    position: fixed;
    top: 2rem;
    right: 10rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    animation: fadeIn 1s ease 2.5s forwards;
    opacity: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00FF88;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px #00FF88;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all var(--transition);
}

nav.scrolled {
    padding: 1rem 4rem;
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.nav-center {
    display: flex;
    gap: 3rem;
}

.nav-center a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-center a:hover {
    color: var(--text);
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.875rem 1.75rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 50px;
    font-family: 'General Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* Theme Toggle in Nav */
.theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle .theme-icon {
    width: 20px;
    height: 20px;
    transition: all var(--transition);
}

.theme-toggle .theme-icon.sun {
    display: none;
}

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

[data-theme="light"] .theme-toggle .theme-icon.sun {
    display: block;
}

[data-theme="light"] .theme-toggle .theme-icon.moon {
    display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 50px;
    font-family: 'General Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--accent-glow);
}

.btn-primary svg {
    transition: transform var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-family: 'General Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: var(--glass);
    border-color: var(--text-muted);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-glow);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 255, 136, 0.1);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-eyebrow-icon {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

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

.hero-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: inline-block;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(100%);
}

.hero-title .line:nth-child(1) span { animation-delay: 2.3s; }
.hero-title .line:nth-child(2) span { animation-delay: 2.4s; }
.hero-title .line:nth-child(3) span { animation-delay: 2.5s; }

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 1rem;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Hero Visual Cards */
.hero-visual {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    animation: fadeIn 1s ease 2.8s forwards;
    opacity: 0;
}

.hero-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    animation: cardFloat 6s ease-in-out infinite;
}

.hero-card-1 {
    top: 0;
    right: 0;
    width: 280px;
    animation-delay: 0s;
}

.hero-card-2 {
    bottom: 50px;
    left: 0;
    width: 250px;
    animation-delay: -2s;
}

.hero-card-3 {
    top: 50%;
    right: -30px;
    width: 200px;
    animation-delay: -4s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.hero-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hero-card-value {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.hero-card-value.accent {
    color: var(--accent);
}

.hero-card-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-top: 1rem;
}

.chart-bar {
    flex: 1;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.6;
}

.chart-bar:nth-child(1) { height: 40%; }
.chart-bar:nth-child(2) { height: 65%; }
.chart-bar:nth-child(3) { height: 45%; }
.chart-bar:nth-child(4) { height: 80%; }
.chart-bar:nth-child(5) { height: 60%; }
.chart-bar:nth-child(6) { height: 90%; opacity: 1; }
.chart-bar:nth-child(7) { height: 75%; }

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 10rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
    overflow: hidden;
}

.about-image-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0.1;
}

.about-float-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent);
    color: var(--bg);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.about-float-card span {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.about-content {
    max-width: 500px;
}

.about-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.about-stat-number {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   SKILLS SECTION - NEW DESIGN
   ============================================ */
.skills {
    padding: 10rem 4rem;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(150px);
    top: -200px;
    left: -200px;
    opacity: 0.3;
}

.skills-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.skills-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.skills-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Skills Categories */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.skill-category {
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category-icon {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}

.skill-category:hover .skill-category-icon {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1) rotate(-5deg);
}

.skill-category-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.skill-tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Tech Marquee */
.tech-marquee {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.tech-marquee::before,
.tech-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.tech-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-elevated), transparent);
}

.tech-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-elevated), transparent);
}

.marquee-content {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
}

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

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--transition);
}

.tech-item:hover {
    color: var(--accent);
}

.tech-item-icon {
    font-size: 1.5rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 10rem 4rem;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.services-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    border-color: var(--accent);
}

.service-card h3 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.service-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--glass-border);
    line-height: 1;
    z-index: 0;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: 10rem 4rem;
    background: var(--bg-elevated);
}

.projects-header {
    text-align: center;
    margin-bottom: 5rem;
}

.projects-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.projects-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.project-card.featured {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.project-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-bg-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.project-bg-2 { background: linear-gradient(135deg, #2d132c 0%, #801336 50%, #c72c41 100%); }
.project-bg-3 { background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #2d2d2d 100%); }
.project-bg-4 { background: linear-gradient(135deg, #004e64 0%, #00a5cf 50%, #25a18e 100%); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    z-index: 1;
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 2;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tag {
    padding: 0.35rem 0.75rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-name {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-card.featured .project-name {
    font-size: 2.5rem;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 500px;
}

.project-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    z-index: 2;
    opacity: 0;
    transform: translateY(20px) rotate(-45deg);
    transition: all var(--transition-smooth);
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.project-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.project-metric {
    display: flex;
    flex-direction: column;
}

.project-metric-value {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.project-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 10rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-orb {
    position: absolute;
    width: 800px;
    height: 800px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(150px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-links-grid {
    display: flex;
    gap: 6rem;
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-resume-link {
    color: var(--accent) !important;
    font-weight: 600;
}

.footer-resume-link:hover {
    color: var(--accent-dark) !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

/* ============================================
   PREMIUM CHATBOT WIDGET - REDESIGNED
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 5.5rem; /* Offset from FAB */
    z-index: 9998;
    font-family: 'General Sans', sans-serif;
    transition: all var(--transition-smooth);
}

.chat-widget.at-footer {
    bottom: 8rem;
}

/* Old Floating Toggle Button - now using FAB */
.chat-toggle {
    display: none;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--glass-border);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.chat-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}

.chat-toggle:hover::before {
    opacity: 1;
}

.chat-toggle:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.chat-toggle-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: all var(--transition);
}

.chat-toggle.active svg {
    transform: rotate(180deg) scale(0.9);
}

.chat-toggle-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: var(--gradient);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePop 2s ease-in-out infinite;
    box-shadow: 0 4px 15px var(--accent-glow);
}

@keyframes badgePop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 550px;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-smooth);
    box-shadow:
        0 25px 80px rgba(0,0,0,0.6),
        0 0 0 1px var(--glass-border),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.chat-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--gradient);
    opacity: 0.5;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.chat-avatar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #00FF88;
    border: 3px solid var(--bg-elevated);
    border-radius: 50%;
    box-shadow: 0 0 10px #00FF88;
}

.chat-header-info {
    flex: 1;
}

.chat-header-info h4 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-header-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header-info p span {
    color: #00FF88;
    font-size: 0.6rem;
}

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-header-btn {
    width: 36px;
    height: 36px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}

.chat-header-btn:hover {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--text-muted);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}

/* Messages */
.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-message.bot .chat-message-avatar {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.chat-message-content {
    max-width: 75%;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
}

.chat-message.bot .chat-message-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chat-message.user .chat-message-content {
    background: var(--gradient);
    color: var(--bg);
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 0.5rem 0;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* Quick Actions */
.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem;
    background: var(--bg-elevated);
}

.quick-action {
    padding: 0.6rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'General Sans', sans-serif;
}

.quick-action:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Chat Input */
.chat-input-area {
    padding: 1rem 1.5rem 1.5rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--glass-border);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem;
    transition: all var(--transition);
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'General Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--bg);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.chat-send svg {
    width: 20px;
    height: 20px;
}

/* Powered By */
.chat-powered {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-top: 1px solid var(--glass-border);
}

.chat-powered span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ============================================
   INTERACTIVE TERMINAL SECTION
   ============================================ */
.terminal-section {
    padding: 10rem 4rem;
    background: var(--bg);
}

.terminal-header-content {
    text-align: center;
    margin-bottom: 4rem;
}

.terminal-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.terminal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.terminal {
    max-width: 800px;
    margin: 0 auto;
    background: #0d0d0d;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red { background: #ff5f57; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #28c840; }

.terminal-title-bar {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    min-height: 250px;
    max-height: 350px;
    overflow-y: auto;
    color: #e0e0e0;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
}

.terminal-prompt {
    color: var(--accent);
    white-space: nowrap;
}

.terminal-text {
    color: #ffffff;
}

.terminal-output {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.terminal-output pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #151515;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    outline: none;
    caret-color: var(--accent);
}

.terminal-input::placeholder {
    color: rgba(255,255,255,0.3);
}

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

/* ============================================
   GITHUB STATS SECTION
   ============================================ */
.github-section {
    padding: 8rem 4rem;
    background: var(--bg);
    text-align: center;
}

.github-header {
    margin-bottom: 3rem;
}

.github-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.github-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.github-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: all var(--transition);
}

.github-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.github-stats-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition);
}

.github-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* ============================================
   FLOATING ACTION BUTTONS - SMART POSITIONING
   ============================================ */

/* Resume button - minimal side tab style */
/* ============================================
   UNIFIED FLOATING ACTION BAR
   ============================================ */
.floating-action-bar {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: var(--text);
}

.fab-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--accent);
}

.fab-btn:hover .fab-icon {
    color: var(--accent);
}

/* Primary button (Chat) - larger and accented */
.fab-btn.fab-primary {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border: none;
    box-shadow: 0 6px 25px var(--accent-glow);
}

.fab-btn.fab-primary .fab-icon {
    color: var(--bg-primary);
}

.fab-btn.fab-primary:hover {
    box-shadow: 0 10px 40px var(--accent-glow);
}

.fab-icon {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
}

.fab-btn span.fab-icon {
    font-size: 1.3rem;
    width: auto;
    height: auto;
}

/* Badge for notifications */
.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Tooltips */
.fab-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fab-btn:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Disabled state for mascot toggle */
.fab-btn.mascot-disabled {
    opacity: 0.5;
}

.fab-btn.mascot-disabled:hover {
    opacity: 0.7;
}

/* Hide action bar when at footer */
.floating-action-bar.at-footer {
    bottom: 8rem;
}

/* Light theme */
[data-theme="light"] .fab-btn {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .fab-btn::before {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .fab-btn.fab-primary {
    background: var(--gradient);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-action-bar {
        right: 1rem;
        bottom: 1rem;
        gap: 0.5rem;
    }

    .fab-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .fab-btn.fab-primary {
        width: 50px;
        height: 50px;
    }

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

    .fab-btn::before {
        display: none;
    }
}

/* OLD resume-download - keeping for compatibility but hidden */
.resume-download {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    z-index: 98;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-left: none;
    border-radius: 0 50px 50px 0;
    color: var(--text);
    font-family: 'General Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    writing-mode: horizontal-tb;
}

.resume-download.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.resume-download.hidden {
    opacity: 0;
    transform: translateY(-50%) translateX(-100%);
    pointer-events: none;
}

.resume-download:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    padding-right: 1.5rem;
    box-shadow: 4px 0 30px var(--accent-glow);
}

.resume-download svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

[data-theme="light"] .resume-download {
    background: var(--bg-card);
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
}

/* ============================================
   TIMELINE / JOURNEY SECTION
   ============================================ */
.timeline-section {
    padding: 10rem 4rem;
    background: var(--bg-elevated);
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 5rem;
}

.timeline-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.timeline-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--bg-elevated);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
    transition: all var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.2);
}

.timeline-content {
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-item-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.timeline-item-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

.timeline-tags span {
    padding: 0.4rem 0.85rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.timeline-tags span:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

/* ============================================
   "NOW" SECTION - CURRENTLY WORKING ON
   ============================================ */
.now-section {
    padding: 8rem 4rem;
    background: var(--bg);
}

.now-header {
    text-align: center;
    margin-bottom: 4rem;
}

.now-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.now-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.now-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.now-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
}

.now-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.now-card-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.now-card-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.now-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.now-card-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    padding-left: 1.25rem;
}

.now-card-list li:last-child {
    border-bottom: none;
}

.now-card-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.now-update {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.now-update-label {
    margin-right: 0.5rem;
}

.now-update-date {
    color: var(--accent);
    font-weight: 600;
}

/* ============================================
   TYPING CODE ANIMATION (Hero Section)
   ============================================ */
.typing-code {
    max-width: 450px;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    background: #0d0d0d;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.8s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.typing-code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.typing-code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

.typing-code-dot:nth-child(2) { background: #ffbd2e; }
.typing-code-dot:nth-child(3) { background: #28c840; }

.typing-code-file {
    margin-left: auto;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.typing-code-content {
    padding: 1rem 1.25rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #abb2bf;
    margin: 0;
    overflow-x: auto;
    min-height: 220px;
    height: 220px;
    overflow-y: hidden;
}

.typing-code-content code {
    font-family: inherit;
}

.code-keyword { color: #c678dd; }
.code-class { color: #e5c07b; }
.code-function { color: #61afef; }
.code-string { color: #98c379; }

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}


/* ============================================
   EASTER EGG STYLES
   ============================================ */
.easter-egg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.easter-egg-overlay.active {
    opacity: 1;
    visibility: visible;
}

.easter-egg-content {
    text-align: center;
    transform: scale(0.8);
    transition: transform var(--transition-smooth);
    padding: 3rem;
}

.easter-egg-overlay.active .easter-egg-content {
    transform: scale(1);
}

.easter-egg-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: bounce 1s ease infinite;
}

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

.easter-egg-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.easter-egg-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.easter-egg-subtext {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.easter-egg-close {
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 50px;
    font-family: 'General Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.easter-egg-close:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* ============================================
   MASCOT COMPANION - CURSOR FOLLOWER
   ============================================ */
.mascot-companion {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9997;
    pointer-events: none;
    will-change: transform;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mascot-companion.disabled {
    opacity: 0;
    pointer-events: none !important;
}

.mascot-companion.hidden {
    opacity: 0;
    pointer-events: none !important;
}

/* Speech Bubble - appears above mascot */
.mascot-speech {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    min-width: 180px;
    max-width: 260px;
    padding: 0.85rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.mascot-companion.speaking .mascot-speech {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Wider speech bubble when awaiting reply */
.mascot-companion.awaiting-reply .mascot-speech,
.mascot-companion.has-quick-replies .mascot-speech {
    min-width: 220px;
    max-width: 280px;
}

.mascot-speech p {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text);
    margin: 0;
}

/* Mascot Chat Input */
.mascot-chat-input {
    display: none;
    margin-top: 0.6rem;
    gap: 0.4rem;
    align-items: center;
}

.mascot-companion.awaiting-reply .mascot-chat-input {
    display: flex;
}

.mascot-chat-input input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
}

.mascot-chat-input input:focus {
    border-color: var(--accent);
}

.mascot-chat-input input::placeholder {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.mascot-chat-input button {
    padding: 0.4rem;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.mascot-chat-input button:hover {
    transform: scale(1.1);
    background: var(--accent-dark);
}

/* Quick Reply Buttons */
.mascot-quick-replies {
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.mascot-companion.has-quick-replies .mascot-quick-replies {
    display: flex;
}

.mascot-quick-reply {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mascot-quick-reply:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Flying Resume Animation */
.flying-resume {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
    transition: none;
}

.flying-resume svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent);
    filter: drop-shadow(0 4px 12px var(--accent-glow));
}

.flying-resume.flying {
    opacity: 1;
    transform: scale(1);
    animation: flyToDownloads 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flyToDownloads {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    20% {
        transform: scale(1.4) rotate(-20deg) translateY(-50px);
    }
    40% {
        opacity: 1;
        transform: scale(1.2) rotate(15deg) translateX(20vw) translateY(-30px);
    }
    70% {
        opacity: 1;
        transform: scale(1) rotate(-10deg) translateX(50vw) translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) rotate(360deg) translateX(85vw) translateY(-10px);
    }
}

/* Byte carrying state */
.mascot-companion.carrying .mascot-body {
    animation: carryingBounce 0.6s ease-in-out infinite;
}

.mascot-companion.carrying::after {
    content: '📄';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    animation: holdDocument 0.6s ease-in-out infinite;
}

@keyframes carryingBounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-4px) rotate(3deg); }
}

@keyframes holdDocument {
    0%, 100% { transform: translateX(-50%) rotate(-3deg); }
    50% { transform: translateX(-50%) rotate(3deg); }
}

/* Throwing state */
.mascot-companion.throwing .mascot-body {
    animation: throwMotion 0.4s ease-out forwards;
}

@keyframes throwMotion {
    0% { transform: rotate(-30deg) scale(1); }
    50% { transform: rotate(30deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); }
}

.mascot-speech-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-card);
}

/* Mascot Character - Cute Blob Cat */
.mascot-character {
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease-out;
}

.mascot-character:hover {
    transform: scale(1.15);
}

.mascot-body {
    width: 50px;
    height: 45px;
    background: linear-gradient(145deg, var(--mascot-accent, var(--accent)) 0%, color-mix(in srgb, var(--mascot-accent, var(--accent)) 70%, black) 100%);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    animation: mascotFloat 2.5s ease-in-out infinite;
    box-shadow:
        0 6px 20px color-mix(in srgb, var(--mascot-accent, var(--accent)) 40%, transparent),
        inset 0 -4px 12px rgba(0,0,0,0.1),
        inset 0 4px 12px rgba(255,255,255,0.2);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Personality-specific styles */
.mascot-companion[data-personality="byte"] .mascot-body {
    --mascot-accent: #CDFF00;
}

.mascot-companion[data-personality="spark"] .mascot-body {
    --mascot-accent: #FFD700;
}

.mascot-companion[data-personality="luna"] .mascot-body {
    --mascot-accent: #9B8AFF;
}

.mascot-companion[data-personality="glitch"] .mascot-body {
    --mascot-accent: #00FFFF;
}

.mascot-companion[data-personality="nova"] .mascot-body {
    --mascot-accent: #FF6B9D;
}

.mascot-companion[data-personality="shadow"] .mascot-body {
    --mascot-accent: #8B0000;
}

/* Personality glow effects for cheeks */
.mascot-companion[data-personality="spark"] .mascot-cheek {
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
}

.mascot-companion[data-personality="luna"] .mascot-cheek {
    background: radial-gradient(circle, #9B8AFF 0%, transparent 70%);
}

.mascot-companion[data-personality="glitch"] .mascot-cheek {
    background: radial-gradient(circle, #00FFFF 0%, transparent 70%);
}

.mascot-companion[data-personality="nova"] .mascot-cheek {
    background: radial-gradient(circle, #FF6B9D 0%, transparent 70%);
}

.mascot-companion[data-personality="shadow"] .mascot-cheek {
    background: radial-gradient(circle, #8B0000 0%, transparent 70%);
}

/* ========================================
   PERSONALITY EXPRESSIONS
   ======================================== */

/* SPARK ⚡ - Wide excited eyes, big grin, perked ears */
.mascot-companion[data-personality="spark"] .mascot-eye {
    transform: scale(1.2);
}

.mascot-companion[data-personality="spark"] .mascot-pupil {
    width: 7px;
    height: 7px;
    animation: sparkPupil 0.5s ease-in-out infinite;
}

.mascot-companion[data-personality="spark"] .mascot-mouth {
    width: 14px;
    height: 8px;
    border-radius: 0 0 10px 10px;
    background: #333;
}

.mascot-companion[data-personality="spark"] .mascot-ear {
    transform: rotate(-25deg) scale(1.1);
}

.mascot-companion[data-personality="spark"] .mascot-ear.right {
    transform: rotate(25deg) scale(1.1);
}

@keyframes sparkPupil {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* LUNA 🌙 - Half-closed serene eyes, gentle smile */
.mascot-companion[data-personality="luna"] .mascot-eye {
    height: 6px;
    border-radius: 10px 10px 5px 5px;
}

.mascot-companion[data-personality="luna"] .mascot-pupil {
    top: 70%;
    height: 4px;
}

.mascot-companion[data-personality="luna"] .mascot-mouth {
    width: 8px;
    height: 4px;
    border-radius: 0 0 8px 8px;
}

.mascot-companion[data-personality="luna"] .mascot-ear {
    transform: rotate(-20deg);
}

.mascot-companion[data-personality="luna"] .mascot-ear.right {
    transform: rotate(20deg);
}

.mascot-companion[data-personality="luna"] .mascot-body {
    animation: lunaFloat 4s ease-in-out infinite;
}

@keyframes lunaFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

/* GLITCH 🤖 - Square robotic eyes, digital mouth */
.mascot-companion[data-personality="glitch"] .mascot-eye {
    width: 12px;
    height: 10px;
    border-radius: 2px;
    background: #111;
    border: 1px solid #00FFFF;
}

.mascot-companion[data-personality="glitch"] .mascot-pupil {
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: #00FFFF;
    box-shadow: 0 0 5px #00FFFF;
    animation: glitchPupil 2s steps(3) infinite;
}

.mascot-companion[data-personality="glitch"] .mascot-mouth {
    width: 12px;
    height: 3px;
    border-radius: 1px;
    background: #00FFFF;
    box-shadow: 0 0 5px #00FFFF;
}

.mascot-companion[data-personality="glitch"] .mascot-ear {
    border-radius: 3px 3px 0 0;
}

.mascot-companion[data-personality="glitch"] .mascot-body {
    animation: glitchBody 3s ease-in-out infinite;
}

@keyframes glitchPupil {
    0%, 100% { transform: translate(-50%, -50%); }
    33% { transform: translate(-30%, -50%); }
    66% { transform: translate(-70%, -50%); }
}

@keyframes glitchBody {
    0%, 95%, 100% { transform: translateX(0); }
    96% { transform: translateX(-2px); }
    97% { transform: translateX(2px); }
    98% { transform: translateX(-1px); }
    99% { transform: translateX(1px); }
}

/* NOVA ⭐ - Confident eyes, professional smile */
.mascot-companion[data-personality="nova"] .mascot-eye {
    width: 11px;
    height: 11px;
}

.mascot-companion[data-personality="nova"] .mascot-pupil {
    width: 5px;
    height: 5px;
    top: 45%;
}

.mascot-companion[data-personality="nova"] .mascot-mouth {
    width: 10px;
    height: 5px;
    border-radius: 0 0 10px 10px;
    border-top: none;
}

/* Nova has a subtle sparkle effect */
.mascot-companion[data-personality="nova"] .mascot-face::after {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    animation: novaSpark 2s ease-in-out infinite;
}

@keyframes novaSpark {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* SHADOW 😈 - Evil eyes with angry brows, sinister grin */
.mascot-companion[data-personality="shadow"] .mascot-eye {
    width: 12px;
    height: 10px;
    background: #111;
    border-radius: 2px 2px 50% 50%;
}

.mascot-companion[data-personality="shadow"] .mascot-pupil {
    width: 5px;
    height: 7px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff0000;
}

/* Evil eyebrows */
.mascot-companion[data-personality="shadow"] .mascot-eye::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -2px;
    width: 16px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    transform: rotate(15deg);
}

.mascot-companion[data-personality="shadow"] .mascot-eye.right::before {
    transform: rotate(-15deg);
    left: auto;
    right: -2px;
}

/* Sinister grin */
.mascot-companion[data-personality="shadow"] .mascot-mouth {
    width: 16px;
    height: 6px;
    background: transparent;
    border: none;
    border-bottom: 3px solid #ff0000;
    border-radius: 0 0 50% 50%;
}

/* Fangs */
.mascot-companion[data-personality="shadow"] .mascot-mouth::before,
.mascot-companion[data-personality="shadow"] .mascot-mouth::after {
    content: '';
    position: absolute;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 5px solid #fff;
}

.mascot-companion[data-personality="shadow"] .mascot-mouth::before {
    left: 2px;
}

.mascot-companion[data-personality="shadow"] .mascot-mouth::after {
    right: 2px;
}

/* Pointier ears for shadow */
.mascot-companion[data-personality="shadow"] .mascot-ear {
    border-radius: 50% 50% 0 0;
    transform: rotate(-35deg) scale(1.15);
}

.mascot-companion[data-personality="shadow"] .mascot-ear.right {
    transform: rotate(35deg) scale(1.15);
}

.mascot-companion[data-personality="shadow"] .mascot-ear::before {
    background: linear-gradient(to top, #8B0000 0%, #440000 100%);
}

/* Hide default cheeks for shadow, replace with dark glow */
.mascot-companion[data-personality="shadow"] .mascot-cheek {
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, transparent 70%);
}

/* Shadow dark aura */
.mascot-companion[data-personality="shadow"] .mascot-body::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.4) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    animation: shadowPulse 2s ease-in-out infinite;
}

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

.mascot-companion.moving .mascot-body {
    animation: mascotMove 0.5s ease-in-out infinite;
    transform: scale(0.95);
}

@keyframes mascotMove {
    0%, 100% { transform: scale(0.95) rotate(-2deg); }
    50% { transform: scale(0.97) rotate(2deg); }
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-2deg); }
    75% { transform: translateY(-4px) rotate(2deg); }
}

/* Ears */
.mascot-ears {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    display: flex;
    justify-content: space-between;
}

.mascot-ear {
    width: 12px;
    height: 15px;
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 50% 50% 40% 40%;
    position: relative;
}

.mascot-ear::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50% 50% 40% 40%;
}

.mascot-ear.left {
    transform: rotate(-15deg);
}

.mascot-ear.right {
    transform: rotate(15deg);
}

/* Face */
.mascot-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* Eyes */
.mascot-eyes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -3px;
}

.mascot-eye {
    width: 10px;
    height: 12px;
    background: #1a1a1a;
    border-radius: 50%;
    position: relative;
    animation: mascotBlink 4s ease-in-out infinite;
}

.mascot-pupil {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 2px;
    transition: all 0.08s ease-out;
}

@keyframes mascotBlink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

/* Cheeks */
.mascot-cheeks {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 1px;
}

.mascot-cheek {
    width: 6px;
    height: 4px;
    background: rgba(255, 150, 150, 0.5);
    border-radius: 50%;
}

/* Mouth */
.mascot-mouth {
    width: 8px;
    height: 4px;
    border: 2px solid #1a1a1a;
    border-top: none;
    border-radius: 0 0 50% 50%;
    margin: 2px auto 0;
}

.mascot-companion.talking .mascot-mouth {
    animation: mascotTalk 0.25s ease-in-out infinite;
    height: 6px;
    width: 8px;
    border-radius: 50%;
    background: #1a1a1a;
    border: none;
}

@keyframes mascotTalk {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Shadow */
.mascot-shadow {
    width: 35px;
    height: 6px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    margin: 4px auto 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mascot-companion.moving .mascot-shadow {
    transform: scale(0.7);
    opacity: 0.06;
    animation: shadowPulse 0.3s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { transform: scale(0.7) translateX(-2px); }
    50% { transform: scale(0.75) translateX(2px); }
}

/* Old Toggle Button - Now using FAB */
.mascot-toggle-old {
    display: none;
}

/* Mascot Emotional States */
.mascot-companion.excited .mascot-body {
    animation: mascotExcited 0.4s ease-in-out;
}

@keyframes mascotExcited {
    0%, 100% { transform: translateY(0) rotate(0) scale(1); }
    50% { transform: translateY(-8px) rotate(0) scale(1.1); }
}

/* Happy State - bigger smile, bouncy */
.mascot-companion.happy .mascot-body {
    animation: mascotHappy 0.6s ease-in-out infinite;
}

.mascot-companion.happy .mascot-mouth {
    width: 12px !important;
    height: 6px !important;
    border-radius: 0 0 50% 50% !important;
    background: #1a1a1a !important;
    border: none !important;
}

.mascot-companion.happy .mascot-cheek {
    opacity: 1;
    transform: scale(1.3);
}

@keyframes mascotHappy {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

/* Sad State - droopy eyes, frown */
.mascot-companion.sad .mascot-body {
    animation: mascotSad 2s ease-in-out infinite;
    filter: saturate(0.7);
}

.mascot-companion.sad .mascot-eye {
    transform: scaleY(0.7) translateY(2px);
}

.mascot-companion.sad .mascot-mouth {
    width: 8px !important;
    height: 4px !important;
    border-radius: 50% 50% 0 0 !important;
    background: transparent !important;
    border: 2px solid #1a1a1a !important;
    border-top: none !important;
    transform: translateY(2px);
}

.mascot-companion.sad .mascot-ear {
    transform: rotate(-25deg) !important;
}

.mascot-companion.sad .mascot-ear.right {
    transform: rotate(25deg) !important;
}

@keyframes mascotSad {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Angry/Frustrated State - furrowed brows, red tint */
.mascot-companion.angry .mascot-body {
    animation: mascotAngry 0.3s ease-in-out infinite;
    filter: hue-rotate(-20deg) saturate(1.3);
}

.mascot-companion.angry .mascot-eye::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    width: 14px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    transform: rotate(-15deg);
}

.mascot-companion.angry .mascot-eye.right::before {
    transform: rotate(15deg);
    left: auto;
    right: -2px;
}

.mascot-companion.angry .mascot-mouth {
    width: 10px !important;
    height: 3px !important;
    border-radius: 0 !important;
    background: #1a1a1a !important;
    border: none !important;
}

.mascot-companion.angry .mascot-cheek {
    background: rgba(255, 100, 100, 0.5) !important;
}

@keyframes mascotAngry {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Frustrated State - same as angry but less intense */
.mascot-companion.frustrated .mascot-body {
    animation: mascotFrustrated 0.4s ease-in-out infinite;
}

.mascot-companion.frustrated .mascot-eye::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 10px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transform: rotate(-10deg);
}

.mascot-companion.frustrated .mascot-eye.right::before {
    transform: rotate(10deg);
}

.mascot-companion.frustrated .mascot-mouth {
    width: 8px !important;
    height: 2px !important;
    border-radius: 0 !important;
    background: #1a1a1a !important;
    border: none !important;
    transform: rotate(-5deg);
}

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

/* Curious State - tilted head, big eyes */
.mascot-companion.curious .mascot-body {
    animation: mascotCurious 1s ease-in-out infinite;
    transform: rotate(10deg);
}

.mascot-companion.curious .mascot-eye {
    transform: scale(1.2);
}

.mascot-companion.curious .mascot-pupil {
    transform: scale(1.3);
}

.mascot-companion.curious .mascot-ear.left {
    transform: rotate(-5deg) translateY(-3px) !important;
}

@keyframes mascotCurious {
    0%, 100% { transform: rotate(10deg); }
    50% { transform: rotate(15deg) translateY(-2px); }
}

/* Sleepy State - droopy eyes, slow movement */
.mascot-companion.sleepy .mascot-body {
    animation: mascotSleepy 3s ease-in-out infinite;
}

.mascot-companion.sleepy .mascot-eye {
    animation: mascotSleepyBlink 3s ease-in-out infinite;
}

.mascot-companion.sleepy .mascot-mouth {
    width: 6px !important;
    height: 3px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
}

.mascot-companion.sleepy .mascot-mouth::after {
    content: 'z';
    position: absolute;
    left: 20px;
    top: -10px;
    font-size: 10px;
    color: var(--accent);
    animation: floatZ 2s ease-in-out infinite;
}

@keyframes mascotSleepy {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(2px) rotate(3deg); }
}

@keyframes mascotSleepyBlink {
    0%, 40%, 100% { transform: scaleY(0.3); }
    50%, 90% { transform: scaleY(0.5); }
}

@keyframes floatZ {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.8); }
    50% { opacity: 1; transform: translateY(-8px) scale(1); }
}

/* Love State - heart eyes */
.mascot-companion.love .mascot-body {
    animation: mascotLove 0.5s ease-in-out infinite;
}

.mascot-companion.love .mascot-eye {
    background: transparent !important;
    width: 12px !important;
    height: 12px !important;
}

.mascot-companion.love .mascot-eye::after {
    content: '❤️';
    font-size: 10px;
    position: absolute;
    top: -2px;
    left: -1px;
}

.mascot-companion.love .mascot-pupil {
    display: none;
}

.mascot-companion.love .mascot-cheek {
    background: rgba(255, 150, 150, 0.6) !important;
    transform: scale(1.4);
}

@keyframes mascotLove {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Surprised State - wide eyes, open mouth */
.mascot-companion.surprised .mascot-body {
    animation: mascotSurprised 0.3s ease-out;
}

.mascot-companion.surprised .mascot-eye {
    transform: scale(1.4);
    border-radius: 50%;
}

.mascot-companion.surprised .mascot-pupil {
    transform: scale(0.7);
}

.mascot-companion.surprised .mascot-mouth {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #1a1a1a !important;
    border: none !important;
}

.mascot-companion.surprised .mascot-ear {
    transform: translateY(-4px) !important;
}

@keyframes mascotSurprised {
    0% { transform: scale(1); }
    50% { transform: scale(1.15) translateY(-5px); }
    100% { transform: scale(1.05); }
}

/* Light theme adjustments */
[data-theme="light"] .mascot-speech {
    background: var(--bg-card);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mascot-speech-arrow {
    border-top-color: var(--bg-card);
}

/* Light theme handled by FAB styles above */

[data-theme="light"] .mascot-chat-input input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .mascot-quick-reply {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .flying-resume svg {
    stroke: var(--accent-dark);
}

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

    /* Hide Byte toggle on mobile since mascot is hidden */
    .fab-btn[data-tooltip="Toggle Byte"] {
        display: none;
    }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .now-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .github-stats {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 900px) {
    nav {
        padding: 1.5rem 2rem;
    }

    .nav-center {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
    }

    .status-badge {
        display: none;
    }

    .hero,
    .about,
    .services,
    .skills,
    .projects,
    .terminal-section,
    .timeline-section,
    .now-section,
    .github-section,
    .cta {
        padding: 6rem 2rem;
    }

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

    .about {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

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

    .project-card.featured {
        grid-column: span 1;
        aspect-ratio: 16/10;
    }

    .typing-code {
        max-width: 100%;
    }

    .terminal {
        border-radius: var(--radius-sm);
    }

    .resume-download {
        top: auto;
        bottom: 50%;
        transform: translateY(50%) translateX(-100%);
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .resume-download.visible {
        transform: translateY(50%) translateX(0);
    }

    .resume-download.hidden {
        transform: translateY(50%) translateX(-100%);
    }

    .chat-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-widget.at-footer {
        bottom: 5rem;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links-grid {
        gap: 3rem;
        flex-wrap: wrap;
    }

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

    .chat-window {
        width: calc(100vw - 2rem);
        height: calc(100vh - 8rem);
        right: -1rem;
        bottom: 80px;
        border-radius: 20px;
    }

    .chat-toggle {
        width: 60px;
        height: 60px;
        border-radius: 20px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .project-metrics {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .skill-tags {
        justify-content: center;
    }

    .terminal-body {
        font-size: 0.75rem;
        min-height: 200px;
    }

    .terminal-output pre {
        font-size: 0.7rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-item-title {
        font-size: 1.25rem;
    }

    .now-card {
        padding: 1.5rem;
    }

    .easter-egg-icon {
        font-size: 4rem;
    }

    .easter-egg-title {
        font-size: 1.5rem;
    }

    .easter-egg-text {
        font-size: 0.95rem;
    }
}
