/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-dark-bg: #0a0a0a;
    --color-dark-gray: #1a1a1a;
    --color-gray: #2a2a2a;
    --color-light-gray: #3a3a3a;
    --color-teal-dark: #0d4d4d;
    --color-teal: #1a6b6b;
    --color-teal-light: #2d8a8a;
    --color-teal-accent: #40a0a0;
    --color-white: #ffffff;
    --color-gray-text: #cccccc;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 300;
    background-color: var(--color-black);
    color: var(--color-gray-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 200;
    color: var(--color-white);
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 100;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-teal);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    margin-bottom: 1.5rem;
    color: var(--color-gray-text);
}

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

a:hover {
    color: var(--color-teal-accent);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
    transform: scale(1.05) rotate(2deg);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

/* Hide mobile menu decorative elements on desktop */
.nav-menu .menu-backdrop,
.nav-menu .menu-backdrop-shape,
.nav-menu .menu-particles {
    display: none;
}

/* Reset menu item styles for desktop */
.nav-menu > .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 1;
    transform: none;
}

/* Desktop nav links */
.nav-link {
    color: var(--color-gray-text);
    font-size: 0.95rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

/* Hide link numbers on desktop */
.nav-link .link-number {
    display: none;
}

/* Link text wrapper - just display as normal on desktop */
.nav-link .link-text {
    display: inline;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-teal-light);
    transition: width 0.3s ease;
}

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

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

.nav-resume {
    border: 1px solid var(--color-teal);
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    color: var(--color-teal-light);
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    vertical-align: middle;
}

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

.nav-resume:hover {
    background-color: var(--color-teal);
    color: var(--color-white);
    border-color: var(--color-teal-light);
}

/* Hide resume icon on desktop (show on mobile) */
.nav-resume .resume-icon {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    position: relative;
    z-index: 1001;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-toggle span:nth-child(1) {
    top: 10px;
}

.nav-toggle span:nth-child(2) {
    top: 50%;
    margin-top: -1px;
}

.nav-toggle span:nth-child(3) {
    bottom: 10px;
}

.nav-toggle.active span {
    background-color: var(--color-teal-light);
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.title-decoration {
    width: 40px;
    height: 1px;
    background-color: var(--color-teal);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.section-title:hover .title-decoration {
    width: 80px;
    opacity: 0.8;
    background-color: var(--color-teal-light);
}

.section-decorative-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid var(--color-gray);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.section:hover .section-decorative-corner {
    opacity: 0.4;
    border-color: var(--color-teal-dark);
}

.section-decorative-corner.top-left {
    top: 2rem;
    left: 2rem;
    border-right: none;
    border-bottom: none;
    animation: cornerPulse 3s ease-in-out infinite;
}

.section-decorative-corner.top-right {
    top: 2rem;
    right: 2rem;
    border-left: none;
    border-bottom: none;
    animation: cornerPulse 3s ease-in-out infinite 1.5s;
}

.section-decorative-corner.bottom-left {
    bottom: 2rem;
    left: 2rem;
    border-right: none;
    border-top: none;
    animation: cornerPulse 3s ease-in-out infinite 1s;
}

.section-decorative-corner.bottom-right {
    bottom: 2rem;
    right: 2rem;
    border-left: none;
    border-top: none;
    animation: cornerPulse 3s ease-in-out infinite 0.5s;
}

@keyframes cornerPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--color-black);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/mountain_hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.4) contrast(0.7) grayscale(0.4);
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-decorative {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decorative-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--color-teal-dark);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.decorative-dot:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.decorative-dot:nth-child(2) {
    top: 40%;
    right: 20%;
    animation-delay: 1.5s;
}

.decorative-dot:nth-child(3) {
    bottom: 30%;
    left: 25%;
    animation-delay: 3s;
}

.decorative-dot:nth-child(4) {
    top: 60%;
    right: 15%;
    animation-delay: 4.5s;
}

.decorative-dot:nth-child(5) {
    bottom: 15%;
    right: 30%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.title-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-teal);
    opacity: 0.5;
    animation: expandLine 1.5s ease-out;
}

@keyframes expandLine {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 60px;
        opacity: 0.5;
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--color-teal-light);
    margin-bottom: 1.5rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-description {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    color: var(--color-gray-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 2px solid var(--color-teal);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-teal);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-white);
    border-color: var(--color-teal-light);
}

.cta-button:hover::before {
    left: 0;
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-gray-text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background-color: var(--color-teal);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* About Section */
.about-section {
    background-color: var(--color-dark-bg);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--color-teal-dark);
    opacity: 0.3;
    z-index: -1;
    animation: rotateBorder 20s linear infinite;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.about-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    border: 2px solid var(--color-gray);
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s ease, border-color 0.3s ease;
}

.about-photo:hover {
    filter: grayscale(80%) contrast(1.2);
    border-color: var(--color-teal);
}

.about-caption {
    margin-top: 1rem;
    text-align: center;
    color: var(--color-gray-text);
    font-size: 0.875rem;
    font-weight: 200;
    font-style: italic;
    letter-spacing: 0.05em;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: var(--color-dark-gray);
    border: 2px solid var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-text);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}


.about-text {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    position: relative;
}

.about-text p {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-section.in-view .about-text p {
    opacity: 1;
    transform: translateY(0);
}

.about-section.in-view .about-text p:nth-child(1) {
    transition-delay: 0.1s;
}

.about-section.in-view .about-text p:nth-child(2) {
    transition-delay: 0.2s;
}

.about-section.in-view .about-text p:nth-child(3) {
    transition-delay: 0.3s;
}

.about-intro {
    font-size: clamp(1.125rem, 1.4vw, 1.25rem);
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Experience Section */
.experience-section {
    background-color: var(--color-black);
    position: relative;
}

.timeline-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-gray);
    z-index: 1;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-teal);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    animation: timelineProgress 2s ease-out forwards;
}

@keyframes timelineProgress {
    to {
        opacity: 0.3;
        transform: scaleY(1);
    }
}

.timeline-items {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-node {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    min-height: 150px;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-node.visible {
    opacity: 1;
}

.timeline-node:last-child {
    padding-bottom: 0;
}

.node-year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--color-gray-text);
    transition: all 0.3s ease;
    text-align: right;
    user-select: none;
    grid-column: 1;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.timeline-node:hover .node-year,
.timeline-node.active .node-year {
    color: var(--color-teal-light);
}

.current-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 200;
    color: var(--color-teal-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-teal);
    background-color: transparent;
    transition: all 0.3s ease;
}

.current-role .node-dot {
    background-color: var(--color-teal);
    box-shadow: 0 0 20px var(--color-teal), 0 0 40px rgba(26, 107, 107, 0.4);
}

.current-role .node-connector {
    background-color: var(--color-teal);
    box-shadow: 0 0 8px var(--color-teal);
}

.current-role .node-card {
    border-color: var(--color-teal);
}

.node-card {
    grid-column: 2;
    background-color: var(--color-dark-gray);
    border: 1px solid var(--color-gray);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: transform, border-color, box-shadow;
    overflow: hidden;
}

.node-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background-color: var(--color-teal-dark);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s ease;
    transform: rotate(45deg);
    z-index: -1;
}

.timeline-node:hover .node-card::after,
.timeline-node.active .node-card::after {
    opacity: 0.05;
    transform: rotate(45deg) scale(1.5);
}

.timeline-node:hover .node-card,
.timeline-node.active .node-card {
    border-color: var(--color-teal);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(26, 107, 107, 0.2);
}

.node-connector {
    position: absolute;
    left: 100px;
    top: 50%;
    width: 40px;
    height: 2px;
    background-color: var(--color-gray);
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-node:hover .node-connector,
.timeline-node.active .node-connector {
    background-color: var(--color-teal);
    width: 60px;
    box-shadow: 0 0 10px var(--color-teal);
}

.node-dot {
    position: absolute;
    left: 100px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-gray);
    border: 3px solid var(--color-black);
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.timeline-node:hover .node-dot,
.timeline-node.active .node-dot {
    width: 24px;
    height: 24px;
    background-color: var(--color-teal);
    box-shadow: 0 0 25px var(--color-teal), 0 0 50px rgba(26, 107, 107, 0.3);
    transform: translate(-50%, -50%) scale(1.2);
}

.node-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.timeline-node:hover .node-card h3,
.timeline-node.active .node-card h3 {
    color: var(--color-teal-light);
}

.node-company {
    color: var(--color-gray-text);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.node-description {
    color: var(--color-gray-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Skills Section */
.skills-section {
    background-color: var(--color-dark-bg);
    position: relative;
    overflow: hidden;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.skill-category {
    position: relative;
    padding: 2rem;
    background-color: var(--color-black);
    border: 1px solid var(--color-gray);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.skill-category.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background-color: var(--color-teal);
    transition: height 0.3s ease;
}

.skill-category:hover::before {
    height: 100%;
}

.skill-category:hover {
    border-color: var(--color-teal-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 107, 107, 0.2);
}

.skill-category h3 {
    color: var(--color-teal-light);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    position: relative;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray);
    color: var(--color-gray-text);
    font-size: 1.125rem;
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.skill-list li:nth-child(1) { animation-delay: 0.1s; }
.skill-list li:nth-child(2) { animation-delay: 0.2s; }
.skill-list li:nth-child(3) { animation-delay: 0.3s; }
.skill-list li:nth-child(4) { animation-delay: 0.4s; }
.skill-list li:nth-child(5) { animation-delay: 0.5s; }
.skill-list li:nth-child(6) { animation-delay: 0.6s; }
.skill-list li:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-teal);
    transition: transform 0.3s ease;
}

.skill-list li:hover {
    color: var(--color-white);
    padding-left: 2rem;
}

.skill-list li:hover::before {
    transform: translateX(5px);
}

/* Projects Section */
.projects-section {
    background-color: var(--color-black);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    background-color: var(--color-dark-gray);
    border: 1px solid var(--color-gray);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 107, 107, 0.2);
    border-color: var(--color-teal);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-image .image-placeholder {
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--color-white);
}

.project-content p {
    margin-bottom: 1.5rem;
    color: var(--color-gray-text);
}

.project-link {
    display: inline-block;
    color: var(--color-teal-light);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    position: relative;
}

.project-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.project-link:hover::after {
    transform: translateX(5px);
}

/* Hobbies Section */
.hobbies-section {
    background-color: var(--color-dark-bg);
}

.hobbies-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: clamp(1.125rem, 1.4vw, 1.25rem);
    color: var(--color-gray-text);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

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

.hobby-image {
    margin-bottom: 2rem;
}

.hobby-image .image-placeholder {
    aspect-ratio: 1/1;
    width: 100%;
}

.hobby-item h3 {
    margin-bottom: 1rem;
    color: var(--color-white);
}

.hobby-item p {
    color: var(--color-gray-text);
}

/* Contact Section */
.contact-section {
    background-color: var(--color-black);
    position: relative;
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

/* Contact Section Visual Background */
.contact-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.contact-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(26, 107, 107, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 107, 107, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0;
    animation: fadeInGrid 2s ease-out 0.5s forwards;
}

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

.contact-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-shape {
    position: absolute;
    border: 1px solid rgba(26, 107, 107, 0.15);
    opacity: 0;
    animation: floatShape 20s infinite ease-in-out;
}

.floating-shape.shape-1 {
    width: 200px;
    height: 200px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-shape.shape-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: 60%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 20s;
    border-color: rgba(26, 107, 107, 0.2);
}

.floating-shape.shape-3 {
    width: 100px;
    height: 100px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 30%;
    right: 20%;
    animation-delay: 6s;
    animation-duration: 18s;
    border-color: rgba(26, 107, 107, 0.1);
}

.floating-shape.shape-4 {
    width: 120px;
    height: 120px;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    bottom: 20%;
    left: 15%;
    animation-delay: 9s;
    animation-duration: 22s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg) scale(1.1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-20px, -80px) rotate(180deg) scale(0.9);
        opacity: 0.2;
    }
    75% {
        transform: translate(50px, -30px) rotate(270deg) scale(1.05);
        opacity: 0.35;
    }
}

.contact-radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(26, 107, 107, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Contact Layout - Horizontal, Non-Card Design */
.contact-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
    margin: 2rem 0;
    padding: 2rem 0;
    transform: translateY(30px);
    opacity: 0;
    animation: slideUpCard 1s ease-out 0.3s forwards;
}

@keyframes slideUpCard {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Contact Left - Profile */
.contact-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

.contact-profile {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-teal-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.contact-profile:hover {
    border-color: var(--color-teal);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(26, 107, 107, 0.4);
}

.contact-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.4s ease;
}

.contact-profile:hover .contact-profile-img {
    filter: grayscale(10%) contrast(1.15);
}

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

.contact-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-title {
    font-size: 0.875rem;
    font-weight: 200;
    color: var(--color-teal-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Contact Right - Items */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-item-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.contact-item-horizontal:hover {
    background: rgba(26, 107, 107, 0.08);
    border-color: rgba(26, 107, 107, 0.3);
    transform: translateX(4px);
    color: inherit;
    text-decoration: none;
}

.contact-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.contact-item-icon {
    color: var(--color-teal);
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-item-horizontal:hover .contact-item-icon {
    opacity: 1;
    color: var(--color-teal-light);
    transform: scale(1.1);
}

.contact-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.contact-item-label {
    font-size: 0.65rem;
    font-weight: 200;
    color: var(--color-gray-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-item-value {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-white);
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item-horizontal:hover .contact-item-value {
    color: var(--color-teal-light);
}

.contact-copy-button {
    background: rgba(26, 107, 107, 0.15);
    border: 1px solid rgba(26, 107, 107, 0.3);
    border-radius: 6px;
    color: var(--color-teal);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    opacity: 1;
}

.contact-copy-button:hover {
    background: rgba(26, 107, 107, 0.25);
    border-color: var(--color-teal);
    color: var(--color-teal-light);
    transform: scale(1.1);
}

.contact-copy-button:active {
    transform: scale(0.95);
}

.contact-external-icon {
    color: var(--color-gray-text);
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.contact-item-horizontal:hover .contact-external-icon {
    opacity: 1;
    color: var(--color-teal);
    transform: translateX(3px);
}

.social-item {
    cursor: pointer;
}

.action-item {
    background: rgba(26, 107, 107, 0.1);
    border: 1px solid rgba(26, 107, 107, 0.2);
    cursor: pointer;
}

.action-item:hover {
    background: rgba(26, 107, 107, 0.15);
    border-color: var(--color-teal);
}

.calendar-item {
    background: rgba(26, 107, 107, 0.06);
}

.calendar-item:hover {
    background: rgba(26, 107, 107, 0.12);
}

.github-stats-inline {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 0.5rem;
}

.stat-badge-inline {
    font-size: 0.65rem;
    color: var(--color-teal);
    font-weight: 300;
    padding: 0.2rem 0.5rem;
    background: rgba(26, 107, 107, 0.15);
    border: 1px solid rgba(26, 107, 107, 0.3);
    border-radius: 6px;
    white-space: nowrap;
}

#github-followers {
    display: none; /* Hidden by default, shown only when followers > 0 */
}

/* Compatibility Analysis Section */
.compatibility-section {
    background-color: var(--color-black);
    position: relative;
    overflow: hidden;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-gray-text);
    line-height: 1.8;
}

/* Compatibility Form */
.compatibility-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(26, 107, 107, 0.2);
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.875rem 0 0;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-gray-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.label-text {
    color: var(--color-white);
}

.required-asterisk {
    color: var(--color-teal);
}

.label-hint {
    font-size: 0.75rem;
    font-weight: 200;
    color: var(--color-gray-text);
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
    margin-left: auto;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    background: rgba(26, 107, 107, 0.1);
    box-shadow: 0 0 0 3px rgba(26, 107, 107, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-text);
    opacity: 0.5;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231a6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-gray-text);
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: var(--color-white);
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(26, 107, 107, 0.5);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--color-teal);
    border-color: var(--color-teal);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--color-teal);
}

.checkbox-text {
    user-select: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(26, 107, 107, 0.2);
}

.form-submit-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--color-teal);
    border: 1px solid var(--color-teal);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.form-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.form-submit-btn:hover {
    background: var(--color-teal-light);
    border-color: var(--color-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 107, 107, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.form-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.form-reset-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-gray-text);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-reset-btn:hover {
    border-color: var(--color-teal);
    color: var(--color-teal-light);
    background: rgba(26, 107, 107, 0.05);
}

.form-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(26, 107, 107, 0.05);
    border: 1px solid rgba(26, 107, 107, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-gray-text);
    line-height: 1.6;
}

.form-note svg {
    color: var(--color-teal);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    border: 2px dashed rgba(26, 107, 107, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--color-teal);
    background: rgba(26, 107, 107, 0.05);
}

.file-upload-label.dragover {
    border-color: var(--color-teal-light);
    background: rgba(26, 107, 107, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    color: var(--color-teal);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.file-upload-label:hover .upload-icon {
    opacity: 1;
    transform: translateY(-4px);
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-upload-main {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-white);
}

.file-upload-hint {
    font-size: 0.85rem;
    color: var(--color-gray-text);
    font-weight: 200;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(26, 107, 107, 0.1);
    border: 1px solid rgba(26, 107, 107, 0.3);
    border-radius: 8px;
    margin-top: 1rem;
}

.file-icon {
    color: var(--color-teal);
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-size: 0.95rem;
    color: var(--color-white);
    font-weight: 300;
    word-break: break-all;
}

.file-remove {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--color-gray-text);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.file-remove:hover {
    border-color: rgba(220, 53, 69, 0.5);
    color: rgba(220, 53, 69, 1);
    background: rgba(220, 53, 69, 0.1);
}

/* Toggle Section */
.form-toggle-section {
    margin: 2rem 0 1rem;
    text-align: center;
}

.form-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-gray-text);
    font-size: 0.875rem;
    font-weight: 300;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-toggle-btn:hover {
    border-color: var(--color-teal);
    color: var(--color-teal-light);
    background: rgba(26, 107, 107, 0.05);
}

.form-toggle-btn svg {
    transition: transform 0.3s ease;
}

.form-toggle-btn.active svg {
    transform: rotate(180deg);
}

/* Upload/Manual Sections */
.upload-section,
.manual-section {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compatibility Results */
.compatibility-results {
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(26, 107, 107, 0.2);
    border-radius: 12px;
}

/* Responsive Design for Compatibility Section */
@media (max-width: 968px) {
    .compatibility-form {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkbox-group {
        gap: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-submit-btn,
    .form-reset-btn {
        width: 100%;
        justify-content: center;
    }
}

/* n8n Integration Badge */
.n8n-integration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(26, 107, 107, 0.05);
    border: 1px solid rgba(26, 107, 107, 0.15);
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.n8n-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 200;
    color: var(--color-gray-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.n8n-icon {
    color: var(--color-teal);
    animation: pulse 2s ease-in-out infinite;
}

.n8n-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 200;
    color: var(--color-gray-text);
}

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

.n8n-status-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* Copy Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--color-teal);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(26, 107, 107, 0.4);
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer */
.footer {
    background-color: var(--color-black);
    border-top: 1px solid var(--color-gray);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: block;
    transition: opacity 0.3s ease;
}

.footer-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
    transform: scale(1.1) rotate(-2deg);
}

.footer-logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.footer p {
    color: var(--color-gray-text);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: transparent;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
        perspective: 1000px;
        overflow: hidden;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    /* Morphing Backdrop */
    .menu-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        clip-path: circle(0% at 50% 50%);
        transition: clip-path 1s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
    }

    .nav-menu.active .menu-backdrop {
        clip-path: circle(150% at 50% 50%);
    }

    /* Animated Background Shapes */
    .menu-backdrop-shape {
        position: absolute;
        width: 300px;
        height: 300px;
        border: 2px solid var(--color-teal);
        opacity: 0.1;
        border-radius: 50%;
        z-index: -1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s;
    }

    .nav-menu.active .menu-backdrop-shape {
        transform: translate(-50%, -50%) scale(2) rotate(180deg);
        opacity: 0.15;
    }

    .menu-backdrop-shape.shape-2 {
        width: 400px;
        height: 400px;
        border-color: var(--color-teal-dark);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transition-delay: 0.1s;
    }

    .nav-menu.active .menu-backdrop-shape.shape-2 {
        transform: translate(-50%, -50%) scale(1.5) rotate(-180deg);
        animation: morphShape 8s ease-in-out infinite;
    }

    .menu-backdrop-shape.shape-3 {
        width: 250px;
        height: 250px;
        border-color: var(--color-teal-light);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transition-delay: 0.2s;
    }

    .nav-menu.active .menu-backdrop-shape.shape-3 {
        transform: translate(-50%, -50%) scale(2.5) rotate(90deg);
        animation: morphShape 6s ease-in-out infinite reverse;
    }

    @keyframes morphShape {
        0%, 100% {
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        }
        25% {
            border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        }
        50% {
            border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        }
        75% {
            border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        }
    }

    /* Floating Particles */
    .menu-particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
    }

    .particle {
        position: absolute;
        width: 4px;
        height: 4px;
        background-color: var(--color-teal);
        border-radius: 50%;
        opacity: 0;
        animation: floatParticle 15s infinite ease-in-out;
    }

    .nav-menu.active .particle {
        opacity: 0.6;
    }

    .particle:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        top: 60%;
        left: 20%;
        animation-delay: 2s;
    }

    .particle:nth-child(3) {
        top: 80%;
        left: 60%;
        animation-delay: 4s;
    }

    .particle:nth-child(4) {
        top: 30%;
        left: 80%;
        animation-delay: 6s;
    }

    .particle:nth-child(5) {
        top: 50%;
        left: 70%;
        animation-delay: 8s;
    }

    .particle:nth-child(6) {
        top: 10%;
        left: 50%;
        animation-delay: 10s;
    }

    @keyframes floatParticle {
        0%, 100% {
            transform: translate(0, 0) scale(1);
            opacity: 0.6;
        }
        25% {
            transform: translate(30px, -50px) scale(1.5);
            opacity: 0.8;
        }
        50% {
            transform: translate(-20px, -100px) scale(0.8);
            opacity: 0.4;
        }
        75% {
            transform: translate(50px, -30px) scale(1.2);
            opacity: 0.7;
        }
    }

    /* Menu Items */
    .menu-item {
        list-style: none;
        margin: 0;
        padding: 0;
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform-style: preserve-3d;
        transform-origin: center;
    }

    .nav-menu.active .menu-item {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }

    .menu-item:nth-of-type(1) { transition-delay: 0.05s; }
    .menu-item:nth-of-type(2) { transition-delay: 0.1s; }
    .menu-item:nth-of-type(3) { transition-delay: 0.15s; }
    .menu-item:nth-of-type(4) { transition-delay: 0.2s; }
    .menu-item:nth-of-type(5) { transition-delay: 0.25s; }
    .menu-item:nth-of-type(6) { transition-delay: 0.3s; }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 3rem;
        font-size: 1.5rem;
        font-weight: 200;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: 0.15em;
        position: relative;
        width: 100%;
        max-width: 400px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        border-left: 3px solid transparent;
    }

    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 0;
        background-color: var(--color-teal);
        transform: translateY(-50%);
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
    }

    .nav-menu .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background-color: rgba(26, 107, 107, 0.05);
        transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
    }

    .nav-menu .nav-link:hover::before {
        height: 100%;
    }

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

    .nav-menu .nav-link:hover {
        transform: translateX(20px) scale(1.05);
        color: var(--color-teal-light);
        border-left-color: var(--color-teal);
        text-shadow: 0 0 20px rgba(26, 107, 107, 0.5);
    }

    .link-text {
        position: relative;
        z-index: 1;
    }

    .link-number {
        font-size: 0.875rem;
        color: var(--color-gray-text);
        font-weight: 300;
        opacity: 0.5;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 2rem;
    }

    .nav-menu .nav-link:hover .link-number {
        color: var(--color-teal);
        opacity: 1;
        transform: scale(1.2);
    }

    .menu-item-resume .nav-link {
        margin-top: 2rem;
        padding: 1.5rem 3rem;
        border: 2px solid var(--color-teal);
        border-radius: 0;
        background-color: transparent;
    }

    .menu-item-resume .nav-link:hover {
        background-color: rgba(26, 107, 107, 0.1);
        border-color: var(--color-teal-light);
        box-shadow: 0 0 30px rgba(26, 107, 107, 0.3);
    }

    .resume-icon {
        width: 24px;
        height: 24px;
        margin-left: 1rem;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-item-resume .nav-link:hover .resume-icon {
        transform: rotate(15deg) scale(1.1);
    }

    /* Show mobile menu decorative elements on mobile */
    .nav-menu .menu-backdrop,
    .nav-menu .menu-backdrop-shape,
    .nav-menu .menu-particles {
        display: block;
    }

    /* Show link numbers on mobile */
    .nav-link .link-number {
        display: inline;
    }

    /* Show resume icon on mobile */
    .nav-resume .resume-icon {
        display: block;
    }

    .nav-resume {
        margin-left: 0;
        margin-top: 0;
        display: flex;
        border: 2px solid var(--color-teal);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        top: 50%;
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
        background-color: var(--color-teal-light);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-50%) translateY(-50%) scale(0);
    }

    .nav-toggle.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateX(-50%) translateY(-50%) rotate(-45deg);
        background-color: var(--color-teal-light);
    }

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

    .timeline-line {
        left: 60px;
    }

    .timeline-node {
        grid-template-columns: 80px 1fr;
        gap: 2rem;
        padding: 2rem 0;
        min-height: 120px;
    }

    .node-year {
        font-size: 1.25rem;
        padding-right: 1.5rem;
    }

    .current-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .node-card {
        padding: 1.5rem;
    }

    .node-dot {
        left: 60px;
    }

    .node-connector {
        left: 60px;
        width: 30px;
    }

    .timeline-node:hover .node-connector,
    .timeline-node.active .node-connector {
        width: 45px;
    }

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

    .contact-content {
        padding: 0 1rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 1.5rem 0;
    }

    .contact-visual-bg {
        display: none;
    }

    .contact-left {
        position: relative;
        top: 0;
        align-items: center;
    }

    .contact-profile {
        width: 120px;
        height: 120px;
    }

    .contact-name {
        font-size: 1.25rem;
    }

    .contact-right {
        gap: 1.25rem;
    }

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

        .contact-item-horizontal {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .contact-item-text {
        min-width: 0;
        flex: 1 1 auto;
    }

    .github-stats-inline {
        order: 4;
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        justify-content: flex-start;
        flex-basis: 100%;
    }

    .contact-item-horizontal .contact-external-icon {
        order: 3;
        margin-left: auto;
    }

    .n8n-integration {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 6rem 1.5rem 3rem;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

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

    .timeline-line {
        left: 40px;
    }

    .timeline-node {
        grid-template-columns: 50px 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
        min-height: 100px;
    }

    .node-year {
        font-size: 1rem;
        padding-right: 1rem;
    }

    .current-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }

    .node-card {
        padding: 1.25rem;
    }

    .node-card h3 {
        font-size: 1.125rem;
    }

    .node-description {
        font-size: 0.875rem;
    }

    .node-dot {
        left: 40px;
    }

    .node-connector {
        left: 40px;
        width: 25px;
    }

    .timeline-node:hover .node-connector,
    .timeline-node.active .node-connector {
        width: 35px;
    }
}

