/* Theme Variables */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #BFBFBF;
    --gray-400: #999999;
    --gray-500: #737373;
    --gray-800: #262626;
    --accent: #FF4D00;
    --accent-rgb: 255, 77, 0;
    --accent-gradient: linear-gradient(120deg, #7FFFD4, #40E0D0);
    --bg-primary: var(--white);
    --text-primary: var(--black);
    --text-secondary: var(--gray-500);
    --bg-secondary: var(--gray-100);
    --border-color: var(--gray-200);
    --bg-nav: 255, 255, 255, 0.85;
}

[data-theme="dark"] {
    /*--bg-primary: #121212*/
    --bg-primary: #1f1d1d;
    --text-primary: var(--white);
    --text-secondary: var(--gray-400);
    /*--bg-secondary: #1E1E1E;*/
    --bg-secondary: #191818;
    --border-color: #333333;
    --bg-nav: 0, 0, 0, 0.7;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.2;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Typography System */
.technical {
    font-family: monaco, monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.display-large {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text-primary);
}

.display-medium {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.display-small {
    font-size: clamp(1rem, 2vw, 1.375rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.body-large {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.body-medium {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.body-small {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Face Avatar */
.face-avatar-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.face-avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
    filter: brightness(105%) grayscale(100%);
    transition: all 0.3s ease;
}

.face-avatar:hover {
    filter: grayscale(0%);
    transition: all 0.3s ease;
}


/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.theme-toggle .feather {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
}

.theme-toggle-light {
    display: none;
}

[data-theme='dark'] .theme-toggle-light {
    display: block;
}

[data-theme='dark'] .theme-toggle-dark {
    display: none;
}

/*Dividing Line*/
.divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 0 8rem;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
    will-change: transform;
}

.grid-line {
    width: 1px;
    height: 100vh;
    background: var(--text-primary);
    transform: translateZ(0);
    display: none;
}

/* Navigation */
.header {
    position: fixed;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-container {
    position: relative;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-container:hover {
    background: var(--bg-primary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 2.75rem;
    overflow: hidden;
}

.nav-container:hover .nav-link {
    width: auto;
    min-width: 9rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link span {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-container:hover .nav-link span {
    opacity: 1;
    transform: translateX(0);
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    min-height: 75vh;
    padding: 2rem 8rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
}

#home.hero {
    min-height: 90vh;
}

.hero-content {
    grid-column: 2 / span 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content .technical {
    margin-bottom: 2rem;  /* Specific spacing for hero section */
}

.hero-content .display-large {
    margin-bottom: 2rem;  /* Specific spacing for hero section */
}

.hero-content .body-large {
    margin-bottom: 2.5rem;  /* Specific spacing for hero section */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 3rem;
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Work Section */
.work {
    padding: 8rem;
    background: var(--bg-secondary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.related-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    width: 100%;
    padding: 1.5rem 0;
}

.project-image-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    isolation: isolate;
    border: 1px solid var(--border-color);
}


/* Refined shimmer effect */
.project-image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--bg-secondary), 0.02) 20%,
        rgba(var(--bg-secondary), 0.05) 60%,
        transparent 100%
    );
    animation: elegantShimmer 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    backdrop-filter: blur(8px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-container.loading::before,
.project-image-container.loading::after {
    opacity: 1;
}

.project-image {
    position: relative;
    z-index: 2;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-container.loading .project-image {
    opacity: 0;
}

@keyframes elegantShimmer {
    0% {
        transform: translateX(-100%);
    }
    50%, 100% {
        transform: translateX(100%);
    }
}



.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-container:hover .project-image {
    transform: scale(1.05);
}

.project-info {
    padding: 0.5rem 0;
    color: var(--text-primary);
}

.project-title {
    font-size: clamp(1.25rem, 1.5rem, 1.875rem);
    margin-bottom: 1.25rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 0 8rem; 
    display: flex;
    align-items: center;
    background: var(--bg-primary);
}

.about-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
}

.about-content {
    grid-column: 2 / span 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content .technical {
    margin-bottom: 2rem;  /* Specific spacing for hero section */
}

.about-image {
    grid-column: 8 / span 4;
}

.headshot {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.about-personal {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: .8;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.about-icons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 2rem 0;
    align-items: center;
    
}

/* Contact Section */
.contact {
    padding: 8rem;
    background: var(--bg-secondary);
    text-align: center;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Resume Overlay */
.resume-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-overlay.active {
    opacity: 1;
}

.resume-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 960px;
    height: 100vh;
    background: var(--bg-primary);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.resume-overlay.active .resume-content {
    transform: translateX(0);
}

.resume-sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-primary);
    padding: 2.5rem 2.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.resume-close {
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.resume-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.resume-intro {
    padding: 2.5rem 2.5rem 0;
    margin-bottom: 2.5rem;
}

.resume-title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 48rem;
}

.resume-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 48rem;
}

.resume-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.resume-timeline {
    position: relative;
    padding: 0 2.5rem 0 4.5rem;  /* Adjusted padding */
}

.resume-timeline::before {
    content: "";
    position: absolute;
    left: 2.5rem;  /* Adjust this to match left point of padding */
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.resume-item {
    position: relative;
    padding-bottom: 3.5rem;
}

.resume-item::before {
    content: "";
    position: absolute;
    left: -2rem;  /* Keep this the same */
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-3.5px);
}

.resume-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.resume-role {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.resume-company {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.resume-highlights {
    display: grid;
    gap: 1rem;
}

.resume-highlight {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.resume-highlight:hover {
    transform: translateY(-2px);
    background: var(--border-color);
}

.resume-highlight p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.resume-footer {
    flex-shrink: 0;
    padding: 2rem 2.5rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.resume-actions a {
    margin-left: 1rem;
}

.resume-download {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.resume-footer .button-primary .feather {
    width: 18px;
    height: 18px;
}



/* Buttons */
.button-primary {
    /*display: inline-block;*/
    display: inline-flex;
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: 0.3s ease;
}

.button-primary:hover {
    background: var(--accent);
    transition: 0.3s ease;
}

.button-secondary {
    display: inline-flex;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.button-secondary:hover {
    background: var(--border-color);
}

.button-small {
    display: inline-flex;
    color: var(--text-primary);
    gap: 0.05rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    align-items: center;
}

.button-small:hover {
    color: var(--text-secondary);
}

.button-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}



/* Timeline style */
    .timeline-section {
        padding: 8rem;
        background: #121212;
        color: #fff;
    }
    
    .timeline-container {
        margin-top: 6rem;
        max-width: 960px;
        margin: auto;
    }
    
    .timeline-section h2 {
        color: var(--white);
    }
    
    .timeline-section p {
        color: var(--white);
    }
    
    .timeline-event {
        display: grid;
        grid-template-columns: 240px 1fr;
        align-items: end;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .timeline-event:last-child {
        border-bottom: none;
    }
    
    .timeline-date {
        font-size: 4.5rem;
        font-weight: 600;
        letter-spacing: -0.08em;
        color: #fff;
        line-height: 1;
    }
    
    .timeline-content {
        font-size: 1.5rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.8);
        padding-top: 0.5rem; /* Align with the first line of the date */
    }
    
    @media (max-width: 960px) {
        .timeline-section {
            padding: 4rem 2rem;
        }
    
        .timeline-event {
            grid-template-columns: 160px 1fr;
        }
    
        .timeline-date {
            font-size: 3rem;
        }
    
        .timeline-content {
            font-size: 1.25rem;
        }
    }
    
    @media (max-width: 640px) {
        .timeline-section {
            padding: 3rem 1.5rem;
        }
    
        .timeline-event {
            grid-template-columns: 1fr;
        }
    
        .timeline-date {
            font-size: 3.5rem;
        }
    
        .timeline-content {
            font-size: 1rem;
        }
    
        .timeline-event {
            padding: 1.5rem 0;
        }
    }
    
    @media (max-width: 480px) {
        .timeline-event {
            display: block;
        }
    
        .timeline-date {
            margin-bottom: 1rem;
        }
    }



/* Simple Color Circles */
.color-selector {
    display: flex;
    justify-content: center;
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.color-circles {
    display: flex;
    gap: 2rem;
}
.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}


.color-circle:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.color-circle.inactive {
    border: 2px solid var(--text-primary);
    box-shadow: 0 0 0 4px rgba(var(--text-primary), 0.3);
}

.color-circle.active {
    border: 2px solid var(--text-primary);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.3);
}

/* Individual colors */
.color-circle:nth-child(1) {
    background-color: #FF4D00;
}

.color-circle:nth-child(2) {
    background-color: #AF2E1B;
}

.color-circle:nth-child(3) {
    background-color: #3B4B59;
}

.color-circle:nth-child(4) {
    background-color: #4D5E46;
}

/* Color palettes for each accent - with more pronounced theme colors */
[data-accent="FF4D00"] {
    /* Standard orange with original colors */
    --accent: #FF4D00;
    --accent-rgb: 255, 77, 0;
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-100);
    --border-color: var(--gray-200);
    --text-secondary: var(--gray-500);
}

[data-accent="AF2E1B"] {
    /* Red theme with more pronounced tinting */
    --accent: #AF2E1B;
    --accent-rgb: 175, 46, 27;
    --bg-primary: #FFFAF9;
    --bg-secondary: #F5E9E7;
    --border-color: #E8D5D2;
    --text-secondary: #985E57;
}

[data-accent="3B4B59"] {
    /* Blue theme with more pronounced tinting */
    --accent: #3B4B59;
    --accent-rgb: 59, 75, 89;
    --bg-primary: #f8fafc;
    --bg-secondary: #E9EEF4;
    --border-color: #D5DCE5;
    --text-secondary: #59697C;
}

[data-accent="4D5E46"] {
    /* Green theme with more pronounced tinting */
    --accent: #4D5E46;
    --accent-rgb: 77, 94, 70;
    --bg-primary: #f9fbf8;
    --bg-secondary: #EAF0E8;
    --border-color: #DBE3D9;
    --text-secondary: #5D7053;
}

/* Dark mode variants with more pronounced theming including bg-primary adjustments */
[data-theme="dark"][data-accent="FF4D00"] {
    /* Standard orange dark mode - using original variables */
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --border-color: #333333;
    --text-secondary: var(--gray-400);
}

[data-theme="dark"][data-accent="AF2E1B"] {
    /* Red dark mode theme - more pronounced */
    --bg-primary: #141110;
    --bg-secondary: #211917;
    --border-color: #3A2A28;
    --text-secondary: #B19490;
}

[data-theme="dark"][data-accent="3B4B59"] {
    /* Blue dark mode theme - more pronounced */
    --bg-primary: #12151A;
    --bg-secondary: #181D24;
    --border-color: #2C3440;
    --text-secondary: #8799A9;
}

[data-theme="dark"][data-accent="4D5E46"] {
    /* Green dark mode theme - more pronounced */
    --bg-primary: #121411;
    --bg-secondary: #181D17;
    --border-color: #2D3829;
    --text-secondary: #8A9C82;
}

@media (max-width: 960px) {
    .color-selector {
        padding: 4rem 0 8rem 0;
    }
}




/* Technical Details */
.model-info {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: monaco, monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-divider {
    margin: 0 0.5rem;
}

#weather-info {
    display: inline-block;
    font-family: monaco, monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


.mobile {
    display: none;
}

/* Responsive Styles */
@media (max-width: 960px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
    }
    
    .face-avatar-container {
    top: 1rem;
    left: 1rem;
        
    }

    .hero, .work, .about, .contact {
        padding: 4rem 2rem;
    }

    .hero-content {
        grid-column: 1 / -1;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-overlay {
        padding: 0 2rem;
    }

    .header {
        position: fixed;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        top: auto;
        transform: none;
        padding: .8rem;
        background: rgba(var(--bg-nav));
        border-radius: 100px;
        backdrop-filter: blur(5px);
        border: 1px solid var(--border-color);
    }

    .nav-container {
        padding: 0;
    }

    .nav-container:hover {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
    
    .nav-container:hover .nav-link {
        width: auto;
        min-width: unset; /* Remove the min-width that's set for desktop */
    }

    .nav {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
    }

    .nav-link {
        width: auto;
        padding: 0.5rem;
    }

    .nav-link span {
        display: none;
    }

    .model-info {
        display: none;
    }
    
    .about {
        min-height: 0;
        width: 100vw;    /* Full viewport width */
    }

    .about-grid {
        width: 100%;
    }

    .about-content {
        grid-column: 1 / -1;  /* Full width, similar to hero-content */
        width: 100%;
    }
    
    .mobile {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .resume-footer {
        display: none;
    }
    
    .resume-content {
        max-width: 100%;
    }

    .resume-top {
        padding: 1.5rem;
    }

    .resume-title {
        font-size: 1.5rem;
    }

    .resume-intro {
        padding: 1.5rem 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .resume-timeline {
        padding: 0 1.5rem 0 3.5rem;
    }

    .resume-timeline::before {
        left: 1.5rem;  /* Adjust for mobile padding */
    }

    .resume-body {
        padding: 0 1.5rem;
    }

    .resume-footer {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .resume-cta {
        width: 100%;
        justify-content: center;
    }
    
    .grid-overlay {
        grid-template-columns: repeat(6, 1fr);
        padding: 0;
    }
    
    .related-work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero, .work, .about, .contact {
        padding: 5rem 0.75rem;
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    .hero-content .technical {
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .work-grid {
        gap: 1.5rem;
    }

    .button-primary,
    .button-secondary {
        /*width: 100%;*/
        text-align: center;
    }

    /*.hero-buttons {
        flex-direction: column;
    }*/

    .about-title,
    .contact-title {
        font-size: 2rem;
    }

    .about-text,
    .about-personal,
    .contact-text {
        font-size: 1rem;
    }
    
    .technical {
        font-size: clamp(.8rem, 1.2vw, 1rem);
        
    }
}




/* Project/Case Study Page Styles */
.case-study {
    max-width: 1440px;
    margin: 0 auto;
    padding: 4rem 6rem;
    background: var(--bg-primary);
}

.case-study__nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.case-study__nav:hover {
    color: var(--text-primary);
}

.case-study__nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.case-study__header {
    margin-bottom: 4rem;
}

.case-study__meta {
    max-width: 720px;
    margin: 0 auto 4rem;
    text-align: center;
}

.case-study__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 1rem 0;
    color: var(--text-primary);
}

.case-study__subtitle {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
}

.case-study__cover {
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
    height: auto;
    border-radius: 8px;
    margin-bottom: 4rem;
}

.case-study__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.case-study__content-wide {
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 0;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.case-study__content h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
    letter-spacing: -0.02em;
}

.case-study__content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    letter-spacing: -0.02em;
}

.case-study__content p {
    margin-bottom: 1.5rem;
}



.fullwidth-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
    width: 100%;
}

.grid-image {
    overflow: hidden;
    border-radius: 8px;
}

.grid-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .fullwidth-image-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .grid-image {
        min-width: 80%;
        scroll-snap-align: center;
    }
}


@media (max-width: 768px) {
    .case-study {
        padding: 4rem 1.5rem;
    }

    .case-study__nav {
        top: 1.5rem;
        left: 1.5rem;
    }
}

/* Mobile Feature Styles */
        .mobile-feature-grid {
            display: flex;
            flex-direction: column;
            gap: 4rem;
            margin-top: 2rem;
        }
        
        .mobile-feature {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            padding: 4rem;
            margin-bottom: 4rem;
            border-radius: 8px;
        }
        
        .mobile-feature:nth-child(odd) {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
        }
        
        .mobile-feature-content {
            padding-right: 2rem;
        }
        
        .feature-title {
            font-size: 1.5rem;
            font-weight: 500;
            margin: 1rem 0;
            color: var(--text-primary);
        }
        
        .feature-description {
            font-size: 1.125rem;
            line-height: 1.6;
            color: var(--text-secondary);
        }
        
        .mobile-feature-image {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .mobile-screenshot {
            max-width: 360px;
            width: 100%;
            height: auto;
            border-radius: 40px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
        
        .mobile-screenshot:hover {
            transform: translateY(-8px);
        }
        
        /* Responsive adjustments */
        @media (max-width: 960px) {
            .mobile-feature {
                grid-template-columns: 1fr;
                gap: 2rem;
                padding: 1.5rem;
            }
            
            .mobile-feature-content {
                padding-right: 0;
            }
            
            .mobile-screenshot {
                max-width: 280px;
            }
        }

@media (max-width: 480px) {
    .case-study {
        padding: 1rem 0.75rem 2rem;
    }
}