/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@property --solid-stop {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 65%;
}

@property --blur-stop {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 95%;
}

:root {
    --bg-darker: #020205;
    --bg-dark: #070712;
    --bg-card: rgba(10, 10, 26, 0.55);
    --bg-card-hover: rgba(16, 16, 42, 0.75);
    --border-glass: rgba(0, 242, 254, 0.12);
    --border-glass-hover: rgba(0, 242, 254, 0.28);
    
    /* Brighter Neon Cyber Colors */
    --color-primary: #00f2fe;       /* Neon Bright Cyan */
    --color-primary-glow: rgba(0, 242, 254, 0.45);
    --color-secondary: #0099ff;     /* Electric Blue */
    --color-secondary-glow: rgba(0, 153, 255, 0.45);
    --color-accent: #9d4edd;        /* Vivid Neon Purple */
    --color-accent-glow: rgba(157, 78, 221, 0.45);
    --color-success: #10b981;       /* Neon Emerald Green */
    --color-success-glow: rgba(16, 185, 129, 0.45);
    
    /* Typography */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-neon: 0 0 20px var(--color-primary-glow);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.page-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(13, 148, 136, 0.2);
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 148, 136, 0.5);
}

/* ==========================================================================
   DYNAMIC BACKGROUND (Canvas & Glows)
   ========================================================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Background Glow Orbs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(180px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.055;
    mix-blend-mode: screen;
    animation: floating-glows 20s infinite alternate ease-in-out;
}

.bg-glow-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -10vw;
    left: -10vw;
}

.bg-glow-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: -15vw;
    right: -10vw;
    animation-delay: -5s;
}

.bg-glow-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.05;
}

@keyframes floating-glows {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(8%, 8%) scale(1.15);
    }
}

/* ==========================================================================
   REUSABLE COMPONENTS (Glassmorphism, Buttons, Typography)
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-normal), background-color var(--transition-normal);
    opacity: 0;
    transform: translateY(25px);
}

.glass-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.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: 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sections Global */
section {
    padding: 100px 0;
    position: relative;
    isolation: isolate;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    isolation: isolate;
}

.section-subtitle,
.section-title,
.section-line {
    position: relative;
    z-index: 2;
}

.section-header .glow-blob {
    top: 50%;
    left: 50%;
    width: 700px;
    height: 350px;
    margin-top: -175px;
    margin-left: -350px;
    filter: blur(95px);
    opacity: 0.52;
    z-index: -1;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 10, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-accent {
    color: var(--color-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.nav-menu {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transition: var(--transition-fast);
}

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

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

.scroll-progress-bar {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
    width: 0;
    transition: width 0.1s linear;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    position: relative;
    isolation: isolate;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 16px;
}

.hero-subtitle-container {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
}

.hero-subtitle-dynamic {
    background: linear-gradient(135deg, #10b981 0%, #00f2fe 50%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-block;
}

.hero-subtitle-cursor {
    color: var(--color-primary);
    font-weight: 300;
    font-size: 1.8rem;
    animation: cursor-blink 0.8s infinite;
    margin-left: 2px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Avatar visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.avatar-glass {
    position: relative;
    width: 380px;
    height: 380px;
}

.avatar-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, var(--color-secondary-glow) 30%, transparent 65%);
    z-index: -1;
    animation: pulse-glow 3s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    0% { transform: scale(0.8) rotate(-5deg); opacity: 0.25; }
    100% { transform: scale(1.2) rotate(5deg); opacity: 0.6; }
}

/* Orbital Ring 1 — thick, slow CW */
.orbit-1 {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, #00f2fe, #10b981, #0099ff, #00f2fe, transparent 70%);
    z-index: 0;
    animation: spin-cw 16s linear infinite;
    mask: radial-gradient(circle, transparent calc(50% - 4px), black calc(50% - 2px));
    -webkit-mask: radial-gradient(circle, transparent calc(50% - 4px), black calc(50% - 2px));
}

/* Orbital Ring 2 — thin dashed, fast CCW */
.orbit-2 {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1.5px dashed transparent;
    background: conic-gradient(from 180deg, transparent 70%, #00f2fe, #10b981, #0099ff, transparent);
    z-index: 0;
    animation: spin-ccw 12s linear infinite;
    mask: radial-gradient(circle, transparent calc(50% - 1.5px), black calc(50% - 0.5px));
    -webkit-mask: radial-gradient(circle, transparent calc(50% - 1.5px), black calc(50% - 0.5px));
}

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

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

.avatar-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50% 8% 8% 8%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glass), 0 0 60px var(--color-primary-glow);
    
    /* Edge blur mask & animation */
    mask-image: radial-gradient(circle, black var(--solid-stop), transparent var(--blur-stop));
    -webkit-mask-image: radial-gradient(circle, black var(--solid-stop), transparent var(--blur-stop));
    animation: breathe 4s ease-in-out infinite, edge-blur-anim 5s ease-in-out infinite;
}

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

@keyframes edge-blur-anim {
    0%, 100% {
        --solid-stop: 78%;
        --blur-stop: 98%;
    }
    50% {
        --solid-stop: 75%;
        --blur-stop: 96%;
    }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% 8% 8% 8%;
    transition: transform 0.6s ease;
}

.avatar-glass:hover .avatar-img {
    transform: scale(1.08);
}

.avatar-glass:hover .orbit-1 {
    animation-duration: 6s;
}

.avatar-glass:hover .orbit-2 {
    animation-duration: 4s;
}

.avatar-glass:hover .avatar-glow {
    animation-duration: 2s;
}

/* Scan line effect */
.avatar-scan {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.035), transparent);
    z-index: 2;
    pointer-events: none;
    animation: scan 8s ease-in-out infinite;
}

@keyframes scan {
    0% { left: -60%; }
    100% { left: 160%; }
}

.avatar-glass:hover .avatar-scan {
    animation-duration: 1.2s;
}



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

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.scroll-down:hover {
    color: var(--text-white);
}

.scroll-icon {
    animation: bounce 1.5s infinite;
}

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

/* ==========================================================================
   ABOUT & SKILLS SECTION
   ========================================================================== */
.about-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.about-info h3 {
    font-size: 1.8rem;
    color: var(--text-white);
}

.about-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.personal-details {
    margin-top: 20px;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    display: flex;
    flex-direction: row;
    gap: 64px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-val {
    color: var(--text-white);
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.skill-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
}

.skill-html {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-secondary);
}

.skill-react {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.skill-node {
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.2);
    color: #d946ef;
}

.skill-tools {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.skill-title {
    font-size: 1.2rem;
    color: var(--text-white);
}

.skill-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   DEMAND SECTION
   ========================================================================== */
.demand-section {
    padding: 100px 0;
    position: relative;
    isolation: isolate;
}

.demand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.demand-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.demand-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.demand-icon-box i {
    width: 22px;
    height: 22px;
}

.demand-title-box {
    flex: 1;
}

.demand-title-box h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.demand-metric {
    font-size: 0.8rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.demand-percentage {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.demand-bar-wrapper {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.demand-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #10b981 0%, #00f2fe 50%, #0099ff 100%);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.demand-card.revealed .demand-bar-fill {
    transform: scaleX(var(--target-scale));
}

.demand-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .demand-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .demand-card {
        padding: 20px;
        gap: 16px;
    }
    
    .demand-percentage {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.project-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--color-primary);
    color: var(--text-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hidden {
    display: none;
}

.project-img-container {
    position: relative;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-glow-layer {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--card-glow-color, var(--color-primary)) 0%, transparent 70%);
    filter: blur(25px);
    opacity: 0.15;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

.project-card:hover .project-glow-layer {
    transform: scale(1.8);
    opacity: 0.35;
}

.project-placeholder-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.project-icon {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

.text-cyan { color: #06b6d4; }
.text-emerald { color: #10b981; }

.project-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.project-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.35rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tech span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.project-links {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
}

.project-link {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.project-link:hover {
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   TIMELINE (EXPERIENCE) SECTION
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary), var(--color-accent));
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.timeline-item {
    position: relative;
    padding: 32px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 40px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    z-index: 2;
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px var(--color-secondary);
    transform: scale(1.2);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-info-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    color: var(--text-white);
}

.contact-info-panel p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.contact-links-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.3rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-value {
    color: var(--text-white);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-value:hover {
    color: var(--color-secondary);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    color: var(--text-white);
}

.copy-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.heart-icon {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
    fill: var(--color-accent);
    animation: heart-beat 1.5s infinite ease-in-out;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-subtitle-container {
        font-size: 1.5rem;
        height: 32px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-subtitle-dynamic {
        font-size: 1.5rem;
    }
    
    .hero-subtitle-cursor {
        font-size: 1.5rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-stack {
        gap: 32px;
    }
    
    .personal-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation Menu Mobile Toggle */
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: rgba(5, 5, 10, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left var(--transition-normal);
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.3rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .avatar-glass {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .avatar-glass {
        width: 220px;
        height: 220px;
    }

    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-info {
        padding: 24px;
    }
    
    .skill-card {
        padding: 24px;
    }
    
    .contact-info-panel,
    .contact-form-container {
        padding: 24px;
    }
}

/* ==========================================================================
   ADDITIONAL CUSTOM STYLES (Floating HW, Quote Box, Centered Contact)
   ========================================================================== */

/* Centered Contact */
.contact-single-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.centered-contact-card {
    max-width: 580px;
    width: 100%;
    text-align: center;
}

.centered-contact-card .contact-links-list {
    align-items: center;
    justify-content: center;
}

.centered-contact-card .contact-method {
    width: 100%;
    max-width: 400px;
    justify-content: flex-start;
}

/* Floating Hardware Elements */
.floating-ttgo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
    min-height: 60px;
    width: 100%;
    pointer-events: none;
}

.floating-hw-icon {
    width: 42px;
    height: auto;
    opacity: 0.5;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: auto;
    cursor: help;
}

.floating-hw-icon:hover {
    opacity: 0.95;
    transform: scale(1.15) rotate(5deg);
}

.hw-ttgo {
    animation: float-slow 6s infinite ease-in-out;
}

.hw-resistor {
    animation: float-mid 5s infinite ease-in-out -1.5s;
}

.hw-solder {
    animation: float-fast 7s infinite ease-in-out -3s;
}

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

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

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

/* Hero Quote Box */
.hero-quote-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 18px;
    border-radius: 12px;
    margin-top: 16px;
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Fixed layout to absolutely prevent vertical and horizontal jank */
    width: 100%;
    max-width: 620px;
    height: 76px;
    box-sizing: border-box;
}

.hero-quote-content {
    flex: 1;
    text-align: left;
    line-height: 1.4;
}

.hero-quote-box:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
    transform: translateY(-1px);
}

.hero-quote-icon {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.hero-quote-text {
    color: var(--text-main);
    line-height: 1.4;
}

.hero-quote-author {
    color: var(--color-secondary);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 8px;
}

@media (max-width: 480px) {
    .hero-quote-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 12px 16px;
        margin-left: auto;
        margin-right: auto;
        height: 130px; /* Fixed height on mobile to prevent layout shifts */
    }
    
    .hero-quote-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
        width: 100%;
    }
    
    .hero-quote-author {
        margin-left: 0;
        align-self: center;
        white-space: normal;
    }
}

/* ==========================================================================
   LIGHT THEME SUPPORT & TOGGLE
   ========================================================================== */

/* Light Theme Variables */
:root.light-theme {
    --bg-darker: #f5f6fa;
    --bg-dark: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --border-glass: rgba(0, 153, 255, 0.08);
    --border-glass-hover: rgba(0, 153, 255, 0.18);
    
    --color-primary: #0077cc;       /* Deep Electric Blue */
    --color-primary-glow: rgba(0, 119, 204, 0.12);
    --color-secondary: #0284c7;     /* Sky Blue */
    --color-secondary-glow: rgba(2, 132, 199, 0.12);
    --color-accent: #7c3aed;        /* Violet */
    --color-accent-glow: rgba(124, 58, 237, 0.12);
    --color-success: #059669;       /* Emerald */
    --color-success-glow: rgba(5, 150, 105, 0.12);
    
    --text-main: #2d3748;
    --text-muted: #718096;
    --text-white: #1a202c;
    
    --shadow-neon: 0 0 20px var(--color-primary-glow);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
}

/* Light Theme Component Overrides */
.light-theme .header {
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.light-theme .nav-menu {
    background: rgba(245, 246, 250, 0.95);
}
@media (max-width: 768px) {
    .light-theme .nav-menu {
        background: rgba(245, 246, 250, 0.98);
    }
}
.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.1);
}
.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--text-white);
}
.light-theme .floating-ttgo-container svg path[fill="#fafafa"] {
    fill: #1f2937 !important;
}

/* Softer background glow spots in light theme */
.light-theme .bg-glow {
    mix-blend-mode: normal;
    opacity: 0.04;
}

/* Theme Toggle Button styling */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-left: 15px;
    padding: 0;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.theme-toggle .sun-icon {
    display: none;
    width: 20px;
    height: 20px;
}
.theme-toggle .moon-icon {
    display: block;
    width: 20px;
    height: 20px;
}
.light-theme .theme-toggle .sun-icon {
    display: block;
}
.light-theme .theme-toggle .moon-icon {
    display: none;
}
.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}
.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Soldering Skill Card Styling */
.skill-solder {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Layout helpers for mobile photo ordering */
@media (min-width: 1025px) {
    .hide-on-desktop {
        display: none !important;
    }
}
@media (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    /* Make sure the mobile photo has some margin below the description and fits nicely */
    .avatar-glass.hide-on-desktop {
        margin: 20px auto 35px auto;
    }
}

/* ==========================================================================
   MORPHING GLOW BLOBS (DIFFUSED CLOUDS)
   ========================================================================== */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #00f2fe 0%, #10b981 35%, #0055ff 70%, transparent 95%);
    z-index: -1;
    pointer-events: none;
    animation: morph-blob 18s ease-in-out infinite alternate;
    transition: var(--transition-normal);
    will-change: transform;
}

@keyframes morph-blob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(45px, -25px) scale(1.18) rotate(70deg);
    }
    50% {
        transform: translate(-35px, 35px) scale(0.92) rotate(160deg);
    }
    75% {
        transform: translate(25px, 20px) scale(1.12) rotate(250deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

.light-theme .glow-blob {
    opacity: 0.14 !important;
    mix-blend-mode: multiply;
}
