/* ============================================
   JASMINE'S PORTFOLIO - DESIGN SYSTEM
   ============================================
   
   DESIGN PHILOSOPHY:
   Clean and easy to read with small elements of quirkiness.
   Colors that evoke clarity, creativity, and a bit of personality.
   
   This CSS is organized by section for easy navigation
   and includes comments explaining the "why" behind design decisions.
   
   ============================================ */

/* ============================================
   CSS VARIABLES: Design tokens
   ============================================
   
   WHAT THIS MEANS:
   CSS variables (custom properties) let you define
   colors, spacing, fonts ONCE and use them everywhere.
   
   WHY THIS MATTERS:
   - Change a color in one place, updates everywhere
   - Ensures consistency (no random color variations)
   - Makes updates fast and safe
   - Shows professional development practice
   
   USAGE EXAMPLE:
   Instead of typing #0a1628 ten times in your CSS,
   you type var(--color-primary) once, and it applies everywhere.
*/

:root {
    /* COLOR PALETTE: Clarity + Creativity + Personality */
    --color-primary: #0a1628;      /* Deep navy - primary text & structure */
    --color-accent: #0ea5e9;       /* Sky blue - buttons, links, highlights */
    --color-accent-dark: #0284c7;  /* Darker blue - hover states */
    --color-accent-light: #e0f2fe; /* Light blue - backgrounds, accents */
    --color-quirk: #a855f7;        /* Purple - personality touches */
    --color-secondary: #64748b;    /* Slate gray - secondary text */
    --color-light: #f8fafc;        /* Off-white - light backgrounds */
    --color-border: #e2e8f0;       /* Light gray - subtle borders */
    --color-success: #10b981;      /* Green - success states */
    
    /* TYPOGRAPHY: Clear hierarchy with personality */
    --font-family-display: 'Segoe UI', 'Trebuchet MS', sans-serif;
    --font-family-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 20px;
    
    /* SPACING: Consistent 8px base (professional standard) */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* EFFECTS: Shadows and transitions create depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* BREAKPOINTS: Mobile-first responsive design */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

/* ============================================
   GLOBAL STYLES
   ============================================
   
   WHAT THIS DOES:
   Sets baseline styles that apply to everything.
   Think of it as the "default" for the entire page.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* box-sizing: border-box means padding/borders 
       don't add extra width - more predictable layouts */
}

html {
    scroll-behavior: smooth;
    /* Smooth scrolling when clicking nav links - feels polished */
}

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    /* line-height: 1.6 = readable, not cramped */
    color: var(--color-primary);
    background-color: #ffffff;
    overflow-x: hidden;
    /* overflow-x: hidden prevents horizontal scroll glitches */
}

/* ACCESSIBILITY: Clear focus states for keyboard users */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================
   TYPOGRAPHY
   ============================================
   
   VISUAL HIERARCHY:
   Larger = more important
   Our headings scale from large (h1) to small (h6)
   This guides the reader's eye to what matters most
*/

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: 700;
    line-height: 1.3;
    /* tighter line-height for headings = more impact */
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    /* looser line-height for paragraphs = more readable */
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-fast);
    /* smooth color transition on hover */
}

a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

code {
    background: var(--color-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================
   
   WHAT THIS DOES:
   Helper classes used throughout the page
   to create consistent, centered layouts.
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    /* padding ensures content doesn't touch edges on mobile */
}

@media (max-width: var(--breakpoint-md)) {
    .container {
        padding: 0 var(--spacing-md);
        /* smaller padding on small screens */
    }
}

/* ============================================
   BUTTONS: FITTS'S LAW
   ============================================
   
   UX PRINCIPLE - FITTS'S LAW:
   The time to click something depends on:
   1. Distance to it (should be close to user)
   2. Size of it (should be large)
   
   OUR APPLICATION:
   - Buttons are minimum 44px tall (mobile friendly)
   - Primary buttons are 56px (important actions)
   - Large hit areas with padding
   - Clear hover/active states provide feedback
*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    /* 44px is the minimum tap target size for accessibility */
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    /* lift button up slightly - provides visual feedback */
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    /* return to normal state when pressed */
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: white;
}

/* ============================================
   NAVIGATION: HICK'S LAW
   ============================================
   
   UX PRINCIPLE - HICK'S LAW:
   Decision time increases with options.
   
   OUR APPLICATION:
   - Only 4 navigation items (not overwhelming)
   - Sticky positioning (always accessible)
   - Clear hover states show interactivity
   - Mobile menu for small screens (avoids clutter)
*/

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-mark {
    color: var(--color-accent);
    font-size: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-2xl);
    align-items: center;
}

/* UNDERLINE ANIMATION: Small quirky touch */
.nav-link {
    color: var(--color-primary);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
    /* width animates from 0 to 100% on hover */
}

.nav-link:hover::after {
    width: 100%;
    /* small quirky touch - underline slides in */
}

.nav-resume {
    background: var(--color-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
}

.nav-resume:hover::after {
    display: none;
    /* resume button doesn't have animated underline */
}

/* MOBILE MENU: Hamburger menu for small screens */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ANIMATED HAMBURGER: 3 lines transform to X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

@media (max-width: var(--breakpoint-md)) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-lg);
        background: white;
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
        /* expands when active */
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
    }
}

/* ============================================
   HERO SECTION
   ============================================
   
   WHAT THIS DOES:
   First impression - establishes your value proposition
   and invites the user to explore.
   
   WHY THIS WORKS:
   - Large headline (52px) is hard to miss
   - Gradient background adds visual interest
   - Clear CTA buttons guide next action
   - Enough space (padding) doesn't feel cramped
*/

.hero {
    padding: var(--spacing-3xl) var(--spacing-lg) var(--spacing-2xl);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    /* pointer-events: none means you can click through it */
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
    /* z-index: 2 puts text ABOVE the decorative element */
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-secondary);
    max-width: 600px;
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

@media (max-width: var(--breakpoint-md)) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* ============================================
   SECTION STRUCTURE
   ============================================
   
   WHAT THIS DOES:
   Creates consistent spacing and styling
   for all major sections of the page.
*/

section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--color-secondary);
}

/* ============================================
   PROJECTS SECTION: GESTALT PRINCIPLES
   ============================================
   
   UX PRINCIPLE - GESTALT:
   Users perceive grouped elements as a whole.
   
   HOW WE APPLY IT:
   - Proximity: Project cards are close together
   - Similarity: All cards have same styling
   - Continuity: Grid flows naturally
   - This makes the section feel organized, not chaotic
*/

.work-section {
    background: white;
    border-top: 1px solid var(--color-border);
}

/* RESPONSIVE GRID: Changed to vertical stack layout for horizontal cards */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Each card takes full width since they're horizontal */
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

/* ============================================
   PROJECT CARD LINK: Make entire card clickable
   ============================================
   
   WHAT THIS DOES:
   The card is now wrapped in an <a> tag,
   so clicking anywhere on it navigates to case study page.
*/

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    /* display: block makes link take full width */
}

.project-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    /* HORIZONTAL LAYOUT: Image on left, content on right */
    min-height: 300px;
    cursor: pointer;
    /* cursor shows it's clickable */
}

/* INTERACTION FEEDBACK: Card responds to hover */
.project-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    /* lifts card up - shows it's interactive */
}

.project-image {
    overflow: hidden;
    height: auto;
    width: 40%;
    /* Image takes 40% of card width */
    min-width: 300px;
    flex-shrink: 0;
    /* flex-shrink: 0 prevents image from shrinking */
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.project-card:hover .image-placeholder {
    transform: scale(1.05);
    /* small zoom on hover - quirky interaction touch */
}

.project-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    /* flex-grow: 1 makes content expand to fill remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Space content vertically */
}

.project-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 13px;
}

.project-category {
    background: var(--color-light);
    color: var(--color-accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    /* small category badge for context */
}

.project-duration {
    color: var(--color-secondary);
    font-size: 13px;
    align-self: center;
}

.project-title {
    font-size: 20px;
    margin-bottom: var(--spacing-md);
}

.project-description {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
    /* grows to fill available space */
}

/* METRICS: Show impact at a glance */
.project-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: none;
    /* Remove bottom border for horizontal layout */
}

.metric {
    text-align: center;
}

.metric strong {
    display: block;
    font-size: 20px;
    color: var(--color-accent);
    /* bright color draws attention to numbers */
    margin-bottom: 4px;
}

.metric span {
    font-size: 12px;
    color: var(--color-secondary);
}

/* LINK TO CASE STUDY: Clear call to action */
.project-link {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.project-link:hover {
    gap: 8px;
    /* arrow slides right on hover - quirky interaction */
}

/* ============================================
   CASE STUDY MODALS
   ============================================
   
   WHAT THIS DOES:
   Shows detailed project information in a popup
   without leaving the page.
   
   WHY MODALS:
   - Keep user context (don't navigate away)
   - Can close with X, ESC, or clicking outside
   - Works on all screen sizes
   - Feels interactive and responsive
*/

.case-study-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.case-study-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    margin: var(--spacing-2xl) 0;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 40px;
    height: 40px;
    background: var(--color-light);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-primary);
    transition: var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--color-accent);
    color: white;
}

.case-study-header {
    padding: var(--spacing-2xl) var(--spacing-2xl) 0;
    border-bottom: 2px solid var(--color-border);
}

.case-study-header h2 {
    margin-bottom: var(--spacing-md);
}

.case-study-meta {
    color: var(--color-secondary);
    font-size: 14px;
    margin-bottom: var(--spacing-2xl);
}

.case-study-body {
    padding: var(--spacing-2xl);
}

.case-section {
    margin-bottom: var(--spacing-2xl);
}

.case-section h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.case-section p {
    color: var(--color-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* INSIGHT BOXES: Make key findings stand out */
.insights-list,
.learnings-list {
    list-style: none;
    margin-top: var(--spacing-lg);
}

.insights-list li,
.learnings-list li {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--color-light);
    border-left: 4px solid var(--color-accent);
    /* left border accent - quirky visual touch */
    border-radius: 4px;
}

/* MEDIA GALLERY: Before/after and videos */
.media-gallery {
    margin: var(--spacing-lg) 0;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.before, .after {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.before h4, .after h4 {
    font-size: 16px;
}

.placeholder-image {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    color: var(--color-secondary);
}

.video-placeholder {
    background: var(--color-light);
    padding: var(--spacing-2xl);
    border-radius: 8px;
    text-align: center;
}

.video-placeholder code {
    background: white;
    padding: var(--spacing-md);
    border-radius: 4px;
    display: block;
    margin-top: var(--spacing-md);
    font-size: 12px;
    overflow-x: auto;
}

/* RESULTS GRID: Quantifiable impact */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.result {
    background: var(--color-light);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
}

.result strong {
    display: block;
    font-size: 24px;
    color: var(--color-success);
    /* green shows positive results */
    margin-bottom: 4px;
}

.result span {
    color: var(--color-secondary);
    font-size: 14px;
}

.case-actions {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

/* ============================================
   MODAL OVERLAY: Dimming effect
   ============================================
   
   WHAT THIS DOES:
   Darkens the background when modal is open.
   Clicking it closes the modal.
*/

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
    /* backdrop-filter: blur creates a frosted glass effect */
}

.modal-overlay.active {
    display: block;
}

/* ============================================
   ABOUT SECTION: Build Connection
   ============================================
   
   WHAT THIS DOES:
   Tells your story, shows personality,
   builds trust with hiring managers.
   
   WHY THIS STRUCTURE:
   - Bio on left (text-heavy content)
   - Image on right (visual balance)
   - Skills below (organized by category)
*/

.about-section {
    background: white;
    border-top: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-content h2 {
    margin-bottom: var(--spacing-lg);
}

.about-content p {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
}

/* SKILLS: Organized by category */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.skill-category h4 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 4px 0;
    color: var(--color-secondary);
    font-size: 14px;
    position: relative;
    padding-left: 12px;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    /* small quirky accent bullets */
}

.about-image {
    width: 100%;
}

@media (max-width: var(--breakpoint-md)) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        /* order: -1 moves image to top on mobile */
    }
}

/* ============================================
   CONTACT SECTION: Icon-Based Design
   ============================================
   
   WHAT THIS DOES:
   Icon-based contact layout for clean presentation.
   Makes all contact methods immediately visible.
*/

.contact-section {
    background: #f8fafc;
    color: var(--color-primary);
    padding: var(--spacing-3xl) 0;
}

.contact-content {
    text-align: center;
}

.contact-content h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: 42px;
}

.contact-content p {
    color: var(--color-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    font-size: 18px;
    line-height: 1.8;
}

/* ICON-BASED CONTACT GRID */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-method {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* CONTACT ICONS: Large and prominent */
.contact-icon {
    font-size: 40px;
    margin-bottom: var(--spacing-md);
    display: block;
    background: var(--color-accent-light);
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-primary);
    font-weight: bold;
}

.contact-method h4 {
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.contact-method a,
.contact-method p {
    color: var(--color-accent);
    font-size: 14px;
}

.contact-method a {
    font-weight: 500;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-method p {
    color: var(--color-secondary);
    margin: 0;
}

.contact-note {
    font-size: 14px;
    color: var(--color-secondary);
    margin-top: var(--spacing-2xl);
}

@media (max-width: var(--breakpoint-md)) {
    .contact-methods {
        flex-direction: column;
    }

    .contact-methods .btn {
        width: 100%;
    }
}

/* ============================================
   FOOTER
   ============================================
   
   WHAT THIS DOES:
   Provides copyright info and navigation at bottom.
*/

.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: var(--spacing-2xl) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    margin-bottom: var(--spacing-md);
    font-size: 14px;
}

.footer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN: Mobile-first approach
   ============================================
   
   WHAT THIS DOES:
   Makes the site look good on all screen sizes.
   
   MOBILE FIRST APPROACH:
   1. Design for mobile (smallest screen)
   2. Add media queries for larger screens
   3. This ensures good experience everywhere
*/

@media (max-width: var(--breakpoint-md)) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    section {
        padding: var(--spacing-2xl) 0;
    }

    /* STACK CARDS VERTICALLY ON MOBILE */
    .project-card {
        flex-direction: column;
        /* Switch back to vertical on mobile */
        min-height: auto;
    }

    .project-image {
        width: 100%;
        /* Image takes full width on mobile */
        min-width: unset;
        height: 250px;
        /* Fixed height for mobile images */
    }

    .before-after {
        grid-template-columns: 1fr;
    }
}

@media (max-width: var(--breakpoint-sm)) {
    :root {
        --font-size-base: 15px;
        --spacing-lg: 16px;
        --spacing-xl: 24px;
        --spacing-2xl: 32px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }

    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ============================================
   ANIMATIONS: Subtle entrance effects
   ============================================
   
   WHAT THIS DOES:
   Cards fade in when the page loads.
   Provides visual feedback and feels polished.
   
   HOW IT WORKS:
   - @keyframes fadeIn defines the animation
   - .project-card applies it with staggered timing
   - animation-delay creates a cascading effect
*/

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.6s ease-out forwards;
}

/* STAGGER EFFECT: Cards appear one by one (3 cards) */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   CASE STUDY PAGES: Hero + Full Content Layout
   ============================================
   
   WHAT THIS DOES:
   Styles for dedicated case study pages.
   - Hero showcase image at top
   - Full-width content below
   - Easy to read and maintain
*/

.case-study-hero {
    width: 100%;
    background: #f8fafc;
    padding: var(--spacing-3xl) 0;
}

.hero-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.showcase-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.case-study-page {
    padding: var(--spacing-3xl) 0;
}

.case-study-page-header {
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--color-border);
}

.case-study-page-header h1 {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.case-study-page-meta {
    color: var(--color-secondary);
    font-size: 16px;
    margin-bottom: var(--spacing-lg);
}

.back-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: var(--spacing-md);
    transition: var(--transition);
}

.back-link:hover {
    transform: translateX(-4px);
}

.case-study-page-body {
    max-width: 800px;
}

.case-section {
    margin-bottom: var(--spacing-3xl);
}

.case-section h2 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.case-section p {
    color: var(--color-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    font-size: 16px;
}

.insights-list,
.learnings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insights-list li,
.learnings-list li {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    padding-left: 0;
}

.insights-list li strong,
.learnings-list li strong {
    color: var(--color-primary);
}

/* BEFORE & AFTER COMPARISON */
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
}

.before,
.after {
    display: flex;
    flex-direction: column;
}

.before h3,
.after h3 {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.placeholder-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-weight: 500;
}

/* CASE STUDY ACTIONS */
.case-study-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-border);
}

.case-study-actions .btn {
    flex: 1;
    max-width: 250px;
}

/* RESPONSIVE: Mobile adjustments for case study pages */
@media (max-width: var(--breakpoint-md)) {
    .showcase-placeholder {
        height: 300px;
        font-size: 20px;
    }

    .case-study-page-header h1 {
        font-size: 32px;
    }

    .case-section h2 {
        font-size: 24px;
    }

    .before-after {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .case-study-actions {
        flex-direction: column;
    }

    .case-study-actions .btn {
        max-width: 100%;
    }
}

/* ============================================
   ACCESSIBILITY: Print styles
   ============================================
   
   WHAT THIS DOES:
   Makes sure the portfolio prints beautifully
   if someone wants a paper copy.
*/

@media print {
    .navbar,
    .contact-section,
    .footer,
    .modal-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
