/* Design based on dark portfolio reference */
:root {
    --theme-transition: 0.3s ease;
    --mouse-x: 50vw;
    --mouse-y: 50vh;
    --color-bg: #060205;
    --color-bg-card: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: hsl(0, 0%, 70%);
    --gradient-accent: linear-gradient(30deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 82%, rgba(237, 221, 83, 1) 100%);
    --color-accent: rgba(87, 199, 133, 1);
    --color-border: rgba(255, 255, 255, 0.1);
    --font-display: 'Raleway', sans-serif;
    --font-body: 'Bitter', serif;
}

[data-theme="light"] {
    --color-bg: #f5f5f5;
    --color-bg-card: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --gradient-accent: linear-gradient(30deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 82%, rgba(237, 221, 83, 1) 100%);
    --color-accent: rgba(87, 199, 133, 1);
    --color-border: rgba(0, 0, 0, 0.1);
}

/* Gradient text utility */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 100;
}
.skip-link:focus {
    top: 0;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    transition: width 0.1s ease-out;
}

[data-theme="light"] .scroll-progress {
    background: rgba(0, 0, 0, 0.08);
}

/* Base */
body {
    position: relative;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--theme-transition), color var(--theme-transition);
}

body::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 450px;
    height: 450px;
    transform: translate(var(--mouse-x), var(--mouse-y)) translate(-50%, -50%);
    background: radial-gradient(circle, rgba(79, 44, 74, 0.65) 0%, rgba(79, 44, 74, 0.4) 25%, rgba(35, 18, 33, 0.22) 45%, rgba(20, 10, 18, 0.1) 65%, transparent 85%);
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.4s ease-out, background var(--theme-transition);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

[data-theme="light"] body::before {
    width: 180px;
    height: 180px;
    background: radial-gradient(
        ellipse 110% 90% at 50% 50%,
        rgba(42, 123, 155, 0.25) 0%,
        rgba(42, 123, 155, 0.15) 30%,
        rgba(87, 199, 133, 0.08) 55%,
        transparent 85%
    );
    filter: blur(50px);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--theme-transition);
}
a:hover {
    color: var(--color-accent);
}
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Sticky Header - Liquid glass effect */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color var(--theme-transition), transform 0.3s ease;
}

.sticky-header.is-hidden {
    transform: translateY(-100%);
}

[data-theme="light"] .sticky-header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-text img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text .logo-img-dark {
    display: block;
}

.logo-text .logo-img-light {
    display: none !important;
}

[data-theme="light"] .logo-text .logo-img-dark {
    display: none !important;
}

[data-theme="light"] .logo-text .logo-img-light {
    display: block !important;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav > * {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Burger button - hidden on desktop */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
    color: var(--color-text);
}

.burger-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.burger-btn[aria-expanded="true"] .burger-lines {
    display: none;
}

.burger-x {
    display: none;
    width: 20px;
    height: 20px;
}

.burger-btn[aria-expanded="true"] .burger-x {
    display: block;
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: opacity 0.3s ease;
}

.burger-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links-email {
    display: none;
}

.main-nav a {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
}

.main-nav a:hover {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-email {
    display: flex;
    align-items: center;
}

.nav-email img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Page wrapper */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

/* Hero Section */
.hero {
    text-align: center;
    position: relative;
}

.hero-content {
    will-change: transform;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    margin-top:24px;
}

.hero-logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.hero-logo .hero-logo-dark {
    display: block;
}

.hero-logo .hero-logo-light {
    display: none !important;
}

[data-theme="light"] .hero-logo .hero-logo-dark {
    display: none !important;
}

[data-theme="light"] .hero-logo .hero-logo-light {
    display: block !important;
}

.hero-name {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: 6px;
    margin: 0 0 24px;
    text-transform: uppercase;
    color: var(--color-text);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-bg-card);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-text);
}

/* Hero tag icons */
.hero-tag-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-tag-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-tag .hero-tag-icon-wrap img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .hero-tag .hero-tag-icon-wrap img {
    filter: none;
}

/* SVG icons - light on dark, dark on light */
.main-nav .nav-email img,
.cta-contact img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .main-nav .nav-email img,
[data-theme="light"] .cta-contact img {
    filter: none;
}

.hero-quote {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 16px 0 8px;
}

/* Theme toggle button */
.theme-toggle-wrapper {
    margin-bottom: 40px;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-text);
    color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.theme-btn:hover {
    opacity: 0.9;
}

.theme-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.theme-icon {
    width: 18px;
    height: 18px;
}

.theme-icon-sun {
    display: block;
}

.theme-icon-moon {
    display: none;
}

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

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

[data-theme="light"] .theme-btn {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Header theme toggle - hidden when hero button is visible */
.theme-btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    margin: 0;
    margin-right: -28px;
    min-width: 0;
    background: #ffffff;
    border: none;
    border-radius: 999px;
    transform: scale(0.6);
    transform-origin: right center;
    transition: max-width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin-right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .theme-btn-header {
    background: #1a1a1a;
}

.theme-btn-header.is-visible {
    max-width: 100px;
    height: 36px;
    min-height: 36px;
    opacity: 1;
    padding: 0 12px;
    margin-right: 0;
    transform: scale(1);
    gap: 8px;
}

.theme-btn-header .theme-btn-header-text {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #060205;
    line-height: 1;
    align-self: center;
}

[data-theme="light"] .theme-btn-header .theme-btn-header-text {
    color: #ffffff;
}

.theme-btn-header .theme-icon {
    width: 19px;
    height: 19px;
}

.theme-btn-header:hover {
    opacity: 0.8;
}

.theme-btn-header .theme-icon {
    filter: none;
}

[data-theme="light"] .theme-btn-header .theme-icon {
    filter: brightness(0) invert(1);
}

/* Burger menu theme toggle - hidden on desktop */
.theme-btn-burger {
    display: none;
}

/* Workspace carousel - parallax with hero */
.workspace-carousel {
    position: relative;
    z-index: 10;
    width: 100%;
    aspect-ratio: 16/10;
    margin-top: 40px;
    margin-bottom: 250px;
    background: var(--color-bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .workspace-carousel {
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.workspace-carousel .carousel-prev,
.workspace-carousel .carousel-next,
.workspace-carousel .carousel-dots {
    opacity: 0;
    pointer-events: none;
}

.workspace-carousel.has-slides.has-multiple .carousel-prev,
.workspace-carousel.has-slides.has-multiple .carousel-next,
.workspace-carousel.has-slides .carousel-dots {
    opacity: 1;
    pointer-events: auto;
}

.workspace-carousel.has-slides:not(.has-multiple) .carousel-dots {
    display: none;
}

.workspace-carousel.has-slides.has-multiple {
    margin-bottom: 0;
}

.workspace-carousel .carousel-prev,
.workspace-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 90px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s;
    z-index: 2;
}

.carousel-prev .carousel-btn-icon {
    transform: rotate(180deg);
}

.carousel-prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.carousel-next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(10, 10, 10, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .workspace-carousel .carousel-prev,
[data-theme="light"] .workspace-carousel .carousel-next {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
}

[data-theme="light"] .carousel-prev:hover,
[data-theme="light"] .carousel-next:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

.carousel-btn-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

[data-theme="light"] .carousel-btn-icon {
    filter: brightness(0);
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.carousel-dot:hover {
    background: rgba(128, 128, 128, 0.9);
}

.carousel-dot.active {
    background: var(--gradient-accent);
}

.carousel-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, hsl(0, 0%, 15%) 100%);
    z-index: 0;
}

.workspace-carousel.has-slides .carousel-fallback,
.workspace-carousel.carousel-empty .carousel-fallback {
    display: none;
}

.carousel-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: carousel-spin 0.8s linear infinite;
}

[data-theme="light"] .carousel-loader {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-accent);
}

@keyframes carousel-spin {
    to { transform: rotate(360deg); }
}

.carousel-prev:focus-visible,
.carousel-next:focus-visible,
.carousel-dot:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Main content - above carousel when scrolling */
#main-content {
    position: relative;
    z-index: 20;
}

/* Section titles */
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 24px;
    padding-bottom: 8px;
    background: linear-gradient(30deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 82%, rgba(237, 221, 83, 1) 100%) no-repeat bottom;
    background-size: 100% 3px;
    display: inline-block;
}

.section {
    margin-bottom: 48px;
}

/* Section spacer - thin shimmering divider */
.section-spacer {
    height: 1px;
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .section-spacer {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

/* Cards */
.card {
    background: var(--color-bg-card);
    border-radius: 8px;
    padding: 24px;
    transition: background-color var(--theme-transition);
}

/* Work Experience */


.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.work-card .card-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 8px;
}

.work-card .card-date-highlight {
    background: var(--gradient-accent);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    display: inline-block;
    contain: paint;
}

a.card-company,
.work-card .card-company {
    font-size: 1rem;
    background: var(--gradient-accent);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
}

a.card-company:hover,
.work-card .card-company:hover {
    background: var(--gradient-accent);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.work-card .card-role {
    font-size: 0.95rem;
    margin: 0 0 12px;
    font-weight: 500;
}

.work-card .card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0 0 12px;
}

.work-card .card-link {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.work-card .card-link .link-icon,
.edu-link .link-icon {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-left: 0.3em;
    vertical-align: middle;
}

[data-theme="dark"] .work-card .card-link .link-icon,
[data-theme="dark"] .edu-link .link-icon {
    filter: invert(1);
}

.work-card .card-link:hover .link-icon,
.edu-link:hover .link-icon {
    opacity: 0.9;
}

[data-theme="light"] .work-card .card-link .link-icon,
[data-theme="light"] .edu-link .link-icon {
    filter: none;
}

.work-card .card-link:hover {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Education & Skills row */
.edu-skills-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.edu-skills-row .edu-skills-spacer {
    display: none;
}

/* Education */
.edu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edu-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.edu-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--gradient-accent);
    border-radius: 50%;
    margin-top: 8px;
}

.edu-date {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin: 0 0 4px;
    letter-spacing: 1px;
}

.edu-program {
    font-size: 0.95rem;
    margin: 0 0 2px;
}

.edu-institution {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0 0 4px;
}

.edu-link {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.edu-link:hover {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Skills */
.skills-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-card {
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
}

[data-theme="light"] .skill-card {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.08);
}

.skill-card .skill-category {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin: 0 0 16px;
    font-weight: 600;
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.skill-icon svg,
.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-card--design .skill-icon {
    color: #4a9eff;
}

.skill-card--design .skill-icon img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .skill-card--design .skill-icon img {
    filter: none;
}

.skill-card--dev .skill-icon {
    color: #57c785;
}

.skill-card--dev .skill-icon img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .skill-card--dev .skill-icon img {
    filter: none;
}

.skill-card--hardware .skill-icon {
    color: #a78bfa;
}

.skill-card--hardware .skill-icon img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .skill-card--hardware .skill-icon img {
    filter: none;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.skill-tags span {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.75rem;
    color: #b0b0b0;
}

[data-theme="light"] .skill-tags span {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #555;
}

/* Info cards row */
.info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-cards-row > .section-title {
    grid-column: 1 / -1;
    width: fit-content;
}

.info-card-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin: 0 0 16px;
    font-weight: 600;
}

.info-list {
    margin: 0;
    padding: 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-list div:last-child {
    border-bottom: none;
}

[data-theme="light"] .info-list div {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.info-list dt {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.info-list dd {
    margin: 0;
    font-size: 0.85rem;
}

/* Languages */
.lang-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lang-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.lang-name {
    font-size: 0.85rem;
}

.lang-level {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.lang-bar {
    height: 6px;
    background: var(--color-bg);
    border-radius: 3px;
    overflow: hidden;
}

.lang-fill {
    display: block;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Interests */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.interest-tag {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-bg);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.interest-tag-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
    align-self: center;
}

.interest-tag .interest-tag-icon {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .interest-tag .interest-tag-icon {
    filter: brightness(0);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 0 80px;
}

.cta-text {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 4px;
    margin: 0 0 24px;
    line-height: 1.2;
}

.cta-highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.cta-contact img {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 14px 16px;
    transition: background 0.2s, border-color 0.2s, color 0.2s, gap 0.35s ease;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

[data-theme="light"] .cta-btn {
    color: #1a1a1a;
    border-color: #060205;
}

.cta-btn:hover {
    gap: 10px;
    color: #060205;
    background: #ffffff;
    border: 2px solid #ffffff;
}

[data-theme="light"] .cta-btn:hover {
    color: #ffffff;
    background: #060205;
    border-color: #060205;
}

.cta-btn-icon {
    width: 20px;
    height: 20px;
    overflow: hidden;
    opacity: 0;
    max-width: 0;
    flex-shrink: 0;
    transition: max-width 0.35s ease, opacity 0.35s ease;
}

.cta-btn .cta-btn-icon {
    filter: brightness(0) invert(1);
}

.cta-btn:hover .cta-btn-icon {
    max-width: 20px;
    opacity: 1;
    filter: brightness(0);
}

[data-theme="light"] .cta-btn .cta-btn-icon {
    filter: brightness(0);
}

[data-theme="light"] .cta-btn:hover .cta-btn-icon {
    filter: brightness(0) invert(1);
}

a.cta-btn:hover {
    background: #ffffff;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #060205;
}

[data-theme="light"] a.cta-btn:hover {
    background: #060205;
    color: #ffffff;
}

.cta-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.8) translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.4s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        rgba(42, 123, 155, 1),
        rgba(87, 199, 133, 1),
        rgba(237, 221, 83, 1),
        rgba(42, 123, 155, 1)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover::before {
    opacity: 1;
    animation: scroll-to-top-border-loader 0.6s ease-out forwards;
}

@keyframes scroll-to-top-border-loader {
    to {
        transform: rotate(360deg);
    }
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.scroll-to-top:hover {
    border-color: transparent;
}

.scroll-to-top img {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

[data-theme="light"] .scroll-to-top img {
    filter: none;
}

.scroll-to-top:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Footer */
.page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
    }

    .edu-skills-row {
        grid-template-columns: 1fr;
    }

    .edu-skills-row .edu-skills-spacer {
        display: block;
    }

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

    .info-cards-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sticky-header {
        padding: 16px 20px;
    }

    .edu-skills-row .education {
        margin-bottom: 0;
    }

    .main-nav {
        gap: 16px;
    }

    .theme-btn-header {
        margin-right: -16px;
    }

    .theme-btn-header.is-visible {
        margin-right: 0;
    }

    .main-nav .nav-links a {
        font-size: 0.65rem;
    }

    .page-wrapper {
        padding: 0 20px 40px;
    }

    .hero-tags {
        flex-direction: column;
        align-items: center;
    }

    .workspace-carousel {
        margin-bottom: 120px;
    }

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

    .cta-contact {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 700px) {
    .burger-btn {
        display: flex;
    }

    .theme-btn-header {
        display: none !important;
    }

    .theme-btn-burger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 20px 24px;
        font-size: 1rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        background: transparent;
        color: var(--color-text);
        border: none;
        cursor: pointer;
        font-family: inherit;
    }

    .theme-btn-burger .theme-icon {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

    [data-theme="light"] .theme-btn-burger .theme-icon {
        filter: none;
    }

    .theme-btn-burger:hover {
        color: var(--color-accent);
    }

    .theme-btn-burger .theme-btn-burger-text {
        font-size: inherit;
    }

    .nav-email {
        display: none;
    }

    .nav-links .nav-links-email {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-links .nav-links-email img {
        width: 20px;
        height: 20px;
        opacity: 0.9;
        filter: brightness(0) invert(1);
    }

    [data-theme="light"] .nav-links .nav-links-email img {
        filter: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: 100vh;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding: 0;
        background: rgba(6, 2, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 40;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    [data-theme="light"] .nav-links {
        background: rgba(245, 245, 245, 0.98);
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 20px 24px;
        font-size: 1rem !important;
        text-align: center;
    }

    .workspace-carousel {
        margin-bottom: 80px;
    }
}
