/* ===================================================
   CORE VARIABLES (2026 Modern Palette)
   =================================================== */
:root {
    /* Sidebar Colors */
    --sidebar-bg: #1a1a2e;
    --sidebar-accent: #6d4aff;  /* Your purple brand color */
    --sidebar-text: #ffffffcc;
    
    /* Main Viewport Colors */
    --view-bg: #ffffff;
    --view-text: #1a1a1a;
    --card-bg: #f5f5f7;
    
    /* Typography */
    --font-heading: 'Bungee', sans-serif;
    --font-body: 'Muli', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --sidebar-width: 220px;
    --slide-padding: 4vh 5vw;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--view-text);
    background: var(--view-bg);
    overflow: hidden;  /* App manages scroll internally */
}

/* ===================================================
   APP LAYOUT
   =================================================== */
.app {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ===================================================
   FIXED SIDEBAR (STICKY DOCK)
   =================================================== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
    z-index: 1000;
    position: relative;
}

.nav-top {
    margin-bottom: auto;
}

.profile-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sidebar-accent);
    transition: transform 0.2s ease;
}

.profile-logo:hover {
    transform: scale(1.05);
}

/* Menu buttons */
.nav-middle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.nav-middle button {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.8rem 1rem;
    cursor: pointer;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-middle button.active,
.nav-middle button:hover {
    background: var(--sidebar-accent);
    color: white;
}

.nav-middle button i {
    margin-right: 0.5rem;
}

/* Social links bottom */
.nav-bottom {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

.social-link {
    color: var(--sidebar-text);
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    transform: scale(1.2);
    color: white;
}

.lang-flag {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--sidebar-text);
    border-radius: 4px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-flag:hover {
    background: var(--sidebar-accent);
    border-color: var(--sidebar-accent);
}

/* ===================================================
   MAIN VIEWPORT CONTAINER
   =================================================== */
.viewport-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.viewport {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.viewport::-webkit-scrollbar {
    display: none;
}

/* ===================================================
   SLIDE BASE STYLES
   =================================================== */
.slide {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--slide-padding);
    position: relative;
}

/* ===================================================
   INTRO SLIDE (Title/Portrait Centered)
   =================================================== */
.intro-slide {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
}

.hero-content {
    text-align: center;
    max-width: 600px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--sidebar-accent);
    box-shadow: 0 10px 40px rgba(109, 74, 255, 0.2);
}

.hero-content .name {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content .accent {
    color: var(--sidebar-accent);
}

.roles-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.role {
    background: var(--sidebar-accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease;
}

.role:hover {
    transform: translateY(-3px);
}

.privacy-note {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(109, 74, 255, 0.08);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ===================================================
   CONTENT SLIDE (Horizontal Overflow)
   =================================================== */
.content-slide {
    flex-direction: column;
    align-items: stretch;
}

.section-header {
    text-align: left;
    margin-bottom: 1rem;
    padding: 0 var(--slide-padding);
    flex-shrink: 0;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.tile-overflow {
    position: relative;
    flex: 1;
    overflow: hidden;
    width: 100%;
    padding-left: 1px;  /* Trigger :has() selector */
}

.tile-overflow > .tile-grid {
    display: flex;
    gap: 1.5rem;
    padding: 0 0.5rem 0 0;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    height: calc(100% - 1px);
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-accent) transparent;
}

.tile-overflow > .tile-grid::-webkit-scrollbar {
    height: 6px;
}

.tile-overflow > .tile-grid::-webkit-scrollbar-thumb {
    background: var(--sidebar-accent);
    border-radius: 3px;
}

/* Tile sizing variants */
.tile {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(109, 74, 255, 0.15);
}

.tile-large {
    flex-basis: 450px;
}

.tile-small {
    min-width: 240px;
    flex-basis: 260px;
}

.tile-media {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--sidebar-accent);
    background: rgba(109, 74, 255, 0.08);
    border-radius: 8px;
}

.tile h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--sidebar-accent);
}

.tile p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.tile-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tile-links a {
    font-size: 0.8rem;
    color: var(--sidebar-accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--sidebar-accent);
    transition: border-bottom 0.2s ease;
}

.tile-links a:hover {
    border-bottom-style: solid;
}

/* Skill category tiles */
.skill-category {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 350px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    scroll-snap-align: start;
}

.skill-category h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--sidebar-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    background: rgba(109, 74, 255, 0.12);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
}

/* Overflow indicator arrow */
.overflow-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--sidebar-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Show arrow when horizontal scroll exists */
.tile-overflow > .tile-grid {
    --overflow-x: 0px;
}

/* ===================================================
   WORKSHOP SLIDE (Interactive Presentation)
   =================================================== */
.workshop-slide {
    flex-direction: column;
    padding: 0;
    background: #fafafa;
}

.workshop-nav {
    background: white;
    padding: 0.8rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.workshop-nav button {
    background: none;
    border: 1px solid transparent;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    color: #666;
}

.workshop-nav button.active,
.workshop-nav button:hover {
    background: var(--sidebar-accent);
    color: white;
}

.workshop-content {
    flex: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2rem;
}

.ws-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    min-width: 100%;
    padding: 1rem 0;
    scroll-snap-align: start;
}

.ws-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    flex: 1 1 400px;
    scroll-snap-align: start;
}

.ws-large {
    flex-basis: 800px;
}

.ws-medium {
    flex-basis: 350px;
}

.ws-card h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.8rem;
    color: var(--sidebar-accent);
}

.ws-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.ws-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #444;
}

.ws-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.ws-card li {
    margin-bottom: 0.4rem;
}

blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    border-left: 3px solid var(--sidebar-accent);
    padding-left: 1rem;
    margin: 1rem 0;
}

.result {
    font-family: monospace;
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    word-break: break-all;
}

.note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    background: var(--sidebar-accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease;
}

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

/* ===================================================
   CONTACT SLIDE
   =================================================== */
.contact-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.contact-item a {
    color: var(--sidebar-accent);
    text-decoration: none;
}

.companies h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.companies a {
    color: var(--sidebar-accent);
    text-decoration: none;
    border-bottom: 1px dotted;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */
@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 0.8rem;
        flex-direction: row;
    }
    
    .nav-middle button span:not(.icon) {
        display: none;
    }
    
    .nav-middle button i {
        margin-right: 0;
    }
    
    .profile-logo {
        width: 50px;
        height: 50px;
        margin: 0;
    }
    
    .nav-bottom {
        display: none;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .hero-content .name {
        font-size: 2rem;
    }
    
    .tile {
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .roles-list {
        font-size: 0.65rem;
    }
    
    .tile-overflow > .tile-grid {
        gap: 1rem;
    }
    
    .workshop-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}
