/* ==========================================================================
   Portfolio Design System - Matti Hicks
   ========================================================================== */

/* Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-cream: #FDF8F3;
    --bg-card: #FFFFFF;
    --accent-orange: #E86C3A;
    --accent-orange-hover: #D45A2A;
    --text-dark: #1A1A1A;
    --text-gray: #6B6B6B;
    --text-light: #9B9B9B;
    --border-light: #E8E4E0;
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Layout Containers
   ========================================================================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header (Portfolio)
   ========================================================================== */

header {
    padding: 24px 0;
}

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

.logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Hero Section (Portfolio)
   ========================================================================== */

.hero {
    padding: 64px 0 64px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 3px solid white;
    box-shadow: var(--shadow-soft);
}

.hero-greeting {
    font-size: 42px;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-intro {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    max-width: 800px;
}

.hero-intro p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.7;
}

.hero-intro p strong {
    color: var(--text-dark);
}

/* Credentials Row
   ========================================================================== */

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    align-items: center;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-gray);
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
}

.credential-badge img {
    width: 20px;
    height: 20px;
}

/* CV Link & Buttons
   ========================================================================== */

.cv-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-orange);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cv-link:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--accent-orange-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Section Titles
   ========================================================================== */

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Projects Section (Portfolio)
   ========================================================================== */

.projects {
    padding: 60px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.project-card.warm-bg {
    box-shadow: none;
}

.project-card.warm-bg:hover {
    box-shadow: none;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.project-image.banking {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.project-image.ai-finance {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.project-image.travel {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

.project-image.ef {
    background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
}

.project-content {
    padding: 24px;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-orange);
    background: rgba(232, 108, 58, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.project-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 10px;
}

/* About Section (Portfolio)
   ========================================================================== */

.about {
    padding: 60px 0 80px;
}

.about-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    width: 200px;
    height: 240px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: center 20%;
    flex-shrink: 0;
}

.about-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* CTA Section (Portfolio)
   ========================================================================== */

.cta-section {
    padding: 40px 0 80px;
}

.cta-card {
    background: var(--text-dark);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    color: white;
}

.cta-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Case Study Specific Styles
   ========================================================================== */

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 48px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--text-dark);
    gap: 12px;
}

/* Case Study Hero */
.case-hero {
    padding: 0 0 32px;
}

.case-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 800px;
}

.case-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 48px;
    max-width: 700px;
}

/* Meta Info Cards */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.meta-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.meta-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.meta-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-gray);
}

/* Section Spacing */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Goal Section */
.goal-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    border-left: 4px solid #6B8AFF;
    padding-left: 32px;
}

.goal-container h3 {
    font-size: 18px;
    font-weight: 600;
    min-width: 80px;
    margin: 0;
}

.goal-container p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* Content Card */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-soft);
}

.content-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.content-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 24px;
}

.content-card h4:first-of-type {
    margin-top: 0;
}

.content-card p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.content-card ul {
    list-style: none;
    padding: 0;
}

.content-card ul li {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.content-card ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 600;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

/* Image Container */
.image-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    margin-bottom: 32px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    margin-bottom: 32px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.process-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Impact List */
.impact-list {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.impact-list h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
}

.impact-list ul {
    list-style: none;
    padding: 0;
}

.impact-list ul li {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 32px;
    position: relative;
}

.impact-list ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 20px;
}

.impact-list ul li strong {
    color: var(--text-dark);
}

/* Highlight Box */
.highlight-box {
    background: rgba(232, 108, 58, 0.08);
    border-left: 4px solid var(--accent-orange);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 32px 0;
}

.highlight-box p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

/* Case Study Footer Navigation */
.case-footer {
    padding: 80px 0 60px;
    border-top: 1px solid var(--border-light);
}

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

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-orange);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.footer-link.secondary {
    background: var(--bg-card);
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
}

.footer-link.secondary:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow-hover);
}

/* Footer (Portfolio)
   ========================================================================== */

footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

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

.footer-text {
    font-size: 14px;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Utility Styles
   ========================================================================== */

.emoji {
    font-style: normal;
}

/* Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero-greeting {
        font-size: 32px;
    }

    .case-title {
        font-size: 36px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
    }

    .credentials {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid.three-col {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
    }

    .content-card {
        padding: 28px;
    }

    .goal-container {
        display: block !important;
        border-left: none !important;
        padding-left: 0 !important;
        gap: 16px !important;
    }

    .goal-container h3 {
        margin-bottom: 12px !important;
    }
}
