/* ==========================================
   CSS Variables - Warm & Whimsical Theme
   ========================================== */
:root {
/* Colors - Forest & Gold */
--color-primary: #3D5A3C;        /* Deep forest green */
--color-primary-dark: #2A4029;   /* Darker forest */
--color-secondary: #D4A251;      /* Warm gold */
--color-accent: #8B6F47;         /* Bronze */
--color-background: #FAF8F5;     /* Off-white */
--color-surface: #FFFFFF;        /* White */
--color-text: #2D3142;           /* Dark blue-gray */
--color-text-light: #5A5D6F;     /* Medium gray */
--color-border: #E3DDD4;         /* Soft beige */
    
    /* Typography */
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(232, 93, 61, 0.08);
    --shadow-md: 0 4px 16px rgba(232, 93, 61, 0.12);
    --shadow-lg: 0 8px 32px rgba(232, 93, 61, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
}

/* ==========================================
   Navigation
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(-5deg);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

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

.resume-btn {
    background: var(--color-primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-full);
    transition: all 0.3s ease;
}

.resume-btn::after {
    display: none;
}

.resume-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
    filter: blur(40px);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: -10%;
    right: -5%;
    animation-delay: 7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--color-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
        border-radius: 50% 50% 60% 40% / 50% 40% 70% 50%;
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
        border-radius: 60% 40% 50% 50% / 60% 50% 40% 60%;
    }
    75% {
        transform: translate(50px, 40px) scale(1.05);
        border-radius: 40% 60% 50% 50% / 50% 60% 50% 40%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: var(--spacing-md);
}

.hero-title .line {
    display: block;
    animation: slideUp 0.8s ease-out backwards;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.1s;
    font-size: 0.5em;
    color: var(--color-text-light);
    font-style: italic;
}

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

.emphasis {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    animation: slideUp 0.8s ease-out 0.5s backwards;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.7s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: slideUp 0.8s ease-out 0.9s backwards;
}

.scroll-indicator span {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(10px) rotate(45deg);
    }
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ==========================================
   Section Styles
   ========================================== */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

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

.section-header.centered {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: 2rem;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background: var(--color-primary);
}

/* ==========================================
   About Section
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-primary);
    font-style: italic;
}

.highlight-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-secondary);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.placeholder-image {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ==========================================
   Skills Section
   ========================================== */
.skills {
    background: var(--color-surface);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.skill-card {
    background: var(--color-background);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.skill-card h3 {
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.skill-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

#icon-data-analysis {
    transform: scale(1.7);
}

#icon-workshop {
    transform: scale(1.5);
}

/* ==========================================
   Work Section
   ========================================== */
.work-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.project-card-clean {
    background: var(--color-surface);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}
 
.project-card-clean:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
 
/* Header Section (Media + Info side by side) */
.project-header-section {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
 
/* Media (9:16 aspect ratio - portrait) */
.project-media {
    width: 480px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}
 
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
 
.project-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
 
/* Header Info */
.project-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
 
.project-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
 
.project-client {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
 
.project-year {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
 
.project-headline {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    color: var(--color-text);
}
 
.project-subhead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 1.25rem 0;
}
 
.project-tags-inline {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
 
.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--color-background);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
 
/* Body Text */
.project-body-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
 
.project-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
}
 
.project-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 0.75rem 0;
}
 
.project-section p:last-child {
    margin-bottom: 0;
}
 
.project-section p em {
    font-style: italic;
    color: var(--color-primary);
    font-weight: 500;
}
 
.project-section p strong {
    font-weight: 600;
}
 
/* Mobile Responsive */
@media (max-width: 968px) {
    .project-card-clean {
        padding: 2rem;
    }
    
    .project-header-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-media {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .project-headline {
        font-size: 1.75rem;
    }
    
    .project-subhead {
        font-size: 1rem;
    }
}
 
@media (max-width: 640px) {
    .project-card-clean {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .project-header-section {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .project-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .project-headline {
        font-size: 1.5rem;
    }
    
    .project-subhead {
        font-size: 0.9375rem;
    }
    
    .project-body-text {
        gap: 1.25rem;
    }
    
    .project-section h4 {
        font-size: 0.9375rem;
    }
    
    .project-section p {
        font-size: 0.9375rem;
    }
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-lead {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
}

.contact-link:hover {
    color: var(--color-primary);
    background: var(--color-background);
    transform: translateX(8px);
}

.contact-link .icon {
    font-size: 1.5rem;
}

.contact-form-wrapper {
    background: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--color-surface);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 61, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--color-text);
    color: var(--color-background);
    padding: var(--spacing-md) 0;
}

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

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--color-background);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .about-content,
    .contact-content,
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-card:nth-child(even) .project-image {
        order: 1;
    }
    
    .about-highlights {
        flex-wrap: wrap;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animated Background - Connecting Dots */
.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-animated-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Make sure hero content stays on top */
.hero-content {
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    z-index: 2;
}
