/* ===================================
   CSS Custom Properties & Reset
   =================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(26, 26, 37, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #ec4899;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #ec4899 100%);
    --gradient-text: linear-gradient(135deg, #c084fc 0%, #22d3ee 50%, #f472b6 100%);
    --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.3);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.5rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
    --gh-day-bg: #161b22;
    --gh-day-1: #0e4429;
    --gh-day-2: #006d32;
    --gh-day-3: #26a641;
    --gh-day-4: #39d353;
    --gh-text: #a1a1aa;
    --gh-border: rgba(255, 255, 255, 0.08);
}

/* Light Theme */
[data-theme="light"] {
    /* Architectural Theme - Elegant Ivory & Gold */
    --bg-primary: #faf8f5;
    --bg-secondary: #f5f0e8;
    --bg-tertiary: #ebe4d8;
    --bg-card: rgba(255, 252, 247, 0.9);
    --bg-glass: rgba(250, 248, 245, 0.85);

    /* Rich jewel-toned text */
    --text-primary: #1a1612;
    --text-secondary: #4a4035;
    --text-muted: #7a6f5f;

    /* Gold & emerald accents */
    --accent-primary: #b8860b;
    --accent-secondary: #0d7377;
    --accent-tertiary: #8b4513;

    /* Elegant borders with gold shimmer */
    --border-color: rgba(184, 134, 11, 0.15);
    --border-glow: rgba(184, 134, 11, 0.4);

    /* Sophisticated gradient */
    --gradient-text: linear-gradient(135deg, #b8860b 0%, #0d7377 50%, #8b4513 100%);
    --shadow-glow: 0 0 40px rgba(184, 134, 11, 0.15);
    --gh-day-bg: #ebedf0;
    --gh-day-1: #9be9a8;
    --gh-day-2: #40c463;
    --gh-day-3: #30a14e;
    --gh-day-4: #216e39;
    --gh-text: #4a4035;
    --gh-border: rgba(184, 134, 11, 0.15);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--spacing-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.theme-icon {
    position: absolute;
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.theme-icon.sun {
    opacity: 0;
    transform: translateY(20px) rotate(-90deg);
}

.theme-icon.moon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-theme="light"] .theme-icon.sun {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-theme="light"] .theme-icon.moon {
    opacity: 0;
    transform: translateY(-20px) rotate(90deg);
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: -3s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -6s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-4 {
    width: 50px;
    height: 50px;
    top: 40%;
    right: 25%;
    animation-delay: -9s;
}

@keyframes floatShape {

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

    25% {
        transform: translate(20px, -30px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(-10px, 20px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translate(15px, 10px) rotate(270deg) scale(1.05);
    }
}

/* Enhanced Hover Effects */
.magnetic-button {
    transition: transform 0.2s ease-out;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-3xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--spacing-sm) 0;
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--spacing-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: var(--spacing-sm) var(--spacing-lg) !important;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--text-primary) !important;
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.hamburger {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-4xl) 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@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 {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--spacing-lg);
}

.hero-greeting {
    font-size: var(--font-size-lg);
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(var(--font-size-4xl), 10vw, var(--font-size-6xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    min-height: 2.4em;
}

.typing-text {
    color: var(--text-primary);
}

.cursor {
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

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

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-4xl);
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: var(--radius-xl);
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-mouse 2s ease-in-out infinite;
}

@keyframes scroll-mouse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

/* About Section */
.about {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about-image {
    position: sticky;
    top: 100px;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.initials {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-text h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

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

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Skills Section */
.skills {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.skill-card {
    padding: var(--spacing-xl);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

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

.skill-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.skill-category {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.skill-tag {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-card:hover .skill-tag {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* ===================================
   SKILL CARD ANIMATIONS
   Context-relevant hover effects
   =================================== */

/* Base Animation Container */
.skill-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.skill-card:hover .skill-animation {
    opacity: 1;
}

.skill-card {
    position: relative;
    min-height: 220px;
}

/* ====== FRONTEND ANIMATION ====== */
.frontend-anim {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.mockup-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 120px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mockup-bar {
    height: 12px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    padding: 0 6px;
    gap: 3px;
}

.mockup-bar span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.mockup-bar span:nth-child(1) {
    background: #ef4444;
}

.mockup-bar span:nth-child(2) {
    background: #f59e0b;
}

.mockup-bar span:nth-child(3) {
    background: #22c55e;
}

.mockup-content {
    padding: 6px;
}

.mockup-nav {
    height: 8px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 2px;
    margin-bottom: 6px;
}

.mockup-hero {
    height: 20px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 3px;
    margin-bottom: 6px;
    animation: shimmer-bg 2s ease-in-out infinite;
}

@keyframes shimmer-bg {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.mockup-cards {
    display: flex;
    gap: 4px;
}

.mockup-card {
    flex: 1;
    height: 16px;
    background: rgba(236, 72, 153, 0.2);
    border-radius: 2px;
    animation: card-pop 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(5px);
}

.skill-card:hover .mockup-card:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-card:hover .mockup-card:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-card:hover .mockup-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes card-pop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.figma-cursor {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #a855f7;
    clip-path: polygon(0 0, 0 100%, 70% 70%);
    top: 30%;
    left: 30%;
    animation: cursor-move 3s ease-in-out infinite;
}

@keyframes cursor-move {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(40px, 20px);
    }

    50% {
        transform: translate(60px, 10px);
    }

    75% {
        transform: translate(20px, 30px);
    }
}

/* ====== BACKEND ANIMATION ====== */
.backend-anim {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.api-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-request,
.api-response {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 10px;
    text-align: center;
}

.api-request span {
    display: block;
    color: #22c55e;
    font-weight: 600;
    font-size: 9px;
}

.api-path,
.json-data {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 8px;
}

.api-response span {
    display: block;
    color: #22c55e;
    font-weight: 600;
    font-size: 9px;
}

.api-arrow {
    color: var(--accent-primary);
    font-size: 16px;
    animation: arrow-pulse 1s ease-in-out infinite;
}

@keyframes arrow-pulse {

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

    50% {
        opacity: 1;
        transform: translateX(3px);
    }
}

.api-server {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: server-pulse 2s ease-in-out infinite;
}

@keyframes server-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

.server-icon {
    font-size: 18px;
}

/* ====== DATABASE ANIMATION ====== */
.database-anim {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.db-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.db-cylinder {
    width: 40px;
    height: 50px;
    position: relative;
}

.db-top {
    width: 40px;
    height: 12px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 50%;
    position: absolute;
    top: 0;
    z-index: 2;
}

.db-body {
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, #0891b2 0%, #0e7490 100%);
    border-radius: 0 0 40px 40px / 0 0 12px 12px;
    position: absolute;
    top: 6px;
}

.db-queries {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.db-query {
    font-family: monospace;
    font-size: 8px;
    color: var(--text-muted);
    padding: 3px 8px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    opacity: 0;
    transform: translateX(-10px);
    animation: query-slide 2s ease-in-out infinite;
}

.db-query:nth-child(1) {
    animation-delay: 0s;
}

.db-query:nth-child(2) {
    animation-delay: 0.3s;
}

.db-query:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes query-slide {

    0%,
    100% {
        opacity: 0;
        transform: translateX(-10px);
    }

    20%,
    80% {
        opacity: 1;
        transform: translateX(0);
    }
}

.db-rows {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.db-row {
    width: 30px;
    height: 6px;
    background: rgba(6, 182, 212, 0.3);
    border-radius: 2px;
    animation: row-fill 1.5s ease-in-out infinite;
}

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

.db-row:nth-child(2) {
    animation-delay: 0.2s;
    width: 25px;
}

.db-row:nth-child(3) {
    animation-delay: 0.3s;
    width: 20px;
}

@keyframes row-fill {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ====== DEVOPS ANIMATION ====== */
.devops-anim {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.k8s-cluster {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.k8s-node {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px dashed var(--border-color);
}

.k8s-pod {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    position: relative;
}

.k8s-pod.running {
    background: rgba(34, 197, 94, 0.4);
    border: 1px solid #22c55e;
}

.k8s-pod.deploying {
    background: rgba(59, 130, 246, 0.4);
    border: 1px solid #3b82f6;
    animation: pod-deploy 1.5s ease-in-out infinite;
}

.k8s-pod.scaling {
    background: rgba(245, 158, 11, 0.4);
    border: 1px solid #f59e0b;
    animation: pod-scale 2s ease-in-out infinite;
}

@keyframes pod-deploy {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

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

@keyframes pod-scale {

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

    50% {
        transform: scale(1.3);
    }
}

.deploy-arrow {
    width: 2px;
    height: 15px;
    background: linear-gradient(180deg, var(--accent-primary), transparent);
    animation: deploy-flow 1s ease-in-out infinite;
}

@keyframes deploy-flow {
    0% {
        opacity: 1;
        transform: translateY(-5px);
    }

    100% {
        opacity: 0;
        transform: translateY(5px);
    }
}

.deploy-status {
    font-size: 9px;
    color: var(--accent-primary);
    font-family: monospace;
    animation: status-blink 1s step-end infinite;
}

@keyframes status-blink {
    50% {
        opacity: 0.5;
    }
}

/* ====== ML ANIMATION ====== */
.ml-anim {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.neural-network {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.nn-layer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nn-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.nn-node.active {
    background: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    animation: node-pulse 1.5s ease-in-out infinite;
}

@keyframes node-pulse {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    }
}

.nn-connections {
    width: 15px;
    height: 60px;
    background:
        linear-gradient(135deg, transparent 45%, rgba(139, 92, 246, 0.3) 45%, rgba(139, 92, 246, 0.3) 55%, transparent 55%),
        linear-gradient(45deg, transparent 45%, rgba(139, 92, 246, 0.3) 45%, rgba(139, 92, 246, 0.3) 55%, transparent 55%);
    animation: connection-flow 2s ease-in-out infinite;
}

@keyframes connection-flow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.ml-metrics {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 10px;
    color: #22c55e;
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 4px;
    animation: metric-update 3s ease-in-out infinite;
}

@keyframes metric-update {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* ====== SYSTEMS ANIMATION ====== */
.systems-anim {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.terminal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    background: #1a1a2e;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
    height: 14px;
    background: #2d2d44;
    display: flex;
    align-items: center;
    padding: 0 6px;
    gap: 4px;
}

.terminal-bar span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
    background: #ef4444;
}

.terminal-bar span:nth-child(2) {
    background: #f59e0b;
}

.terminal-bar span:nth-child(3) {
    background: #22c55e;
}

.terminal-content {
    padding: 8px;
    font-family: monospace;
    font-size: 8px;
}

.terminal-line {
    margin-bottom: 3px;
    display: flex;
    gap: 4px;
}

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

.prompt {
    color: #22c55e;
}

.command {
    color: #06b6d4;
}

.terminal-line .cursor {
    animation: terminal-cursor 1s step-end infinite;
    color: #22c55e;
}

@keyframes terminal-cursor {
    50% {
        opacity: 0;
    }
}

/* Experience Section */
.experience {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-secondary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

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

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
}

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

.timeline-content {
    padding: var(--spacing-xl);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.timeline-date {
    font-size: var(--font-size-sm);
    color: var(--accent-primary);
    font-weight: 500;
}

.timeline-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

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

.timeline-badge.education {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.timeline-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.timeline-tech span {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Projects Section */
.projects {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-primary);
}

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

.project-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-card.featured .project-image {
    aspect-ratio: auto;
    min-height: 280px;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform var(--transition-slow);
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
}

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

.scribe-bg {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.blockchain-bg {
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #115e59 100%);
}

.mern-bg {
    background: linear-gradient(135deg, #1e3a5f 0%, #164e63 50%, #0c4a6e 100%);
}

.devops-bg {
    background: linear-gradient(135deg, #4a1d2f 0%, #831843 50%, #9d174d 100%);
}

.ecommerce-bg {
    background: linear-gradient(135deg, #3d2914 0%, #78350f 50%, #92400e 100%);
}

.ml-bg {
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #4f46e5 100%);
}

.llm-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.monitoring-bg {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
}

.project-emoji {
    font-size: 4rem;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.project-overlay {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
}

.project-type {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.project-content {
    padding: var(--spacing-xl);
}

.project-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.project-features span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.project-tech span {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--accent-secondary);
}

.project-link {
    display: inline-block;
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--accent-primary);
    transition: color var(--transition-base);
}

.project-link:hover {
    color: var(--accent-secondary);
}

/* GitHub Activity Section */
.github-activity {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-secondary);
}

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

.github-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.github-card .github-heatmap {
    width: 100%;
    overflow-x: auto;
}

.github-heatmap-loading,
.github-error {
    text-align: center;
    color: var(--text-muted);
    padding: var(--spacing-2xl) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.github-error a {
    color: var(--accent-secondary);
}

.github-heatmap-total {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.github-heatmap-total strong {
    color: var(--text-primary);
    font-weight: 700;
}

.github-heatmap-scroll {
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
}

.github-heatmap .ContributionCalendar-grid {
    border-collapse: separate;
    border-spacing: 3px;
}

.github-heatmap .ContributionCalendar-label span[aria-hidden="true"] {
    font-size: 10px;
    color: var(--gh-text);
}

.github-heatmap td.ContributionCalendar-day,
.github-heatmap div.ContributionCalendar-day {
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
    border-radius: 2px;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

.github-heatmap td.ContributionCalendar-day[data-level="0"],
.github-heatmap div.ContributionCalendar-day[data-level="0"] {
    background: var(--gh-day-bg);
}

.github-heatmap td.ContributionCalendar-day[data-level="1"],
.github-heatmap div.ContributionCalendar-day[data-level="1"] {
    background: var(--gh-day-1);
}

.github-heatmap td.ContributionCalendar-day[data-level="2"],
.github-heatmap div.ContributionCalendar-day[data-level="2"] {
    background: var(--gh-day-2);
}

.github-heatmap td.ContributionCalendar-day[data-level="3"],
.github-heatmap div.ContributionCalendar-day[data-level="3"] {
    background: var(--gh-day-3);
}

.github-heatmap td.ContributionCalendar-day[data-level="4"],
.github-heatmap div.ContributionCalendar-day[data-level="4"] {
    background: var(--gh-day-4);
}

.github-heatmap td.ContributionCalendar-day:not([data-level="0"]):hover {
    outline: 2px solid var(--accent-primary);
    outline-offset: 1px;
}

.github-heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin-top: var(--spacing-md);
    font-size: 10px;
    color: var(--gh-text);
}

.github-heatmap-legend .legend-swatch {
    width: 11px;
    height: 11px;
    border-radius: 2px;
}

.github-profile-link {
    display: inline-flex;
    margin-top: var(--spacing-lg);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.github-profile-link:hover {
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .github-card {
        padding: var(--spacing-lg);
    }
}

/* Contact Section */
.contact {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    max-width: 900px;
    margin: 0 auto var(--spacing-3xl);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-lg);
}

.contact-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.contact-card h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.contact-card a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--accent-primary);
}

.contact-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-cta p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

/* Footer */
.footer {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

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

.footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .about-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .project-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: var(--spacing-2xl);
        transition: right var(--transition-base);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: var(--font-size-xl);
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .hero-scroll {
        display: none;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: var(--font-size-xl);
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-marker {
        left: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   WHIMSICAL STYLES
   Inspired by Josh Comeau
   =================================== */

/* Googly Eyes for Profile */
.googly-eyes {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 10;
}

.eye {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.pupil {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #333 0%, #111 100%);
    border-radius: 50%;
    transition: transform 0.1s ease-out;
    position: relative;
}

.pupil::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
}

/* Sparkle Animation */
@keyframes sparkle-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0) rotate(180deg);
    }
}

/* Bounce In Animation */
@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.9);
    }

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

.bounce-in {
    animation: bounce-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Wiggle Animation for Buttons */
@keyframes wiggle {

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

    20% {
        transform: rotate(-3deg);
    }

    40% {
        transform: rotate(3deg);
    }

    60% {
        transform: rotate(-2deg);
    }

    80% {
        transform: rotate(2deg);
    }
}

/* Enhanced Skill Tags with Glow on Hover */
.skill-tag,
.timeline-tech span,
.project-tech span,
.highlight-tag {
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-tag:hover,
.timeline-tech span:hover,
.project-tech span:hover,
.highlight-tag:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Floating Animation for Cards */
@keyframes gentle-float {

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

    50% {
        transform: translateY(-8px);
    }
}

.skill-card:nth-child(odd) {
    animation: gentle-float 4s ease-in-out infinite;
}

.skill-card:nth-child(even) {
    animation: gentle-float 4s ease-in-out infinite;
    animation-delay: -2s;
}

/* Rainbow Border Animation */
@keyframes rainbow-border {
    0% {
        border-color: #8b5cf6;
    }

    25% {
        border-color: #06b6d4;
    }

    50% {
        border-color: #ec4899;
    }

    75% {
        border-color: #22c55e;
    }

    100% {
        border-color: #8b5cf6;
    }
}

.project-card.featured:hover {
    animation: rainbow-border 2s linear infinite;
    border-width: 2px;
}

/* Pulsing Glow for Current Badge */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.3);
    }
}

.timeline-badge.current {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Enhanced Logo Animation */
.nav-logo:hover .logo-text {
    animation: wiggle 0.5s ease-in-out;
}

/* Typewriter Cursor Enhanced */
.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite, cursor-grow 0.5s ease-in-out infinite alternate;
}

@keyframes cursor-grow {
    0% {
        transform: scaleY(0.8);
    }

    100% {
        transform: scaleY(1.2);
    }
}

/* Button Shine Effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

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

/* Contact Card Icons Dance */
.contact-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover .contact-icon {
    animation: icon-dance 0.5s ease-in-out;
}

@keyframes icon-dance {

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

    25% {
        transform: translateY(-10px) rotate(-10deg);
    }

    75% {
        transform: translateY(-5px) rotate(10deg);
    }
}

/* Stats Number Countup Style */
.stat-number {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item:hover .stat-number {
    transform: scale(1.2);
}

/* Timeline Marker Ripple */
.timeline-marker::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    animation: ripple 2s ease-out infinite;
    opacity: 0;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

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

/* Scroll Indicator Bounce */
.scroll-indicator {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

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

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

/* Footer Heart Beat */
.footer-text {
    position: relative;
}

.footer-text::after {
    content: '❤️';
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-left: 0.25rem;
}

@keyframes heartbeat {

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

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

/* ===================================
   SKILL CARD ANIMATIONS - BORDER BURST
   Abundant elements popping from edges
   =================================== */

/* Override base animation container */
.skill-animation {
    position: absolute;
    inset: -25px;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
    opacity: 1;
}

.skill-card {
    overflow: visible !important;
    z-index: 1;
}

.skill-card:hover {
    z-index: 20;
}

/* Base for all animation elements */
.anim-el {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 22px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.skill-card:hover .anim-el {
    opacity: 1;
}

/* Text-based elements styling */
.anim-el.code-tag,
.anim-el.css-tag,
.anim-el.api-get,
.anim-el.api-post,
.anim-el.json,
.anim-el.status-200,
.anim-el.sql-1,
.anim-el.sql-2,
.anim-el.query,
.anim-el.yaml,
.anim-el.accuracy,
.anim-el.tensor,
.anim-el.cmd,
.anim-el.vim {
    font-size: 11px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* FRONTEND */
.frontend-anim .browser-1 {
    top: -5px;
    left: 10%;
    transform: translateY(25px) scale(0.5);
}

.skill-card:hover .frontend-anim .browser-1 {
    transform: translateY(0) scale(1) rotate(-5deg);
}

.frontend-anim .browser-2 {
    top: -8px;
    right: 15%;
    transform: translateY(25px) scale(0.5);
}

.skill-card:hover .frontend-anim .browser-2 {
    transform: translateY(0) scale(1) rotate(8deg);
    transition-delay: 0.05s;
}

.frontend-anim .palette {
    bottom: -5px;
    left: 8%;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .frontend-anim .palette {
    transform: translateY(0) scale(1) rotate(-10deg);
    transition-delay: 0.1s;
}

.frontend-anim .component-1 {
    right: -5px;
    top: 25%;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .frontend-anim .component-1 {
    transform: translateX(0) scale(1);
    transition-delay: 0.08s;
}

.frontend-anim .component-2 {
    right: -8px;
    top: 55%;
    font-size: 18px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .frontend-anim .component-2 {
    transform: translateX(0) scale(1);
    transition-delay: 0.12s;
}

.frontend-anim .code-tag {
    left: -5px;
    top: 35%;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .frontend-anim .code-tag {
    transform: translateX(0) scale(1);
    transition-delay: 0.06s;
}

.frontend-anim .figma-cursor {
    bottom: -8px;
    right: 20%;
    font-size: 18px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .frontend-anim .figma-cursor {
    transform: translateY(0) scale(1) rotate(15deg);
    transition-delay: 0.15s;
}

.frontend-anim .mobile {
    left: -8px;
    bottom: 30%;
    font-size: 20px;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .frontend-anim .mobile {
    transform: translateX(0) scale(1) rotate(-8deg);
    transition-delay: 0.1s;
}

.frontend-anim .responsive {
    top: 15%;
    left: -5px;
    font-size: 18px;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .frontend-anim .responsive {
    transform: translateX(0) scale(1);
    transition-delay: 0.04s;
}

.frontend-anim .css-tag {
    bottom: -5px;
    right: 40%;
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-secondary);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .frontend-anim .css-tag {
    transform: translateY(0) scale(1);
    transition-delay: 0.18s;
}

/* BACKEND */
.backend-anim .api-get {
    top: -5px;
    left: 12%;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(25px) scale(0.5);
}

.skill-card:hover .backend-anim .api-get {
    transform: translateY(0) scale(1);
}

.backend-anim .api-post {
    top: -8px;
    right: 18%;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(25px) scale(0.5);
}

.skill-card:hover .backend-anim .api-post {
    transform: translateY(0) scale(1);
    transition-delay: 0.05s;
}

.backend-anim .server-1 {
    right: -5px;
    top: 22%;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .backend-anim .server-1 {
    transform: translateX(0) scale(1);
    transition-delay: 0.08s;
}

.backend-anim .server-2 {
    right: -8px;
    top: 50%;
    font-size: 20px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .backend-anim .server-2 {
    transform: translateX(0) scale(1) rotate(15deg);
    transition-delay: 0.1s;
}

.backend-anim .db {
    left: -5px;
    top: 30%;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .backend-anim .db {
    transform: translateX(0) scale(1);
    transition-delay: 0.06s;
}

.backend-anim .json {
    bottom: -5px;
    left: 15%;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .backend-anim .json {
    transform: translateY(0) scale(1);
    transition-delay: 0.12s;
}

.backend-anim .auth {
    bottom: -8px;
    right: 25%;
    font-size: 18px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .backend-anim .auth {
    transform: translateY(0) scale(1);
    transition-delay: 0.15s;
}

.backend-anim .gear {
    left: -8px;
    bottom: 35%;
    font-size: 20px;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .backend-anim .gear {
    transform: translateX(0) scale(1);
    transition-delay: 0.08s;
}

.backend-anim .webhook {
    left: -5px;
    top: 60%;
    font-size: 18px;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .backend-anim .webhook {
    transform: translateX(0) scale(1);
    transition-delay: 0.1s;
}

.backend-anim .status-200 {
    bottom: -5px;
    right: 50%;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .backend-anim .status-200 {
    transform: translateY(0) scale(1);
    transition-delay: 0.18s;
}

/* DATABASE */
.database-anim .db-icon-1 {
    top: -5px;
    left: 15%;
    transform: translateY(25px) scale(0.5);
}

.skill-card:hover .database-anim .db-icon-1 {
    transform: translateY(0) scale(1);
}

.database-anim .db-icon-2 {
    top: -8px;
    right: 20%;
    font-size: 20px;
    transform: translateY(25px) scale(0.5) rotate(10deg);
}

.skill-card:hover .database-anim .db-icon-2 {
    transform: translateY(0) scale(1) rotate(10deg);
    transition-delay: 0.05s;
}

.database-anim .sql-1 {
    left: -8px;
    top: 25%;
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-secondary);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .database-anim .sql-1 {
    transform: translateX(0) scale(1);
    transition-delay: 0.06s;
}

.database-anim .sql-2 {
    left: -5px;
    top: 55%;
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-secondary);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .database-anim .sql-2 {
    transform: translateX(0) scale(1);
    transition-delay: 0.1s;
}

.database-anim .table-icon {
    right: -5px;
    top: 30%;
    font-size: 20px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .database-anim .table-icon {
    transform: translateX(0) scale(1);
    transition-delay: 0.08s;
}

.database-anim .chart {
    right: -8px;
    bottom: 35%;
    font-size: 18px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .database-anim .chart {
    transform: translateX(0) scale(1);
    transition-delay: 0.12s;
}

.database-anim .key {
    bottom: -5px;
    left: 18%;
    font-size: 18px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .database-anim .key {
    transform: translateY(0) scale(1) rotate(-10deg);
    transition-delay: 0.1s;
}

.database-anim .lightning {
    bottom: -8px;
    right: 22%;
    font-size: 20px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .database-anim .lightning {
    transform: translateY(0) scale(1);
    transition-delay: 0.15s;
}

.database-anim .cache {
    right: -5px;
    top: 58%;
    font-size: 18px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .database-anim .cache {
    transform: translateX(0) scale(1);
    transition-delay: 0.14s;
}

.database-anim .query {
    bottom: -5px;
    left: 45%;
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .database-anim .query {
    transform: translateY(0) scale(1);
    transition-delay: 0.18s;
}

/* DEVOPS */
.devops-anim .docker {
    top: -5px;
    left: 12%;
    font-size: 24px;
    transform: translateY(25px) scale(0.5);
}

.skill-card:hover .devops-anim .docker {
    transform: translateY(0) scale(1);
}

.devops-anim .k8s {
    top: -8px;
    right: 15%;
    font-size: 22px;
    transform: translateY(25px) scale(0.5) rotate(-5deg);
}

.skill-card:hover .devops-anim .k8s {
    transform: translateY(0) scale(1) rotate(-5deg);
    transition-delay: 0.05s;
}

.devops-anim .cloud {
    right: -8px;
    top: 22%;
    font-size: 26px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .devops-anim .cloud {
    transform: translateX(0) scale(1);
    transition-delay: 0.08s;
}

.devops-anim .terminal {
    right: -5px;
    top: 52%;
    font-size: 20px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .devops-anim .terminal {
    transform: translateX(0) scale(1);
    transition-delay: 0.1s;
}

.devops-anim .pipeline {
    left: -5px;
    top: 28%;
    font-size: 20px;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .devops-anim .pipeline {
    transform: translateX(0) scale(1);
    transition-delay: 0.06s;
}

.devops-anim .rocket {
    left: -8px;
    top: 55%;
    font-size: 22px;
    transform: translateX(25px) scale(0.5) rotate(-45deg);
}

.skill-card:hover .devops-anim .rocket {
    transform: translateX(0) scale(1) rotate(-45deg);
    transition-delay: 0.12s;
}

.devops-anim .status-ok {
    bottom: -5px;
    left: 15%;
    font-size: 18px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .devops-anim .status-ok {
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.devops-anim .metrics {
    bottom: -8px;
    right: 22%;
    font-size: 18px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .devops-anim .metrics {
    transform: translateY(0) scale(1);
    transition-delay: 0.15s;
}

.devops-anim .deploy {
    right: -5px;
    bottom: 35%;
    font-size: 20px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .devops-anim .deploy {
    transform: translateX(0) scale(1);
    transition-delay: 0.14s;
}

.devops-anim .yaml {
    bottom: -5px;
    left: 42%;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .devops-anim .yaml {
    transform: translateY(0) scale(1);
    transition-delay: 0.18s;
}

/* ML/AI */
.ml-anim .brain {
    top: -5px;
    left: 15%;
    font-size: 24px;
    transform: translateY(25px) scale(0.5);
}

.skill-card:hover .ml-anim .brain {
    transform: translateY(0) scale(1);
}

.ml-anim .robot {
    top: -8px;
    right: 18%;
    font-size: 22px;
    transform: translateY(25px) scale(0.5) rotate(5deg);
}

.skill-card:hover .ml-anim .robot {
    transform: translateY(0) scale(1) rotate(5deg);
    transition-delay: 0.05s;
}

.ml-anim .chart {
    right: -5px;
    top: 25%;
    font-size: 22px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .ml-anim .chart {
    transform: translateX(0) scale(1);
    transition-delay: 0.08s;
}

.ml-anim .tensor {
    right: -8px;
    top: 52%;
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.4);
    font-size: 14px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .ml-anim .tensor {
    transform: translateX(0) scale(1);
    transition-delay: 0.1s;
}

.ml-anim .gpu {
    left: -5px;
    top: 30%;
    font-size: 20px;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .ml-anim .gpu {
    transform: translateX(0) scale(1);
    transition-delay: 0.06s;
}

.ml-anim .sparkles {
    left: -8px;
    top: 58%;
    font-size: 18px;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .ml-anim .sparkles {
    transform: translateX(0) scale(1);
    transition-delay: 0.12s;
}

.ml-anim .accuracy {
    bottom: -5px;
    left: 12%;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .ml-anim .accuracy {
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.ml-anim .network {
    bottom: -8px;
    right: 22%;
    font-size: 20px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .ml-anim .network {
    transform: translateY(0) scale(1);
    transition-delay: 0.15s;
}

.ml-anim .data {
    right: -5px;
    bottom: 35%;
    font-size: 18px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .ml-anim .data {
    transform: translateX(0) scale(1);
    transition-delay: 0.14s;
}

.ml-anim .python {
    bottom: -5px;
    left: 42%;
    font-size: 20px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .ml-anim .python {
    transform: translateY(0) scale(1);
    transition-delay: 0.18s;
}

/* SYSTEMS */
.systems-anim .terminal-icon {
    top: -5px;
    left: 12%;
    font-size: 22px;
    transform: translateY(25px) scale(0.5);
}

.skill-card:hover .systems-anim .terminal-icon {
    transform: translateY(0) scale(1);
}

.systems-anim .linux {
    top: -8px;
    right: 15%;
    font-size: 24px;
    transform: translateY(25px) scale(0.5);
}

.skill-card:hover .systems-anim .linux {
    transform: translateY(0) scale(1);
    transition-delay: 0.05s;
}

.systems-anim .cmd {
    left: -10px;
    top: 28%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .systems-anim .cmd {
    transform: translateX(0) scale(1);
    transition-delay: 0.06s;
}

.systems-anim .folder {
    right: -5px;
    top: 25%;
    font-size: 20px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .systems-anim .folder {
    transform: translateX(0) scale(1);
    transition-delay: 0.08s;
}

.systems-anim .git {
    right: -8px;
    top: 52%;
    font-size: 18px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .systems-anim .git {
    transform: translateX(0) scale(1);
    transition-delay: 0.1s;
}

.systems-anim .network {
    left: -5px;
    top: 55%;
    font-size: 20px;
    transform: translateX(25px) scale(0.5);
}

.skill-card:hover .systems-anim .network {
    transform: translateX(0) scale(1);
    transition-delay: 0.1s;
}

.systems-anim .vim {
    bottom: -5px;
    left: 18%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .systems-anim .vim {
    transform: translateY(0) scale(1);
    transition-delay: 0.12s;
}

.systems-anim .server {
    bottom: -8px;
    right: 22%;
    font-size: 20px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .systems-anim .server {
    transform: translateY(0) scale(1);
    transition-delay: 0.15s;
}

.systems-anim .secure {
    right: -5px;
    bottom: 38%;
    font-size: 18px;
    transform: translateX(-25px) scale(0.5);
}

.skill-card:hover .systems-anim .secure {
    transform: translateX(0) scale(1);
    transition-delay: 0.14s;
}

.systems-anim .process {
    bottom: -5px;
    left: 45%;
    font-size: 20px;
    transform: translateY(-25px) scale(0.5);
}

.skill-card:hover .systems-anim .process {
    transform: translateY(0) scale(1);
    transition-delay: 0.18s;
}

/* ===================================
   FIX: Card Spacing for Border Animations
   =================================== */
.skills-grid {
    gap: 40px !important;
    padding: 30px;
}

.skill-card {
    padding: 35px 25px 25px 25px !important;
    margin: 10px;
}

/* Card becomes more prominent on hover */
.skill-card:hover {
    background: var(--bg-card) !important;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2), 0 0 40px rgba(139, 92, 246, 0.1) !important;
    transform: translateY(-10px) scale(1.02) !important;
}

/* ===================================
   ANIMATED WIDGET VISUALS
   Process animations around card borders
   =================================== */

/* Base widget positioning */
.anim-widget {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 15;
}

.skill-card:hover .anim-widget {
    opacity: 1;
}

/* Position classes */
.top-left {
    top: -15px;
    left: 5%;
    transform: translateY(20px) scale(0.7);
}

.skill-card:hover .top-left {
    transform: translateY(0) scale(1);
}

.top-right {
    top: -15px;
    right: 5%;
    transform: translateY(20px) scale(0.7);
}

.skill-card:hover .top-right {
    transform: translateY(0) scale(1);
    transition-delay: 0.05s;
}

.left-top {
    left: -20px;
    top: 20%;
    transform: translateX(20px) scale(0.7);
}

.skill-card:hover .left-top {
    transform: translateX(0) scale(1);
    transition-delay: 0.08s;
}

.left-bottom {
    left: -20px;
    bottom: 25%;
    transform: translateX(20px) scale(0.7);
}

.skill-card:hover .left-bottom {
    transform: translateX(0) scale(1);
    transition-delay: 0.12s;
}

.bottom-left {
    bottom: -15px;
    left: 8%;
    transform: translateY(-20px) scale(0.7);
}

.skill-card:hover .bottom-left {
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.bottom-right {
    bottom: -15px;
    right: 8%;
    transform: translateY(-20px) scale(0.7);
}

.skill-card:hover .bottom-right {
    transform: translateY(0) scale(1);
    transition-delay: 0.15s;
}

.right-top {
    right: -20px;
    top: 20%;
    transform: translateX(-20px) scale(0.7);
}

.skill-card:hover .right-top {
    transform: translateX(0) scale(1);
    transition-delay: 0.1s;
}

.right-bottom {
    right: -20px;
    bottom: 25%;
    transform: translateX(-20px) scale(0.7);
}

.skill-card:hover .right-bottom {
    transform: translateX(0) scale(1);
    transition-delay: 0.18s;
}

/* ===== MINI BROWSER (Frontend) ===== */
.mini-browser {
    width: 70px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wb-bar {
    height: 10px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 2px;
}

.wb-bar span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.wb-bar span:nth-child(1) {
    background: #ef4444;
}

.wb-bar span:nth-child(2) {
    background: #f59e0b;
}

.wb-bar span:nth-child(3) {
    background: #22c55e;
}

.wb-content {
    padding: 4px;
}

.wb-nav {
    height: 6px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 2px;
    margin-bottom: 3px;
}

.wb-hero {
    height: 14px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 3px;
    animation: shimmer 2s infinite;
}

.wb-cards {
    display: flex;
    gap: 3px;
}

.wb-cards span {
    flex: 1;
    height: 14px;
    background: rgba(236, 72, 153, 0.3);
    border-radius: 2px;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.5
    }

    50% {
        opacity: 1
    }
}

/* ===== COLOR SWATCH (Frontend) ===== */
.color-swatch {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.color-swatch span {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.skill-card:hover .color-swatch span {
    animation: swatch-pop 0.3s ease-out forwards;
}

.skill-card:hover .color-swatch span:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-card:hover .color-swatch span:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-card:hover .color-swatch span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes swatch-pop {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* ===== COMPONENT TREE (Frontend) ===== */
.component-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.ct-node {
    width: 22px;
    height: 10px;
    background: rgba(139, 92, 246, 0.4);
    border-radius: 3px;
    border: 1px solid rgba(139, 92, 246, 0.6);
}

.ct-node.sm {
    width: 16px;
    height: 8px;
}

.ct-children {
    display: flex;
    gap: 4px;
}

.ct-children::before {
    content: '';
    display: block;
    width: 1px;
    height: 8px;
    background: rgba(139, 92, 246, 0.4);
    position: absolute;
    top: -8px;
}

/* ===== CODE BLOCK (Shared) ===== */
.code-block,
.json-block,
.sql-query,
.training-metric,
.epoch-counter,
.deploy-badge,
.shell-prompt,
.cache-badge,
.yaml-badge,
.vim-badge,
.python-badge,
.css-box {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 9px;
    padding: 4px 8px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    color: var(--accent-primary);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* ===== RESPONSIVE SET (Frontend) ===== */
.responsive-set {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.rs-device {
    background: rgba(6, 182, 212, 0.3);
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 2px;
}

.rs-device.lg {
    width: 20px;
    height: 14px;
}

.rs-device.md {
    width: 12px;
    height: 16px;
}

.rs-device.sm {
    width: 8px;
    height: 14px;
}

/* ===== FIGMA CURSOR (Frontend) ===== */
.figma-cursor {
    width: 16px;
    height: 16px;
}

.fc-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid #a855f7;
    transform: rotate(-45deg);
    animation: cursor-wiggle 0.6s ease-in-out infinite;
}

@keyframes cursor-wiggle {

    0%,
    100% {
        transform: rotate(-45deg)
    }

    50% {
        transform: rotate(-40deg) translateX(2px)
    }
}

/* ===== API BADGE (Backend) ===== */
.api-badge {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 8px;
    padding: 4px 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
}

.api-badge .method {
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 3px;
}

.method.get {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.method.post {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* ===== SERVER RACK (Backend) ===== */
.server-rack {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.srv {
    width: 30px;
    height: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    position: relative;
}

.srv.active::after {
    content: '';
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

/* ===== DATA STREAM (Backend) ===== */
.data-stream {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ds-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: stream-flow 1.5s ease-in-out infinite;
}

.ds-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.ds-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes stream-flow {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0)
    }

    50% {
        opacity: 1;
        transform: translateY(-5px)
    }
}

/* ===== AUTH ICON (Backend) ===== */
.auth-icon {
    position: relative;
    width: 20px;
    height: 26px;
}

.lock-body {
    width: 18px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 3px;
    position: absolute;
    bottom: 0;
}

.lock-arc {
    width: 10px;
    height: 10px;
    border: 3px solid var(--accent-primary);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== GEAR SPIN (Backend) ===== */
.gear-spin {
    width: 24px;
    height: 24px;
}

.gear-shape {
    width: 100%;
    height: 100%;
    background: var(--accent-secondary);
    border-radius: 50%;
    position: relative;
    animation: gear-rotate 3s linear infinite;
}

.gear-shape::before,
.gear-shape::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background: var(--accent-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.gear-shape::after {
    transform: translateY(-50%) rotate(90deg);
}

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

/* ===== STATUS BADGE (Backend) ===== */
.status-badge {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
}

.status-code {
    font-family: monospace;
    font-weight: 700;
    font-size: 11px;
    color: #22c55e;
}

/* ===== DB CYLINDER (Database) ===== */
.db-cylinder {
    width: 30px;
    height: 35px;
    position: relative;
}

.cyl-top {
    width: 30px;
    height: 10px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 50%;
    position: absolute;
    top: 0;
    z-index: 2;
}

.cyl-body {
    width: 30px;
    height: 28px;
    background: linear-gradient(180deg, #0891b2, #0e7490);
    border-radius: 0 0 30px 30px / 0 0 10px 10px;
    position: absolute;
    top: 5px;
}

/* ===== TABLE ROWS (Database) ===== */
.table-rows {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.t-row {
    width: 35px;
    height: 6px;
    background: rgba(6, 182, 212, 0.3);
    border-radius: 2px;
    animation: row-slide 1.5s ease-in-out infinite;
}

.t-row:nth-child(2) {
    width: 28px;
    animation-delay: 0.2s;
}

.t-row:nth-child(3) {
    width: 20px;
    animation-delay: 0.4s;
}

@keyframes row-slide {

    0%,
    100% {
        opacity: 0.3
    }

    50% {
        opacity: 1
    }
}

/* ===== KEY ICON (Database) ===== */
.key-icon {
    display: flex;
    align-items: center;
}

.key-head {
    width: 12px;
    height: 12px;
    border: 3px solid #f59e0b;
    border-radius: 50%;
}

.key-shaft {
    width: 16px;
    height: 4px;
    background: #f59e0b;
    margin-left: -2px;
    position: relative;
}

.key-shaft::before {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 4px;
    height: 10px;
    border-right: 3px solid #f59e0b;
    border-bottom: 3px solid #f59e0b;
}

/* ===== QUERY FLOW (Database) ===== */
.query-flow {
    width: 25px;
    height: 20px;
}

.qf-arrow {
    width: 20px;
    height: 4px;
    background: var(--accent-secondary);
    position: relative;
    animation: qf-pulse 1s ease-in-out infinite;
}

.qf-arrow::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    border: 6px solid transparent;
    border-left: 8px solid var(--accent-secondary);
}

@keyframes qf-pulse {

    0%,
    100% {
        opacity: 0.5
    }

    50% {
        opacity: 1
    }
}

/* ===== POD CLUSTER (DevOps) ===== */
.pod-cluster {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    border-radius: 4px;
}

.pod {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.pod.running {
    background: rgba(34, 197, 94, 0.4);
    border: 1px solid #22c55e;
}

.pod.deploying {
    background: rgba(59, 130, 246, 0.4);
    border: 1px solid #3b82f6;
    animation: pod-pulse 1.5s ease-in-out infinite;
}

.pod.scaling {
    background: rgba(245, 158, 11, 0.4);
    border: 1px solid #f59e0b;
    animation: pod-scale 2s ease-in-out infinite;
}

@keyframes pod-pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

@keyframes pod-scale {

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

    50% {
        transform: scale(1.3)
    }
}

/* ===== PIPELINE (DevOps) ===== */
.pipeline {
    display: flex;
    align-items: center;
    gap: 3px;
}

.pipe-stage {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.pipe-stage.done {
    background: #22c55e;
    border-color: #22c55e;
}

.pipe-stage.active {
    border-color: #3b82f6;
    animation: pipe-active 1s ease-in-out infinite;
}

@keyframes pipe-active {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4)
    }

    50% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0)
    }
}

.pipe-arrow {
    width: 8px;
    height: 2px;
    background: var(--border-color);
}

/* ===== CLOUD UPLOAD (DevOps) ===== */
.cloud-upload {
    position: relative;
    width: 35px;
    height: 25px;
}

.cloud-shape {
    width: 30px;
    height: 18px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    position: absolute;
    bottom: 0;
}

.upload-arrow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid var(--accent-primary);
    animation: upload-bounce 1s ease-in-out infinite;
}

@keyframes upload-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(-4px)
    }
}

/* ===== METRICS BARS (DevOps) ===== */
.metrics-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 25px;
}

.m-bar {
    width: 6px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-radius: 2px 2px 0 0;
    animation: bar-grow 1.5s ease-out forwards;
}

@keyframes bar-grow {
    from {
        height: 0
    }
}

/* ===== DOCKER BOX (DevOps) ===== */
.docker-box {
    font-size: 22px;
    animation: docker-bob 2s ease-in-out infinite;
}

@keyframes docker-bob {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-4px)
    }
}

/* ===== NEURAL CLUSTER (ML) ===== */
.neural-cluster {
    display: flex;
    gap: 4px;
}

.neuron {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    border: 2px solid rgba(168, 85, 247, 0.5);
}

.neuron.active {
    background: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
    animation: neuron-pulse 1.5s ease-in-out infinite;
}

@keyframes neuron-pulse {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(168, 85, 247, 0.4)
    }

    50% {
        box-shadow: 0 0 12px rgba(168, 85, 247, 0.8)
    }
}

/* ===== TENSOR STACK (ML) ===== */
.tensor-stack {
    display: flex;
    gap: 3px;
    transform: perspective(100px) rotateY(-15deg);
}

.tensor-layer {
    width: 14px;
    height: 20px;
    background: rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 2px;
}

/* ===== PREDICTION BARS (ML) ===== */
.prediction-bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.p-bar {
    height: 5px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
    animation: pbar-fill 1s ease-out forwards;
}

@keyframes pbar-fill {
    from {
        width: 0
    }
}

/* ===== MINI TERMINAL (Systems) ===== */
.mini-terminal {
    width: 70px;
    background: #1a1a2e;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mt-bar {
    height: 10px;
    background: #2d2d44;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 2px;
}

.mt-bar span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.mt-bar span:nth-child(1) {
    background: #ef4444;
}

.mt-bar span:nth-child(2) {
    background: #f59e0b;
}

.mt-bar span:nth-child(3) {
    background: #22c55e;
}

.mt-line {
    padding: 4px;
    font-family: monospace;
    font-size: 7px;
    color: #22c55e;
}

/* ===== FILE TREE (Systems) ===== */
.file-tree {
    font-size: 8px;
    color: var(--text-muted);
}

.ft-folder {
    color: #f59e0b;
    margin-bottom: 2px;
}

.ft-file {
    margin-left: 4px;
    color: var(--text-muted);
}

/* ===== PROCESS LIST (Systems) ===== */
.process-list {
    font-size: 8px;
}

.proc {
    color: var(--text-muted);
    margin-bottom: 2px;
}

.proc .on {
    color: #22c55e;
}

/* ===== NETWORK PACKETS (Systems) ===== */
.network-packets {
    display: flex;
    gap: 4px;
}

.packet {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 2px;
    animation: packet-move 1s ease-in-out infinite;
}

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

.packet:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes packet-move {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(0)
    }

    50% {
        opacity: 1;
        transform: translateX(5px)
    }
}

/* ===== LINUX ICON (Systems) ===== */
.linux-icon {
    font-size: 22px;
}

/* ===================================
   ARCHITECTURAL LIGHT THEME ENHANCEMENTS
   Elegant gold & jewel tone accents
   =================================== */

[data-theme="light"] .skill-card {
    border-color: rgba(184, 134, 11, 0.2);
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.08);
}

[data-theme="light"] .skill-card:hover {
    box-shadow: 0 20px 60px rgba(184, 134, 11, 0.15), 0 0 40px rgba(184, 134, 11, 0.08) !important;
    border-color: rgba(184, 134, 11, 0.3);
}

[data-theme="light"] .skill-tag {
    background: rgba(184, 134, 11, 0.08);
    border-color: rgba(184, 134, 11, 0.2);
    color: #4a4035;
}

[data-theme="light"] .skill-card:hover .skill-tag {
    background: rgba(184, 134, 11, 0.12);
    border-color: rgba(184, 134, 11, 0.3);
}

[data-theme="light"] .project-card {
    border-color: rgba(184, 134, 11, 0.15);
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 20px 50px rgba(184, 134, 11, 0.12);
}

[data-theme="light"] .timeline-marker {
    background: linear-gradient(135deg, #b8860b, #0d7377);
}

[data-theme="light"] .timeline::before {
    background: linear-gradient(180deg, #b8860b, #0d7377, #8b4513);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #b8860b, #0d7377);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 10px 40px rgba(184, 134, 11, 0.3);
}

[data-theme="light"] .contact-card {
    border-color: rgba(184, 134, 11, 0.15);
}

[data-theme="light"] .contact-card:hover {
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 10px 40px rgba(184, 134, 11, 0.1);
}

[data-theme="light"] .nav-logo {
    background: linear-gradient(135deg, #b8860b, #0d7377);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .hero-title span {
    background: linear-gradient(135deg, #b8860b 0%, #0d7377 50%, #8b4513 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Architectural accents for widgets in light mode */
[data-theme="light"] .anim-widget {
    filter: drop-shadow(0 2px 6px rgba(184, 134, 11, 0.15));
}

[data-theme="light"] .mini-browser,
[data-theme="light"] .mini-terminal {
    border-color: rgba(184, 134, 11, 0.2);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.1);
}

[data-theme="light"] .code-block,
[data-theme="light"] .json-block,
[data-theme="light"] .sql-query,
[data-theme="light"] .training-metric,
[data-theme="light"] .deploy-badge,
[data-theme="light"] .shell-prompt,
[data-theme="light"] .cache-badge,
[data-theme="light"] .yaml-badge,
[data-theme="light"] .vim-badge,
[data-theme="light"] .css-box,
[data-theme="light"] .epoch-counter,
[data-theme="light"] .python-badge {
    background: rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.25);
    color: #b8860b;
}

[data-theme="light"] .neuron.active {
    background: rgba(184, 134, 11, 0.6);
    border-color: #b8860b;
    box-shadow: 0 0 8px rgba(184, 134, 11, 0.5);
}

[data-theme="light"] .status-badge {
    background: rgba(184, 134, 11, 0.15);
    border-color: rgba(184, 134, 11, 0.3);
}

[data-theme="light"] .status-code {
    color: #b8860b;
}

[data-theme="light"] .method.get {
    background: rgba(184, 134, 11, 0.15);
    color: #b8860b;
}

[data-theme="light"] .method.post {
    background: rgba(184, 134, 11, 0.2);
    color: #b8860b;
}

/* ===================================
   ARCHITECTURAL LIGHT THEME - GIRIH PATTERNS
   Geometric Islamic-inspired design elements
   =================================== */

/* Girih Pattern Overlay for Light Theme */
[data-theme="light"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(30deg, #b8860b 12%, transparent 12.5%, transparent 87%, #b8860b 87.5%, #b8860b),
        linear-gradient(150deg, #b8860b 12%, transparent 12.5%, transparent 87%, #b8860b 87.5%, #b8860b),
        linear-gradient(30deg, #b8860b 12%, transparent 12.5%, transparent 87%, #b8860b 87.5%, #b8860b),
        linear-gradient(150deg, #b8860b 12%, transparent 12.5%, transparent 87%, #b8860b 87.5%, #b8860b),
        linear-gradient(60deg, #d4a017 25%, transparent 25.5%, transparent 75%, #d4a017 75%, #d4a017),
        linear-gradient(60deg, #d4a017 25%, transparent 25.5%, transparent 75%, #d4a017 75%, #d4a017);
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
}

/* Elegant gold underline for section titles in light mode */
[data-theme="light"] .section-title::after {
    background: linear-gradient(90deg, transparent, #b8860b, #d4a017, #b8860b, transparent) !important;
}

/* Diamond-shaped timeline markers */
[data-theme="light"] .timeline-marker {
    transform: rotate(45deg);
    border-radius: 4px;
}

[data-theme="light"] .timeline-marker::before {
    transform: rotate(-45deg);
}

/* Geometric corner accents on cards */
[data-theme="light"] .skill-card::before,
[data-theme="light"] .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid rgba(184, 134, 11, 0.3);
    border-left: 2px solid rgba(184, 134, 11, 0.3);
    pointer-events: none;
}

[data-theme="light"] .skill-card::after,
[data-theme="light"] .project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid rgba(184, 134, 11, 0.3);
    border-right: 2px solid rgba(184, 134, 11, 0.3);
    pointer-events: none;
}

/* Hero orbs become gold/emerald in light mode */
[data-theme="light"] .hero-bg-orb:nth-child(1) {
    background: radial-gradient(circle, rgba(184, 134, 11, 0.15) 0%, transparent 70%);
}

[data-theme="light"] .hero-bg-orb:nth-child(2) {
    background: radial-gradient(circle, rgba(13, 115, 119, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .hero-bg-orb:nth-child(3) {
    background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, transparent 70%);
}

/* Elegant stat cards */
[data-theme="light"] .stat-item {
    border-color: rgba(184, 134, 11, 0.2);
    background: rgba(255, 252, 247, 0.8);
}

[data-theme="light"] .stat-number {
    background: linear-gradient(135deg, #b8860b, #d4a017);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Refined navigation in light mode */
[data-theme="light"] .nav-container {
    background: rgba(250, 248, 245, 0.95);
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}

[data-theme="light"] .nav-link:hover {
    color: #b8860b;
}

[data-theme="light"] .nav-link.active {
    color: #b8860b;
}

[data-theme="light"] .nav-link::after {
    background: linear-gradient(90deg, #b8860b, #d4a017);
}

/* Footer styling */
[data-theme="light"] footer {
    background: linear-gradient(180deg, rgba(250, 248, 245, 0), rgba(235, 228, 216, 0.5));
    border-top: 1px solid rgba(184, 134, 11, 0.1);
}

/* About section highlights */
[data-theme="light"] .about-highlight {
    background: rgba(184, 134, 11, 0.08);
    border-color: rgba(184, 134, 11, 0.2);
    color: #4a4035;
}

/* Scroll indicator gold */
[data-theme="light"] .scroll-indicator {
    border-color: rgba(184, 134, 11, 0.3);
}

[data-theme="light"] .scroll-dot {
    background: #b8860b;
}

/* Timeline items */
[data-theme="light"] .timeline-item {
    border-color: rgba(184, 134, 11, 0.15);
    background: rgba(255, 252, 247, 0.8);
}

[data-theme="light"] .timeline-item:hover {
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 10px 40px rgba(184, 134, 11, 0.1);
}

/* Project tech tags */
[data-theme="light"] .project-tech span {
    background: rgba(184, 134, 11, 0.1);
    color: #4a4035;
}

/* Orb particles become gold */
[data-theme="light"] #particle-canvas {
    opacity: 0.3;
}

/* ===================================
   NAVBAR LIGHT THEME FIX
   =================================== */

[data-theme="light"] .navbar {
    background: rgba(250, 248, 245, 0.98) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
}

[data-theme="light"] .nav-links a {
    color: #4a4035 !important;
}

[data-theme="light"] .nav-links a:hover {
    color: #b8860b !important;
}

[data-theme="light"] .nav-links a.active {
    color: #b8860b !important;
}

[data-theme="light"] .nav-logo {
    color: #1a1612 !important;
}

[data-theme="light"] .theme-toggle {
    background: rgba(184, 134, 11, 0.1) !important;
    border-color: rgba(184, 134, 11, 0.2) !important;
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(184, 134, 11, 0.15) !important;
    border-color: rgba(184, 134, 11, 0.3) !important;
}

[data-theme="light"] .mobile-menu-toggle span {
    background: #4a4035;
}

/* ===================================
   GOLDEN TEXT FOR LIGHT THEME
   Pure gold gradients, no emerald in text
   =================================== */

[data-theme="light"] .hero-title span,
[data-theme="light"] .section-title,
[data-theme="light"] .stat-number,
[data-theme="light"] .nav-logo {
    background: linear-gradient(135deg, #b8860b 0%, #d4a017 50%, #b8860b 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #b8860b 0%, #d4a017 50%, #b8860b 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Pure gold section title underline */
[data-theme="light"] .section-title::after {
    background: linear-gradient(90deg, transparent, #b8860b, #d4a017, #b8860b, transparent) !important;
}

/* Fix contact link in navbar for light theme */
[data-theme="light"] .nav-links a[href="#contact"] {
    color: #4a4035 !important;
}

[data-theme="light"] .nav-links a[href="#contact"]:hover {
    color: #b8860b !important;
}

/* ===================================
   COMPREHENSIVE LIGHT THEME COLOR FIXES
   Remove all emerald/green, use gold only
   =================================== */

/* Nav CTA button fix */
[data-theme="light"] .nav-cta {
    background: linear-gradient(135deg, #b8860b, #d4a017) !important;
    color: #fff !important;
    border: none !important;
}

[data-theme="light"] .nav-cta:hover {
    background: linear-gradient(135deg, #d4a017, #b8860b) !important;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.4) !important;
    color: #fff !important;
}

/* All buttons in light theme */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #b8860b, #d4a017) !important;
}

[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #d4a017, #b8860b) !important;
    box-shadow: 0 10px 40px rgba(184, 134, 11, 0.3) !important;
}

[data-theme="light"] .btn-secondary {
    border-color: #b8860b !important;
    color: #b8860b !important;
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(184, 134, 11, 0.1) !important;
    border-color: #d4a017 !important;
}

/* Fix any remaining accent colors */
[data-theme="light"] .highlight,
[data-theme="light"] .accent-text {
    color: #b8860b !important;
}

/* Timeline badge current */
[data-theme="light"] .timeline-badge.current {
    background: linear-gradient(135deg, #b8860b, #d4a017) !important;
}

/* Project links */
[data-theme="light"] .project-link {
    color: #b8860b !important;
}

[data-theme="light"] .project-link:hover {
    color: #d4a017 !important;
}

/* Contact icons */
[data-theme="light"] .contact-icon {
    color: #b8860b !important;
}

/* Contact card links */
[data-theme="light"] .contact-card a {
    color: #b8860b !important;
}

[data-theme="light"] .contact-card a:hover {
    color: #d4a017 !important;
}

/* Fix any green status indicators to gold */
[data-theme="light"] .status-badge,
[data-theme="light"] .status-code {
    background: rgba(184, 134, 11, 0.15) !important;
    color: #b8860b !important;
    border-color: rgba(184, 134, 11, 0.3) !important;
}

/* Skill card hover animation elements */
[data-theme="light"] .pod.running {
    background: rgba(184, 134, 11, 0.3) !important;
    border-color: #b8860b !important;
}

[data-theme="light"] .pipe-stage.done {
    background: #b8860b !important;
    border-color: #b8860b !important;
}

[data-theme="light"] .proc .on {
    color: #b8860b !important;
}

[data-theme="light"] .mt-line,
[data-theme="light"] .prompt {
    color: #b8860b !important;
}

/* Override any remaining accent variables */
[data-theme="light"] {
    --accent-primary: #b8860b !important;
    --accent-secondary: #d4a017 !important;
}

/* Fix background orbs to be purely gold/warm in light theme */
[data-theme="light"] .hero-bg-orb:nth-child(1) {
    background: radial-gradient(circle, rgba(184, 134, 11, 0.15) 0%, transparent 70%) !important;
}

[data-theme="light"] .hero-bg-orb:nth-child(2) {
    background: radial-gradient(circle, rgba(212, 160, 23, 0.12) 0%, transparent 70%) !important;
}

[data-theme="light"] .hero-bg-orb:nth-child(3) {
    background: radial-gradient(circle, rgba(184, 134, 11, 0.1) 0%, transparent 70%) !important;
}

[data-theme="light"] .hero-bg-orb:nth-child(4) {
    background: radial-gradient(circle, rgba(218, 165, 32, 0.12) 0%, transparent 70%) !important;
}
/* ===================================
   REFINED "SOBER GOLD" PALETTE
   More elegant, less saturated gold
   =================================== */

/* Hero Title - Sober Gold */
[data-theme="light"] .hero-title span,
[data-theme="light"] .section-title,
[data-theme="light"] .nav-logo {
    background: linear-gradient(135deg, #a67c00 0%, #bf9b30 50%, #a67c00 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Primary Buttons - Elegant Gold Gradient */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #c5a059 0%, #b08d55 100%) !important;
    box-shadow: 0 4px 15px rgba(176, 141, 85, 0.3) !important;
    border: 1px solid rgba(176, 141, 85, 0.2) !important;
}

[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #d4af67 0%, #bd985e 100%) !important;
    box-shadow: 0 6px 20px rgba(176, 141, 85, 0.4) !important;
}

/* Timeline Badge Current - Sober Color */
[data-theme="light"] .timeline-badge.current {
    background: linear-gradient(135deg, #c5a059, #a67c00) !important;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
}

/* Nav CTA - Matching Sober Gold */
[data-theme="light"] .nav-cta {
    background: linear-gradient(135deg, #c5a059, #b08d55) !important;
    box-shadow: 0 4px 15px rgba(176, 141, 85, 0.2) !important;
}

[data-theme="light"] .nav-cta:hover {
    background: linear-gradient(135deg, #d4af67, #bd985e) !important;
    box-shadow: 0 6px 20px rgba(176, 141, 85, 0.3) !important;
}

/* ===================================
   CONSISTENT SOBER GOLD FOR ALL ELEMENTS
   =================================== */

/* Stat Numbers */
[data-theme="light"] .stat-number {
    background: linear-gradient(135deg, #a67c00, #c5a059) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Scroll Indocator */
[data-theme="light"] .scroll-dot {
    background: #a67c00 !important;
}

[data-theme="light"] .scroll-indicator {
    border-color: rgba(166, 124, 0, 0.3) !important;
}

/* Contact Links & Icons */
[data-theme="light"] .contact-icon,
[data-theme="light"] .contact-card a,
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active,
[data-theme="light"] .project-link,
[data-theme="light"] .status-code,
[data-theme="light"] .method.get {
    color: #a67c00 !important;
}

[data-theme="light"] .contact-card a:hover,
[data-theme="light"] .project-link:hover {
    color: #c5a059 !important;
}

/* Section Underlines */
[data-theme="light"] .section-title::after {
    background: linear-gradient(90deg, transparent, #a67c00, #c5a059, #a67c00, transparent) !important;
}

/* Status Badges & Tags */
[data-theme="light"] .status-badge,
[data-theme="light"] .method.get {
    background: rgba(166, 124, 0, 0.1) !important;
    border-color: rgba(166, 124, 0, 0.2) !important;
}

/* Fix text color for timeline badge in light theme */
[data-theme="light"] .timeline-badge.current {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(166, 124, 0, 0.3);
}

/* Ensure Primary Buttons have white text on gold background */
[data-theme="light"] .btn-primary {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(166, 124, 0, 0.3);
}

/* Ensure Nav CTA has white text */
[data-theme="light"] .nav-cta {
    color: #fff !important;
}

/* Fix Hero Title Gradient (was targeting span incorrectly) */
[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #a67c00 0%, #bf9b30 50%, #a67c00 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important; /* Fallback */
    text-shadow: none !important;
}

/* Ensure large buttons also get the correct text color */
[data-theme="light"] .btn-large {
    color: #fff !important;
}
