@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #272b34;
    --bg-secondary: #20242b;
    --bg-darker: #1a1e24;
    --text-normal: #dcddde;
    --text-muted: #888888;
    --text-faint: #515663;
    
    /* Obsidian Atom Rust/Orange Accent Palette */
    --accent-orange: #d16d45;
    --accent-orange-hover: #f08a60;
    --accent-green: #98c379;
    --accent-rust: #a5402d;
    --border-color: #424958;
    
    --max-width: 960px;
    --transition-speed: 0.25s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-normal);
    line-height: 1.6;
    padding-top: 80px; /* offset for sticky navbar */
}

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

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

/* --- Navigation --- */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(39, 43, 52, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-normal); /* Solid color matching word "Filip" */
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.lang-switch a {
    color: var(--text-muted);
}

.lang-switch a.active {
    color: var(--accent-orange);
    cursor: default;
}

.lang-separator {
    color: var(--text-faint);
}

.mobile-nav-toggle {
    display: none; /* hidden on desktop */
}

/* --- Sections Common --- */
section {
    padding: 80px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    scroll-margin-top: 80px; /* Offset to prevent sticky header overlapping headings */
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 20px 30px 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-normal);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero .role-tag {
    font-size: 1.4rem;
    color: var(--accent-orange);
    font-weight: 500;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero .occupation-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-normal);
    font-weight: 300;
    line-height: 1.5;
}

/* --- Showreel Section --- */
.showreel-section {
    padding-top: 0;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-darker);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.video-wrapper:hover {
    border-color: var(--accent-orange);
}

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

/* Showreel Social Links Row */
.showreel-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px; /* Moved further down from video */
    flex-wrap: wrap;
}

.social-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-orange); /* Accent border color */
    padding: 12px 28px;
    border-radius: 8px;
    color: var(--text-normal); /* Off-white text color */
    font-weight: 600;
    min-width: 160px;
    transition: border-color var(--transition-speed) ease, color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.social-link-btn:hover {
    background-color: var(--accent-orange);
    color: var(--bg-primary); /* Solid orange fill on hover */
}

/* --- About Section --- */
.about-section {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-normal);
}

/* --- Skills / Focus Grids --- */
.skills-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns in a single row on desktop */
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px 25px;
    border-radius: 10px;
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-normal);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.skill-card h3::before {
    content: '//';
    color: var(--accent-orange);
    font-weight: 700;
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Pipeline Callout Section --- */
.pipeline-callout {
    padding-top: 40px;
    padding-bottom: 40px;
}

.callout-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-darker) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.callout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-orange);
}

.callout-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-normal);
}

.callout-text p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
}

.callout-btn {
    display: inline-block;
    background-color: var(--bg-primary);
    color: var(--accent-orange);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--accent-orange);
    white-space: nowrap;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

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

/* --- Contact Section --- */
.contact-section {
    padding-top: 60px;
    padding-bottom: 120px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
}

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

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.contact-method span.label {
    color: var(--text-muted);
    width: 80px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-method a, .contact-method span.value {
    font-weight: 500;
    color: var(--text-normal);
}

.contact-method a:hover {
    color: var(--accent-orange);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    header.site-header {
        height: 70px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    /* Mobile Toggle Menu Overlay */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; /* height of header on mobile */
        left: 0;
        width: 100%;
        background-color: rgba(32, 36, 43, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 0;
        gap: 15px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-normal);
        font-size: 1.6rem;
        cursor: pointer;
        padding: 5px;
        order: 2; /* aligns mobile nav button after lang-switch */
        outline: none;
    }
    
    section {
        scroll-margin-top: 70px; /* Mobile header offset */
    }
    
    .skills-grid {
        grid-template-columns: 1fr; /* Single column stack on mobile screen */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .role-tag {
        font-size: 1.1rem;
    }
    
    .hero .occupation-text {
        font-size: 1.1rem;
    }
    
    .about-section {
        padding: 30px 20px;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .about-image {
        width: 180px;
        height: 180px;
    }
    
    .callout-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
    }
    
    .callout-btn {
        width: 100%;
        text-align: center;
    }
}
