:root {
    /* --- Modern "Girl Designer" Dark Palette (Accessible) --- */
    --color-bg: #080810;
    --color-bg-alt: #101024;

    --color-text: #F3F4F6;
    --color-text-muted: #B6BCD2;

    /* Accents (soft + premium, not neon harsh) */
    --color-primary: #FF6FB1;
    /* blush pink */
    --color-secondary: #B79CFF;
    /* lavender */
    --color-accent: #7CCBFF;
    /* icy blue */
    --color-warm: #FFD6A5;
    /* peach highlight (used carefully) */

    /* Glow tokens */
    --color-glow: rgba(255, 111, 177, 0.35);
    --color-glow-2: rgba(183, 156, 255, 0.28);
    --color-glow-3: rgba(124, 203, 255, 0.22);

    --blur-amount: 18px;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-outfit: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;

    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 7rem;
    --border-radius: 24px;

    /* Focus ring (accessibility) */
    --focus-ring: 0 0 0 4px rgba(124, 203, 255, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-outfit);
    font-weight: 600;
    line-height: 1.15;
}

p {
    color: var(--color-text-muted);
}

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

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto;
    }
}

/* Base styles for accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    padding: 10px 14px;
    border-radius: 12px;
    z-index: 9999;
}

.skip-link:focus {
    left: 10px;
}

/* Container: fix huge top padding issue */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Text gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-secondary) 60%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 55%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------------------------
   Buttons: modern + accessible
---------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 111, 177, 0.95), rgba(183, 156, 255, 0.92));
    color: #0b0b12;
    box-shadow: 0 12px 30px rgba(255, 111, 177, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(255, 111, 177, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--color-text);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* ---------------------------
   Navbar: frosty + micro motion
---------------------------- */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 92%);
    z-index: 1000;
    padding: 12px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 8, 16, 0.55);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    transition: transform 250ms ease, background 250ms ease, border-color 250ms ease;
}

/* Fix width constraint */
.navbar .container {
    width: 100%;
    margin: 0;
    padding: 0 4px;
    max-width: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.identity-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.identity-role {
    font-size: 0.78rem;
    color: rgba(243, 244, 246, 0.72);
}

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

.nav-links a {
    color: rgba(243, 244, 246, 0.78);
    transition: color 200ms ease, transform 200ms ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-text);
    transform: translateY(-1px);
}

.nav-links .btn-nav-cta {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-text);
    padding: 10px 18px;
    border-radius: 999px;
}

.nav-links .btn-nav-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: 0.3s;
    border-radius: 2px;
}

/* ---------------------------
   Hero: aurora + frost
---------------------------- */
.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-top: 110px;
    padding-bottom: 30px;
    /* navbar spacing */
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 700px at 20% 15%, rgba(255, 111, 177, 0.20), transparent 55%),
        radial-gradient(900px 600px at 80% 20%, rgba(183, 156, 255, 0.18), transparent 55%),
        radial-gradient(900px 600px at 50% 90%, rgba(124, 203, 255, 0.14), transparent 55%),
        linear-gradient(180deg, #070710 0%, #080810 60%, #070710 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.18;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0;
}

.hero-kicker {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(243, 244, 246, 0.86);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.headline-accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    max-width: 720px;
    margin: 0 auto 22px auto;
    font-size: 1.08rem;
    color: rgba(243, 244, 246, 0.75);
}

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

.hero-illustration-container {
    max-width: 280px;
    margin: 0 auto;
    position: relative;
}

#hero-main-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
    animation: float-hero 5s ease-in-out infinite;
}

@keyframes float-hero {

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

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

/* Localized Hero Decorations */
.deco-localized {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.deco-localized-star {
    width: 20px;
    top: 140px;
    left: -40px;
    animation: float-deco 3s ease-in-out infinite;
}

.deco-localized-note {
    width: 20px;
    top: 70px;
    left: 20px;
    animation: float-deco 5s ease-in-out infinite;
}

.deco-localized-drawing {
    width: 20px;
    bottom: 160px;
    right: 35px;
    animation: float-deco 7s ease-in-out infinite;
}

@keyframes float-deco {

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

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

.hero-proof {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.proof-pill {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: rgba(243, 244, 246, 0.90);
}



/* ---------------------------
   Glass Panel Utility
---------------------------- */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ---------------------------
   About + Cards: cleaner depth
---------------------------- */
.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
}

.about-frame {
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 34px;
}

.about-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--color-text);
}

.about-lead {
    max-width: 760px;
    margin: 10px auto 0;
    color: rgba(243, 244, 246, 0.72);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    padding: 22px;
    border-radius: 24px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 10px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.22);
}

.service-icon i {
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    margin-top: 6px;
    font-size: 1.15rem;
}

.service-card p {
    font-size: 0.98rem;
}

/* ---------------------------
   Work cards: micro interactions
---------------------------- */
.work {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
}

.work-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    align-items: center;
    margin-top: -3rem;
    padding: 0 0 3rem 0;
}

.work h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
}

.work-label {
    color: rgba(255, 111, 177, 0.92);
}

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

.project-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.card-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 300ms ease, filter 300ms ease;
}

.project-card:hover .card-image {
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.03);
}

.work .card-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px 18px;
    background: rgba(8, 8, 16, 0.55);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    transform: translateY(12px);
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

.project-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.work .card-info h3 {
    color: var(--color-text);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.project-description {
    color: rgba(243, 244, 246, 0.75);
}

.extra-project {
    display: none;
}

.work-cta {
    text-align: center;
    margin-top: 32px;
}

/* ---------------------------
   Contact: frosted card
---------------------------- */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-mask-image: radial-gradient(circle, #fff 1.2px, transparent 1.2px);
    mask-image: radial-gradient(circle, #fff 1.2px, transparent 1.2px);
    -webkit-mask-size: 35px 35px;
    mask-size: 35px 35px;
    opacity: 0.20;
    pointer-events: none;
    z-index: 1;
}

.contact-container {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.03em;
}

.highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-card {
    border-radius: 24px;
    padding: 18px 0;
}

.social-icon-link {
    color: rgba(243, 244, 246, 0.92);
    transition: transform 200ms ease, color 200ms ease;
}

.social-icon-link:hover {
    transform: translateY(-3px);
    color: var(--color-primary);
}

.social-icon-link i {
    font-size: 34px;
    margin: 0 12px;
}

/* ---------------------------
   Mobile fixes
---------------------------- */
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .container {
        width: 92%;
    }
}

/* Keep your existing float animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Perfect Cross Animation */
    .navbar.active .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar.active .hamburger span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .navbar.active .hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar.active {
        width: 100%;
        top: 0;
        border-radius: 0;
        transform: translateX(-50%);
        /* keep the left: 50% center logic but remove vertical offset */
        transition: none;
        /* remove transition when opening to prevent flicker */
        background: #080810;
        border-color: transparent;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #080810;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

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

/* ---------------------------
   About Page Specifics
---------------------------- */
.about-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
    background: radial-gradient(800px 400px at 50% 40%, rgba(255, 111, 177, 0.15), transparent 60%),
        radial-gradient(600px 400px at 80% 0%, rgba(183, 156, 255, 0.12), transparent 60%),
        var(--color-bg);
}

.about-intro {
    font-size: 1.15rem;
    color: rgba(243, 244, 246, 0.75);
    line-height: 1.6;
    max-width: 700px;
    margin: 1rem auto 0;
}

/* Resume Section */
.resume-section {
    padding: var(--spacing-lg) 0;
}

.resume-block {
    margin-bottom: var(--spacing-lg);
}

.resume-title {
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    display: block;
    color: var(--color-primary);
}

.resume-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 0;
    margin-bottom: 0;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* .resume-left removed as dates are now inline */

.resume-center {
    flex: 1;
}

.resume-company {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--color-text);
}

.resume-date {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 8px;
}

.resume-location {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.resume-desc {
    margin-top: 8px;
    font-size: 0.95rem;
    color: rgba(243, 244, 246, 0.75);
    max-width: 600px;
}

.resume-right {
    flex: 0 0 150px;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Tools Section */
.tools-section {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.tools-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 720px;
    gap: 16px;
    margin: 0 auto;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 90px;
    height: 90px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.2s;
    background: rgba(255, 255, 255, 0.03);
    /* slight base fill */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-card i {
    font-size: 1.5rem;
    color: var(--color-text);
}

.tool-card span {
    font-size: 0.85rem;
    color: rgba(243, 244, 246, 0.8);
}

/* Responsive Resume */
@media (max-width: 768px) {
    .resume-item {
        flex-direction: column;
        gap: 8px;
    }

    .resume-left,
    .resume-right {
        flex: auto;
        text-align: left;
    }
}

/* Footer & Misc overrides (from inline styles) */
footer {
    margin-top: 0;
    text-align: center;
}

.footer-container {
    font-size: 0.8rem;
    padding: 5px 0;
}

/* ---------------------------
   Project Page Specifics
---------------------------- */
.project-hero {
    padding-top: 140px;
    text-align: center;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-family: var(--font-outfit);
    background: linear-gradient(135deg, var(--color-text), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-meta {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-family: var(--font-main);
}

.project-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-main);
}

.project-story {
    margin-bottom: var(--spacing-lg);
    max-width: 650px;
    margin: 40px auto 50px auto;
    text-align: center;
}

.project-story h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.project-story p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(243, 244, 246, 0.85);
}

.project-gallery {
    display: grid;
    margin: 0 0 40px 0;
}

.project-image {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-conclusion {
    margin: 40px 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.project-conclusion p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 500;
    margin: 40px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.back-link:hover {
    border-bottom-color: var(--color-primary);
    transform: translateX(-4px);
}

.cv-download-section {
    text-align: center;
    margin-top: 3rem;
}

/* Override hero headline margin for About page if needed */
.about-hero .hero-headline {
    margin-bottom: 0.5rem;
}