/* ======================================================
   NewPortfolio - Merged Best of Portfolio1, Portfolio2 & TubesCursor
   ====================================================== */

:root {
    /* Unified color palette - blend of portfolio1 purple + portfolio2 cyan */
    --primary: #a78bfa;
    --secondary: #67e8f9;
    --accent: #f472b6;
    --green: #34d399;
    --yellow: #fbbf24;
    --orange: #fb923c;
    --danger: #f87171;
    --success: #34d399;

    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --bg-card: rgba(15, 20, 35, 0.85);
    --bg-card-solid: #0f1423;
    --bg-hover: #1a1f2e;
    --border: rgba(167, 139, 250, 0.15);
    --border-strong: rgba(167, 139, 250, 0.3);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;


    --c-muted: rgba(232, 230, 240, 0.35);
    --c-accent1: #b3ffc8;
    --c-accent2: #ffc06e;
    --c-accent3: #5eadff;
    --c-border: rgba(255, 255, 255, 0.1);
    --font-display: "Unbounded", sans-serif;


    --gradient-1: linear-gradient(135deg, #a78bfa 0%, #67e8f9 100%);
    --gradient-2: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
    --gradient-3: linear-gradient(135deg, #34d399 0%, #67e8f9 100%);
    --gradient-glow: linear-gradient(135deg, rgba(167, 139, 250, 0.4) 0%, rgba(103, 232, 249, 0.4) 100%);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(167, 139, 250, 0.25);
    --shadow-glow-strong: 0 0 50px rgba(167, 139, 250, 0.4);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    --font-primary: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    --font-tech: 'Orbitron', monospace;
}

/* Light Theme */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-solid: #ffffff;
    --bg-hover: #e2e8f0;
    --border: rgba(167, 139, 250, 0.2);
    --border-strong: rgba(167, 139, 250, 0.4);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    
    --c-muted: rgba(50, 50, 50, 0.75);
    --c-accent1: #494949;
    --c-accent2: #ffc06e;
    --c-accent3: #5eadff;
    --c-border: rgba(50, 50, 50, 0.2);
}



/* ====== Base Reset ====== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ====== Grain Texture Overlay ====== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

[data-theme="light"] body::before {
    opacity: 0.04;
}

/* ====== Custom Cursor ====== */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

.cursor-dot.hover {
    width: 10px;
    height: 10px;
    background: var(--secondary);
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: var(--secondary);
    opacity: 0.3;
}

.cursor-ring.click {
    width: 28px;
    height: 28px;
    opacity: 0.8;
}

@media (pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ====== Loading Screen (from portfolio2) ====== */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.05) 0%, var(--bg-darker) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(103, 232, 249, 0.1) 0%, transparent 50%);
    animation: loaderPulse 4s ease-in-out infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.loader-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    padding: 2rem;
}

.hack-terminal {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.05) 0%, rgba(103, 232, 249, 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(167, 139, 250, 0.2), 0 0 60px rgba(103, 232, 249, 0.15);
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
}

.hack-terminal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
    animation: terminalGlow 3s ease-in-out infinite;
}

@keyframes terminalGlow {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

.terminal-header {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(103, 232, 249, 0.1) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-strong);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

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

.dot.red {
    background: #f87171;
}

.dot.yellow {
    background: #fbbf24;
}

.dot.green {
    background: #34d399;
}

.terminal-title {
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.9;
    background: rgba(0, 0, 0, 0.2);
}

.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(167, 139, 250, 0.02) 2px, rgba(167, 139, 250, 0.02) 4px);
    pointer-events: none;
}

.terminal-line {
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: fadeInTerminal 0.5s ease forwards;
}

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

.terminal-line:nth-child(2) {
    animation-delay: 0.4s;
}

.terminal-line:nth-child(3) {
    animation-delay: 0.6s;
}

.terminal-line:nth-child(4) {
    animation-delay: 0.8s;
}

.terminal-line:nth-child(5) {
    animation-delay: 1.0s;
}

.terminal-line:nth-child(6) {
    animation-delay: 1.2s;
}

.terminal-line:nth-child(7) {
    animation-delay: 1.4s;
}

.terminal-line:nth-child(8) {
    animation-delay: 1.6s;
}

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

.prompt {
    color: var(--primary);
    margin-right: 0.5rem;
}

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

.output {
    color: var(--text-secondary);
    display: block;
    margin-left: 1.5rem;
}

.output .success,
.output.success {
    color: var(--success);
}

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

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

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

.loader-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.loader-progress-bar {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    box-shadow: 0 0 15px var(--primary);
    transition: width 0.3s ease;
    border-radius: 10px;
    position: relative;
}

.loader-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 1.5s infinite;
}

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

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

.loader-percentage {
    text-align: center;
    color: var(--primary);
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ====== Header (glass morphism from portfolio2 + code logo from portfolio1) ====== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    height: 100%;
    background: rgba(5, 8, 20, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: -1;
}

[data-theme="light"] .main-header::before {
    background: rgba(255, 255, 255, 0.85);
}

.main-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--secondary) 50%, var(--primary) 80%, transparent 100%);
    opacity: 0.5;
    border-radius: 16px 16px 0 0;
    animation: headerGlow 3s linear infinite;
}

@keyframes headerGlow {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.3;
    }
}

.main-header.scrolled::before {
    background: rgba(5, 8, 20, 0.95);
    border-color: var(--border-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(167, 139, 250, 0.1);
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    color: var(--secondary);
}

.logo-bracket {
    color: var(--secondary);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(167, 139, 250, 0.08);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

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

.nav-link i {
    font-size: 0.85rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.theme-toggle {
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.theme-toggle:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem 0.6rem;
    transition: all 0.25s ease;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ====== Header Info Bar ====== */
.header-info-bar {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 999;
}

.main-header:hover .header-info-bar,
.header-info-bar:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.header-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.5rem;
    margin-top: 0.4rem;
    background: rgba(5, 8, 20, 0.9);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .header-info-inner {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-info-weather,
.header-info-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.header-info-weather i {
    color: var(--secondary);
    font-size: 1rem;
}

.header-info-time i {
    color: var(--primary);
    font-size: 1rem;
}

.header-info-clock {
    font-family: var(--font-code);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.header-info-weather .weather-temp {
    color: var(--secondary);
    font-weight: 700;
    font-family: var(--font-code);
}

.header-info-weather .weather-desc {
    color: var(--text-muted);
    font-style: italic;
}

.header-info-weather .weather-detail {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 0.3rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header-info-bar {
        width: 96%;
    }

    .header-info-inner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
    }
}

/* ====== Main Content ====== */
.main-content {
    position: relative;
    z-index: 1;
}

/* ====== Hero Section ====== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}



.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 100%;
}

/* Hero Badge (from portfolio2) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.3rem;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(103, 232, 249, 0.15) 100%);
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    font-family: var(--font-tech);
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.2);
    transition: all 0.3s ease;
}

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

.hero-badge:hover::before {
    left: 100%;
}

.hero-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3);
}

.badge-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0;
    animation: badgePulse 2.5s ease-out infinite;
    pointer-events: none;
}

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

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.2;
    }

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

/* Hero Name (code style from portfolio1) */
.hero-name {
    font-family: var(--font-code);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.name-line {
    display: block;
    font-size: 1rem;
    opacity: 0.7;
}

.name-prefix {
    color: var(--secondary);
}

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

.name-operator {
    color: var(--accent);
}

.name-value {
    display: block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
}

.name-suffix {
    color: var(--primary);
    font-size: 1rem;
    opacity: 0.7;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.subtitle-text {
    color: var(--text-secondary);
    font-weight: 600;
}

.subtitle-separator {
    color: var(--primary);
    font-weight: 700;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
}

/* Hero Stats (from portfolio2) */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.05) 0%, rgba(103, 232, 249, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.2);
}

.stat-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.15), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover .stat-glow {
    left: 100%;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(103, 232, 249, 0.2) 100%);
    border: 1px solid var(--primary);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(167, 139, 250, 0.3);
}

.stat-number {
    font-family: var(--font-code);
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Hero Buttons (blend of both) */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover .btn-shine {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: #0a0e1a;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #0a0e1a;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Hero Social */
.hero-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(167, 139, 250, 0.2);
}

/* Hero Visual (code monitor) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-monitor {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.monitor-frame {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.monitor-frame:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-strong);
}

.monitor-screen {
    background: var(--bg-darker);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
}

.screen-content {
    padding: 0;
}

.screen-header {
    background: rgba(15, 20, 35, 0.9);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.screen-dots {
    display: flex;
    gap: 0.4rem;
}

.screen-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.screen-dots span:nth-child(1) {
    background: #f87171;
}

.screen-dots span:nth-child(2) {
    background: #fbbf24;
}

.screen-dots span:nth-child(3) {
    background: #34d399;
}

.screen-title {
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 600;
}

.screen-body {
    padding: 1.2rem;
}

.code-block-visual {
    font-family: var(--font-code);
    font-size: 0.8rem;
    line-height: 1.8;
}

.code-ln {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ln-num {
    color: var(--text-muted);
    min-width: 1.5rem;
    text-align: right;
    font-size: 0.7rem;
    user-select: none;
}

.code-keyword {
    color: var(--secondary);
}

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

.code-operator {
    color: var(--accent);
}

.code-brace {
    color: var(--yellow);
}

.code-bracket {
    color: var(--yellow);
}

.code-property {
    color: var(--secondary);
}

.code-string {
    color: var(--green);
}

.code-number {
    color: var(--orange);
}

.code-comma,
.code-semicolon {
    color: var(--text-muted);
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.3rem;
    animation: floatIcon 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.icon-1 {
    top: 5%;
    right: -8%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 15%;
    right: -12%;
    animation-delay: 1s;
}

.icon-3 {
    top: 45%;
    left: -12%;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 5%;
    left: -8%;
    animation-delay: 3s;
}

@keyframes floatIcon {

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

    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 10;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--border-strong);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

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

/* ====== Section Shared Styles ====== */
.section {
    padding: 6rem 0;
    position: relative;
    scroll-margin-top: 80px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

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

.section-number {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.section-title {
    font-family: var(--font-code);
    font-size: 2.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-bracket {
    color: var(--secondary);
}

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

.section-line {
    flex: 1;
    height: 2px;
    background: var(--gradient-1);
    margin-inline-start: 1.5rem;
    max-width: 200px;
    opacity: 0.5;
}

/* ── EFFECT 3: MARQUEE ──────────────────────────── */
.marquee-wrap {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 1.2rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
    gap: 3rem;
}

.marquee-wrap:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 200;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c-muted);
    transition: color 0.3s;
}

.marquee-item:hover {
    color: var(--c-accent1);
}

.marquee-sep {
    color: var(--c-accent2);
    margin: 0;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ====== About Section ====== */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-code);
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.15);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 10px;
    color: #0a0e1a;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-title {
    font-family: var(--font-code);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

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

/* About Terminal Visual */
.about-visual {
    position: sticky;
    top: 120px;
}

.about-terminal {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-glow);
}

.about-terminal-body {
    font-size: 0.85rem;
    line-height: 2;
    padding: 1.5rem !important;
}

.about-terminal-body .terminal-line {
    opacity: 1;
    animation: none;
}

/* ====== Skills Section ====== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--border-strong);
    box-shadow: 0 5px 20px rgba(167, 139, 250, 0.1);
}

.category-title {
    font-family: var(--font-code);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.skill-name {
    font-family: var(--font-code);
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.skill-percent {
    font-family: var(--font-code);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.skill-bar {
    height: 10px;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 5px;
    width: 0%;
    position: relative;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
    transition: width 2s ease;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

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

/* ====== Experience Section ====== */
.timeline {
    position: relative;
    padding-inline-start: 2rem;
}

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



.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-inline-start: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(167, 139, 250, 0.3);
}



.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}



.timeline-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.timeline-year {
    font-family: var(--font-code);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.timeline-badge {
    background: var(--gradient-1);
    color: #0a0e1a;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-code);
}

.timeline-title {
    font-family: var(--font-code);
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-company {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(167, 139, 250, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}



.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.achievement-item i {
    color: var(--green);
    font-size: 0.85rem;
    flex-shrink: 0;
}

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

.tag {
    background: rgba(167, 139, 250, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-code);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: var(--primary);
    background: rgba(167, 139, 250, 0.2);
}

/* ====== Services Section ====== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(167, 139, 250, 0.15);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 14px;
    color: #0a0e1a;
    font-size: 1.4rem;
    position: relative;
}

.icon-glow {
    position: absolute;
    inset: -4px;
    background: var(--gradient-1);
    border-radius: 16px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .icon-glow {
    opacity: 0.4;
}

.service-number {
    font-family: var(--font-code);
    font-size: 2rem;
    font-weight: 900;
    color: var(--border-strong);
}

.service-title {
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--green);
    font-size: 0.8rem;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--bg-darker);
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.2;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: #0a0e1a;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 1.1rem;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(167, 139, 250, 0.4);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ====== Contact Section ====== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(167, 139, 250, 0.15);
}



.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 12px;
    color: #0a0e1a;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.contact-details a,
.contact-details span {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    align-self: flex-start;
}

/* ====== Footer ====== */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    position: relative;
    z-index: 1;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-divider {
    color: var(--text-muted);
}

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

.footer-social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #0a0e1a;
    transform: translateY(-2px);
}

/* ====== Responsive ====== */
/* ====== Blog Section ====== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(167, 139, 250, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(103, 232, 249, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-card), transparent);
    pointer-events: none;
}

.blog-placeholder {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.4;
    transition: all 0.35s ease;
}

.blog-card:hover .blog-placeholder {
    opacity: 0.7;
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-1);
    color: #0a0e1a;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-meta i {
    margin-right: 0.3rem;
    color: var(--primary);
    font-size: 0.75rem;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
    line-height: 1.4;
    transition: color 0.25s ease;
}

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

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap 0.25s ease;
    margin-top: auto;
}

.blog-card:hover .blog-read-more {
    gap: 0.8rem;
}

/* ====== Blog Post Page ====== */
.blog-post-page {
    padding-top: 6rem;
    min-height: 100vh;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.25s ease;
}

.blog-post-back:hover {
    color: var(--primary);
}

.blog-post-header {
    margin-bottom: 3rem;
}

.blog-post-category {
    display: inline-block;
    background: var(--gradient-1);
    color: #0a0e1a;
    padding: 0.3rem 0.9rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.blog-post-meta i {
    margin-right: 0.4rem;
    color: var(--primary);
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e1a;
    font-size: 0.8rem;
    font-weight: 700;
}

.blog-post-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.blog-post-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.blog-post-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.blog-post-body p {
    margin-bottom: 1.5rem;
}

.blog-post-body code {
    font-family: var(--font-code);
    background: rgba(167, 139, 250, 0.1);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-post-body pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.7;
}

.blog-post-body pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
}

.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

.blog-post-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(167, 139, 250, 0.05);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.blog-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.blog-post-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.blog-post-nav a:hover {
    color: var(--primary);
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        max-width: 600px;
    }

    .hero-subtitle {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

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

    .about-visual {
        position: static;
    }

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

    .code-monitor {
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--bg-card-solid);
        flex-direction: column;
        padding: 1.5rem 1rem;
        border-top: 1px solid var(--border);
        transition: left 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        backdrop-filter: blur(25px);
    }

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

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.8rem 1rem;
        margin-bottom: 0.3rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-section {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    .hero-name {
        font-size: 2rem;
    }

    .name-value {
        font-size: 2.2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

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

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

    .section {
        padding: 4rem 0;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-line {
        width: 100%;
        margin-inline-start: 0;
        margin-top: 0.5rem;
    }

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

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

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

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

    .blog-post-title {
        font-size: 1.8rem;
    }

    .timeline {
        padding-inline-start: 1.5rem;
    }

    .timeline-item {
        padding-inline-start: 2rem;
    }

    .timeline-marker {
        left: -1.75rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-text {
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-icons {
        display: none;
    }

    .code-monitor {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-name {
        font-size: 1.6rem;
    }

    .name-value {
        font-size: 1.8rem;
    }

    .name-line {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

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

    .stat-card {
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .code-monitor {
        max-width: 280px;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .hero-name {
        font-size: 1.4rem;
    }

    .name-value {
        font-size: 1.5rem;
    }
}