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

:root {
    --bg-color: #0F1115;
    --section-bg: #161A22;
    --text-primary: #E6E8EB;
    --text-secondary: #9CA3AF;
    --accent-color: #4F7CFF;
    --accent-hover: #6B8FFF;
    --border-color: #2A2F3A;
    --card-bg: #161A22;
    --max-width: 1100px;
    --nav-height: 72px;
}

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

/* Entry Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Initially hidden for animation */
.animate-on-load {
    opacity: 0;
}

body {
    font-family: 'Source Sans 3', Georgia, 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-color);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: 48px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 22px;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
    z-index: 100;
}

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

.nav-logo {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

/* Main Container */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: calc(100vh - var(--nav-height) - 80px);
}

/* Hero Section (Home) */
.hero {
    padding: 3rem 0;
    display: flex;
    align-items: center;
    min-height: calc(80vh - var(--nav-height));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero-statement {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
}

.hero-intro {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    width: 380px;
    height: 450px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 124, 255, 0.3);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.cta-button.secondary:hover {
    background: var(--section-bg);
    border-color: var(--text-secondary);
    box-shadow: none;
}

/* About Page */
.about-section {
    margin-bottom: 3.5rem;
    background: var(--section-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-section h2 {
    font-size: 24px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.about-section p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    gap: 2rem;
}

/* Work Page */
.work-intro {
    margin-bottom: 3rem;
}

.work-intro h2 {
    margin-bottom: 0.75rem;
}

.work-intro p {
    font-size: 18px;
}

.case-study {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.case-study:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(79, 124, 255, 0.1);
}

.case-study:last-child {
    margin-bottom: 0;
}

.case-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.case-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.case-meta {
    display: flex;
    gap: 1rem;
    font-size: 14px;
    color: var(--text-secondary);
}

.case-type {
    background: rgba(79, 124, 255, 0.15);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
}

.case-summary {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
}

.case-role {
    margin-bottom: 1.25rem;
}

.case-role strong {
    color: var(--text-primary);
    font-weight: 600;
}

.case-takeaway {
    background: rgba(79, 124, 255, 0.08);
    padding: 1.25rem;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 15px;
    border-radius: 0 8px 8px 0;
}

.case-takeaway strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
}

.pdf-carousel {
    position: relative;
    margin: 1.5rem 0 1rem;
    padding: 0 2.75rem;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    min-height: 280px;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.carousel-loading,
.carousel-fallback {
    color: var(--text-secondary);
    text-align: center;
    padding: 1.1rem;
    font-size: 15px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(13, 16, 23, 0.75);
    backdrop-filter: blur(4px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
    z-index: 3;
}

.carousel-arrow span {
    width: 10px;
    height: 10px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    display: inline-block;
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-left span {
    transform: rotate(-135deg);
}

.carousel-arrow-right {
    right: 0;
}

.carousel-arrow-right span {
    transform: rotate(45deg);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    border-color: var(--accent-color);
    background: rgba(79, 124, 255, 0.2);
    transform: translateY(-50%) scale(1.04);
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.carousel-indicator {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
}

.pdf-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 124, 255, 0.25);
}

.pdf-link svg {
    width: 16px;
    height: 16px;
}

/* Contact Page */
.contact-intro {
    margin-bottom: 2.5rem;
}

.contact-intro h2 {
    margin-bottom: 0.75rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.contact-value {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.contact-note {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-style: italic;
    font-size: 16px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-links svg {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 320px;
        gap: 3rem;
    }
    
    .hero-photo {
        width: 320px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-photo-container {
        order: 0;
        margin-bottom: 1rem;
    }
    
    .hero-photo {
        width: 260px;
        height: 300px;
    }
    
    .hero-statement {
        font-size: 20px;
    }
    
    .hero-intro {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .case-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .case-meta {
        flex-wrap: wrap;
    }
    
    main {
        padding: 2rem 1.5rem;
    }

    .pdf-carousel {
        padding: 0 2.25rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .hero-statement {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .case-study {
        padding: 1.5rem;
    }

    .pdf-carousel {
        padding: 0 2rem;
    }

    .carousel-viewport {
        min-height: 220px;
    }
}
