/* ===== PORTFOLIO CSS ===== */

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-bg-light: #111111;
    --color-bg-lighter: #1a1a1a;
    --color-surface: #222222;
    --color-surface-light: #2a2a2a;

    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-text-dim: #666666;

    --color-accent: #fbbf24;
    --color-accent-light: #fcd34d;
    --color-accent-dark: #f59e0b;

    --color-secondary: #10b981;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
}

.section--dark {
    background-color: var(--color-bg-light);
}

.section--alt {
    background-color: var(--color-bg-lighter);
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section__label--light {
    color: var(--color-accent-light);
}

.section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section__title--light {
    color: var(--color-text);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn--primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.btn--secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-surface-light);
}

.btn--secondary:hover {
    background: var(--color-surface-light);
    border-color: var(--color-text-dim);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--full {
    width: 100%;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-surface);
    transition: all var(--transition-base);
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__logo-divider {
    color: var(--color-accent);
    font-weight: 300;
    margin: 0 10px;
}

.nav__logo-sub {
    font-weight: 400;
    color: var(--color-text-muted);
}

.nav__logo:hover {
    color: var(--color-accent);
}

.nav__menu {
    display: flex;
    gap: 8px;
}

.nav__link {
    padding: 10px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav__link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav__cta {
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav__cta:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1517134191118-9d595e4c8c2b?w=1920&q=80');
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.2) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.hero__content {
    position: relative;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero__greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__name {
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.hero__name::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -0.05em;
    right: -0.05em;
    height: 0.35em;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    z-index: -1;
    transform: skewX(-3deg);
}

.hero__title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__amp {
    color: var(--color-accent);
    font-weight: 600;
}

.hero__tagline {
    font-size: 1.125rem;
    color: var(--color-text-dim);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text-dim);
}

.hero__scroll span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ===== STATS ===== */
.stats {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-surface);
    border-bottom: 1px solid var(--color-surface);
}

.stats__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stats__item {
    text-align: center;
    padding: 24px;
}

.stats__number {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.stats__label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== ABOUT ===== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about__image {
    position: relative;
}

.about__image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about__image-placeholder {
    aspect-ratio: 4/5;
   /* background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=600&q=80');
   */ background-image: url('../images/laptopcoding.jpg');
    background-size: cover;
    background-position: center;
}

.about__image-accent {
    position: absolute;
    top: 24px;
    left: 24px;
    right: -24px;
    bottom: -24px;
    border: 2px solid var(--color-accent);
    border-radius: 16px;
    z-index: -1;
}

.about__content .section__title {
    text-align: left;
    margin-bottom: 24px;
}

.about__text {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.about__highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-text);
}

.about__highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: 12px;
    color: var(--color-accent);
}

/* ===== SKILLS ===== */
.skills__list {
    max-width: 700px;
    margin: 0 auto;
}

.skills__item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-surface-light);
}

.skills__item:first-child {
    padding-top: 0;
}

.skills__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.skills__marker {
    flex-shrink: 0;
    width: 3px;
    height: 100%;
    min-height: 60px;
    background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
    border-radius: 2px;
}

.skills__content {
    flex: 1;
}

.skills__category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.skills__tech {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 300;
}

.skills__certs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.skills__cert {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(251, 191, 36, 0.1);
    color: var(--color-accent);
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    letter-spacing: 0.02em;
}

/* Legacy table support */
.skills__table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-surface-light);
    overflow: hidden;
}

.skills__row {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-bottom: 1px solid var(--color-surface-light);
}

.skills__row:last-child {
    border-bottom: none;
}

.skills__label {
    padding: 20px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
}

.skills__items {
    padding: 20px 24px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.skills__row--highlight .skills__items {
    gap: 12px;
}

/* ===== PROJECTS ===== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-surface-light);
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__link {
    padding: 12px 24px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
    border-radius: 8px;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.project-card:hover .project-card__link {
    transform: translateY(0);
}

.project-card__content {
    padding: 28px;
}

.project-card__year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

.project-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 8px 0 12px;
}

.project-card__description {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-card__tags span {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-bg-light);
    color: var(--color-text-muted);
    border-radius: 4px;
}

.project-card__links {
    display: flex;
    gap: 12px;
}

.project-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg-light);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.project-card__btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.projects__more {
    text-align: center;
    margin-top: 48px;
}

/* ===== EXPERIENCE ===== */
.timeline {
    max-width: 800px;
    margin: 0 auto 64px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-surface);
}

.timeline__item {
    position: relative;
    padding-left: 48px;
    padding-bottom: 48px;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 3px solid var(--color-bg-lighter);
}

.timeline__content {
    background: var(--color-surface);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--color-surface-light);
}

.timeline__date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.timeline__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 8px 0 4px;
}

.timeline__company {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.timeline__description {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline__tags span {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-bg-light);
    color: var(--color-text-muted);
    border-radius: 4px;
}

/* Education Card */
.education-card {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto 48px;
    padding: 24px;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-surface-light);
}

.education-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.education-card__degree {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.education-card__school {
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.education-card__details {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.experience__cta {
    text-align: center;
}

/* ===== CONTACT ===== */
.contact {
    position: relative;
    overflow: hidden;
}

.contact__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.contact__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.contact__content .section__title {
    text-align: left;
}

.contact__text {
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-surface);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.contact__item:hover {
    background: var(--color-surface-light);
    transform: translateX(8px);
}

.contact__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 10px;
    color: var(--color-accent);
}

.contact__label {
    font-weight: 500;
}

/* Contact Form */
.contact__form-wrapper {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-surface-light);
}

.form__group {
    position: relative;
    margin-bottom: 24px;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-light);
    border: 2px solid var(--color-surface-light);
    border-radius: 10px;
    transition: all var(--transition-fast);
    resize: none;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-bg);
}

.form__group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form__group textarea ~ label {
    top: 20px;
    transform: none;
}

.form__group input:focus ~ label,
.form__group input:not(:placeholder-shown) ~ label,
.form__group textarea:focus ~ label,
.form__group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    transform: none;
    font-size: 0.75rem;
    color: var(--color-accent);
    background: var(--color-surface);
    padding: 0 8px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-surface);
    padding: 48px 0;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__logo {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.footer__logo-divider {
    color: var(--color-accent);
    font-weight: 300;
    margin: 0 8px;
}

.footer__logo-sub {
    font-weight: 400;
    color: var(--color-text-muted);
}

.footer__nav {
    display: flex;
    gap: 32px;
}

.footer__nav a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

.footer__bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-surface);
}

.footer__bottom p {
    font-size: 0.875rem;
    color: var(--color-text-dim);
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__image {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav__menu,
    .nav__cta {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        padding: 24px;
        border-top: 1px solid var(--color-surface);
    }

    .nav__menu.active .nav__link {
        padding: 16px;
        text-align: center;
    }

    .stats__container {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero__buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline__marker {
        left: 0;
    }

    .timeline__item {
        padding-left: 36px;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .footer__content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer__brand {
        flex-direction: column;
    }

    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }
}

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

    .skills__label {
        padding: 16px 20px 8px;
        background: transparent;
    }

    .skills__items {
        padding: 8px 20px 16px;
    }
}

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

    .stats__item {
        padding: 16px;
    }

    .project-card__content {
        padding: 20px;
    }

    .timeline__content {
        padding: 20px;
    }

    .contact__form-wrapper {
        padding: 24px;
    }
}

/* ===== GALLERY LIGHTBOX ===== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.gallery-lightbox__container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-lightbox.active .gallery-lightbox__container {
    transform: scale(1);
}

.gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-lightbox__close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(90deg);
}

.gallery-lightbox__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 0;
    padding: 60px 0 20px;
}

.gallery-lightbox__nav {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-lightbox__nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
    transform: scale(1.1);
}

.gallery-lightbox__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.gallery-lightbox__nav:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.gallery-lightbox__image-wrapper {
    position: relative;
    flex: 1;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-lightbox__image.loaded {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.gallery-lightbox__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-lightbox__image.loaded + .gallery-lightbox__loader,
.gallery-lightbox__loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.gallery-lightbox__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: gallerySpinner 0.8s linear infinite;
}

@keyframes gallerySpinner {
    to { transform: rotate(360deg); }
}

.gallery-lightbox__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
}

.gallery-lightbox__counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.gallery-lightbox__current {
    color: var(--color-accent);
    font-weight: 600;
}

.gallery-lightbox__thumbnails {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}

.gallery-lightbox__thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-lightbox__thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-lightbox__thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
}

.gallery-lightbox__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
    transform: scale(1);
}

.gallery-lightbox__thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-lightbox__thumb.active {
    opacity: 1;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.gallery-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Slide Animations */
.gallery-lightbox__image.slide-left {
    animation: slideLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-lightbox__image.slide-right {
    animation: slideRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-lightbox__container {
        padding: 12px;
    }

    .gallery-lightbox__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox__main {
        padding: 50px 0 10px;
    }

    .gallery-lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .gallery-lightbox__nav svg {
        width: 24px;
        height: 24px;
    }

    .gallery-lightbox__thumb {
        width: 56px;
        height: 42px;
    }
}

/* ===== PHILOSOPHY/APPROACH ===== */
.philosophy {
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    overflow: hidden;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.philosophy__container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy__quote-mark {
    font-size: 8rem;
    font-family: Georgia, serif;
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: -3rem;
    user-select: none;
}

.philosophy__headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.philosophy__headline em {
    font-style: normal;
    color: var(--color-accent);
    font-weight: 600;
}

.philosophy__divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 2.5rem auto;
}

.philosophy__text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.philosophy__text:last-of-type {
    margin-bottom: 0;
}

.philosophy__emphasis {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2rem;
    background: var(--color-surface);
    border-left: 3px solid var(--color-accent);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--color-text);
    border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
    .philosophy__quote-mark {
        font-size: 5rem;
        margin-bottom: -2rem;
    }

    .philosophy__headline {
        font-size: 1.5rem;
    }

    .philosophy__text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-lightbox__nav {
        display: none;
    }

    .gallery-lightbox__image-wrapper {
        touch-action: pan-x;
    }

    .gallery-lightbox__footer {
        gap: 12px;
    }

    .gallery-lightbox__thumb {
        width: 48px;
        height: 36px;
    }
}
