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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.6;
    background-color: #000000;
    color: #ffffff;
    position: relative;
}

/* 
   FULL WIDTH CONTAINER 
   Removes max-width, keeps 40px side padding 
*/
.container {
    width: 100%;
    padding: 0 40px; 
}

/* TOP HEADER STYLES */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
}

.header-content {
    position: relative;
    pointer-events: auto;
}

.brand-name {
    font-size: 32px;
    font-weight: 500;
    text-transform: lowercase;
    color: #fff;
    opacity: 1;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
}

.brand-logo {
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.header-scrolled .brand-name {
    opacity: 0;
}

.header-scrolled .brand-logo {
    opacity: 1;
}

/* 
   SIDE NAVIGATION 
   Vertical, Fixed Left, Centered 
*/
.side-nav {
    position: fixed;
    top: 50%;
    left: 40px; /* Aligned with the left content edge */
    transform: translateY(-50%);
    z-index: 1000;
}

.side-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px; 
}

.side-nav a {
    color: #888; /* Default Gray */
    text-decoration: none;
    font-weight: 400; /* Jemnější písmo */
    font-size: 16px; 
    text-transform: capitalize; 
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.side-nav a:hover,
.side-nav a.active {
    color: #ffffff; 
}

/* Sections */
section {
    min-height: 100vh;
    padding-top: 40px; /* Změna na 40px */
    /* Grid layout pro sekce */
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    align-content: center; /* Vertikální centrování */
}

.section-padding {
    padding-bottom: 40px; /* Změna na 40px */
}

h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    text-transform: capitalize; 
    grid-column: 5 / 13; 
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    padding-top: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    align-items: center; 
}

.hero-content {
    grid-column: 5 / 13; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 72px;
    font-weight: 500; /* Medium */
    margin-bottom: 0px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* 12-COLUMN GRID SYSTEM */
.grid-text, .grid-projects {
    grid-column: 5 / 13; /* Obsah začíná od 5. sloupce */
    display: grid;
    /* Zbývá nám 8 sloupců. Rozdělíme je na polovinu (2 sloupce obsahu) nebo použijeme auto-fit */
    grid-template-columns: repeat(2, 1fr); 
    column-gap: 24px;
    row-gap: 80px; /* Mezera mezi řádky */
    width: 100%;
}

/* Specifická úprava pro sekci About */
.about-text {
    grid-column: 5 / 13; /* Zabere 8 sloupců */
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 8 sloupců uvnitř */
    column-gap: 24px;
    row-gap: 40px; /* Změna na 40px */
    width: 100%;
}

.profile-image-container {
    grid-column: 1 / 4; 
    width: 100%;
}

.text-content-right {
    grid-column: 4 / 9; 
    align-self: end; /* Zarovnání textu dolů */
}

.spacer-left {
    grid-column: 1 / 4; /* Pod obrázkem prázdno */
}

/* Text Boxes */
.text-box {
    grid-column: span 1; 
    background: #111;
    padding: 30px;
    border: 1px solid #222;
}

.text-box h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
}

.text-box p {
    color: #aaa;
}

/* Specific style for About text to remove box styling */
.text-box-transparent {
    background: transparent;
    padding: 0;
    border: none;
    font-size: 18px; /* Změna na 18px */
    font-weight: 300; /* Light */
    color: #fff;
}

.text-right {
    grid-column: 2; /* Pravý sloupec (9-12) */
}

.text-left {
    grid-column: 1; /* Levý sloupec (5-8) */
}

.about-text {
    align-items: center; 
}

/* Profile Image Style */
.profile-image-container {
    width: 100%;
}

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

/* Project Cards */
.project-card {
    grid-column: span 1; 
    background: #1a1a1a;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #222;
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
}

/* PROJECTS GALLERY - NEW */
.projects-gallery {
    grid-column: 1 / -1; /* Přes celou šířku gridu */
    width: 100vw; /* Přes celou šířku viewportu */
    margin-left: -40px; /* Kompenzace paddingu .container */
    display: flex;
    flex-direction: column;
    gap: 0; /* Bez mezer */
    overflow: hidden; 
}

.project-row {
    display: flex;
    gap: 0; /* Bez mezer */
    width: 120%; /* Širší pro posun */
}

.gallery-item {
    flex: 1; 
    aspect-ratio: 16/9;
    background-color: #333;
    border-radius: 0; /* Ostré rohy */
    border: 1px solid #000; /* Volitelné: tenká linka pro oddělení, pokud jsou tmavé */
}

/* Posun prostřední řady */
.project-row.shifted {
    transform: translateX(-100px); /* Větší posun */
    width: 120%;
}

/* MY JOURNEY SECTION */
.journey-container {
    grid-column: 5 / 13; /* Od 5. sloupce do konce */
    display: flex;
    flex-direction: column;
    gap: 80px; /* Změna na 80px */
}

.journey-item p {
    margin: 0;
    line-height: 1.2;
}

.company {
    font-size: 40px;
    font-weight: 400; /* Regular */
    color: #fff;
    margin-bottom: 8px !important; /* Gap 8px */
}

.details {
    font-size: 18px;
    font-weight: 300; /* Light */
    color: #ccc;
    margin-bottom: 8px !important; /* Gap 8px */
}

.description-block {
    font-size: 18px; /* Stejná velikost jako details */
    font-weight: 200; /* Thin */
    color: #888; /* Šedá barva */
    margin-bottom: 8px !important; /* Gap 8px mezi bloky */
    line-height: 1.4;
    max-width: 62.5%; /* Omezení na sloupec 9 */
}

.description-block:last-child {
    margin-bottom: 0;
}

/* CONTACT SECTION */
.contact-container {
    grid-column: 5 / 13; /* Od 5. sloupce do konce */
    display: flex;
    flex-direction: column;
    gap: 16px; /* Mezera mezi odkazy */
}

.contact-link {
    color: #fff; /* Bílý text */
    text-decoration: none;
    font-size: 18px;
    font-weight: 300; /* Light */
    transition: text-decoration 0.3s ease;
}

.contact-link:hover {
    text-decoration: underline; /* Podtržení při hover */
    color: #fff; /* Barva zůstane bílá */
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .grid-text, .grid-projects {
        grid-template-columns: 1fr; /* Na menších displejích pod sebe */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px; 
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; 
    }
    
    .top-header { padding: 20px; position: relative; }
    .side-nav { 
        position: static; 
        transform: none; 
        padding: 20px;
        margin-bottom: 20px;
    }
    .side-nav ul { flex-direction: row; flex-wrap: wrap; }
}
