:root {
    --primary: #FF6B5B;
    --primary-hover: #e85a4a;
    --secondary: #7C3AED;
    --secondary-hover: #6d28d9;

    --bg-body: #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F8FAFC;
    --bg-input: #F9FAFB;
    --bg-code: #111827;

    --text-heading: #0F172A;
    --text-body: #1E293B;
    --text-muted: #64748B;
    --text-faint: #94A3B8;

    --border-light: #F1F5F9;
    --border-medium: #E2E8F0;
    --border-heavy: #CBD5E1;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(255, 107, 91, 0.3);

    --blob-purple: rgba(196, 181, 253, 0.5);
    --blob-coral: rgba(254, 202, 202, 0.4);
    --blob-blend: multiply;

    --soft-coral-bg: rgba(255, 241, 240, 0.3);
    --soft-purple-bg: rgba(224, 231, 255, 0.6);

    --nav-bg: rgba(255, 255, 255, 0.8);
    --scrollbar-thumb: #CBD5E1;

    --icon-orange-bg: #FFF7ED;
    --icon-orange-color: #EA580C;
    --icon-blue-bg: #EFF6FF;
    --icon-blue-color: #3B82F6;
    --icon-cyan-bg: #ECFEFF;
    --icon-cyan-color: #06B6D4;
    --icon-yellow-bg: #FEFCE8;
    --icon-yellow-color: #EAB308;

    --badge-bg: rgba(255, 241, 240, 1);
    --tag-bg: #F1F5F9;
    --tag-text: #475569;

    --stat-card-bg: #FFFFFF;

    --nav-height: 80px;
    --mobile-nav-height: 60px;
}

[data-theme="dark"] {
    --bg-body: #0F172A;
    --bg-surface: #1E293B;
    --bg-surface-alt: #0F172A;
    --bg-input: #0F172A;
    --bg-code: #0F172A;

    --text-heading: #F1F5F9;
    --text-body: #E2E8F0;
    --text-muted: #94A3B8;
    --text-faint: #64748B;

    --border-light: #1E293B;
    --border-medium: #334155;
    --border-heavy: #475569;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 107, 91, 0.2);

    --blob-purple: rgba(88, 28, 135, 0.3);
    --blob-coral: rgba(127, 29, 29, 0.2);
    --blob-blend: lighten;

    --soft-coral-bg: rgba(127, 29, 29, 0.1);
    --soft-purple-bg: rgba(49, 46, 129, 0.2);

    --nav-bg: rgba(15, 23, 42, 0.8);
    --scrollbar-thumb: #334155;

    --icon-orange-bg: rgba(154, 52, 18, 0.2);
    --icon-orange-color: #FB923C;
    --icon-blue-bg: rgba(30, 64, 175, 0.2);
    --icon-blue-color: #60A5FA;
    --icon-cyan-bg: rgba(14, 116, 144, 0.2);
    --icon-cyan-color: #22D3EE;
    --icon-yellow-bg: rgba(113, 63, 18, 0.2);
    --icon-yellow-color: #FACC15;

    --badge-bg: rgba(127, 29, 29, 0.15);
    --tag-bg: #334155;
    --tag-text: #CBD5E1;

    --stat-card-bg: #1E293B;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    padding-bottom: 80px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 20px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 12px 12px;
    z-index: 9999;
    font-weight: 600;
    font-size: 14px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

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

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

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.icon-sm {
    font-size: 18px !important;
}

.icon-xs {
    font-size: 16px !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    width: 384px;
    height: 384px;
}

.blob-purple {
    background: var(--blob-purple);
    top: -10%;
    right: -5%;
    mix-blend-mode: var(--blob-blend);
}

.blob-coral {
    background: var(--blob-coral);
    bottom: -10%;
    left: -5%;
    mix-blend-mode: var(--blob-blend);
}

.blob-ring {
    position: absolute;
    top: 80px;
    left: 40px;
    width: 96px;
    height: 96px;
    color: var(--primary);
    opacity: 0.15;
    transform: rotate(45deg);
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    z-index: 50;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 8px 12px;
    box-shadow: 0 -5px 20px -5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-faint);
    transition: color 0.2s ease;
    padding: 4px 8px;
}

.mobile-nav-link .material-symbols-outlined {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.mobile-nav-link span:last-child {
    font-size: 10px;
    font-weight: 500;
}

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

/* .mobile-nav-link:hover .material-symbols-outlined,
.mobile-nav-link.active .material-symbols-outlined {
    transform: scale(1.15);
} */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo .material-symbols-outlined {
    color: var(--primary);
    font-size: 28px;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading);
}

.nav-links-text {
    display: none;
    gap: 32px;
}

@media (min-width: 1024px) {
    .nav-links-text {
        display: flex;
    }
}

.nav-link-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-body);
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

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

.nav-links-icons {
    display: none;
    gap: 8px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nav-links-icons {
        display: flex;
    }
}

.nav-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.nav-link-icon .material-symbols-outlined {
    font-size: 22px;
}

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

.nav-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-code);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.nav-link-icon:hover .nav-tooltip {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    color: var(--text-muted);
}

.theme-toggle:hover {
    background: var(--border-light);
}

.theme-toggle .material-symbols-outlined {
    font-size: 22px;
}

.theme-icon-dark {
    display: none;
    color: #FACC15;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: inline;
}

.btn-hire {
    display: none;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .btn-hire {
        display: inline-flex;
    }
}

.btn-hire:hover {
    background: var(--primary);
    color: #fff;
}

.section {
    min-height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .section {
        min-height: calc(100vh - var(--nav-height) - var(--mobile-nav-height));
        padding-bottom: var(--mobile-nav-height);
    }
}

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

.hero-section {
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--badge-bg);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--text-heading);
}

.hero-highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-underline {
    position: absolute;
    width: 100%;
    height: 12px;
    bottom: 4px;
    left: 0;
    color: var(--secondary);
    opacity: 0.2;
    z-index: -1;
}

.hero-subtitle-wrapper {
    display: block;
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-muted);
    min-height: 1.4em;
}

.hero-subtitle-wrapper #typing-text {
    display: inline;
    vertical-align: baseline;
}

.typing-cursor {
    display: inline;
    vertical-align: baseline;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    color: var(--primary);
    animation: blink 1s step-start infinite;
    margin-left: -2px;
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        align-items: center;
        width: auto;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 16px 32px;
    font-weight: 500;
    font-size: 15px;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    background: var(--primary-hover);
}

.hero-socials {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-socials {
        justify-content: flex-start;
    }
}

.hero-socials a {
    color: var(--text-faint);
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-socials a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-visual {
    display: none;
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-visual {
        display: block;
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--soft-purple-bg);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.code-card {
    position: relative;
    z-index: 10;
    max-width: 480px;
    margin: 0 auto;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.code-card-inner {
    background: var(--bg-surface);
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    padding: 16px;
    border: 1px solid var(--border-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.code-card-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

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

.dot.red {
    background: #F87171;
}

.dot.yellow {
    background: #FBBF24;
}

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

.code-card-body {
    background: var(--bg-surface-alt);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
    transition: background-color 0.3s ease;
}

.code-content {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-faint);
}

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

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

.code-string {
    color: #10B981;
}

.code-boolean {
    color: #3B82F6;
}

.code-function {
    color: #FBBF24;
}

.code-tag {
    color: #F87171;
}

.code-notification {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--bg-surface);
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: gentle-bounce 3s ease-in-out infinite;
}

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

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #DCFCE7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16A34A;
}

[data-theme="dark"] .notif-icon {
    background: rgba(22, 163, 74, 0.15);
}

.notif-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-line {
    height: 8px;
    border-radius: 4px;
    background: var(--border-medium);
}

.notif-line.long {
    width: 64px;
}

.notif-line.short {
    width: 40px;
    height: 6px;
}

.about-section {
    background: var(--soft-coral-bg);
    transition: background-color 0.3s ease;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.about-code-block {
    position: relative;
    order: 2;
}

@media (min-width: 768px) {
    .about-code-block {
        order: 1;
    }
}

.code-glow {
    position: absolute;
    inset: -16px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0.15;
    filter: blur(16px);
    border-radius: 24px;
}

.code-editor {
    position: relative;
    background: #111827;
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    border: 1px solid #374151;
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.code-editor:hover {
    transform: rotate(0deg);
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1F2937;
    border-bottom: 1px solid #374151;
}

.editor-dots {
    display: flex;
    gap: 8px;
}

.editor-filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #9CA3AF;
}

.editor-body {
    padding: 24px;
    overflow-x: auto;
}

.code-pre {
    margin: 0;
    white-space: pre;
}

.code-pre code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #D1D5DB;
}

.about-content {
    order: 1;
}

@media (min-width: 768px) {
    .about-content {
        order: 2;
    }
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-heading);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.section-title.centered {
    text-align: center;
}

.about-text {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    padding: 20px;
    background: var(--stat-card-bg);
    border-radius: 5px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-number.secondary {
    color: var(--secondary);
}

.stat-number.primary {
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 8px;
}

.section-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
}

.skills-scroll-wrapper {
    position: relative;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.skills-scroll-wrapper::before,
.skills-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skills-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body) 0%, var(--bg-body) 20%, transparent 100%);
}

.skills-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body) 0%, var(--bg-body) 20%, transparent 100%);
}

.skills-scroll-wrapper.can-scroll-left::before {
    opacity: 1;
}

.skills-scroll-wrapper.can-scroll-right::after {
    opacity: 1;
}

.skills-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 16px 4px 24px;
    margin: -16px -4px -24px;
}

.skills-grid::-webkit-scrollbar {
    display: none;
}

.skills-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.skill-card {
    min-width: 260px;
    max-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: var(--shadow-medium);
    z-index: 2;
    position: relative;
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-icon.orange {
    background: var(--icon-orange-bg);
    color: var(--icon-orange-color);
}

.skill-icon.blue {
    background: var(--icon-blue-bg);
    color: var(--icon-blue-color);
}

.skill-icon.cyan {
    background: var(--icon-cyan-bg);
    color: var(--icon-cyan-color);
}

.skill-icon.yellow {
    background: var(--icon-yellow-bg);
    color: var(--icon-yellow-color);
}

.skill-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-heading);
}

.skill-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.projects-section {
    background: var(--bg-surface-alt);
    transition: background-color 0.3s ease;
}

.projects-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .projects-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

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

@media (min-width: 768px) {
    .projects-header-text {
        text-align: left;
    }
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.github-link:hover {
    color: var(--primary-hover);
}

.projects-scroll-wrapper {
    position: relative;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.projects-scroll-wrapper::before,
.projects-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projects-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface-alt) 0%, var(--bg-surface-alt) 20%, transparent 100%);
}

.projects-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface-alt) 0%, var(--bg-surface-alt) 20%, transparent 100%);
}

.projects-scroll-wrapper.can-scroll-left::before {
    opacity: 1;
}

.projects-scroll-wrapper.can-scroll-right::after {
    opacity: 1;
}

.projects-grid {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 16px 4px 24px;
    margin: -16px -4px -24px;
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

.projects-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-card {
    min-width: 320px;
    max-width: 380px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--bg-surface);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .project-card {
        min-width: 340px;
    }
}

.project-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-heavy);
    z-index: 2;
    position: relative;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-info {
    padding: 24px;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.project-tag {
    padding: 4px 10px;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    border-radius: 6px;
}

.project-name {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-heading);
    letter-spacing: 1.5px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.project-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.project-icon-main {
    font-size: 56px !important;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.project-card:hover .project-icon-main {
    transform: scale(1.15) translateY(-4px);
}

.project-icon-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
    transition: color 0.3s ease;
}

.project-card:hover .project-icon-label {
    color: rgba(255, 255, 255, 0.9);
}

.project-icon-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    transition: opacity 0.5s ease;
}

.project-card:hover .project-icon-bg-pattern {
    opacity: 0.15;
}

.gradient-purple {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 50%, #6D28D9 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #1E293B 0%, #334155 50%, #0F172A 100%);
}

.gradient-coral {
    background: linear-gradient(135deg, #FF6B5B 0%, #FBBF24 50%, #e85a4a 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #2563EB 100%);
}

.gradient-cyan {
    background: linear-gradient(135deg, #06B6D4 0%, #22D3EE 50%, #0891B2 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #10B981 0%, #34D399 50%, #059669 100%);
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.project-card:hover .project-icon-wrapper {
    filter: brightness(1.08);
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .back-to-top {
        bottom: 32px;
    }
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
}

.back-to-top .material-symbols-outlined {
    font-size: 22px;
}

input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
}

a,
button,
[role="button"],
.btn-primary,
.btn-hire,
.theme-toggle,
.mobile-nav-link,
.nav-link-text,
.nav-link-icon,
.project-link,
.github-link,
.back-to-top,
.hero-socials a {
    cursor: pointer;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (max-width: 767px) {
    html {
        scroll-snap-type: y proximity;
    }
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100%;
}

body {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.section {
    height: 100vh;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767px) {
    .stats-grid {
        display: none;
    }
}


@media (max-width: 767px) {
    
    :root {
        --nav-height: 60px;
        --mobile-nav-height: 52px;
    }

    .nav-container {
        height: 60px;
        padding: 0 12px;
    }

    .nav-logo .material-symbols-outlined {
        font-size: 22px;
    }

    .logo-text {
        font-size: 18px;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
    }

    .theme-toggle .material-symbols-outlined {
        font-size: 18px;
    }

    .mobile-nav {
        padding: 4px 6px 8px;
    }

    .mobile-nav-link .material-symbols-outlined {
        font-size: 18px;
    }

    .mobile-nav-link span:last-child {
        font-size: 8px;
    }

    .hero-container {
        gap: 24px;
    }

    .hero-content {
        gap: 20px;
    }

    .status-badge {
        padding: 4px 10px;
        font-size: 9px;
    }

    .status-dot {
        width: 5px;
        height: 5px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.1;
    }

    .hero-underline {
        height: 8px;
        bottom: 1px;
    }

    .hero-subtitle-wrapper {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-top: 8px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.55;
    }

    .hero-actions {
        gap: 12px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-primary .material-symbols-outlined {
        font-size: 16px;
    }

    .hero-socials {
        gap: 16px;
        padding-top: 8px;
    }

    .hero-socials svg {
        width: 18px;
        height: 18px;
    }

    .section {
        min-height: calc(100vh - 60px - 52px);
        margin-top: 60px;
        padding-bottom: 52px;
    }

    .section-container {
        padding: 0 12px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-tag {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .section-dot {
        width: 5px;
        height: 5px;
        margin-right: 5px;
    }

    .section-title {
        font-size: clamp(1.35rem, 5vw, 1.65rem);
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .about-code-block {
        display: none;
    }

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

    .about-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .stats-grid {
        gap: 10px;
        margin-top: 20px;
        display: grid;
    }

    .stat-card {
        padding: 12px;
    }

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

    .stat-label {
        font-size: 11px;
    }

    .skills-scroll-wrapper {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .skills-scroll-wrapper::before,
    .skills-scroll-wrapper::after {
        width: 50px;
    }

    .skills-grid {
        gap: 12px;
        padding: 10px 4px 16px;
        margin: -10px -4px -16px;
    }

    .skill-card {
        min-width: 200px;
        max-width: 240px;
        padding: 16px;
    }

    .skill-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }

    .skill-icon .material-symbols-outlined {
        font-size: 20px;
    }

    .skill-name {
        font-size: 14px;
    }

    .skill-desc {
        font-size: 10px;
    }

    .projects-header {
        gap: 10px;
        margin-bottom: 24px;
    }

    .github-link {
        font-size: 11px;
    }

    .github-link .material-symbols-outlined {
        font-size: 14px;
    }

    .projects-scroll-wrapper {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .projects-scroll-wrapper::before,
    .projects-scroll-wrapper::after {
        width: 50px;
    }

    .projects-grid {
        gap: 16px;
        padding: 10px 4px 16px;
        margin: -10px -4px -16px;
    }

    .project-card {
        min-width: 260px;
        max-width: 300px;
    }

    .project-image {
        height: 160px;
    }

    .project-info {
        padding: 16px;
    }

    .project-tags {
        gap: 5px;
        margin-bottom: 8px;
    }

    .project-tag {
        padding: 3px 7px;
        font-size: 9px;
    }

    .project-name {
        font-size: 16px;
        margin-bottom: 5px;
        letter-spacing: 0.5px;
    }

    .project-desc {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .project-link {
        font-size: 12px;
    }

    .project-link .material-symbols-outlined {
        font-size: 14px;
    }

    .project-icon-main {
        font-size: 44px !important;
    }

    .project-icon-label {
        font-size: 9px;
    }

    .code-card-inner {
        padding: 12px;
    }

    .code-card-dots {
        gap: 5px;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }

    .dot.red,
    .dot.yellow,
    .dot.green {
        width: 9px;
        height: 9px;
    }

    .code-content {
        padding: 16px;
        font-size: 11px;
        line-height: 1.6;
    }

    .code-notification {
        bottom: 10px;
        right: 10px;
        padding: 8px;
        gap: 8px;
    }

    .notif-icon {
        width: 24px;
        height: 24px;
    }

    .notif-icon .material-symbols-outlined {
        font-size: 14px;
    }

    .notif-line {
        height: 5px;
    }

    .notif-line.long {
        width: 48px;
    }

    .notif-line.short {
        width: 30px;
        height: 4px;
    }

    .back-to-top {
        bottom: 72px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .back-to-top .material-symbols-outlined {
        font-size: 18px;
    }

    .shape-blob {
        width: 260px;
        height: 260px;
        filter: blur(50px);
        opacity: 0.5;
    }

    .blob-ring {
        top: 50px;
        left: 15px;
        width: 70px;
        height: 70px;
    }

    body {
        font-size: 14px;
    }

    .material-symbols-outlined {
        font-size: 20px;
    }

    .icon-sm {
        font-size: 14px !important;
    }

    .icon-xs {
        font-size: 12px !important;
    }
}

@media (max-width: 374px) {
    .hero-title {
        font-size: 1.65rem;
    }

    .skill-card {
        min-width: 180px;
    }

    .project-card {
        min-width: 240px;
    }

    .section-container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 10px;
    }
}