/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.75);
    
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --text-light: #F3F4F6;
    
    /* Purple Accent Theme */
    --accent-primary-rgb: 120, 8, 132;
    --accent-primary: #780884;      /* Vibrant Violet */
    --accent-secondary: #570060;    /* Deep Indigo */
    --accent-light: #FBE6FC;        /* Light lavender/blue */
    --accent-glow: rgba(var(--accent-primary-rgb), 0.15);
    --accent-glow-strong: rgba(var(--accent-primary-rgb), 0.3);
    
    --border-color: rgba(0, 0, 0, 0.06);
    --border-purple: rgba(var(--accent-primary-rgb), 0.12);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 50px rgba(var(--accent-primary-rgb), 0.08);
    --shadow-glow: 0 0 40px rgba(var(--accent-primary-rgb), 0.15);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

/* Dark Mode support built-in or toggled if requested, default to Light Premium as specified */

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

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

/* Spotlights / Premium Blurred Background Blobs */
.spotlight {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.65;
    mix-blend-mode: multiply;
}

.spotlight-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.25) 0%, rgba(87, 0, 96, 0.05) 70%);
    top: -100px;
    right: -100px;
    animation: float-spotlight-1 20s infinite ease-in-out alternate;
}

.spotlight-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.25) 0%, rgba(224, 231, 255, 0.05) 70%);
    top: 30%;
    left: -200px;
    animation: float-spotlight-2 25s infinite ease-in-out alternate;
}

.spotlight-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.25) 0%, rgba(var(--accent-primary-rgb), 0.03) 70%);
    bottom: 50px;
    right: -150px;
    animation: float-spotlight-1 18s infinite ease-in-out alternate-reverse;
}

@keyframes float-spotlight-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -80px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes float-spotlight-2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-80px, 50px) scale(1.05) rotate(180deg); }
    100% { transform: translate(40px, -60px) scale(0.95) rotate(360deg); }
}
.spotlight-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.25) 0%, rgba(87, 0, 96, 0.05) 70%);
    top: -100px;
    right: -100px;
}

.spotlight-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.25) 0%, rgba(224, 231, 255, 0.05) 70%);
    top: 30%;
    left: -200px;
}

.spotlight-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.25) 0%, rgba(var(--accent-primary-rgb), 0.03) 70%);
    bottom: 50px;
    right: -150px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 10px;
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* General Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 75px 0; /* Reduced from 110px to minimize vertical space between sections */
    position: relative;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    font-weight: 400;
    color: var(--text-secondary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.4);
}

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

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(250, 250, 250, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-decoration: none;
}

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

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

.nav-divider {
    color: var(--text-secondary);
    opacity: 0.25;
    font-size: 14px;
    font-weight: 300;
    user-select: none;
    pointer-events: none;
}

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

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

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

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

.btn-contact-nav {
    background-color: var(--accent-light);
    color: var(--accent-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid var(--border-purple);
}

.btn-contact-nav::after {
    display: none;
}

.btn-contact-nav:hover {
    background-color: var(--accent-primary);
    color: var(--text-light);
    border-color: var(--accent-primary);
}

/* Burger menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

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

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 110px;
    padding-bottom: 30px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-purple);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-secondary);
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 54px;
    line-height: 1.15;
    font-weight: 700;
}

.desktop-br {
    display: inline;
}

.nowrap {
    white-space: nowrap;
}

.hero-lead {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 4px;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-top: 4px;
}


.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Portrait image styling with premium framing */
.hero-visual-content {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-card-wrapper {
    position: relative;
    width: 680px;
    height: 610px;
    margin-left: 0;
}



.profile-card-bg {
    display: block;
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: 10%;
    background: radial-gradient(circle, rgba(140, 12, 161, 0.35) 0%, rgba(140, 12, 161, 0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: float-glow 8s ease-in-out infinite alternate;
}

@keyframes float-glow {
    0% {
        transform: scale(0.95) translate(-5px, -5px);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.05) translate(5px, 5px);
        opacity: 1.2;
    }
}

.profile-card {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: visible; /* Prevents container from clipping wide image details */
    transition: var(--transition-smooth);
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    /* High quality rendering tweaks */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Subtle depth drop shadow around the cutout */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.22));
    /* Smooth linear mask at the bottom to fade the torso cutout into the background */
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.profile-floating-badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-purple);
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

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

.float-1 {
    top: 95px;
    left: 155px;
}

.float-2 {
    bottom: 140px;
    right: -25px;
}

.float-3 {
    bottom: 80px;
    right: -25px;
}

.float-4 {
    bottom: 20px;
    right: -25px;
}

.badge-icon {
    font-size: 16px;
}

.badge-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

/* Scroll Down mouse indicator */
.scroll-indicator {
    position: absolute;
    bottom: 95px; /* Positioned above the 80px wave divider to avoid overlap */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-tertiary);
    border-radius: 12px;
    display: block;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 6px;
    background-color: var(--text-tertiary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 14px; }
    100% { opacity: 0; top: 16px; }
}

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

.about-text-wrapper {
    position: relative;
}

.bio-quote {
    position: relative;
    padding-left: 40px;
    padding-right: 40px;
}

.quote-mark {
    position: absolute;
    left: 0;
    top: -20px;
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    opacity: 0.2;
}

.quote-mark-end {
    position: absolute;
    right: 0;
    bottom: -30px;
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    opacity: 0.2;
}

.bio-quote p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* Animated metrics grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: var(--accent-primary);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-purple);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::after {
    width: 100%;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Timeline Components */
.timeline-container {
    margin-top: 80px;
    background: linear-gradient(135deg, #1C0624 0%, #0B000F 100%);
    border: 1px solid rgba(216, 92, 255, 0.15);
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: 0 25px 60px rgba(8, 0, 12, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.timeline-main-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

.timeline-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.timeline-tab-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.timeline-tab-btn.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.timeline-pane {
    display: none;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline-pane.active {
    display: block;
    animation: tab-fade-in 0.5s ease-out;
}

@keyframes tab-fade-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-pane::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: rgba(216, 92, 255, 0.2);
}

/* Timeline Cards */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0B000F;
    border: 3px solid rgba(216, 92, 255, 0.4);
    z-index: 1;
    transition: var(--transition-fast);
}

.timeline-item:hover::before {
    background-color: #D85CFF;
    box-shadow: 0 0 12px #D85CFF;
    border-color: #FFFFFF;
}

.timeline-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
    display: flex;
    gap: 20px;
}

.timeline-card:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(216, 92, 255, 0.35);
    box-shadow: 0 10px 30px rgba(120, 8, 132, 0.25);
}

.timeline-logo-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.timeline-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-period {
    font-size: 13px;
    font-weight: 600;
    color: #D85CFF;
}

.timeline-badge {
    font-size: 11px;
    font-weight: 700;
    background-color: rgba(216, 92, 255, 0.15);
    color: #EED5FA;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    border: 1px solid rgba(216, 92, 255, 0.25);
}

.timeline-role {
    font-size: 20px;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.timeline-company {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   PROJECTS SECTION (BENTO GRID)
   ========================================================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-light);
}

/* Showcase Project Slider */
.showcase-slider-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding: 0 80px;
}

.showcase-slider {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 50px;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 50px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s;
}

.showcase-slider:hover {
    box-shadow: var(--shadow-md);
}

.showcase-info-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    justify-content: center;
}

.showcase-info-panel.transitioning {
    opacity: 0;
}

.showcase-image-panel {
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-image-panel.transitioning {
    opacity: 0;
    transform: scale(0.97);
}

/* Staggered entry transition setup for text elements */
.showcase-meta,
.showcase-title,
.showcase-concept,
.showcase-desc-text,
.showcase-tools,
.showcase-info-panel .btn-discover-project {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade out / Reset state for staggered children */
.showcase-info-panel.transitioning .showcase-meta,
.showcase-info-panel.transitioning .showcase-title,
.showcase-info-panel.transitioning .showcase-concept,
.showcase-info-panel.transitioning .showcase-desc-text,
.showcase-info-panel.transitioning .showcase-tools,
.showcase-info-panel.transitioning .btn-discover-project {
    opacity: 0;
    transform: translateY(20px);
    transition: none; /* instant hide to prevent double delays on exit */
}

/* Staggered delays on fade-in */
.showcase-meta { transition-delay: 0ms; }
.showcase-title { transition-delay: 80ms; }
.showcase-concept { transition-delay: 150ms; }
.showcase-desc-text { transition-delay: 220ms; }
.showcase-tools { transition-delay: 290ms; }
.showcase-info-panel .btn-discover-project { transition-delay: 360ms; }

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

.showcase-index {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.showcase-index span {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 400;
}

.showcase-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(var(--accent-primary-rgb), 0.08);
    color: var(--accent-primary);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.15);
    padding: 5px 12px;
    border-radius: 50px;
}

.showcase-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.showcase-concept {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.showcase-desc-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.showcase-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.showcase-tool-tag {
    font-size: 12px;
    background: rgba(var(--accent-primary-rgb), 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.showcase-image-panel {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.showcase-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Blur & zoom-out scale effect on slider change */
.showcase-image-panel.transitioning .showcase-img {
    opacity: 0;
    filter: blur(15px);
    transform: scale(1.12);
    transition: none; /* Reset instantly so we zoom down smoothly on enter */
}

.showcase-image-wrapper:hover .showcase-img {
    transform: scale(1.04);
}

.showcase-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 5, 22, 0.25), rgba(18, 5, 22, 0));
    pointer-events: none;
}

.showcase-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    padding: 0;
    z-index: 10;
}

.showcase-nav-btn.prev {
    left: 10px;
}

.showcase-nav-btn.next {
    right: 10px;
}

.showcase-nav-btn:hover {
    background: var(--accent-primary);
    color: var(--text-light);
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.08);
}

.showcase-index-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
    width: 100%;
    padding: 0 40px;
}

.index-item-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-body);
}

.index-item-btn .index-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    transition: color 0.3s;
    opacity: 0.7;
}

.index-item-btn .index-name {
    transition: color 0.3s;
}

.index-item-btn:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.4);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.index-item-btn.active {
    background: rgba(var(--accent-primary-rgb), 0.08);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.index-item-btn.active .index-num {
    color: var(--accent-primary);
    opacity: 1;
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    padding: 40px;
}

/* ==========================================================================
   SKILLS SECTION (CARDS)
   ========================================================================== */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.skill-category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.08) 0%, rgba(var(--accent-primary-rgb), 0) 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
    z-index: 1;
}

.skill-category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-primary-rgb), 0.25);
    box-shadow: var(--shadow-lg);
}

.category-title {
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.category-title svg {
    color: var(--accent-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.skill-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.skill-indicator-bar {
    width: 3px;
    height: 38px;
    background-color: var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 4px;
    transition: var(--transition-smooth);
    opacity: 0.6;
}

.skill-item:hover .skill-indicator-bar {
    background-color: var(--accent-primary);
    transform: scaleY(1.15);
    opacity: 1;
}

.skill-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skill-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.skill-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Lower Skills Grid (Tools and Languages) */
.skills-lower-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.tool-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.tool-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
}

.tool-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.45); /* Scale up icons with built-in white space margins */
    transition: var(--transition-smooth);
}

/* For icons that fill the image bounds (Premiere Pro, WordPress, Notion, Meta) */
.tool-icon-wrapper.padded-logo .tool-icon {
    transform: scale(0.75); /* Shrink clean logos to visually match the others exactly! */
}

.tool-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Languages List styling with linear bars */
.languages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.lang-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-info {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
}

.lang-level {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.lang-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 3px;
    width: 0; /* Animated on load/scroll */
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   PROCESS SECTION (CREATIVE WORKFLOW)
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.process-step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.process-step-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-purple);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-primary);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    right: 20px;
}

.step-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: var(--accent-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(var(--accent-primary-rgb), 0.05) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: flex-end;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 24px to bring tagline, title, and card closer together */
}

.contact-tagline {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    background: none;
    -webkit-text-fill-color: initial;
    margin: 0; /* Reset margins to reduce spaces */
}

.title-white {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
    margin: 0; /* Reset margins to reduce spaces */
}

.contact-bio-card {
    display: flex;
    gap: 35px;
    align-items: center;
    margin-top: 15px;
    background-image: url('assets/wendy_contact_photo.png?v=20260819_v28');
    background-repeat: no-repeat;
    background-position: -40px bottom; /* Shifts Wendy to the left boundary */
    background-size: contain; /* Contain scales it perfectly to the container height */
    min-height: 520px; /* Taller height makes the contained image significantly larger */
    position: relative;
    padding-left: 270px; /* Skip the area occupied by Wendy's silhouette */
    box-sizing: border-box;
}

/* Layer a radial vignette overlay on top of the background photo to bleed the edges seamlessly into the page */
.contact-bio-card::after {
    content: '';
    position: absolute;
    left: -60px; /* Extend left to cover the shifted image border */
    top: -20px; /* Extend top to cover top image border */
    width: calc(100% + 60px);
    height: calc(100% + 20px);
    background: 
        /* Left edge fade: covers the sharp boundary at -40px and diffuses to transparent */
        linear-gradient(to right, #0b030e 0%, #0b030e 35px, rgba(11, 3, 14, 0) 120px),
        /* Top edge fade: covers top boundary and diffuses downward */
        linear-gradient(to bottom, #0b030e 0%, #0b030e 20px, rgba(11, 3, 14, 0) 100px),
        /* Bottom edge fade: diffuses upward */
        linear-gradient(to top, #0b030e 0%, rgba(11, 3, 14, 0) 60px),
        /* Right edge fade: blends the photo's right side background into the container */
        linear-gradient(to left, #0b030e 35%, rgba(11, 3, 14, 0) 80%);
    z-index: 1;
    pointer-events: none;
}

.contact-photo-mobile-only {
    display: none;
}

.contact-speech-bubble {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 480px; /* More horizontal! */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    padding: 16px 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation: bubble-float 5s ease-in-out infinite alternate;
}

@keyframes bubble-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* Speech bubble tail pointing left towards Wendy's head/mouth */
.contact-speech-bubble::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 35px; /* Positioned relative to bubble top, pointing directly at face */
    bottom: auto;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.06);
    filter: drop-shadow(-1px 0px 0px rgba(255, 255, 255, 0.12));
}

.contact-speech-bubble p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 400;
}

.contact-bio-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px; /* Vertical gap between bubble and details */
    margin-left: 0;
    width: 100%;
    z-index: 5;
    padding-bottom: 10px;
}

.contact-details-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 0; /* Aligns left below the speech bubble */
    width: fit-content;
    align-items: flex-start;
    margin-top: 0;
}

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

.contact-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(80, 15, 110, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-detail-item:hover .detail-icon {
    background-color: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.detail-text {
    font-size: 15px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.contact-detail-item:hover .detail-text {
    color: var(--accent-purple);
}

.contact-actions {
    margin-top: 5px;
}

.btn-cv-white-pill {
    background-color: #ffffff;
    color: #120516;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14.5px;
    padding: 14px 28px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    border: none;
    text-decoration: none;
}

.btn-cv-white-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    background-color: #ffffff;
    color: #120516;
}

.btn-cv-white-pill svg {
    stroke: currentColor;
}

/* Contact Form styling */
.contact-form {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--border-purple);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, .form-group textarea {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(var(--accent-primary-rgb), 0.12);
}

.btn-submit {
    background-color: var(--accent-primary);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--accent-primary-rgb), 0.25);
    padding: 16px;
    border-radius: 12px;
}

.btn-submit:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.35);
}

.form-feedback {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    min-height: 20px;
    transition: var(--transition-fast);
}

.form-feedback.success {
    color: #10B981;
}

.form-feedback.error {
    color: #EF4444;
}

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

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.footer-copyright {
    font-size: 13.5px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.footer-right p {
    font-size: 13.5px;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   CASE STUDY MODAL (SLIDE-IN DRAWER)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 17, 17, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: 90%;
    max-width: 1200px;
    height: 85%;
    max-height: 850px;
    background-color: var(--bg-primary);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 50px 40px 40px 40px;
    border: 1px solid var(--border-purple);
    border-radius: 28px;
    opacity: 0;
    pointer-events: none;
}

.modal-overlay.open .modal-container {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.modal-body {
    margin-top: 20px;
}

/* Centered Popup split layout */
.modal-split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

.modal-left-panel {
    display: flex;
    flex-direction: column;
}

.modal-right-panel {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-purple);
    padding-left: 50px;
}

.gallery-main-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-purple);
    padding-bottom: 10px;
}

/* Lightbox Styles */
.image-lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 5, 12, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-purple);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* Responsive logic for split container */
@media (max-width: 992px) {
    .modal-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .modal-right-panel {
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
    }
}

/* Modal Content Inner Styling */
.modal-hero-cover {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.modal-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header-info {
    margin-bottom: 40px;
}

.modal-tag {
    font-size: 12px;
    font-weight: 700;
    background-color: var(--accent-light);
    color: var(--accent-secondary);
    padding: 6px 14px;
    border-radius: 10px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 36px;
    margin-bottom: 8px;
    line-height: 1.15;
}

.modal-concept {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Grid layout for meta info and main text */
.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.modal-meta-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    border: 1px solid var(--border-purple);
}

.meta-item {
    flex: 1 1 200px;
}

.meta-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.tech-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.tech-tag {
    font-size: 12px;
    font-weight: 600;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 8px;
}

/* Modal Case Study Body Copy */
.modal-text-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 15.5px;
    line-height: 1.7;
}

.modal-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-secondary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 12px;
}

.modal-text-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Gallery inside Case Study Modal */
.modal-gallery-wrapper {
    margin-top: 40px;
}

.gallery-section {
    margin-bottom: 40px;
}

.gallery-section-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.gallery-grid {
    column-count: 2;
    column-gap: 16px;
    display: block;
}

.gallery-grid.single {
    column-count: 1;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-purple);
    cursor: zoom-in;
    transition: var(--transition-fast);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer classes)
   ========================================================================== */
.reveal-fade-in {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-in.revealed {
    opacity: 1;
}

.reveal-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================================================== */

/* Laptop / Desktop medium scale */
@media (max-width: 1200px) {
    .profile-card-wrapper {
        width: 580px;
        height: 520px;
        margin-left: 0;
    }
    
    .float-1 {
        top: 95px;
        left: 105px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-lead {
        font-size: 19px;
    }
    
    .showcase-slider {
        gap: 30px;
        padding: 35px;
    }
    .showcase-image-panel {
        height: 400px;
    }
    
    .modal-container {
        width: 90%;
        max-height: 85vh;
    }
    
    .modal-overlay.open .modal-container {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .profile-card-wrapper {
        width: 500px;
        height: 450px;
        margin-left: 0;
    }
    
    .float-1 {
        top: 95px;
        left: 65px;
    }
}

/* Tablets (landscape and portrait) */
@media (max-width: 768px) {
    .desktop-br {
        display: none;
    }

    .timeline-container {
        padding: 30px 16px;
        border-radius: 20px;
        margin-top: 50px;
    }

    section {
        padding: 50px 0; /* Reduced from 70px to minimize vertical space on mobile */
    }
    
    .hero-lead {
        font-size: 18px;
    }
    
    .divider-wrapper svg {
        height: 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-text-content {
        align-items: center;
    }
    
    .hero-badge {
        align-self: center;
    }
    
    .hero-visual-content {
        order: -1; /* Image first on mobile */
    }
    
    .profile-card-wrapper {
        width: 280px;
        height: 340px;
        margin: 0 auto;
    }
    
    .float-1 {
        left: -15px;
        top: 40px;
    }
    
    .float-2 {
        bottom: 110px;
        right: -15px;
    }
    
    .float-3 {
        bottom: 65px;
        right: -15px;
    }
    
    .float-4 {
        bottom: 20px;
        right: -15px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .showcase-slider-container {
        padding: 0 45px;
    }

    .showcase-slider {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }
    
    .showcase-image-panel {
        order: -1; /* image on top */
        height: 300px;
    }
    
    .showcase-title {
        font-size: 30px;
    }

    .showcase-nav-btn {
        width: 38px;
        height: 38px;
    }

    .showcase-nav-btn.prev {
        left: 2px;
    }

    .showcase-nav-btn.next {
        right: 2px;
    }

    .showcase-index-container {
        padding: 0 10px;
        gap: 8px;
        margin-bottom: 25px;
        margin-top: 0;
    }

    .index-item-btn {
        padding: 8px 14px;
        font-size: 12.5px;
    }
    
    .skills-wrapper, .skills-lower-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-info-block {
        align-items: center;
        text-align: center;
    }
    
    .contact-bio-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        width: 100%;
        background-image: none !important;
        padding-left: 0 !important;
        min-height: auto !important;
        overflow: visible;
    }
    
    .contact-bio-card::after {
        display: none !important;
    }
    
    .contact-photo-mobile-only {
        display: block;
        width: 290px;
        height: 330px;
        margin: 0 auto;
        overflow: visible;
    }
    
    .contact-photo-mobile-only img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: bottom center;
    }
    
    .contact-speech-bubble {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        max-width: 100% !important;
        margin: 25px auto 10px auto;
        animation: none !important;
        border-radius: 20px !important;
    }
    
    .contact-speech-bubble::before {
        left: 50% !important;
        top: -12px !important;
        bottom: auto !important;
        transform: translateX(-50%);
        border-left: 12px solid transparent !important;
        border-right: 12px solid transparent !important;
        border-bottom: 12px solid rgba(255, 255, 255, 0.06) !important;
        border-top: none !important;
        border-right-color: transparent !important;
        filter: drop-shadow(0px -1px 0px rgba(255, 255, 255, 0.12)) !important;
    }
    
    .contact-bio-content {
        width: 100% !important;
        margin-left: 0 !important;
        align-items: center;
    }
    
    .contact-details-group {
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        height: 90%;
        max-height: 90vh;
        padding: 60px 20px 20px 20px;
        border-radius: 20px;
    }
    
    .modal-overlay.open .modal-container {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .modal-close-btn {
        right: 20px;
        top: 20px;
        left: auto;
    }
    
    /* Navigation toggle */
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 101;
    }
    
    /* When navigation menu is open, toggle animate bars */
    .menu-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Small screen mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-lead {
        font-size: 16px;
        margin-top: 15px;
        margin-bottom: 6px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .showcase-slider-container {
        padding: 0 35px;
    }

    .showcase-slider {
        padding: 20px;
        gap: 20px;
    }
    
    .showcase-image-panel {
        height: 200px;
    }
    
    .showcase-title {
        font-size: 24px;
    }
    
    .showcase-desc-text {
        font-size: 13px;
    }

    .showcase-nav-btn {
        width: 32px;
        height: 32px;
    }

    .showcase-nav-btn.prev {
        left: 0;
    }

    .showcase-nav-btn.next {
        right: 0;
    }

    .showcase-index-container {
        padding: 0;
        gap: 6px;
    }

    .index-item-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .timeline-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .timeline-tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .timeline-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .timeline-logo-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Subtle Premium Dotted Mesh Background Pattern */
.mesh-bg {
    background-image: radial-gradient(rgba(120, 8, 132, 0.04) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

/* Custom SVG Section Dividers */
.divider-wrapper {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
}

.divider-top {
    top: -1px;
}

.divider-bottom {
    bottom: -1px;
}

.divider-wrapper svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Alternate Section Background Colors */
.hero-section {
    background-color: var(--bg-primary);
}

.about-section {
    background-color: var(--bg-secondary);
}

.projects-section {
    background: linear-gradient(180deg, #FAFAFA 0%, #F5EEF9 50%, #FAFAFA 100%);
}

.skills-section {
    background-color: var(--bg-secondary);
}

.process-section {
    background-color: #F8F5FA; /* Extra soft light purple background tint */
}

/* Immersive Dark Section for Contact */
.contact-section {
    background-color: #0b030e; /* Matches the dark background of Wendy's photo exactly */
    color: var(--text-light);
    position: relative;
}

.contact-section .section-tagline {
    color: #FBE6FC; /* Soft glowing magenta tag */
}

.contact-section .contact-title {
    color: var(--bg-primary);
}

.contact-section .contact-desc {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section .contact-detail-item {
    color: rgba(255, 255, 255, 0.9);
}

.contact-section .contact-detail-item:hover {
    color: #FBE6FC;
}

.contact-section .detail-icon {
    background-color: rgba(120, 8, 132, 0.3);
    color: #FBE6FC;
    border: 1px solid rgba(120, 8, 132, 0.5);
}

.contact-section .btn-cv {
    background-color: #FFFFFF;
    color: #120516;
}

.contact-section .btn-cv:hover {
    background-color: var(--accent-light);
    box-shadow: 0 4px 20px rgba(120, 8, 132, 0.5);
}

.contact-section .contact-form {
    background-color: rgba(25, 10, 30, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(120, 8, 132, 0.3);
}

.contact-section .contact-form label {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
    background-color: rgba(18, 5, 22, 0.8);
    border-color: rgba(120, 8, 132, 0.2);
    color: var(--text-light);
}

.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(120, 8, 132, 0.25);
}


/* ==========================================================================
   CREATIVE & PROFESSIONAL INTERACTION STYLES
   ========================================================================== */


/* Mouse Glowing Border Card Effect */
.skill-category-card, .showcase-slider, .process-step-card, .timeline-card {
    position: relative;
    overflow: hidden;
}

/* 3D Tilt container setup */
.showcase-slider, .skill-category-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Glowing Border Glow Overlay */
.card-mouse-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(120, 8, 132, 0.06), transparent 80%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.skill-category-card:hover .card-mouse-glow,
.showcase-slider:hover .card-mouse-glow,
.process-step-card:hover .card-mouse-glow,
.timeline-card:hover .card-mouse-glow {
    opacity: 1;
}

/* Scroll Progress Bar at very top */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    z-index: 999;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Hero section with split gradient: light purple on left (text), dark purple on right (photo) */
.hero-section.mesh-bg {
    background: linear-gradient(100deg, #FDF9FF 0%, #EED5FA 35%, #4a0e53 55%, #120115 80%, #0C000E 100%);
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Dark typography styles for perfect readability on light left background */
.hero-title {
    color: var(--text-primary) !important;
}

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

.hero-lead {
    color: #3A2A40 !important;
}

.hero-lead .text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #D85CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.hero-subtitle {
    color: #55485A !important;
}

/* Styled hero secondary buttons for light background contrast */
.hero-actions .btn-secondary {
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    background-color: transparent !important;
}

.hero-actions .btn-secondary:hover {
    border-color: var(--accent-primary) !important;
    background-color: rgba(120, 8, 132, 0.02) !important;
}

.contact-section.mesh-bg {
    background: #0b030e; /* Solid background matching the photo's background color exactly */
}

@keyframes gradient-shift-split {
    0% { background-position: 0% 50%; }
    100% { background-position: 15% 50%; }
}

@keyframes gradient-shift-dark {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Multi-layered Wavy Transitions styling */


.divider-back {
    opacity: 0.45;
}


/* ==========================================================================
   CV LIGHTBOX MODAL STYLES
   ========================================================================== */
.cv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 5, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cv-modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-modal-overlay.open .cv-modal-container {
    transform: scale(1);
}

.cv-modal-content {
    background-color: var(--bg-card);
    padding: 10px;
    border-radius: 24px;
    border: 1px solid var(--border-purple);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
}

.cv-modal-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cv-modal-close-btn:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

.cv-modal-actions {
    display: flex;
    gap: 15px;
}

/* Re-adjust cursor style for CV button */
.btn-cv {
    cursor: pointer;
}
