/* ===== CSS Variables ===== */
:root {
    /* Dark Theme (Default) */
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-color: #3b82f6;
    --card-bg: #111111;
    --border-color: #333333;
    --hover-bg: #1a1a1a;

    --transition-fast: 300ms ease;
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #6b7280;
    --accent-color: #2563eb;
    --card-bg: #f9fafb;
    --border-color: #e5e7eb;
    --hover-bg: #f3f4f6;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

html {
    scroll-behavior: smooth;
}

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

::selection {
    background: var(--accent-color);
    color: #fff;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.sun-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: block;
}

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

/* ===== Loading Experience ===== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

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

.loader-username {
    font-family: monospace;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    transition: opacity 0.4s ease, letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.1s linear;
}

.loader-username::after {
    content: '|';
    animation: blink 0.8s step-start infinite;
}

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

.loader-titles {
    transition: opacity 0.4s ease, transform 0.1s linear;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.title-main {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.title-sub-container {
    height: 2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}

.title-sub {
    position: absolute;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 500;
}

.title-sub.active {
    opacity: 1;
    transform: translateY(0);
}

.hidden-content {
    opacity: 0;
    pointer-events: none;
}

#main-content {
    position: relative;
    z-index: 1;
}

.show-content {
    animation: fadeInContent 1s ease forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ===== Layout & Utilities ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== Background Canvas ===== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

/* ===== Header ===== */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.center-logo {
    font-family: monospace;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
}

/* ===== Floating Menu ===== */
.floating-menu-wrapper {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.floating-menu-wrapper.hidden-menu {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.floating-menu-btn {
    background-color: #0047AB;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 71, 171, 0.4);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.floating-menu-btn:hover {
    transform: scale(1.05);
}

.floating-menu-panel {
    position: absolute;
    bottom: 0;
    background-color: #222;
    color: #fff;
    border-radius: 24px;
    width: 300px;
    padding: 2.5rem 2rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom center;
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.floating-menu-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

.menu-link {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    transition: color var(--transition-fast);
}

.menu-link:hover {
    color: #3b82f6;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
}

#close-menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

#close-menu-btn:hover {
    transform: rotate(90deg);
}

/* ===== Social Link Bubble Interactions ===== */
.github-link,
.linkedin-link,
.email-link {
    position: relative;
    cursor: pointer;
}

.bubble {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.9);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
}

.github-link:hover .bubble,
.linkedin-link:hover .bubble,
.email-link:hover .bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.github-bubble {
    background: rgba(22, 27, 34, 0.95);
    color: #f0f6fc;
    border: 1px solid rgba(240, 246, 252, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.github-bubble::after {
    border-top-color: rgba(22, 27, 34, 0.95);
}

[data-theme='light'] .github-bubble {
    background: rgba(36, 41, 47, 0.95);
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme='light'] .github-bubble::after {
    border-top-color: rgba(36, 41, 47, 0.95);
}

.linkedin-bubble {
    background: rgba(10, 102, 194, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.35);
}

.linkedin-bubble::after {
    border-top-color: rgba(10, 102, 194, 0.95);
}

[data-theme='light'] .linkedin-bubble {
    background: rgba(0, 119, 181, 0.95);
    color: #ffffff;
    border: 1px solid rgba(0, 119, 181, 0.2);
    box-shadow: 0 8px 24px rgba(0, 119, 181, 0.2);
}

[data-theme='light'] .linkedin-bubble::after {
    border-top-color: rgba(0, 119, 181, 0.95);
}

.email-bubble {
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.email-bubble::after {
    border-top-color: rgba(30, 30, 30, 0.95);
}

[data-theme='light'] .email-bubble {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .email-bubble::after {
    border-top-color: rgba(255, 255, 255, 0.95);
}

.email-bubble.copied {
    background: rgba(16, 185, 129, 0.95) !important;
    color: #fff !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3) !important;
}

.email-bubble.copied::after {
    border-top-color: rgba(16, 185, 129, 0.95) !important;
}

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

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-heading {
    font-size: clamp(2.5rem, 5.2vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-bottom: 0.5rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tech-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    max-width: 900px;
}

.hero-portrait {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.portrait-frame {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0.02) 55%, transparent 100%);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 20px 70px -20px rgba(59, 130, 246, 0.35), inset 0 0 30px rgba(255, 255, 255, 0.04);
    animation: portrait-float 6s ease-in-out infinite;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portrait-frame:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4), 0 24px 80px -20px rgba(59, 130, 246, 0.45), inset 0 0 40px rgba(255, 255, 255, 0.06);
}

[data-theme='light'] .portrait-frame {
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.03) 55%, transparent 100%);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12), 0 20px 70px -20px rgba(37, 99, 235, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.03);
}

[data-theme='light'] .portrait-frame:hover {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.28), 0 24px 80px -20px rgba(37, 99, 235, 0.3), inset 0 0 40px rgba(0, 0, 0, 0.05);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    padding: 0;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
    transition: filter 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.portrait-frame:hover .portrait-img {
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.45));
    transform: scale(1.04);
}

.portrait-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.16) 100%);
    pointer-events: none;
    z-index: 2;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portrait-frame:hover::after {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.2) 100%);
}

[data-theme='light'] .portrait-frame::after {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.4) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.06) 100%);
}

[data-theme='light'] .portrait-frame:hover::after {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.1) 100%);
}

.portrait-frame::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: portrait-shine 3s infinite;
    pointer-events: none;
    z-index: 3;
}

[data-theme='light'] .portrait-frame::before {
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
}

@keyframes portrait-float {

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

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

@keyframes portrait-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ===== About Section ===== */
.about-container {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 4rem;
    align-items: start;
}

.journey-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
    align-items: stretch;
}

.journey-card {
    position: relative;
    cursor: pointer;
    perspective: 1000px;
}

.journey-card .card-content {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

[data-theme='light'] .journey-card .card-content {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 71, 171, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.journey-card .card-content::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.6s ease;
    pointer-events: none;
}

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

.journey-card .card-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.journey-card .card-duration {
    font-size: 1.075rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.journey-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.journey-card .card-icon-wrapper {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 10;
}

.journey-card .card-icon {
    width: 100%;
    height: 100%;
    color: rgba(59, 130, 246, 0.25);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    animation: float-icon 3s ease-in-out infinite;
}

.journey-card:hover .card-icon-wrapper {
    right: -25px;
    opacity: 1;
}

.journey-card:hover .card-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

.journey-card:hover .card-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 32px -8px rgba(255, 255, 255, 0.4), 0 0 40px -10px rgba(255, 255, 255, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

[data-theme='light'] .journey-card .card-content {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.01));
    border-color: rgba(37, 99, 235, 0.15);
}

[data-theme='light'] .journey-card:hover .card-content {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.05));
    border-color: rgba(0, 71, 171, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 71, 171, 0.25), 0 8px 32px -8px rgba(0, 71, 171, 0.35), 0 0 40px -10px rgba(0, 71, 171, 0.25), inset 0 0 30px rgba(0, 71, 171, 0.08);
}

[data-theme='light'] .journey-card .card-icon {
    color: rgba(0, 71, 171, 0.2);
    filter: drop-shadow(0 0 15px rgba(0, 71, 171, 0.1));
}

[data-theme='light'] .journey-card:hover .card-icon {
    color: #0047AB;
    filter: drop-shadow(0 0 20px rgba(0, 71, 171, 0.7)) drop-shadow(0 0 40px rgba(0, 71, 171, 0.4));
}

@keyframes float-icon {

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

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

.about-text {
    font-size: 1.75rem;
    line-height: 1.5;
    font-weight: 400;
}

.about-intro-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-text p {
    margin-bottom: 2rem;
}

/* ===== Skills Section ===== */
.skills-container {
    position: relative;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.skills-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 2rem;
    z-index: 2;
}

.skills-container::before {
    content: '';
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 500ms ease;
    z-index: 0;
    pointer-events: none;
}

.skills-container:hover::before {
    opacity: 1;
}

[data-theme='light'] .skills-container::before {
    background: radial-gradient(circle at center, rgba(0, 71, 171, 0.08) 0%, transparent 60%);
}

.skills-rows {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.skills-row.row-1 {
    justify-content: center;
}

.skills-row.row-2 {
    justify-content: center;
    padding: 0 3rem;
    gap: 2rem;
}

.skills-row.row-3 {
    justify-content: center;
    gap: 2.5rem;
}

.skill-card {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 1.2rem;
    min-width: 140px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transform-origin: center;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 300ms ease;
    position: relative;
    cursor: default;
}

.skill-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: grayscale(100%) contrast(90%);
    transition: filter 350ms ease, transform 350ms ease, opacity 350ms ease;
}

.skill-card svg {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;

    display: block;
    overflow: visible;

    fill: currentColor;
    color: var(--text-secondary);
    opacity: 0.85;

    transition:
        color 350ms ease,
        transform 350ms ease,
        opacity 350ms ease;
}

.skill-card:hover svg {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.08);
}

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

.skill-card:hover,
.skill-card:focus {
    transform: translateY(-3px) scale(1.03);
    z-index: 20;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-card:hover .skill-logo,
.skill-card:focus .skill-logo {
    filter: none;
    transform: scale(1.08);
    opacity: 1;
}

[data-theme='light'] .skill-card:hover,
[data-theme='light'] .skill-card:focus {
    background: rgba(0, 71, 171, 0.05);
    border-color: rgba(0, 71, 171, 0.15);
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.1);
}

@media (max-width: 900px) {
    .skill-card {
        min-width: 120px;
        padding: 0.5rem 0.8rem;
    }

    .skill-logo {
        width: 26px;
        height: 26px;
    }
}

/* ===== Projects Section ===== */
.projects-section {
    background-color: var(--bg-color);
    padding: 8rem 0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.projects-header .section-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.glow-card {
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: background-color 300ms ease, transform 300ms ease;
    border: none;
}

.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.glow-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(180, 180, 180, 0.5), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
    z-index: 2;
}

.glow-card-bg {
    position: absolute;
    inset: -10%;
    background-image: linear-gradient(rgba(180, 180, 180, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(180, 180, 180, 0.15) 1px, transparent 1px), radial-gradient(700px circle at var(--mouse-x) var(--mouse-y), rgba(180, 180, 180, 0.25), transparent 38%);
    background-size: 40px 40px, 40px 40px, auto;
    background-position: center center;
    opacity: 0;
    transition: opacity 300ms ease, transform 300ms ease;
    pointer-events: none;
    z-index: 0;
    transform: scale(1);
}

.glow-container:hover .glow-card::after {
    opacity: 1;
}

.glow-card:hover .glow-card-bg {
    opacity: 1;
    transform: scale(1.02);
}

.glow-card:hover {
    background-color: rgba(30, 30, 30, 0.9);
}

[data-theme='light'] .glow-card {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .glow-card:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

[data-theme='light'] .glow-card::before {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme='light'] .glow-card::after {
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(0, 30, 150, 0.35), transparent 40%);
}

[data-theme='light'] .glow-card-bg {
    background-image: linear-gradient(rgba(0, 40, 180, 0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 40, 180, 0.25) 1px, transparent 1px), radial-gradient(700px circle at var(--mouse-x) var(--mouse-y), rgba(0, 40, 180, 0.35), transparent 38%);
}

.glow-card>* {
    position: relative;
    z-index: 3;
}

.project-image-container {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.project-info {
    padding: 0 0.5rem 0.5rem;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.project-desc {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .projects-header .section-title {
        font-size: 3rem;
    }
}

/* ===== Process Section ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-num {
    font-family: monospace;
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.process-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== Timeline Section ===== */
.experience-section {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--accent-color) 10%, var(--accent-color) 90%, transparent 100%);
    transform: translateX(-50%);
    opacity: 0.4;
}

.timeline-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    border-radius: 2px;
    animation: timeline-glow-travel 4s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes timeline-glow-travel {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 50%;
    padding: 0 3rem 3rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item[data-timeline="0"] {
    transition-delay: 0ms;
}

.timeline-item[data-timeline="1"] {
    transition-delay: 150ms;
}

.timeline-item[data-timeline="2"] {
    transition-delay: 300ms;
}

.timeline-item[data-timeline="3"] {
    transition-delay: 450ms;
}

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

/* Alternating layout */
.timeline-item:nth-child(odd) {
    margin-left: 50%;
    padding-left: 3rem;
    padding-right: 0;
}

.timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 3rem;
    padding-left: 0;
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-node {
    position: absolute;
    top: 6px;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-item:nth-child(odd) .timeline-node {
    left: -9px;
}

.timeline-item:nth-child(even) .timeline-node {
    right: -9px;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--accent-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-dot::after {
    opacity: 1;
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.3);
    transform: scale(1.2);
}

.timeline-item:last-child .timeline-dot {
    animation: timeline-pulse 2.5s ease-in-out infinite;
}

@keyframes timeline-pulse {

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

    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.25), 0 0 24px rgba(59, 130, 246, 0.15);
    }
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.timeline-item:nth-child(odd) .timeline-card::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 16px;
    height: 16px;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-card::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 12px;
    width: 16px;
    height: 16px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.timeline-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.timeline-item:nth-child(odd) .timeline-card:hover::before {
    border-left-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.timeline-item:nth-child(even) .timeline-card:hover::before {
    border-right-color: var(--accent-color);
    border-top-color: var(--accent-color);
}

.timeline-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Light Mode Timeline */
[data-theme='light'] .timeline-line {
    opacity: 0.3;
}

[data-theme='light'] .timeline-dot {
    background: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

[data-theme='light'] .timeline-item:hover .timeline-dot {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2), 0 0 16px rgba(37, 99, 235, 0.15);
}

[data-theme='light'] .timeline-item:last-child .timeline-dot {
    animation: timeline-pulse-light 2.5s ease-in-out infinite;
}

@keyframes timeline-pulse-light {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2), 0 0 20px rgba(37, 99, 235, 0.1);
    }
}

[data-theme='light'] .timeline-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme='light'] .timeline-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.06);
}

[data-theme='light'] .timeline-item:nth-child(odd) .timeline-card::before {
    background: #ffffff;
    border-left-color: #e5e7eb;
    border-bottom-color: #e5e7eb;
}

[data-theme='light'] .timeline-item:nth-child(even) .timeline-card::before {
    background: #ffffff;
    border-right-color: #e5e7eb;
    border-top-color: #e5e7eb;
}

[data-theme='light'] .timeline-item:nth-child(odd) .timeline-card:hover::before {
    border-left-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

[data-theme='light'] .timeline-item:nth-child(even) .timeline-card:hover::before {
    border-right-color: var(--accent-color);
    border-top-color: var(--accent-color);
}

[data-theme='light'] .timeline-year {
    color: var(--accent-color);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

/* ===== Contact Section ===== */
.contact-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.contact-heading {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-link {
    font-size: 1.125rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

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

.contact-link.github-link:hover,
.contact-link.linkedin-link:hover,
.contact-link.email-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme='light'] .contact-link.github-link:hover,
[data-theme='light'] .contact-link.linkedin-link:hover,
[data-theme='light'] .contact-link.email-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.location {
    cursor: default;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .contact-heading {
        font-size: 2.5rem;
    }

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

/* ===== Footer ===== */
.footer {

    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-title {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-tags {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    position: relative;
    background: none !important;
}

.footer-links a:hover {
    color: var(--text-primary);
    background: none !important;
}

.footer-bottom {
    width: 100%;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-heading {
        font-size: 3.5rem;
    }

    .hero-container {
        gap: 2rem;
    }

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

    .contact-heading {
        font-size: 4rem;
    }
}

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

    .hero-portrait {
        display: none;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .contact-heading {
        font-size: 2.5rem;
    }

    .title-main {
        font-size: 2rem;
    }

    /* Timeline mobile */
    .timeline {
        margin-top: 2rem;
        padding-left: 2rem;
    }

    .timeline-line {
        left: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 2.5rem;
        padding-right: 0;
        flex-direction: row;
        text-align: left;
    }

    .timeline-node,
    .timeline-item:nth-child(odd) .timeline-node,
    .timeline-item:nth-child(even) .timeline-node {
        left: -2.5rem;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-card::before,
    .timeline-item:nth-child(even) .timeline-card::before {
        left: -8px;
        right: auto;
        border: none;
        border-left: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        transform: rotate(45deg);
    }

    .timeline-card {
        padding: 1.25rem 1.5rem;
    }
}