/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-darkest: #070a0e;
    --bg-darker: #0c1016;
    --bg-dark: #121820;
    --bg-card: #18202b;
    --bg-card-hover: #1e2936;
    
    --primary: #e2a83c;
    --primary-hover: #f3ba4f;
    --primary-glow: rgba(226, 168, 60, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #8c97a4;
    --text-muted: #5e6b7c;
    
    --border-color: #212c3b;
    --border-color-hover: #324258;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Spacing & Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
    
    /* Container Width */
    --container-max-width: 1200px;

    /* Header dynamic styles */
    --header-bg: rgba(7, 10, 14, 0.8);
    --header-bg-scrolled: rgba(7, 10, 14, 0.95);
    --header-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for sticky header */
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

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

.section-padding {
    padding: 120px 0;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   TYPOGRAPHY & SECTIONS
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.highlight-yellow {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.highlight-yellow-italic {
    color: var(--primary);
    font-style: italic;
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    display: block;
    font-family: var(--font-code);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 480px;
    line-height: 1.6;
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

@media (max-width: 768px) {
    .section-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .section-title {
        font-size: 32px;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(226, 168, 60, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: rgba(226, 168, 60, 0.03);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: var(--header-bg-scrolled);
    box-shadow: var(--header-shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}

.logo-tag {
    color: var(--primary);
}

.logo-text {
    color: var(--text-primary);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--primary);
    color: var(--bg-darkest);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(226, 168, 60, 0.2);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    color: var(--text-primary);
    z-index: 1100;
}

/* Mobile Overlay Menu */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-darkest);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile-overlay.open {
    transform: translateY(0);
}
.menu-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-primary);
    padding: 8px;
}
.menu-close-btn:hover {
    color: var(--primary);
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.nav-mobile-link {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-mobile-link:hover {
    color: var(--primary);
}

.nav-mobile-btn {
    background-color: var(--primary);
    color: var(--bg-darkest);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    padding: 12px 40px;
    border-radius: 6px;
    margin-top: 16px;
    width: 200px;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}

/* ==========================================================================
   FLOATING SIDE NAVIGATION
   ========================================================================== */
.floating-nav {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 900;
}

.floating-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: var(--transition-smooth);
}

.nav-label {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.floating-nav-item:hover .nav-dot,
.floating-nav-item.active .nav-dot {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    width: 8px;
    height: 8px;
}

.floating-nav-item:hover .nav-label,
.floating-nav-item.active .nav-label {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

@media (max-width: 1200px) {
    .floating-nav {
        display: none;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-family: var(--font-code);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-name {
    display: block;
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 32px auto;
}

/* Tech badges under hero description */
.hero-tech-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.tech-badge:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Portrait Image with offset border */
.hero-image-wrapper {
    display: none;
}

@media (max-width: 992px) {
    .hero-name {
        font-size: 56px;
    }
    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .hero-name {
        font-size: 42px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   EXPERTISE SECTION
   ========================================================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.expertise-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.expertise-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Spans over columns in CSS grid for a staggered dashboard feel */
.expertise-card.highlight-card {
    grid-column: span 4;
}

.expertise-card:not(.highlight-card) {
    grid-column: span 2;
}

/* Layout adjusting on tablet and mobile */
@media (max-width: 992px) {
    .expertise-card.highlight-card {
        grid-column: span 3;
    }
    .expertise-card:not(.highlight-card) {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .expertise-card.highlight-card, 
    .expertise-card:not(.highlight-card) {
        grid-column: span 1;
    }
}

.card-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-icon {
    color: var(--primary);
}

.card-badge {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    background-color: var(--primary-glow);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(226, 168, 60, 0.3);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

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

.card-tag {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.expertise-card:hover .card-tag {
    color: var(--text-secondary);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    transition: var(--transition-smooth);
}

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

/* Featured project style (horizontal) */
.project-featured {
    flex-direction: row;
    height: 420px;
}

.project-featured .project-img-wrapper {
    flex: 1.2;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-right: 1px solid var(--border-color);
}

.project-featured.project-inverted .project-img-wrapper {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.project-featured .project-info {
    flex: 0.8;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.project-tag {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Highlight specific tags on project hover */
.project-card:hover .project-tag {
    border-color: var(--border-color-hover);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    letter-spacing: 0.5px;
    width: fit-content;
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--primary-hover);
}

.project-link:hover svg {
    transform: translate(2px, -2px);
}

/* Inverted horizontal project card */
.project-inverted {
    flex-direction: row;
}

/* Subgrid for smaller projects */
.projects-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-small {
    flex-direction: column;
}

.project-small .project-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.project-small .project-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-small .project-description {
    font-size: 14px;
    flex-grow: 1;
}

.project-small .project-title {
    font-size: 22px;
}

/* Full Width inside the subgrid */
.project-grid-full {
    grid-column: span 2;
    flex-direction: row;
    height: 280px;
}

.project-grid-full .project-img-wrapper {
    flex: 1;
    height: 100%;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
}

.project-grid-full .project-info {
    flex: 1;
    padding: 32px;
}

@media (max-width: 992px) {
    .project-featured,
    .project-featured.project-inverted,
    .project-grid-full {
        flex-direction: column;
        height: auto;
    }
    
    .project-featured .project-img-wrapper,
    .project-grid-full .project-img-wrapper {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        aspect-ratio: 16 / 10;
    }
    
    .project-featured .project-info,
    .project-grid-full .project-info {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .projects-subgrid {
        grid-template-columns: 1fr;
    }
    .project-grid-full {
        grid-column: span 1;
    }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.exp-counter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    text-shadow: 0 0 40px var(--primary-glow);
}

.exp-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Badges lists with borders */
.stack-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
}

.stack-badge-title {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.stack-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.stack-badge-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.yellow {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

/* About career paragraphs */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Skill chips */
.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.skill-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-chip svg {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-left {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .stack-list {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .about-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Glow effect in background of contact card */
.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.contact-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.contact-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Social links row */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 8px;
    background-color: var(--bg-darkest);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.contact-link-item:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    border-radius: 40px;
    background-color: var(--primary);
    color: var(--bg-darkest);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(226, 168, 60, 0.2);
}

.contact-cta-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(226, 168, 60, 0.35);
}

@media (max-width: 768px) {
    .contact-card {
        padding: 60px 24px;
    }
    .contact-title {
        font-size: 36px;
    }
    .contact-links {
        gap: 16px;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    .contact-link-item {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
    .contact-cta-btn {
        width: 100%;
        padding: 16px 24px;
    }
}

/* ==========================================================================
   EXPERIENCE SECTION (TABS & TIMELINE)
   ========================================================================== */
.experience-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    align-items: start;
    min-height: 450px;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
    padding-left: 0;
}

.tab-btn {
    text-align: left;
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    margin-left: -2px; /* Overlap border */
    transition: var(--transition-smooth);
    background: transparent;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.tab-btn:hover {
    color: var(--primary);
    background-color: rgba(226, 168, 60, 0.02);
}

.tab-btn.active {
    color: var(--primary);
    background-color: rgba(226, 168, 60, 0.05);
    border-left-color: var(--primary);
}

.experience-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    min-height: 100%;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
    display: block;
}

.exp-role {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.exp-company {
    color: var(--primary);
    font-weight: 600;
}

.exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    align-items: center;
}

.exp-meta-separator {
    color: var(--border-color);
}

.exp-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.exp-section-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-section-title::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

.exp-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.exp-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.exp-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
}

.exp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.exp-skill-badge {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
}

/* CV Button Specific micro-animations */
.btn-cv svg {
    transition: transform 0.2s ease;
}

.btn-cv:hover svg {
    transform: translateY(2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .experience-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .experience-tabs {
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid var(--border-color);
        overflow-x: auto;
        padding-left: 0;
        padding-bottom: 0;
        margin-bottom: 16px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        border-left: none;
        border-bottom: 2px solid transparent;
        margin-left: 0;
        margin-bottom: -2px;
        padding: 12px 24px;
        white-space: nowrap;
        border-radius: 4px 4px 0 0;
    }
    
    .tab-btn.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
    }
}

@media (max-width: 576px) {
    .experience-content {
        padding: 24px;
    }
    .exp-role {
        font-size: 20px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-darkest);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-code);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link:hover {
    color: var(--text-secondary);
}

.developed-by {
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .footer-links {
        justify-content: center;
    }
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-left: 12px;
}

.lang-btn {
    color: var(--text-secondary);
    transition: var(--transition-fast);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background-color: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(226, 168, 60, 0.3);
}

.lang-separator {
    color: var(--border-color);
    user-select: none;
}

.lang-switcher-mobile {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
}

.lang-switcher-mobile .lang-btn {
    font-size: 18px;
    padding: 6px 12px;
}

/* ==========================================================================
   LIGHT THEME VARIABLES
   ========================================================================== */
body.light-theme {
    --bg-darkest: #f1f5f9;      /* slate-100 */
    --bg-darker: #f8fafc;       /* slate-50 */
    --bg-dark: #e2e8f0;         /* slate-200 */
    --bg-card: #ffffff;         /* white */
    --bg-card-hover: #f1f5f9;   /* slate-100 */
    
    --primary: #d97706;         /* amber-600 (melhor legibilidade no branco) */
    --primary-hover: #b45309;   /* amber-700 */
    --primary-glow: rgba(217, 119, 6, 0.1);
    
    --text-primary: #0f172a;    /* slate-900 */
    --text-secondary: #475569;  /* slate-600 */
    --text-muted: #64748b;      /* slate-500 */
    
    --border-color: #e2e8f0;    /* slate-200 */
    --border-color-hover: #cbd5e1; /* slate-300 */
    
    --header-bg: rgba(248, 250, 252, 0.8);
    --header-bg-scrolled: rgba(248, 250, 252, 0.95);
    --header-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
    margin-left: 12px;
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: var(--primary-glow);
    transform: translateY(-1px);
}

.theme-toggle-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(15deg);
}

/* Visibilidade alternada dos ícones de Sol/Lua */
body:not(.light-theme) .theme-icon-sun {
    display: block;
}
body:not(.light-theme) .theme-icon-moon {
    display: none;
}
body.light-theme .theme-icon-sun {
    display: none;
}
body.light-theme .theme-icon-moon {
    display: block;
}

/* Ajuste do botão de alternância para o menu mobile */
.theme-toggle-btn-mobile {
    margin-top: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

