/* ==========================================
   CSS VARIABLES - Dark and Light Themes
   ========================================== */
:root {
    --transition-speed: 0.3s;
}

/* Dark Theme (Default) */
body.dark-theme {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #00ff9d;
    --accent-secondary: #7000ff;
    --border-color: #27272a;
    --nav-bg: rgba(10, 10, 10, 0.9);
    --btn-primary-bg: #00ff9d;
    --btn-primary-text: #0a0a0a;
}

/* Light Theme - Premium Ivory & Red */
body.light-theme {
    --bg-color: #faf8f3;
    --card-bg: #ffffff;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --accent-primary: #dc2626;
    --accent-secondary: #b91c1c;
    --border-color: #e7e5e1;
    --nav-bg: rgba(250, 248, 243, 0.95);
    --btn-primary-bg: #dc2626;
    --btn-primary-text: #ffffff;
}

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

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
}

body.light-theme .cursor-glow {
    background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

em {
    color: var(--accent-primary);
    font-style: normal;
}

/* ==========================================
   UTILITIES
   ========================================== */
.accent-text {
    color: var(--accent-primary);
    font-weight: 800;
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header .line {
    height: 1px;
    background: var(--border-color);
    flex-grow: 1;
    max-width: 120px;
    opacity: 0.3;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-speed), border-color var(--transition-speed);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.nav-links .btn-primary {
    padding: 0.6rem 1.2rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 157, 0.3);
}

body.light-theme .nav-links .btn-primary:hover {
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.25);
}

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

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Show/hide icons based on theme */
body.dark-theme .theme-toggle-btn .dark-icon {
    display: none;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.5rem;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 157, 0.3);
}

body.light-theme .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.05);
    transform: translateY(-2px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Terminal Background Effect */
.terminal-bg {
    position: absolute;
    top: 10%;
    right: 5%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    opacity: 0.15;
    z-index: -1;
    user-select: none;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-output {
    color: var(--text-secondary);
}

.terminal-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 255, 157, 0.08);
    border: 1.5px solid var(--accent-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(0, 255, 157, 0.12);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Improved H1 Typography */
.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

/* Hero Stats Badges */
.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
}

.hero-subtitle strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.3;
}

/* Hero Stats Pills */
.hero-stats-pills {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-pill {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-pill:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.05);
    transform: translateY(-2px);
}

.stat-pill .number {
    color: var(--accent-primary);
    font-weight: 700;
}

body.light-theme .stat-pill {
    background: rgba(220, 38, 38, 0.03);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Hero Tagline */
.hero-tagline {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.hero-tagline::before {
    content: '→ ';
    color: var(--accent-primary);
}

/* Tech Stack Badges */
.tech-stack-hero {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(0, 255, 157, 0.12);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

body.light-theme .tech-badge {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
}

body.light-theme .tech-badge:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--accent-primary);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 140px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-list i {
    color: var(--accent-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==========================================
   GLOW CARDS
   ========================================== */
.glow-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.glow-card:hover {
    border-color: var(--accent-primary);
}

.glow-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--bg-color);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    font-size: 0.875rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timeline-content {
    margin-left: 0;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.company {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.role-description {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ==========================================
   PROJECTS GRID
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    position: relative;
    padding: 2px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

/* Rainbow Animated Border - Improved */
.project-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg,
            #ff0080,
            #ff0000,
            #ff8800,
            #ffff00,
            #00ff88,
            #00ffff,
            #0088ff,
            #8800ff,
            #ff0080);
    border-radius: 12px;
    animation: rotate-gradient 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

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

/* Smoother gradient rotation */
@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }

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

.card-content {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

.project-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

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

.project-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   TAGS
   ========================================== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.tags span {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 50px;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
}

.tags span:hover {
    background: rgba(0, 255, 157, 0.2);
    border-color: var(--accent-primary);
}

body.light-theme .tags span {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

body.light-theme .tags span:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: var(--accent-primary);
}

/* ==========================================
   AI PORTFOLIO SECTION
   ========================================== */
.ai-portfolio-section {
    background: rgba(255, 255, 255, 0.01);
}

.portfolio-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4rem;
    font-style: italic;
    opacity: 0.8;
}

/* Filter Buttons */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.65rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.05);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-color);
    font-weight: 600;
}

body.light-theme .filter-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
}

/* AI Projects Grid */
.ai-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ai-project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.ai-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ai-project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow:
        0 20px 40px rgba(0, 255, 157, 0.12),
        0 0 60px rgba(0, 255, 157, 0.08);
}

.ai-project-card:hover::before {
    opacity: 1;
}

body.light-theme .ai-project-card:hover {
    box-shadow:
        0 20px 40px rgba(220, 38, 38, 0.1),
        0 0 40px rgba(220, 38, 38, 0.06);
}

/* Icon Wrappers with Color Variants */
.project-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ai-project-card:hover .project-icon-wrapper {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.project-icon-wrapper i {
    width: 32px;
    height: 32px;
    color: white;
}

/* Color Variants for Icons */
.icon-violet {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.icon-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
}

.icon-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.icon-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.icon-rose {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.icon-indigo {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.icon-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.icon-pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.icon-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.icon-purple {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.icon-slate {
    background: linear-gradient(135deg, #64748b, #475569);
}

.icon-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.icon-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.icon-lime {
    background: linear-gradient(135deg, #84cc16, #65a30d);
}

.icon-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Card Text Content */
.ai-project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.ai-project-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.ai-project-card p strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Project Tags with Semantic Colors */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.project-tags span {
    font-size: 0.7rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Tag Color Variants */
.tag-violet {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-rose {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.tag-indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.tag-pink {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.tag-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.tag-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.tag-slate {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.tag-orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.tag-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-lime {
    background: rgba(132, 204, 22, 0.15);
    color: #84cc16;
    border: 1px solid rgba(132, 204, 22, 0.3);
}

.tag-green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tag-yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.tag-crimson {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.tag-magenta {
    background: rgba(192, 38, 211, 0.15);
    color: #c026d3;
    border: 1px solid rgba(192, 38, 211, 0.3);
}

.tag-gray {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.tag-dark {
    background: rgba(31, 41, 55, 0.15);
    color: #1f2937;
    border: 1px solid rgba(31, 41, 55, 0.3);
}

.project-tags span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hidden state for filtering */
.ai-project-card.hidden {
    display: none;
}

/* Animation on load */
.ai-project-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.ai-project-card:nth-child(1) {
    animation-delay: 0.05s;
}

.ai-project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.ai-project-card:nth-child(3) {
    animation-delay: 0.15s;
}

.ai-project-card:nth-child(4) {
    animation-delay: 0.2s;
}

.ai-project-card:nth-child(5) {
    animation-delay: 0.25s;
}

.ai-project-card:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.skill-category h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--accent-primary);
    width: 20px;
    height: 20px;
}

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

.skill-tags span {
    padding: 0.6rem 1.1rem;
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.skill-tags span:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.1);
    transform: translateY(-2px);
}

/* ==========================================
   CERTIFICATIONS
   ========================================== */
.certifications {
    margin-top: 4rem;
}

.certifications h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.cert-item i {
    color: var(--accent-primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cert-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.cert-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    text-align: center;
}

.contact-card {
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

.contact-card h2 {
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.contact-item:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--accent-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* WhatsApp CTA - Special Styling */
.whatsapp-cta {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.whatsapp-cta:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25D366;
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-cta i {
    color: #25D366;
}

body.light-theme .whatsapp-cta:hover {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

/* Light Theme Overrides for Skills & Contact */
body.light-theme .skill-tags span {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
}

body.light-theme .skill-tags span:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--accent-primary);
}

body.light-theme .contact-item {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
}

body.light-theme .contact-item:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--accent-primary);
}

body.light-theme .whatsapp-cta {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
}

body.light-theme .whatsapp-cta i {
    color: var(--accent-primary);
}

body.light-theme .whatsapp-cta:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

/* Email Reveal Section */
.email-reveal {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.email-reveal.hidden {
    display: none;
}

.email-reveal p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.email-reveal .text-small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

body.light-theme .email-reveal {
    background: rgba(220, 38, 38, 0.05);
}

/* ==========================================
   WHATSAPP WIDGET
   ========================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    animation: slideInUp 0.5s ease-out 1s backwards;
}

.whatsapp-status {
    background: var(--card-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 5px;
    position: relative;
}

/* Speech bubble arrow */
.whatsapp-status::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
    opacity: 0.5;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn i {
    color: white;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:hover i {
    transform: scale(1.1);
}

/* Ripple effect on hover */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.whatsapp-btn:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

@keyframes pulse-green {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Light theme adjustments */
body.light-theme .whatsapp-status {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .whatsapp-status::after {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn i {
        width: 24px;
        height: 24px;
    }

    .whatsapp-status {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .stat-pill {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

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

    .stats-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-item {
        align-items: center;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .terminal-bg {
        font-size: 0.7rem;
        right: 2%;
    }

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

    .timeline {
        padding-left: 1.5rem;
    }
}

/* ==========================================
   PRELOADER - BIOS STYLE
   ========================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    font-family: 'JetBrains Mono', monospace;
    color: #00ff9d;
    max-width: 900px;
    width: 90%;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Noise Overlay */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeBlend mode='screen'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* BIOS Header */
.bios-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #00ff9d33;
}

.mem-info {
    color: #00ff9d;
}

/* Boot Output */
.bios-output {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.boot-line {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #00ff9d;
    opacity: 0;
    animation: fadeInLine 0.3s ease forwards;
}

.boot-line:nth-child(1) {
    animation-delay: 0.2s;
}

.boot-line:nth-child(2) {
    animation-delay: 0.5s;
}

.boot-line:nth-child(3) {
    animation-delay: 0.8s;
}

.boot-line:nth-child(4) {
    animation-delay: 1.1s;
}

.boot-line:nth-child(5) {
    animation-delay: 1.4s;
}

.boot-line:nth-child(6) {
    animation-delay: 1.7s;
}

.timestamp {
    color: #00ff9d;
    opacity: 0.6;
}

/* Typing Effect */
.typing-line {
    position: relative;
}

.typing-text::after {
    content: '_';
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

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

/* Progress Bar Section */
.progress-container {
    margin-top: 4rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
    color: #00ff9d;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.progress-percentage {
    color: #00ff9d;
    font-weight: 700;
}

.progress-bar-wrapper {
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff9d, #00d084);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.6),
        0 0 40px rgba(0, 255, 157, 0.3);
    transition: width 0.1s linear;
    position: relative;
}

/* Glowing edge effect on progress bar */
.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ==========================================
   CERTIFICATIONS SECTION
   ========================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
            rgba(0, 255, 157, 0.03) 0%,
            rgba(0, 255, 157, 0.01) 50%,
            rgba(112, 0, 255, 0.03) 100%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Premium glow effect on hover */
.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            var(--accent-primary) 0%,
            var(--accent-secondary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.cert-item::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--card-bg);
    border-radius: 10px;
    z-index: 0;
}

.cert-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow:
        0 20px 40px rgba(0, 255, 157, 0.15),
        0 0 80px rgba(0, 255, 157, 0.1),
        inset 0 0 60px rgba(0, 255, 157, 0.05);
}

.cert-item:hover::before {
    opacity: 0.15;
}

/* Light theme adjustments */
body.light-theme .cert-item {
    background: linear-gradient(135deg,
            rgba(220, 38, 38, 0.02) 0%,
            rgba(220, 38, 38, 0.01) 50%,
            rgba(185, 28, 28, 0.03) 100%);
}

body.light-theme .cert-item:hover {
    box-shadow:
        0 20px 40px rgba(220, 38, 38, 0.12),
        0 0 60px rgba(220, 38, 38, 0.08),
        inset 0 0 40px rgba(220, 38, 38, 0.04);
}

/* Icon styling with gradient background */
.cert-item i {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 16px rgba(0, 255, 157, 0.25),
        0 0 30px rgba(0, 255, 157, 0.15);
}

.cert-item:hover i {
    transform: rotateY(360deg) scale(1.1);
    box-shadow:
        0 12px 24px rgba(0, 255, 157, 0.35),
        0 0 50px rgba(0, 255, 157, 0.25);
}

body.light-theme .cert-item i {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow:
        0 8px 16px rgba(220, 38, 38, 0.2),
        0 0 25px rgba(220, 38, 38, 0.1);
}

body.light-theme .cert-item:hover i {
    box-shadow:
        0 12px 24px rgba(220, 38, 38, 0.3),
        0 0 40px rgba(220, 38, 38, 0.2);
}

/* Text content */
.cert-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cert-item:hover h4 {
    color: var(--accent-primary);
}

.cert-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* Shimmer effect on hover */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.cert-item:hover::before {
    animation: shimmer 2s ease-in-out infinite;
}

/* ==========================================
   PERSONAL INFO SECTION
   ========================================== */
.personal-info {
    padding: 2.5rem;
}

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

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--accent-primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.info-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   ROLE DESCRIPTION LISTS
   ========================================== */
.role-description ul,
ul.role-description {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.5rem 0;
}

.role-description li,
ul.role-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.role-description li::before,
ul.role-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .preloader-content {
        padding: 1.5rem;
    }

    .bios-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .boot-line {
        font-size: 0.7rem;
    }
}