/* --- Variables & Reset --- */
:root {
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --primary-dim: rgba(59, 130, 246, 0.1);
    --primary-glow: rgba(59, 130, 246, 0.3);

    --secondary: #8B5CF6;
    --accent: #EC4899;
    --success: #10B981;

    --bg-body: #000000;
    --bg-surface: #0a0a0a;
    --bg-card: #0f0f0f;
    --bg-card-hover: #141414;
    --bg-glass: rgba(255, 255, 255, 0.02);

    --text-main: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(59, 130, 246, 0.5);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', monospace;

    --container: 1200px;
    --header-height: 80px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Fluid Typography */
    --fs-h1: clamp(2.5rem, 8vw, 4.5rem);
    --fs-h2: clamp(1.75rem, 5vw, 2.5rem);
    --fs-h3: clamp(1.25rem, 3vw, 1.75rem);
    --fs-body: clamp(0.95rem, 2vw, 1.15rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.06), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(139, 92, 246, 0.05), transparent 40%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.font-code {
    font-family: var(--font-code);
}

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

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

.text-accent {
    color: var(--accent);
}

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

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

ul {
    list-style: none;
}

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

/* --- Layout Utilities --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
}

.grid {
    display: grid;
    gap: 3rem;
}

.flex {
    display: flex;
    gap: 1.5rem;
}

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

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

.flex-col {
    flex-direction: column;
}

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

.w-100 {
    width: 100%;
}

/* --- Utilities --- */
.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-sm {
    margin-bottom: 0.5rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.max-w-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-invert {
    filter: invert(1);
}

.text-primary-icon {
    margin-right: 10px;
    color: var(--primary);
}

.text-accent-icon {
    margin-right: 10px;
    color: var(--accent);
}

.text-n8n-icon {
    margin-right: 10px;
    color: #FF6D5A;
}

.fs-small {
    font-size: 0.85rem;
}

.fs-xs {
    font-size: 0.75rem;
}

.bg-primary-dim {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.bg-secondary-dim {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
}

.bg-accent-dim {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent);
}

.transition-delay-100 {
    transition-delay: 100ms;
}

.transition-delay-200 {
    transition-delay: 200ms;
}

.section-bg-soft {
    background: rgba(255, 255, 255, 0.01);
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(59, 130, 246, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-2px);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
}

.section-title {
    font-family: var(--font-main);
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.4rem;
    transition: all 0.3s var(--ease);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 1.6rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

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

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s var(--ease);
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease);
}

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

/* CTA Button */
.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s var(--ease);
}

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

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.nav-cta i {
    font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease);
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s var(--ease);
}

.mobile-toggle span:nth-child(1) {
    top: 13px;
}

.mobile-toggle span:nth-child(2) {
    top: 19px;
}

.mobile-toggle span:nth-child(3) {
    top: 25px;
}

/* Hamburger to X Animation */
.mobile-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.mobile-toggle.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: var(--fs-h1);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.05;
    font-weight: 800;
}

.hero-subtitle {
    font-family: var(--font-main);
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--primary-dim);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-img-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(var(--bg-body), var(--bg-body)) padding-box,
        linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    position: relative;
    z-index: 2;
    transition: transform 0.5s var(--ease);
}

.profile-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.2;
    filter: blur(20px);
    z-index: 1;
    transition: opacity 0.5s var(--ease);
}

.hero-visual:hover .profile-img {
    transform: scale(1.05);
}

.hero-visual:hover .profile-img-bg {
    opacity: 0.4;
}

.social-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s var(--ease);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-badge i {
    font-size: 1rem;
}

/* Brand Colors */
.social-badge.linkedin {
    background: #0A66C2;
    color: white;
}

.social-badge.linkedin:hover {
    background: #004182;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4);
}

.social-badge.telegram {
    background: #26A5E4;
    color: white;
}

.social-badge.telegram:hover {
    background: #1c8ac7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 165, 228, 0.4);
}

.social-badge.gmail {
    background: #EA4335;
    color: white;
}

.social-badge.gmail:hover {
    background: #c5221f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4);
}

.social-badge.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-badge.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.4);
}

.social-badge.github {
    background: #181717;
    color: white;
}

.social-badge.github:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 23, 23, 0.4);
}

/* Stats Badges */
.stats-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.stats-badges img {
    height: 28px;
    border-radius: 6px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.stats-badges a {
    display: inline-flex;
    text-decoration: none;
}

.stats-badges img:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}



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


.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(255, 255, 255, 0.1);
    font-family: var(--font-code);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.window-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.window-filename {
    margin-left: 10px;
    font-size: 0.75rem;
    color: #888;
    font-family: var(--font-code);
    letter-spacing: 0.02em;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.2s var(--ease);
}

.dot:hover {
    transform: scale(1.2);
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27ca3f;
}

.window-content {
    padding: 24px;
    color: #d4d4d4;
    line-height: 1.7;
    overflow-x: auto;
    max-height: 500px;
}

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

/* Story & Timeline */
.story-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.story-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.story-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.story-text strong {
    color: var(--text-main);
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border);
}

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

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

.timeline-dot {
    position: absolute;
    left: -1.95rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    background: var(--bg-body);
    border: 3px solid var(--primary);
    border-radius: 50%;
    transition: all 0.3s var(--ease);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Personality Grid */
.personality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.personality-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s var(--ease);
}

.personality-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.p-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    transition: all 0.3s var(--ease);
}

.personality-card:hover .p-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.personality-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.personality-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .personality-grid {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .personality-grid {
        grid-template-columns: 1fr;
    }
}

/* End of About Section Upgrade */




/* --- Skills Section --- */
/* --- Tech Stack Section --- */
#particleBg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: transparent;
}

/* --- Tech Stack Section --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.tech-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tech-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-main);
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1.5rem;
    flex: 1;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.tech-item:hover {
    background: var(--bg-card);
    transform: translateY(-3px);
}

.tech-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s var(--ease);
}

.tech-item:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.tech-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.tech-item:hover span {
    color: var(--text-main);
}

/* --- Learning Journey Section --- */
.learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.subsection-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

/* Focus Cards */
.focus-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.focus-card:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateX(5px);
}

.focus-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.focus-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.focus-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

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

.focus-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font-code);
}

/* Progress Cards */
.progress-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s var(--ease);
}

.progress-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tech-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.tech-info i {
    font-size: 1.5rem;
}

.progress-percent {
    font-family: var(--font-code);
    font-weight: 700;
    color: var(--text-secondary);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.progress-goal {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Specific Progress Bar Colors */
.progress-bar.primary {
    background: var(--primary);
}

.progress-bar.secondary {
    background: var(--secondary);
}

.progress-bar.accent {
    background: var(--accent);
}

/* Stats Grid for Learning Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--bg-surface);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

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

.project-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--success);
    color: white;
}

.project-status.learning {
    background: var(--secondary);
}

.project-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.project-card:hover .project-img-wrapper::after {
    opacity: 1;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.learning-highlights {
    background: var(--bg-surface);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.learning-highlights h4 {
    margin: 0;
}

.learning-highlights ul {
    margin: 0;
    list-style: disc;
}

.learning-highlights li {
    margin-bottom: 0.25rem;
}

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

.tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.learning-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
}

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

.workflow-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.workflow-card:hover {
    transform: translateY(-5px);
    border-color: #FF6D5A;
    box-shadow: 0 10px 30px rgba(255, 109, 90, 0.15);
}

.workflow-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.workflow-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 109, 90, 0.1);
    color: #FF6D5A;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.workflow-meta h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
}

.workflow-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.workflow-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.workflow-nodes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.node-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-glass);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.node-tag i {
    color: #FF6D5A;
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Contact Info Card */
.contact-info-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.contact-header h3 {
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 0.9rem;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}

.contact-method:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateX(5px);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.method-icon.email {
    background: linear-gradient(135deg, #EA4335, #D93025);
}

.method-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.method-icon.linkedin {
    background: linear-gradient(135deg, #0077B5, #005885);
}

.method-icon.community {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.method-content {
    flex: 1;
}

.method-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.method-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.method-arrow {
    color: var(--text-dim);
    transition: all 0.3s var(--ease);
}

.contact-method:hover .method-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

/* Contact Social */
.contact-social {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-social h5 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
    font-size: 1.1rem;
}

.social-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Contact Form Card */
.contact-form-card {
    height: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.form-header h3 {
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 0.9rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-label i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.form-control {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-dim);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.form-result {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.form-result.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-result.error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid #EF4444;
}

/* Contact Stats */
.contact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s var(--ease);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
}

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

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Footer --- */
footer {
    padding: 4rem 0 3rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 6rem;
    background: var(--bg-surface);
}

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

/* --- Animations --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Overhaul --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .social-badges,
    .stats-badges {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 24px;
    }

    .section {
        padding: 80px 0;
    }

    /* Premium Mobile Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        gap: 2rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        border-left: 1px solid var(--border);
    }

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

    .nav-link {
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    /* Grid Adjustments */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

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

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

    .profile-img-container {
        width: 240px;
        height: 240px;
    }

    /* Project Card Mobile Upgrades */
    .project-card {
        border-radius: 16px;
    }

    .project-img-wrapper {
        height: 220px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-desc {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .learning-highlights {
        padding: 0.8rem;
    }

    .learning-list {
        font-size: 0.8rem;
    }

    .tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .stats-badges {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        transform: scale(0.85);
        margin-bottom: 1.5rem;
    }

    .social-badges {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .social-badge {
        width: 100%;
        font-size: 0.7rem;
        padding: 0.5rem;
        text-align: center;
        justify-content: center;
    }

    .social-badge.github {
        grid-column: span 2;
    }

    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

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

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

/* Fix for touch interaction delay */
a,
button,
.nav-link,
.social-badge {
    touch-action: manipulation;
}
