/* ==========================================
   KELVIN KYEREMEH — PORTFOLIO STYLES
   ========================================== */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #ec4899;
    --accent-hover: #f472b6;
    --border-color: #2a2a2a;
    
    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Layout */
    --max-width: 1400px;
    --border-radius: 12px;
    
    /* Transitions */
    --transition-smooth: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

/* Bottom fade gradient - only visible after scrolling */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(10, 10, 10, 0.2) 30%,
        rgba(10, 10, 10, 0.55) 65%,
        rgba(10, 10, 10, 0.82) 100%
    );
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.scrolled::after {
    opacity: 1;

}

body.at-bottom::after {
    opacity: 0;
}

::selection {
    background-color: var(--accent);
    color: white;
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.cursor,
.cursor-follower {
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
}

.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    background: transparent;
    transition: opacity 0.3s ease;
    opacity: 0.5;
}


/* Hide custom cursor on touch devices */
@media (hover: none) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.large-text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.6;
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.case-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   NAVIGATION - Andy Weir Style
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 2rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo - No Avatar */
.logo {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

/* Navigation Links - Pill Style */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(20, 20, 20, 0.85);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
}

.resume-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.resume-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.download-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* LinkedIn Icon */
.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 1rem;
    color: white;
    opacity: 1;
    transition: transform 0.3s ease;
}

.linkedin-icon:hover {
    transform: translateY(-2px);
}

/* Get in Touch Section */
.get-in-touch {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    text-align: right;
    z-index: 1001;
}

.get-in-touch-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.email-link {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
    text-align: right;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

.copy-notification {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #0a0a0a;
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 2rem 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--accent);
    padding-left: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .linkedin-icon {
        display: none;
    }
    
    .get-in-touch {
        bottom: 1rem;
        right: 1rem;
    }
    
    .get-in-touch-label {
        font-size: 0.65rem;
    }
    
    .email-link {
        font-size: 0.875rem;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn 0.8s 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--text-muted);
    margin: 1rem auto 0;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* ==========================================
   PROJECTS SECTION - Robin Noguier Style
   ========================================== */
.projects {
    padding: 0;
    margin-top: var(--spacing-xl);
}

.container-full {
    width: 100%;
    max-width: 100vw;
}

.project-showcase {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* Full-background card layout */
.project-showcase--fullbg {
    position: relative;
    overflow: visible;
    padding: 0;
    min-height: 55vh;
    align-items: flex-end;
}

.project-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    filter: brightness(0.3) saturate(0.5);
    z-index: 0;
}

.project-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.2) 0%,
        rgba(10,10,10,0.5) 50%,
        rgba(10,10,10,0.95) 100%
    );
    z-index: 1;
}

.project-content--fullbg {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4rem 5rem;
    gap: 0;
}

.project-text--fullbg {
    padding-bottom: 2rem;
}

.project-index-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
}

/* Phones poke out from bottom of card */
.project-visual--poke {
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: -160px;
    z-index: 10;
}

/* ==========================================
   SITE-WIDE FADE-UP ANIMATION
   ========================================== */
.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-up[data-delay="5"] { transition-delay: 0.5s; }

/* Text and visual start hidden */
.project-showcase .project-text {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-showcase .project-visual {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

/* Fade in on scroll */
.project-showcase.in-view .project-text {
    opacity: 1;
    transform: translateY(0);
}

.project-showcase.in-view .project-visual {
    opacity: 1;
    transform: translateY(0);
}

.project-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

/* Left side - Text */
.project-text {
    padding-right: 2rem;
}

.project-showcase-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.project-showcase-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.project-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: var(--transition-fast);
    position: relative;
}

.project-showcase-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.project-showcase-link:hover::after {
    width: calc(100% - 2rem);
}

.project-showcase-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.project-showcase-link .arrow {
    transition: transform 0.3s ease;
}

.project-showcase-link:hover .arrow {
    transform: translateX(5px);
}

/* Right side - Visual */
.project-visual {
    position: relative;
    height: 600px;
}

.project-main-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transform: perspective(1500px) rotateY(-8deg) rotateX(2deg);
    box-shadow: -40px 40px 80px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-showcase:hover .project-main-image {
    transform: perspective(1500px) rotateY(-5deg) rotateX(1deg) translateY(-10px);
}

.project-main-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
}

.project-preview-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 280px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    z-index: 2;
}

.project-showcase:hover .project-preview-card {
    transform: translateY(0);
}

.project-preview-card .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Pinterest 3D phone mockup scene */
.pinterest-3d-scene {
    perspective: 1200px;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    position: absolute;
    will-change: transform;
}

.phone-mockup__frame {
    background: #111;
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 0 0 1px #333,
        0 0 0 3px #111,
        0 0 0 4px #3a3a3a,
        0 40px 80px rgba(0, 0, 0, 0.6);
}

.phone-mockup__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 20px;
    background: #111;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-mockup__screen {
    border-radius: 34px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9 / 19.5;
}

.phone-mockup__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.phone-mockup__bar {
    width: 70px;
    height: 4px;
    background: #444;
    border-radius: 4px;
    margin: 8px auto 0;
}

.phone-mockup--back {
    width: 260px;
    position: absolute;
    bottom: 0;
    z-index: 1;
}

.phone-mockup--front {
    width: 300px;
    position: absolute;
    bottom: 0;
    z-index: 2;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-text {
        text-align: center;
        padding-right: 0;
        order: 2;
    }

    .project-visual {
        height: 500px;
        margin: 0 auto;
        max-width: 600px;
        order: 1;
    }

    .project-showcase-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .project-main-image {
        transform: perspective(1500px) rotateY(-5deg) rotateX(1deg);
    }
}

@media (max-width: 768px) {
    .project-showcase {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .project-showcase-title {
        font-size: 3.5rem;
    }
    
    .project-visual {
        height: 400px;
    }
    
    .project-main-image {
        width: 90%;
        transform: perspective(1200px) rotateY(-3deg);
    }
    
    .project-preview-card {
        width: 200px;
        height: 240px;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-hero {
    padding: var(--spacing-xl) 0;
    padding-top: calc(var(--spacing-xl) + 80px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

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

.about-image {
    aspect-ratio: 3 / 4;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-light);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-title {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}


/* ==========================================
   UTILITY — Reading progress & animations
   ========================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Project background colour utilities */
.project-bg--usps {
    background: linear-gradient(135deg, #004B87 0%, #0077C8 100%);
}

.project-bg--coming-soon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.construction-icon {
    font-size: 3rem;
    display: block;
}

.construction-label {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
}

/* ==========================================
   CASE STUDY PAGE - New Style
   ========================================== */
.case-study-page {
    background: var(--bg-primary);
    margin: 0;
    padding: 0;
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 10000;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s ease;
}

body.page-fade-in .page-transition-overlay {
    opacity: 0;
    pointer-events: none;
}

body.page-transitioning .page-transition-overlay {
    opacity: 1;
    pointer-events: all;
}

/* Case Study Navigation */
.case-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background: transparent;
    transition: background 0.3s ease;
    margin: 0;
}

.case-nav.scrolled {
    background: rgba(10, 10, 10, 0.97);
}

.back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.back-home:hover {
    opacity: 0.7;
}

.back-home svg {
    transition: transform 0.3s ease;
}

.back-home:hover svg {
    transform: translateX(-5px);
}

.case-nav-about {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.case-nav-about:hover {
    opacity: 0.7;
}

/* Hero Section - Fullscreen */
.case-hero-fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #E60023;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pinterest-hero-title {
    position: absolute;
    bottom: 5rem;
    left: 3rem;
    z-index: 10;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: white;
    font-family: serif;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 
                 0 8px 24px rgba(0, 0, 0, 0.5),
                 0 2px 4px rgba(0, 0, 0, 0.9);
    margin: 0;
    line-height: 1.1;
}

.hero-scroll-arrow {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll-arrow .arrow-down {
    color: white;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

/* Old hero section styles - keep for USPS */
.case-hero-new {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.case-hero-bg {
    position: absolute;
    inset: 0;
    background: #C49E5F; /* Tan/beige color */
    z-index: 0;
}

.case-hero-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.case-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transform: none;
    border: none;
    outline: none;
}

.case-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: none;
    outline: none;
}

.case-hero-image .image-placeholder {
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
}

/* Title at bottom-left of image */
.case-hero-title-bottom {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: white;
    font-family: serif;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 
                 0 8px 24px rgba(0, 0, 0, 0.4),
                 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.1;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.arrow-down {
    color: white;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* About Section */
.case-about-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.case-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.case-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.case-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.case-section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    font-family: serif;
}

.case-about-right p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.case-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.case-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.case-meta-value {
    font-size: 1.125rem;
    color: var(--text-primary);
}

/* Process Section */
.case-process-section {
    background: var(--bg-primary);
    padding: 3.5rem 0;
}

.case-process-header {
    margin-bottom: 2rem;
}

.case-number {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.case-section-title-large {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    font-family: serif;
    line-height: 1.1;
}

.case-two-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
}

.case-subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.case-two-col p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Visual Section */
.case-visual-section {
    background: var(--bg-primary);
    padding: 6rem 0;
}

.case-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.typography-showcase {
    margin-top: 2rem;
}

.color-palette {
    margin-top: 2rem;
}

/* Solution Cards Grid */
.case-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.case-solution-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.case-solution-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.case-solution-card__body {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Image Sections */
.case-image-section {
    background: var(--bg-primary);
    padding: 2rem 0;
}

.case-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-full-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.case-full-image .image-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    background: var(--bg-light);
    color: var(--text-muted);
    aspect-ratio: 16 / 9;
}

/* Case study content list */
.case-content-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.case-content-list li {
    margin-bottom: 0.5rem;
}

.case-content-list li:last-child {
    margin-bottom: 0;
}

.case-paragraph-gap {
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .case-about-grid,
    .case-two-col,
    .case-visual-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-meta-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .case-nav {
        padding: 1.5rem 1.5rem;
    }
    
    .case-container {
        padding: 0 1.5rem;
    }
    
    .pinterest-hero-title {
        font-size: 2.25rem;
        bottom: 4.5rem;
        left: 1.5rem;
    }
    
    .hero-scroll-arrow {
        bottom: 2rem;
    }
    
    .case-hero-title-bottom {
        font-size: 2rem !important;
        bottom: 6rem !important;
        left: 1.5rem !important;
    }
    
    .scroll-down-indicator {
        bottom: 2rem !important;
    }
    
    .case-about-section,
    .case-process-section,
    .case-visual-section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .pinterest-hero-title {
        font-size: 1.75rem;
        bottom: 4rem;
        left: 1rem;
    }
    
    .case-hero-title-bottom {
        font-size: 1.75rem !important;
        bottom: 5rem !important;
        left: 1rem !important;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .case-container {
        padding: 0 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ==========================================
   STACK PAGE
   ========================================== */
.stack-hero {
    padding: 3rem 0 2rem;
    padding-top: calc(3rem + 80px);
}

.stack-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.stack-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.stack-section {
    padding: 1.5rem 0;
}

.stack-category-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.625rem;
}

.stack-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    text-decoration: none;
    color: inherit;
}

a.stack-card {
    cursor: pointer;
}

.stack-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

a.stack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stack-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.stack-icon img,
.stack-icon svg {
    width: 22px;
    height: 22px;
}

/* Custom icon colors */
.framer-icon {
    background: #000;
}

.framer-icon svg {
    color: #fff;
}

.cursor-icon svg {
    width: 36px;
    height: 36px;
}

.claude-icon {
    background: rgba(204, 155, 122, 0.15);
}

.chatgpt-icon {
    background: rgba(16, 163, 127, 0.1);
}

.chatgpt-icon svg {
    fill: #10a37f;
}

.apple-icon {
    background: rgba(255, 255, 255, 0.05);
}

.apple-icon svg {
    fill: #fff;
}

.apple-music-icon {
    background: rgba(250, 36, 60, 0.1);
}

.apple-music-icon svg {
    width: 22px;
    height: 22px;
}

.stack-info {
    flex: 1;
}

.stack-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.stack-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

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

/* ==========================================
   ANIMATIONS
   ========================================== */
/* Loading animation for images */
.image-placeholder {
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ==========================================
   RESUME PAGE
   ========================================== */
.floating-download-btn {
    position: fixed;
    top: 6rem;
    right: 2rem;
    z-index: 1000;
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    transition: all 0.3s ease;
    animation: bounce-download 2s ease-in-out infinite;
}

@keyframes bounce-download {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    animation: none;
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.resume-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-name {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.resume-title {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.resume-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.resume-contact-link {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.resume-contact-link:hover {
    color: var(--accent);
}

.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.resume-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.resume-entry {
    margin-bottom: 2rem;
}

.resume-entry:last-child {
    margin-bottom: 0;
}

.resume-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.resume-entry-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.resume-entry-role {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.resume-entry-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.resume-entry-dates {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.resume-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.resume-list li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.resume-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-download-btn {
        display: flex; /* Show on mobile */
        top: 5rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
    
    .resume-btn-download {
        display: none; /* Hide nav download on mobile, show floating instead */
    }
    
    .resume-container {
        padding: 6rem 1rem 3rem;
    }
    
    .resume-content {
        padding: 2rem 1.5rem;
    }
    
    .resume-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .resume-contact {
        text-align: left;
    }
    
    .resume-name {
        font-size: 2rem;
    }
    
    .resume-entry-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .resume-entry-dates {
        white-space: normal;
    }
}

/* Pink download button on resume page */
.resume-btn-download {
    background: var(--accent);
    color: white;
}

.resume-btn-download:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

