/* ==========================================================================
   Style Reset & Variables
   ========================================================================== */
:root {
    --bg-color: #ffffff;
    --bg-offset: #f8f9fa;
    --bg-dark: #0a0a0a;
    --bg-dark-offset: #121212;

    --text-color: #111111;
    --text-muted: #666666;
    --text-light: #f8f9fa;
    --text-dark-muted: #888888;

    --accent: #5925ff; /* Electric Violet */
    --accent-glow: rgba(89, 37, 255, 0.15);
    --accent-green: #00d26a; /* Pulsing green indicator */
    --accent-green-glow: rgba(0, 210, 106, 0.3);

    --border-color: #eaeaea;
    --border-dark: #222222;

    --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 1400px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    font-family: var(--font-primary);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

/* ==========================================================================
   Typography & Reusable Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-medium);
    cursor: pointer;
}

.btn i {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-medium);
}

.btn-black-pill {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid var(--text-color);
}

.btn-black-pill:hover {
    background-color: transparent;
    color: var(--text-color);
}

.btn-black-pill:hover i {
    transform: translate(2px, -2px);
}

.btn-white-pill {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 12px 26px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.btn-white-pill:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.btn-white-pill:hover i {
    transform: translate(2px, -2px);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hover-lift:hover {
    transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Section Common Spacing */
section {
    position: relative;
    padding: 120px 8%;
    width: 100%;
}

/* Section BG Large Title */
.section-bg-title-wrapper {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.section-bg-title {
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-bg-title-wrapper.dark .section-bg-title {
    color: rgba(255, 255, 255, 0.015);
}

.section-header-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    width: 100%;
}

.filter-wrapper {
    display: flex;
    align-items: center;
}

/* Outer single pill container enclosing all filter options */
.filter-tabs-pill-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--bg-offset);
    border: 1px solid var(--border-color);
    padding: 5px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Inner individual filter pills */
.filter-tab {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-color);
}

.filter-tab.active {
    color: var(--text-color);
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.section-heading.dark {
    color: var(--text-light);
}

/* ==========================================================================
   Custom Cursor (Desktop Only)
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
}

.custom-cursor .cursor-text {
    font-size: 10px;
    font-weight: 600;
    color: white;
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
}

.custom-cursor.hovered {
    width: 70px;
    height: 70px;
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-cursor.hovered .cursor-text {
    opacity: 1;
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 8%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: transform var(--transition-medium);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

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

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

/* ==========================================================================
   Hero Section (Split Layout: Left Typography/Info, Right Headshot)
   ========================================================================== */
.hero-section {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    padding: 80px 6% 0 6%;
    background-color: var(--bg-color);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    max-width: 1750px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Left Typography Block */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 90px;
    z-index: 3;
}

.hero-name-block {
    display: flex;
    flex-direction: column;
    line-height: 0.92;
    margin-bottom: 34px;
    user-select: none;
}

.hero-first-name {
    font-size: clamp(4.8rem, 8.5vw, 8.5rem);
    font-weight: 900;
    color: #000000;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0;
    padding: 0;
}

.hero-last-name {
    font-size: clamp(4.8rem, 8.5vw, 8.5rem);
    font-weight: 900;
    color: #000000;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0;
    padding: 0;
}

.hero-bio-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 440px;
}

.hero-role-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hero-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 24px;
}

/* Hero Connect badge (LinkedIn Pill) */
.hero-connect {
    display: flex;
    align-items: center;
}

.connect-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
}

.connect-badge-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #0077b5; /* LinkedIn brand blue */
}

.connect-badge:hover {
    border-color: #0077b5;
    box-shadow: 0 4px 14px rgba(0, 119, 181, 0.15);
    transform: translateY(-2px);
}

/* Right Photo Placement */
.hero-right {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
    height: 100%;
}

.hero-photo-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.hero-photo {
    width: 135%;
    max-width: 1480px;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    object-position: bottom center;
    filter: grayscale(100%) contrast(108%);
    display: block;
    transform: translateX(-120px);
    transition: filter var(--transition-medium);
}

/* ==========================================================================
   About Section (Simplified 1-Column Layout)
   ========================================================================== */
.about-section {
    background-color: var(--bg-offset);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 120px 8%;
}

.about-container {
    max-width: var(--max-width);
    margin: 0;
    position: relative;
    z-index: 2;
    padding-left: 0;
}

.about-left-full {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.about-headline {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.15rem;
}

/* ==========================================================================
   Work / Selected Projects Section (3-Column Vertical 9:16 Layout)
   ========================================================================== */
.work-section {
    background-color: var(--bg-color);
}

/* 3-Column Vertical Grid Layout */
.projects-grid.portrait-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    opacity: 1;
    transform: scale(1);
}

/* Handle CSS Filter Transitions */
.project-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
}

/* Portrait aspect ratio 9 / 16 */
.project-image-box {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    background-color: var(--bg-offset);
    border: 1px solid var(--border-color);
}

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

/* Top Badge on Image */
.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Custom Circle Hover Overlay on Image */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 1;
}

.project-overlay-btn {
    width: 60px;
    height: 60px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: scale(0.8);
    transition: transform var(--transition-medium);
}

.project-overlay-btn i {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}

/* Card Text Info */
.project-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 4px;
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tags badges at bottom */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.project-tag {
    background-color: var(--bg-offset);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Card Hover Animations */
.project-card:hover .project-image {
    transform: scale(1.04);
}

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

.project-card:hover .project-overlay-btn {
    transform: scale(1);
}

.project-card:hover .project-title {
    color: var(--accent);
}

/* ==========================================================================
   Skills Section (Premium Dark Theme)
   ========================================================================== */
.skills-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: 1px solid var(--border-dark);
}

.skills-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 40px;
    width: 100%;
}

.skills-subheading {
    color: var(--text-dark-muted);
    max-width: 440px;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: right;
}

/* Skills Rows List */
.skills-list {
    display: flex;
    flex-direction: column;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.skill-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr auto;
    gap: 40px;
    align-items: center;
    padding: 36px 20px;
    border-bottom: 1px solid var(--border-dark);
    transition: all var(--transition-fast);
    position: relative;
    cursor: default;
}

.skill-row:first-of-type {
    border-top: 1px solid var(--border-dark);
}

.skill-cat-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.skill-cat-desc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-cat-desc {
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    line-height: 1.55;
}

.skill-cat-tools {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Step marker: rounded pill / rounded rectangle with indicator dot */
.skill-step-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

/* Small active indicator dot (blue-outlined glow dot as in reference) */
.skill-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #5925ff;
    background-color: transparent;
    opacity: 0;
    transform: scale(0.6);
    transition: all var(--transition-fast);
}

.skill-row:hover .skill-step-dot,
.skill-row.active .skill-step-dot {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(89, 37, 255, 0.6);
    background-color: #5925ff;
}

/* Rounded pill / rounded rectangle shape for Step */
.skill-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.skill-row:hover .skill-step-pill,
.skill-row.active .skill-step-pill {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(-4px);
}

/* Skills Row Hover States */
.skill-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.skill-row:hover .skill-cat-title {
    color: #ffffff;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--bg-color);
}

.contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 440px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 20px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-value {
    font-size: 1.3rem;
    font-weight: 500;
}

.info-value a {
    transition: var(--transition-fast);
    border-bottom: 1px dashed var(--border-color);
}

.info-value a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Contact Row Badges */
.contact-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 40px 8%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-credit {
    font-weight: 500;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile Friendly)
   ========================================================================== */
@media (max-width: 1024px) {
    section {
        padding: 80px 6%;
    }

    .header {
        padding: 16px 6%;
    }

    .nav-links {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hero-first-name,
    .hero-last-name {
        font-size: clamp(3.8rem, 7vw, 6rem);
    }

    .projects-grid.portrait-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .skill-row {
        grid-template-columns: 1fr 1.2fr auto;
        gap: 24px;
    }

    .about-left-full {
        padding: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none !important;
    }

    /* Keep section navigation available on phones. */
    .header {
        padding: 14px 6%;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: clamp(14px, 5vw, 28px);
    }

    .nav-link {
        font-size: 0.78rem;
    }

    .hero-section {
        min-height: auto;
        padding: 110px 6% 0;
    }

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

    .hero-left {
        align-items: center;
        text-align: center;
        padding-bottom: 0;
    }

    .hero-bio-block {
        align-items: center;
        text-align: center;
    }

    .hero-first-name,
    .hero-last-name {
        font-size: clamp(3.2rem, 13vw, 5rem);
    }

    /* Remove the desktop offset and center the portrait on phones. */
    .hero-right,
    .hero-photo-wrapper {
        justify-content: center;
    }

    .hero-photo-wrapper {
        width: min(100%, 380px);
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-photo {
        width: 138%;
        max-width: none;
        transform: none;
        margin: 0 auto -32px;
    }

    .section-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 16px;
    }

    .project-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 6px;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .projects-grid.portrait-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skills-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 0;
        padding-bottom: 28px;
    }

    .skills-header-right {
        width: 100%;
    }

    .skills-subheading {
        max-width: none;
        text-align: left;
        font-size: 1rem;
    }

    .skill-row {
        grid-template-columns: 1fr auto;
        padding: 24px 10px;
        gap: 16px;
    }

    /* On phones, share the header's divider with the first process step. */
    .skill-row:first-of-type {
        border-top: 0;
    }

    .skill-cat-desc-wrapper {
        grid-column: span 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
