/* ==========================================================================
   Minimalist / Brutalist-Lite Design System
   ========================================================================== */
:root {
    /* Pure monochrome palette matching the reference */
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    
    /* Sidebar Palette */
    --sidebar-bg: #111111;
    --sidebar-text: #ffffff;
    --sidebar-hover: #444444;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    height: 100vh;
    overflow: hidden; /* Prevent body scroll, we scroll the left container */
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================================
   Layout Architecture
   ========================================================================== */
.content-area {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.sidebar {
    width: 80px;
    flex-shrink: 0;
    background-color: var(--sidebar-bg);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    z-index: 50;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .content-area {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    .sidebar {
        width: 100%;
        height: 70px;
        flex-direction: row;
        padding: 0 2rem;
        position: fixed;
        bottom: 0;
        left: 0;
    }
    .nav-socials {
        display: none; /* Hide socials on mobile to fit main links */
    }
    .nav-links {
        width: 100%;
        flex-direction: row !important;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Sidebar Navigation Styles
   ========================================================================== */
.nav-links, .nav-socials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.nav-icon {
    color: var(--sidebar-text);
    opacity: 0.5;
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-icon:hover {
    opacity: 1;
    background-color: var(--sidebar-hover);
}

.nav-icon.active {
    opacity: 1;
}

.nav-icon.active::after {
    content: '';
    position: absolute;
    right: -20px;
    width: 4px;
    height: 20px;
    background: var(--sidebar-text);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .nav-icon.active::after {
        right: auto;
        bottom: -10px;
        width: 20px;
        height: 4px;
    }
}

.nav-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5px;
}

.contact-icon {
    opacity: 1;
    background: #333;
}

/* ==========================================================================
   Section Master Styles
   ========================================================================== */
.section {
    min-height: 100vh;
    padding: 15vh 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1024px) {
    .section {
        padding: 10vh 8%;
    }
}

.section-content {
    max-width: 1000px;
}

.section-heading {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 4rem;
    line-height: 1;
}

/* ==========================================================================
   Hero Section (Exact Replica Styling)
   ========================================================================== */
.hero {
    padding-left: 10%; /* Ensure exact alignment */
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 800px;
    margin-bottom: 4rem;
}

.input-wrapper {
    position: relative;
    max-width: 500px;
}

.hero-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #cccccc;
    padding: 0.5rem 0;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    outline: none;
    transition: var(--transition);
}

.hero-input::placeholder {
    color: #999999;
    font-weight: 500;
}

.hero-input:focus {
    border-bottom-color: var(--text-primary);
}

.hidden-btn {
    display: none;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.text-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
}

.large-body {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

.large-body:first-child {
    color: var(--text-primary);
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */
.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (max-width: 768px) {
    .list-grid {
        grid-template-columns: 1fr;
    }
}

.list-item {
    border-top: 2px solid var(--text-primary);
    padding-top: 1.5rem;
}

.list-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.list-item p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Work / Portfolio Section
   ========================================================================== */
.projects-container {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    group: project;
}

.project-row:first-child {
    border-top: 1px solid var(--border-color);
}

.project-info h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.project-info span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-row:hover .project-info h3 {
    transform: translateX(10px);
}

.project-row:hover .project-arrow {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
    transform: scale(1.1) rotate(45deg);
}

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.timeline-row:first-child {
    border-top: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .timeline-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.timeline-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-details p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Contact Section & Footer
   ========================================================================== */
.contact-block {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.huge-link {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    display: inline-block;
}

.huge-link:hover {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.contact-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-details a {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid transparent;
}

.contact-details a:hover {
    border-bottom-color: var(--text-primary);
}

.sm-icon {
    width: 18px;
    height: 18px;
}

.footer {
    margin-top: auto;
    padding-top: 10vh;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }