:root {
    /* Swiss Minimal Colors */
    --bg-primary: #FAFAF8;
    --bg-secondary: #F4F4F4;
    --text-main: #111111;
    --text-muted: #666666;
    --text-light: #999999;
    
    /* Subtle Accents */
    --accent-blue: #E8F0FE;
    --accent-purple: #F3E8FE;
    --accent-green: #E8FEEF;
    --accent-orange: #FEF4E8;
    
    /* Layout */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-hand: 'Caveat', cursive;
}

[data-theme="dark"] {
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --text-main: #F4F4F4;
    --text-muted: #A0A0A0;
    --text-light: #666666;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
}

/* View Transition API for Theme Toggle Water Effect */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}
[data-theme="dark"] .bg-grid {
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
}

/* Layout Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

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

/* Typography Utilities */
.section-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.handdrawn {
    font-family: var(--font-hand);
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1.2;
    transform: rotate(-5deg);
    position: absolute;
    pointer-events: none;
}

.highlight-handdrawn {
    position: relative;
    display: inline-block;
    color: #4F46E5; /* Subtle purple/blue */
}
.highlight-handdrawn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -5%;
    width: 110%;
    height: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 10" xmlns="http://www.w3.org/2000/svg"><path d="M0 5 Q 50 10 100 0" stroke="%234F46E5" fill="transparent" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.highlight-handdrawn-blue {
    color: #3B82F6;
    font-style: italic;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

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

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

.btn-primary-small {
    background: var(--text-main);
    color: var(--bg-primary);
    padding: 10px 20px;
    font-size: 13px;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-secondary:hover {
    border-color: var(--text-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    border-radius: 100px;
    z-index: 1000;
}

.nav-logo {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -1px;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        list-style: none;
        gap: 32px;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none; /* hidden until active */
        position: absolute;
        top: 70px;
        right: 24px;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 24px;
        flex-direction: column;
        gap: 20px;
        min-width: 200px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        list-style: none;
    }
    .nav-links.active {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-main);
    border-radius: 50%;
}

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

.theme-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-label {
    font-size: 10px;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    position: relative;
}

.gradient-text {
    /* Rich terracotta/maroon to warm dark gray for light mode */
    background: linear-gradient(90deg, #7A1C1C 0%, #4A4141 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

[data-theme="dark"] .gradient-text {
    /* Slightly brighter terracotta to warm light gray for dark mode contrast */
    background: linear-gradient(90deg, #C85A49 0%, #9C928F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hand-hero {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: max-content;
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 16px;
}
@media(max-width: 768px) { .hand-hero { display: none; } }

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    gap: 24px;
}

.hero-socials a {
    color: var(--text-main);
    font-size: 24px;
    transition: opacity 0.2s ease;
}
.hero-socials a:hover { opacity: 0.6; }

.hero-right {
    position: relative;
}

.portrait-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.portrait-glass {
    padding: 0;
    background: transparent;
    border: none;
    position: relative;
}

.portrait-glass::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 3px;
    background: var(--text-main);
    z-index: 5;
}

.portrait-glass img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
    transition: opacity 0.6s ease;
}

.profile-dark {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

[data-theme="dark"] .profile-dark {
    opacity: 1;
}

[data-theme="dark"] .profile-light {
    opacity: 0;
}

.hand-top-left { top: 10%; left: 40px; transform: rotate(-10deg); z-index: 10; }
.hand-bottom-right { bottom: 10%; right: -80px; transform: rotate(5deg); text-align: right; z-index: 10; }

.glass-pill {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pill-dot { width: 8px; height: 8px; border-radius: 50%; }
.pill-dot.blue { background: #3B82F6; }
.pill-dot.purple { background: #8B5CF6; }
.pill-dot.green { background: #10B981; }

.pill-1 { top: 20%; right: -20px; }
.pill-2 { top: 40%; right: -40px; }
.pill-3 { top: 60%; right: -10px; }

/* Stats Panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 40px;
}
@media (min-width: 768px) {
    .stats-panel { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
    padding: 24px;
    position: relative;
}
@media (min-width: 768px) {
    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: var(--glass-border);
    }
}

.stat-number {
    font-size: 10px;
    color: var(--text-light);
    position: absolute;
    top: 16px;
    right: 16px;
}
.stat-icon {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
}
.stat-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}
@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; align-items: center;}
}

.about-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.glass-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.glass-card {
    padding: 32px 24px;
    border-radius: var(--border-radius-md);
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.card-num {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    color: var(--text-light);
}
.glass-card i {
    font-size: 28px;
    margin-bottom: 24px;
    display: inline-block;
}
.glass-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}
.glass-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.tint-blue { background: rgba(232, 240, 254, 0.4); }
.tint-purple { background: rgba(243, 232, 254, 0.4); }
.tint-orange { background: rgba(254, 244, 232, 0.4); }
.tint-green { background: rgba(232, 254, 239, 0.4); }

/* Skills Section */
.skills-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}
.hand-skills {
    right: 10%;
    top: 20px;
}

.skills-track {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    gap: 16px;
    transition: transform 0.2s ease;
}
.skill-card:hover {
    transform: translateY(-5px);
}
.skill-card i {
    font-size: 40px;
}
.skill-card span {
    font-size: 13px;
    font-weight: 500;
}

/* --- EXPERIENCE SECTION --- */
.experience {
    margin-bottom: 24px;
}

.glass-subtle {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.3s ease;
}
[data-theme="dark"] .glass-subtle {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-subtle:hover {
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.05);
    background: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .glass-subtle:hover { background: rgba(30, 30, 30, 0.5); }

.exp-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .exp-top { grid-template-columns: 1fr 1fr; }
}

.exp-role-info {
    position: relative;
}
.exp-num {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}
.exp-category {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}
.exp-role {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.exp-company {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 16px;
}
.exp-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
}

.exp-meta {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.meta-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-light);
}
.meta-val {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.exp-divider {
    height: 1px;
    width: 100%;
    background: var(--glass-border);
    margin-bottom: 40px;
}

.exp-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.exp-learning h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}
.learning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.learning-tags span {
    font-size: 12px;
    padding: 6px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-main);
    background: rgba(255,255,255,0.2);
}

.exp-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}
.exp-arrow-btn:hover {
    background: #3B82F6;
    color: #fff;
    border-color: #3B82F6;
    transform: translateX(5px);
}

.hand-exp {
    bottom: 20px;
    right: 120px;
    font-size: 18px;
}
@media(max-width: 768px) { .hand-exp { display: none; } }

/* --- CERTIFICATIONS SECTION --- */
.certifications {
    margin-bottom: 24px;
    background: #FAFAF8;
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    margin-top: 40px;
}
[data-theme="dark"] .certifications {
    background: transparent;
}
/* Optional: Background glowing blurred blobs can be added here if desired */

.certs-header-new {
    margin-bottom: 60px;
}
.hand-cert-top {
    position: absolute;
    right: 10%;
    top: -30px;
    font-size: 16px;
    color: var(--text-light);
}
@media(max-width: 768px) { .hand-cert-top { display: none; } }

.cert-list-container {
    width: 100%;
}

.cert-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

/* Minor Certificates (All 6) */
.minor-cert {
    position: relative;
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid transparent;
}
.cert-list.expanded .expandable-cert {
    border-top: 1px solid var(--glass-border);
}
.minor-cert:not(:first-child) {
    border-top: 1px solid var(--glass-border);
}
.minor-cert:last-child {
    border-bottom: 1px solid var(--glass-border);
}

.minor-cert > a {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    text-decoration: none;
    color: var(--text-main);
}
@media (min-width: 768px) {
    .minor-cert > a {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 24px 32px;
    }
}

.cert-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cert-dot {
    border-radius: 50%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}
.dot-muted {
    background: var(--text-light);
    width: 6px;
    height: 6px;
    opacity: 0.6;
}

.minor-cert .cert-title {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.cert-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
@media (min-width: 768px) {
    .cert-right { width: auto; gap: 48px; }
}
.cert-meta-info {
    display: flex;
    gap: 16px;
    align-items: center;
}
.cert-provider-icon {
    height: 18px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}
[data-theme="dark"] .cert-provider-icon {
    /* Optional: Brighten some logos in dark mode if needed, e.g., filter: brightness(0) invert(1) for monochrome */
}
.cert-provider {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.cert-year {
    font-size: 12px;
    color: var(--text-light);
    font-family: var(--font-sans);
}

.minor-cert .cert-arrow {
    font-size: 20px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

/* Hidden state for expandable certs */
.cert-list:not(.expanded) .expandable-cert {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    border-width: 0;
}
.cert-list:not(.expanded) .expandable-cert > a {
    padding: 0 32px;
}

/* Minor Hover Effects */
.minor-cert:hover .cert-title {
    color: #3B82F6;
    transform: translateX(4px);
}
.minor-cert:hover .cert-dot.dot-muted {
    background: #3B82F6;
    transform: scale(1.5);
    opacity: 1;
}
.minor-cert:hover .cert-arrow {
    color: #3B82F6;
    transform: translateX(8px);
}

/* View All Button Wrapper */
.cert-view-all-wrapper {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.hand-cert-bottom {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px;
    transform: rotate(-3deg);
}
.btn-cert-pill {
    padding: 16px 36px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.btn-cert-pill:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.08);
}
[data-theme="dark"] .btn-cert-pill {
    background: rgba(30,30,30,0.6);
}
[data-theme="dark"] .btn-cert-pill:hover {
    background: rgba(50,50,50,0.9);
}

/* --- ACHIEVEMENTS SECTION --- */
.ach-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    margin-top: 40px;
}
@media (min-width: 768px) {
    .ach-list { flex-direction: row; gap: 64px; }
}

.ach-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    flex: 1;
}
.ach-row:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.03);
}
[data-theme="dark"] .ach-row:hover { background: rgba(30,30,30,0.4); }

.ach-num {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-light);
    font-family: var(--font-sans);
}
.ach-info h3 {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}
.ach-sem {
    font-size: 13px;
    color: var(--text-muted);
}
.ach-arrow {
    margin-left: auto;
    font-size: 18px;
    color: var(--text-light);
}
.ach-row:hover .ach-arrow {
    color: #3B82F6;
}

.hand-ach {
    position: absolute;
    bottom: -40px;
    right: 0;
    font-size: 18px;
}

/* Projects Header (New) */
.projects-header-new {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 64px;
}
.ph-top-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 24px;
}
.ph-tagline {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}
.ph-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
}
@media (min-width: 1024px) {
    .ph-main {
        grid-template-columns: auto 1fr auto;
        align-items: flex-start;
        gap: 64px;
    }
}

.ph-title-col {
    position: relative;
    display: inline-block;
}
.ph-count {
    position: absolute;
    top: 0;
    right: -32px;
    font-size: 11px;
    color: var(--text-muted);
}

.gradient-text-orange {
    background: linear-gradient(90deg, #C86B49, #FF9A9E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.handdrawn-underline {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
}

.ph-desc-col {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.ph-vertical-divider {
    width: 1px;
    height: 60px;
    background: var(--glass-border);
    display: none;
}
@media (min-width: 768px) { .ph-vertical-divider { display: block; } }

.ph-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 280px;
}

.ph-explore-note {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.ph-explore-note .handdrawn {
    font-size: 14px;
    color: var(--text-main);
    transform: rotate(-3deg);
}
.hand-arrow {
    width: 40px;
    height: 40px;
}

/* Projects List Container */
.projects-list-container {
    position: relative;
    margin-bottom: 48px;
}

.project-list-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(200, 107, 73, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.projects-list-container:hover .project-list-glow {
    opacity: 1;
}

.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.project-list:hover .project-row {
    opacity: 0.7; /* Fade others */
}

/* Project Row */
.project-row {
    border-top: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}
.project-row:last-child {
    border-bottom: 1px solid var(--glass-border);
}

.pr-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 32px 0;
    text-decoration: none;
    color: var(--text-main);
    gap: 24px;
    cursor: pointer;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
    .pr-header { padding: 48px 24px; gap: 48px; }
}

/* Project Left: Number & Divider */
.pr-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.pr-num {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    transition: color 0.4s ease;
    font-family: var(--font-sans);
}
.pr-divider {
    width: 1px;
    height: 32px;
    background: var(--glass-border);
    display: none;
}
@media (min-width: 768px) { .pr-divider { display: block; } }

/* Project Center: Typography */
.pr-center {
    position: relative;
}
.pr-title {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
}

.pr-underline {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0%;
    height: 3px;
    background: #C86B49;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pr-underline-gradient {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #FF9A9E);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hand-pr-note {
    position: absolute;
    top: 50%;
    left: 105%;
    transform: translateY(-50%) rotate(-4deg);
    font-size: 16px;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.project-row.expanded .hand-pr-note {
    opacity: 1;
}

/* Project Right: Arrow & Index */
.pr-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.pr-index {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
    display: none;
}
@media (min-width: 768px) { .pr-index { display: block; } }

.pr-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- DYNAMIC HOVER STATE --- */

.project-row.expanded {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-md);
    z-index: 10;
}
[data-theme="dark"] .project-row.expanded {
    background: rgba(20, 20, 20, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-row:hover:not(.expanded) {
    opacity: 1 !important;
    transform: scale(1.01);
}

.project-row:hover:not(.expanded) .pr-title, .project-row.expanded .pr-title {
    color: #C86B49;
    transform: translateX(8px) scale(1.02);
    font-weight: 800;
}

.project-row:hover:not(.expanded) .pr-underline {
    width: 100%;
}

.project-row.expanded .pr-underline-gradient {
    width: 40%;
}

.project-row:hover:not(.expanded) .pr-num, .project-row.expanded .pr-num {
    color: #C86B49;
}

.project-row:hover:not(.expanded) .pr-arrow {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.project-row.expanded .pr-arrow {
    background: linear-gradient(135deg, #FF9A9E, #FECFEF);
    color: #ffffff;
    border-color: transparent;
    transform: rotate(0deg);
}
[data-theme="dark"] .project-row.expanded .pr-arrow { background: linear-gradient(135deg, #C85A49, #FF9A9E); }

/* Accordion Details */
.pr-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    overflow: hidden;
}

.project-row.expanded .pr-details {
    grid-template-rows: 1fr;
}

.pr-details-inner {
    min-height: 0;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    border-top: 1px solid var(--glass-border);
}

.project-row.expanded .pr-details-inner {
    opacity: 1;
    transform: translateY(0);
    padding: 48px 24px;
}

.pr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
@media (min-width: 768px) {
    .pr-grid { grid-template-columns: 55% 45%; }
}

.pr-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.pr-col-glass {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 32px;
}
[data-theme="dark"] .pr-col-glass {
    background: rgba(30, 30, 30, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
}

.pr-detail-block h4 {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C86B49;
}

.pr-detail-block p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
}

.pr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.pr-pill {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: default;
}
[data-theme="dark"] .pr-pill { background: rgba(0, 0, 0, 0.3); }
.pr-pill:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.pr-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pr-feature-list li {
    font-size: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}
.pr-feature-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3B82F6;
    transition: transform 0.2s ease;
}
.pr-feature-list li:hover::before {
    transform: scale(1.5);
}

.pr-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.pr-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pr-nav-count {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-muted);
}
.pr-nav-line {
    width: 60px;
    height: 1px;
    background: var(--glass-border);
}

.pr-nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.pr-nav-next {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-light);
}

.btn-open-link {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-open-link:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-2px);
}
[data-theme="dark"] .btn-open-link { background: rgba(30, 30, 30, 0.4); }
.btn-close-project:hover {
    background: var(--text-main);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Projects Footer */
.projects-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-top: 24px;
}

.hand-experiments {
    top: -20px;
    left: 10%;
    font-size: 18px;
}

.pf-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pf-controls::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--text-main);
    border-radius: 50%;
}
.pf-text {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-light);
    text-align: right;
    line-height: 1.4;
}

/* --- CONTACT STRIP REDESIGN --- */
.contact-section {
    margin: 120px auto 40px auto;
    position: relative;
    padding: 0 5%;
}

.contact-annotation-wrapper {
    position: absolute;
    top: -50px;
    right: 15%;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hand-connect {
    font-size: 16px;
    color: var(--text-main);
    transform: rotate(-4deg);
}
.hand-arrow-connect {
    width: 40px;
    height: 40px;
}

.contact-strip-glass {
    background: transparent;
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    position: relative;
    overflow: visible;
}
.contact-strip-glass::before {
    display: none;
}
[data-theme="dark"] .contact-strip-glass {
    background: transparent;
    border: none;
    box-shadow: none;
}
[data-theme="dark"] .contact-strip-glass::before {
    display: none;
}

.cs-left, .cs-item {
    position: relative;
    z-index: 1;
}

.cs-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}
.cs-name {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8B5CF6;
    display: inline-block;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.5);
}
.cs-copyright {
    font-size: 11px;
    color: var(--text-muted);
}

.cs-divider {
    width: 1px;
    height: 60px;
    background: var(--glass-border);
    position: relative;
    z-index: 1;
}

.cs-item {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.cs-item:hover {
    background: rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .cs-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cs-index {
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 9px;
    color: var(--text-light);
    opacity: 0.5;
}

.cs-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
    position: relative;
}
[data-theme="dark"] .cs-icon-wrapper { background: rgba(30, 30, 30, 0.6); }

.cs-email-wrapper::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%); z-index: -1; transition: all 0.3s ease; }
.cs-phone-wrapper::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%); z-index: -1; transition: all 0.3s ease; }
.cs-location-wrapper::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 139, 108, 0.1) 0%, transparent 70%); z-index: -1; transition: all 0.3s ease; }

.cs-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.cs-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    transition: all 0.3s ease;
}
.cs-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}
.cs-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    font-family: var(--font-sans);
}

.hand-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0; /* starts hidden */
    height: 10px;
    transition: width 0.4s ease;
}
.cs-item:hover .hand-underline {
    width: 80%;
}
.cs-item:hover .cs-icon {
    transform: scale(1.1);
}
.cs-item:hover .cs-info {
    transform: translateX(3px);
}
.cs-item:hover .cs-email-wrapper::after,
.cs-item:hover .cs-phone-wrapper::after,
.cs-item:hover .cs-location-wrapper::after {
    inset: -8px;
    opacity: 1.5;
}

.cs-copied-msg {
    position: absolute;
    bottom: -20px;
    left: 64px;
    font-size: 10px;
    color: #10B981;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
    font-weight: 600;
}
.cs-copied-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .contact-strip-glass {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 32px;
    }
    .cs-divider {
        width: 100%;
        height: 1px;
    }
    .contact-annotation-wrapper {
        right: auto;
        left: 5%;
        top: -40px;
    }
}
.contact {
    margin: 80px 0;
}
.contact-glass-container {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);

