@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;

    --text-primary: #f0f0f0;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.35);

    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;

    --gradient-accent: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --gradient-accent-wide: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.18);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.6);

    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --btn-on-accent: #ffffff;
    --nav-link-hover-bg: rgba(255, 255, 255, 0.06);
    --overlay-bg: rgba(5, 5, 5, 0.95);
    --hero-title-grad: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    --hero-grid-line: rgba(255, 255, 255, 0.02);
    --project-icon-bg: rgba(0, 0, 0, 0.7);
    --gallery-indicator-wrap: rgba(0, 0, 0, 0.4);
    --coming-soon-from: #111111;
    --coming-soon-to: #1a1a1a;
    --surface-subtle: rgba(255, 255, 255, 0.03);
    --surface-subtle-hover: rgba(255, 255, 255, 0.06);
    --surface-muted: rgba(255, 255, 255, 0.05);
    --hero-badge-bg: rgba(255, 255, 255, 0.05);
    --hero-cta-sec-bg: rgba(255, 255, 255, 0.06);
    --hero-cta-sec-bg-hover: rgba(255, 255, 255, 0.1);
    --project-icon-color: #ffffff;
    --indicator-bg: rgba(255, 255, 255, 0.35);
    --indicator-active: #ffffff;
    --card-surface: rgba(255, 255, 255, 0.02);
    --card-surface-hover: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f4f4f5;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f4f5;

    --text-primary: #18181b;
    --text-secondary: rgba(24, 24, 27, 0.72);
    --text-muted: rgba(24, 24, 27, 0.45);

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.14);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1);

    --btn-on-accent: #ffffff;
    --nav-link-hover-bg: rgba(0, 0, 0, 0.06);
    --overlay-bg: rgba(250, 250, 250, 0.97);
    --hero-title-grad: linear-gradient(135deg, #18181b 0%, rgba(24, 24, 27, 0.72) 100%);
    --hero-grid-line: rgba(0, 0, 0, 0.06);
    --project-icon-bg: rgba(255, 255, 255, 0.92);
    --gallery-indicator-wrap: rgba(255, 255, 255, 0.85);
    --coming-soon-from: #e4e4e7;
    --coming-soon-to: #d4d4d8;
    --surface-subtle: rgba(0, 0, 0, 0.04);
    --surface-subtle-hover: rgba(0, 0, 0, 0.07);
    --surface-muted: rgba(0, 0, 0, 0.05);
    --hero-badge-bg: rgba(0, 0, 0, 0.04);
    --hero-cta-sec-bg: rgba(0, 0, 0, 0.05);
    --hero-cta-sec-bg-hover: rgba(0, 0, 0, 0.08);
    --project-icon-color: #18181b;
    --indicator-bg: rgba(24, 24, 27, 0.35);
    --indicator-active: #18181b;
    --card-surface: rgba(0, 0, 0, 0.03);
    --card-surface-hover: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10001;
    padding: 12px 20px;
    background: var(--gradient-accent);
    color: var(--btn-on-accent);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--accent-1);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-accent);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: transparent;
    transition: all var(--transition-base);
}

.nav-bar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 48px;
}

.nav-bar-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-bar-name {
    font-size: 20px;
    font-weight: 600;
    margin-right: 32px;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-bar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    transition: all var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    position: relative;
}

.nav-bar-links a:hover,
.nav-bar-links a.active {
    color: var(--text-primary);
    background: var(--nav-link-hover-bg);
}

.nav-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 2px;
}

.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .theme-icon-sun {
    display: flex;
}

html[data-theme="dark"] .theme-icon-moon {
    display: none;
}

html[data-theme="light"] .theme-icon-sun {
    display: none;
}

html[data-theme="light"] .theme-icon-moon {
    display: flex;
}

html[data-theme="light"] .nav-bar.scrolled {
    background: rgba(250, 250, 250, 0.92);
}

.linkedin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.linkedin-btn:hover {
    border-color: #0a66c2;
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
    transform: translateY(-2px);
}

.cv-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--gradient-accent);
    color: var(--btn-on-accent);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.cv-download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.cv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.cv-download-btn:hover::before {
    opacity: 1;
}

.cv-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-overlay a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 28px;
    font-weight: 300;
    padding: 16px 32px;
    transition: all var(--transition-fast);
    letter-spacing: -0.5px;
}

.mobile-menu-overlay a:hover {
    color: var(--accent-1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 48px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    will-change: transform;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-1);
    top: -15%;
    left: -10%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    bottom: -15%;
    right: -10%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.hero-orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
    opacity: 0.2;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    max-width: 900px;
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--hero-badge-bg);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-badge .status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-content h1 {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -3px;
    line-height: 1;
    background: var(--hero-title-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(20px, 3vw, 32px);
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    font-weight: 400;
}

.hero-subtitle .accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.hero-cta-primary {
    background: var(--gradient-accent);
    color: var(--btn-on-accent);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.hero-cta-secondary {
    background: var(--hero-cta-sec-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.hero-cta-secondary:hover {
    background: var(--hero-cta-sec-bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* ============================================
   SECTION HEADINGS (shared)
   ============================================ */
.section-heading {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.section-heading .gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subheading {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 64px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.about-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    text-align: center;
    letter-spacing: -1.5px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.about-text p:first-child::first-line {
    color: var(--text-primary);
    font-weight: 500;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-photo {
    text-align: center;
    position: relative;
}

.about-photo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 208px;
    height: 208px;
    border-radius: 50%;
    background: var(--gradient-accent);
    z-index: 0;
    opacity: 0.6;
    filter: blur(2px);
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-primary);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
    margin-bottom: 20px;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.photo-caption h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.photo-caption p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.stat {
    text-align: center;
    padding: 24px;
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.stat:hover {
    background: var(--surface-subtle-hover);
    border-color: var(--border-default);
    transform: translateY(-4px);
}

.stat h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat p {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.projects-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    text-align: center;
    letter-spacing: -1.5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid var(--border-subtle);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.5s ease;
}

.project-card:hover .project-image {
    opacity: 0.2;
    transform: scale(1.05);
}

.project-icons {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    flex-direction: column;
    z-index: 10;
}

.icon {
    background: var(--project-icon-bg);
    color: var(--project-icon-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card:hover .icon {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.project-text {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 55%;
    padding: 28px;
    background: linear-gradient(to top, var(--bg-primary) 60%, transparent);
    transition: bottom var(--transition-slow);
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card:hover .project-text {
    bottom: 0;
}

.project-text h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.project-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.project-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--gradient-accent);
    color: var(--btn-on-accent);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
    align-self: flex-start;
}

.project-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    padding: 5px 14px;
    background: var(--gradient-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.featured-card {
    border-color: rgba(99, 102, 241, 0.2);
}

.featured-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(99, 102, 241, 0.15);
}

/* Project gradient backgrounds */
.project-gradient-bg {
    position: relative;
    overflow: hidden;
}

.project-gradient-1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.project-gradient-2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b4e 50%, #1a1a2e 100%);
}

.project-gradient-3 {
    background: linear-gradient(135deg, #0d1b0e 0%, #1a2e1a 50%, #162e16 100%);
}

.project-gradient-4 {
    background: linear-gradient(135deg, #1a1a1a 0%, #2e1a1a 50%, #1a1a2e 100%);
}

html[data-theme="light"] .project-gradient-1 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
}

html[data-theme="light"] .project-gradient-2 {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 50%, #d8b4fe 100%);
}

html[data-theme="light"] .project-gradient-3 {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 50%, #86efac 100%);
}

html[data-theme="light"] .project-gradient-4 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
}

.project-gradient-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.1));
    animation: shimmer 6s infinite;
}

/* Project tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.project-tags span {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Coming Soon */
.coming-soon-card {
    opacity: 0.7;
}

.coming-soon-card:hover {
    opacity: 1;
}

.coming-soon-bg {
    background: linear-gradient(135deg, var(--coming-soon-from) 0%, var(--coming-soon-to) 100%);
    position: relative;
    overflow: hidden;
}

.coming-soon-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
    animation: shimmer 4s infinite;
}

.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.construction-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: bounce 2.5s infinite;
}

.coming-soon-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-visit-btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
    border: 1px solid var(--border-subtle);
}

.project-visit-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.coming-soon-card .project-text p {
    font-style: italic;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.skills-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    text-align: center;
    letter-spacing: -1.5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-category {
    background: var(--card-surface);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.skill-category:hover {
    background: var(--card-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:nth-child(1) { --cat-color: #6366f1; }
.skill-category:nth-child(2) { --cat-color: #f59e0b; }
.skill-category:nth-child(3) { --cat-color: #22c55e; }
.skill-category:nth-child(4) { --cat-color: #3b82f6; }
.skill-category:nth-child(5) { --cat-color: #ef4444; }
.skill-category:nth-child(6) { --cat-color: #a855f7; }

.skill-category:nth-child(1)::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.skill-category:nth-child(2)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.skill-category:nth-child(3)::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.skill-category:nth-child(4)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.skill-category:nth-child(5)::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.skill-category:nth-child(6)::before { background: linear-gradient(90deg, #a855f7, #c084fc); }

.skill-category h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--cat-color);
    text-align: center;
    letter-spacing: -0.3px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill {
    background: var(--surface-muted);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
    border: 1px solid var(--border-subtle);
    cursor: default;
}

.skill:hover {
    color: #fff;
    background: color-mix(in srgb, var(--cat-color) 20%, transparent);
    border-color: color-mix(in srgb, var(--cat-color) 40%, transparent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--cat-color) 20%, transparent);
}

/* ============================================
   HOBBIES SECTION
   ============================================ */
.hobbies-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.hobbies-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    text-align: center;
    letter-spacing: -1.5px;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.hobby-item.large-hobby {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    gap: 0;
    padding: 0;
    min-height: 320px;
    border: 1px solid var(--border-subtle);
}

.hobby-item.large-hobby:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.hobby-item.special-hobby {
    grid-column: 1 / -1;
}

.rotating-gallery {
    width: 380px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hobby-video {
    width: 380px;
    min-height: 320px;
    overflow: hidden;
    flex-shrink: 0;
}

.hobby-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--bg-primary);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-image img,
.gallery-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-image video {
    background-color: var(--bg-primary);
}

.gallery-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: var(--gallery-indicator-wrap);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--indicator-bg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active,
.indicator:hover {
    background-color: var(--indicator-active);
    transform: scale(1.3);
}

.hobby-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.hobby-text h4 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hobby-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.special-hobby .hobby-text {
    margin-left: 0;
}

.special-hobby .hobby-text h4 {
    font-size: 26px;
}

.special-hobby .hobby-text p {
    font-size: 16px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    pointer-events: none;
}

.contact-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    text-align: center;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

.contact-cta {
    text-align: center;
    margin-bottom: 32px;
}

.contact-cta h3 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--gradient-accent);
    color: var(--btn-on-accent);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 17px;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.cta-button:hover::before {
    opacity: 1;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px 48px;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 16px;
    padding: 8px 0;
}

.contact-item strong {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 100px;
    text-align: right;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item span {
    color: var(--text-primary);
    font-weight: 400;
}

.contact-item span a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.contact-item span a:hover {
    color: var(--accent-1);
    border-bottom-color: var(--accent-1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--bg-secondary);
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 20px;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    color: var(--text-primary);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-delay-1 { transition-delay: 0.1s; }
.scroll-animate-delay-2 { transition-delay: 0.2s; }
.scroll-animate-delay-3 { transition-delay: 0.3s; }
.scroll-animate-delay-4 { transition-delay: 0.4s; }
.scroll-animate-delay-5 { transition-delay: 0.5s; }
.scroll-animate-delay-6 { transition-delay: 0.6s; }

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-default);
    border-top: 2px solid var(--accent-1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px auto;
}

.loading-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -1px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.main-content {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.main-content.loaded {
    opacity: 1;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -40px) scale(1.1); }
    50% { transform: translate(40px, 60px) scale(0.95); }
    75% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-60px, 30px) scale(1.05); }
    50% { transform: translate(-20px, -50px) scale(1.1); }
    75% { transform: translate(40px, -10px) scale(0.95); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(-40%, -60%) scale(1.15); }
    66% { transform: translate(-60%, -40%) scale(0.9); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   EXPERIENCE / TIMELINE SECTION
   ============================================ */
.experience-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.experience-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    text-align: center;
    letter-spacing: -1.5px;
}

.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 11px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-accent);
}

.timeline-item:hover .timeline-marker {
    border-color: var(--accent-2);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-base);
}

.timeline-card:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
    box-shadow: var(--shadow-card-hover);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-badge.education {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.timeline-badge.work {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.timeline-badge.personal {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.timeline-badge.stage {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.timeline-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.timeline-level {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 16px;
}

.timeline-org {
    font-size: 15px;
    color: var(--accent-1);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.timeline-tags span:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-default);
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-bar-links a:not(.nav-bar-name) {
        display: none;
    }

    .cv-download-btn,
    .linkedin-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-bar {
        padding: 16px 24px;
    }

    .nav-bar.scrolled {
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero-section {
        padding: 0 24px;
    }

    .hero-orb-1 { width: 350px; height: 350px; }
    .hero-orb-2 { width: 300px; height: 300px; }
    .hero-orb-3 { width: 200px; height: 200px; }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .about-section,
    .projects-section,
    .skills-section,
    .hobbies-section,
    .contact-section,
    .experience-section {
        padding: 80px 0;
    }

    .about-section h2,
    .projects-section h2,
    .skills-section h2,
    .hobbies-section h2,
    .contact-section h2,
    .experience-section h2 {
        font-size: 36px;
        margin-bottom: 48px;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline::before {
        left: 7px;
    }

    .timeline-marker {
        left: -32px;
        width: 18px;
        height: 18px;
    }

    .timeline-marker::after {
        width: 8px;
        height: 8px;
    }

    .timeline-card {
        padding: 24px;
    }

    .timeline-card h3 {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-right {
        gap: 24px;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .about-photo::before {
        width: 158px;
        height: 158px;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .stat {
        padding: 16px 12px;
        flex: 1;
    }

    .stat h3 {
        font-size: 28px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-card {
        aspect-ratio: auto;
    }

    .project-image {
        height: 200px;
    }

    .project-text {
        position: static;
        height: auto;
        background: var(--bg-card);
        padding: 24px;
        display: block;
    }

    .project-card:hover .project-text {
        bottom: auto;
    }

    .project-card:hover .project-image {
        opacity: 1;
        transform: none;
    }

    .project-icons {
        flex-direction: row;
        top: auto;
        bottom: auto;
        right: 12px;
        top: 12px;
    }

    .featured-badge {
        top: 12px;
        left: 12px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category {
        padding: 32px 24px;
    }

    .hobbies-grid {
        gap: 24px;
    }

    .hobby-item.large-hobby {
        flex-direction: column;
        min-height: auto;
    }

    .rotating-gallery,
    .hobby-video {
        width: 100%;
        min-height: 250px;
        height: 250px;
    }

    .hobby-text {
        padding: 32px 24px;
    }

    .special-hobby .hobby-text h4 {
        font-size: 22px;
    }

    .special-hobby .hobby-text p {
        font-size: 15px;
    }

    .contact-cta h3 {
        font-size: 28px;
    }

    .contact-details {
        padding: 24px;
    }

    .contact-item {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        font-size: 15px;
    }

    .contact-item strong {
        min-width: auto;
        text-align: center;
    }

    .footer-container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        letter-spacing: -2px;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat h3 {
        font-size: 32px;
    }
}
