/* ============================================
   CSS VARIABLES & THEME CONFIGURATION
   ============================================ */
:root {
    /* Light Theme Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --background: #fafafa;
    --surface: #ffffff;
    --surface-elevated: #f4f4f5;
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --text-muted: #a1a1aa;
    --border: #e4e4e7;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px -10px var(--primary);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

    /* Enhanced Design System */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-light: #a5b4fc;
    --primary-dark: #6366f1;
    --secondary: #f472b6;
    --accent: #22d3ee;
    --background: #09090b;
    --surface: #18181b;
    --surface-elevated: #27272a;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #27272a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
    --shadow-glow: 0 0 60px -15px var(--primary);

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   PARTICLE CANVAS BACKGROUND
   ============================================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   FLOATING SHAPES
   ============================================ */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 40%;
    right: -5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: 60%;
    right: 30%;
    animation-delay: -15s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    top: 20%;
    left: 60%;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(50px, -50px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(0, 50px) rotate(180deg) scale(1);
    }

    75% {
        transform: translate(-50px, -25px) rotate(270deg) scale(0.9);
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
    transition: transform 0.3s ease;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 12px;
    opacity: 0.2;
    filter: blur(20px);
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-glow {
    opacity: 0.4;
    transform: scale(1.2);
}

.nav-logo:hover .logo-text {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.nav-link span {
    position: relative;
    z-index: 2;
    display: block;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 3;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--surface-elevated);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow);
}

.icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.sun-icon,
.moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: var(--border);
    }

    50% {
        border-color: var(--primary);
    }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slide-up 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gradient-text);
    opacity: 0.3;
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline-grow 0.8s ease 1s forwards;
}

@keyframes underline-grow {
    to {
        transform: scaleX(1);
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fade-in 0.8s ease 0.8s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fade-in 0.8s ease 1s forwards;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--glass-shadow);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    opacity: 0;
    animation: fade-in 0.8s ease 1.2s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fade-in 0.8s ease 1.5s forwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--surface-elevated);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    opacity: 0.8;
}

.image-border {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: var(--gradient-text);
    z-index: -1;
    animation: rotate-border 10s linear infinite;
}

@keyframes rotate-border {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.exp-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.exp-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.about-content {
    padding: 2rem 0;
}

.about-text {
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.skills-showcase {
    position: relative;
}

.skills-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.skills-orbit {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.skill-planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px;
    background: var(--surface-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    animation: orbit 20s linear infinite;
    animation-delay: var(--delay);
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

.skill-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    animation: counter-rotate 20s linear infinite;
    animation-delay: var(--delay);
}

@keyframes counter-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--background);
}

.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-card {
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-card.featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.project-visual {
    position: relative;
    overflow: hidden;
}

.project-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.project-image {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.gradient-1 {
    background: var(--gradient-1);
}

.gradient-2 {
    background: var(--gradient-2);
}

.gradient-3 {
    background: var(--gradient-3);
}

.gradient-4 {
    background: var(--gradient-4);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-el {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float-element 6s ease-in-out infinite;
}

.el-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.el-2 {
    top: 60%;
    right: 20%;
    animation-delay: -2s;
    width: 40px;
    height: 40px;
}

.el-3 {
    bottom: 20%;
    left: 40%;
    animation-delay: -4s;
    width: 80px;
    height: 80px;
}

@keyframes float-element {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.project-info {
    padding: 2.5rem;
}

.project-category {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: var(--surface-elevated);
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.projects-grid .project-card {
    display: flex;
    flex-direction: column;
}

.projects-grid .project-visual {
    height: 200px;
}

.projects-grid .project-image {
    height: 100%;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience {
    background: var(--surface);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-item {
    position: relative;
    width: calc(50% - 2rem);
}

.timeline-item:nth-child(odd) {
    margin-right: auto;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 2rem;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    top: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--surface);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    border: 2px solid var(--primary);
}

.timeline-item:nth-child(odd)::before {
    right: -3.5rem;
}

.timeline-item:nth-child(even)::before {
    left: -3.5rem;
}

.timeline-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline-period {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-role {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-company {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags span {
    padding: 0.25rem 0.75rem;
    background: var(--surface-elevated);
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 100px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--background);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-content {
    padding: 2rem 0;
}

.contact-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.contact-method:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-elevated);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-method:hover .method-icon {
    background: var(--primary);
    color: white;
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.method-value {
    font-weight: 600;
    color: var(--text-primary);
}

.social-profiles {
    display: flex;
    gap: 1rem;
}

.social-profile {
    width: 48px;
    height: 48px;
    background: var(--surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-profile:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.social-profile svg {
    width: 20px;
    height: 20px;
}

.contact-form-wrapper {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group.floating input,
.form-group.floating textarea,
.form-group.floating select {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group.floating label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus,
.form-group.floating select:focus {
    border-color: var(--primary);
}

.form-group.floating input:focus+label,
.form-group.floating input:not(:placeholder-shown)+label,
.form-group.floating textarea:focus+label,
.form-group.floating textarea:not(:placeholder-shown)+label,
.form-group.floating select:focus+label,
.form-group.floating select:valid+label {
    top: -0.5rem;
    font-size: 0.875rem;
    color: var(--primary);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-group.floating input:focus~.input-line,
.form-group.floating textarea:focus~.input-line,
.form-group.floating select:focus~.input-line {
    width: 100%;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.made-with .heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 9999;
    border: 1px solid var(--border);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.toast-message {
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
    transform: translateY(60px) scale(0.95);
}

.reveal-left {
    transform: translateX(-60px) scale(0.95);
}

.reveal-right {
    transform: translateX(60px) scale(0.95);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Dynamic speed-based animations */
.reveal-up.fast-reveal {
    transition: all 0.4s cubic-bezier(0.11, 0, 0.5, 0);
}

.reveal-left.fast-reveal,
.reveal-right.fast-reveal {
    transition: all 0.4s cubic-bezier(0.11, 0, 0.5, 0);
}

.reveal-up.medium-reveal {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.medium-reveal,
.reveal-right.medium-reveal {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.slow-reveal {
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-left.slow-reveal,
.reveal-right.slow-reveal {
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Ultra-fast slippery animations */
.reveal-up.ultra-fast-reveal {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.ultra-fast-reveal,
.reveal-right.ultra-fast-reveal {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Momentum-based slippery effect */
.reveal-up.momentum-reveal {
    animation: slideUpSlippery 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.reveal-left.momentum-reveal {
    animation: slideLeftSlippery 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.reveal-right.momentum-reveal {
    animation: slideRightSlippery 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Slippery animation keyframes with dynamic offset */
@keyframes slideUpSlippery {
    0% {
        transform: translateY(calc(60px + var(--slippery-offset, 0px))) scale(0.95);
        opacity: 0;
    }

    40% {
        transform: translateY(calc(-15px + var(--slippery-offset, 0px) * 0.3)) scale(1.05);
        opacity: 0.7;
    }

    70% {
        transform: translateY(calc(8px + var(--slippery-offset, 0px) * 0.1)) scale(0.98);
        opacity: 0.9;
    }

    85% {
        transform: translateY(calc(-3px + var(--slippery-offset, 0px) * 0.05)) scale(1.01);
        opacity: 0.95;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideLeftSlippery {
    0% {
        transform: translateX(calc(-60px - var(--slippery-offset, 0px))) scale(0.95);
        opacity: 0;
    }

    40% {
        transform: translateX(calc(15px - var(--slippery-offset, 0px) * 0.3)) scale(1.05);
        opacity: 0.7;
    }

    70% {
        transform: translateX(calc(-8px - var(--slippery-offset, 0px) * 0.1)) scale(0.98);
        opacity: 0.9;
    }

    85% {
        transform: translateX(calc(3px - var(--slippery-offset, 0px) * 0.05)) scale(1.01);
        opacity: 0.95;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideRightSlippery {
    0% {
        transform: translateX(calc(60px + var(--slippery-offset, 0px))) scale(0.95);
        opacity: 0;
    }

    40% {
        transform: translateX(calc(-15px + var(--slippery-offset, 0px) * 0.3)) scale(1.05);
        opacity: 0.7;
    }

    70% {
        transform: translateX(calc(8px + var(--slippery-offset, 0px) * 0.1)) scale(0.98);
        opacity: 0.9;
    }

    85% {
        transform: translateX(calc(-3px + var(--slippery-offset, 0px) * 0.05)) scale(1.01);
        opacity: 0.95;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Enhanced parallax sliding effect */
.reveal-up.revealed {
    animation: slideUpElastic 0.8s ease-out;
}

.reveal-left.revealed {
    animation: slideLeftElastic 0.8s ease-out;
}

.reveal-right.revealed {
    animation: slideRightElastic 0.8s ease-out;
}

@keyframes slideUpElastic {
    0% {
        transform: translateY(60px) scale(0.95);
        opacity: 0;
    }

    60% {
        transform: translateY(-10px) scale(1.02);
        opacity: 0.8;
    }

    80% {
        transform: translateY(5px) scale(0.98);
        opacity: 0.9;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideLeftElastic {
    0% {
        transform: translateX(-60px) scale(0.95);
        opacity: 0;
    }

    60% {
        transform: translateX(10px) scale(1.02);
        opacity: 0.8;
    }

    80% {
        transform: translateX(-5px) scale(0.98);
        opacity: 0.9;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideRightElastic {
    0% {
        transform: translateX(60px) scale(0.95);
        opacity: 0;
    }

    60% {
        transform: translateX(-10px) scale(1.02);
        opacity: 0.8;
    }

    80% {
        transform: translateX(5px) scale(0.98);
        opacity: 0.9;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Staggered animation for multiple elements */
.reveal-up.revealed:nth-child(1) {
    animation-delay: 0s;
}

.reveal-up.revealed:nth-child(2) {
    animation-delay: 0.1s;
}

.reveal-up.revealed:nth-child(3) {
    animation-delay: 0.2s;
}

.reveal-up.revealed:nth-child(4) {
    animation-delay: 0.3s;
}

.reveal-up.revealed:nth-child(5) {
    animation-delay: 0.4s;
}

.reveal-left.revealed:nth-child(1) {
    animation-delay: 0s;
}

.reveal-left.revealed:nth-child(2) {
    animation-delay: 0.15s;
}

.reveal-left.revealed:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal-left.revealed:nth-child(4) {
    animation-delay: 0.45s;
}

.reveal-left.revealed:nth-child(5) {
    animation-delay: 0.6s;
}

.reveal-right.revealed:nth-child(1) {
    animation-delay: 0s;
}

.reveal-right.revealed:nth-child(2) {
    animation-delay: 0.15s;
}

.reveal-right.revealed:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal-right.revealed:nth-child(4) {
    animation-delay: 0.45s;
}

.reveal-right.revealed:nth-child(5) {
    animation-delay: 0.6s;
}

/* ============================================
   MAGNETIC EFFECT
   ============================================ */
.magnetic-element {
    transition: transform 0.3s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .project-image-wrapper {
        min-height: 300px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .skills-orbit {
        width: 250px;
        height: 250px;
    }

    .skill-planet {
        width: 60px;
        height: 60px;
        margin: -30px;
    }

    @keyframes orbit {
        from {
            transform: rotate(0deg) translateX(100px) rotate(0deg);
        }

        to {
            transform: rotate(360deg) translateX(100px) rotate(-360deg);
        }
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 2rem;
        border-radius: 20px;
        box-shadow: var(--glass-shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-menu .nav-item {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-item:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active .nav-item:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active .nav-item:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu.active .nav-item:nth-child(5) {
        transition-delay: 0.3s;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-item::before {
        left: 0 !important;
        right: auto !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .experience-badge {
        right: 0;
        bottom: -10px;
        padding: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--primary);
    color: white;
}