/*
Theme Name: Daniel Korkeš Portfolio
Theme URI: https://danielkorkes.cz/
Author: Daniel Korkeš
Author URI: mailto:daniel.korkes@gmail.com
Description: Moderní jednostránková WordPress šablona s důrazem na čistý kód, responzivní design a prezentaci projektů.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danielkorkes-portfolio
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;1,400&family=Noto+Sans+Display:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --primary-color: #800000;
  --gray-light: #eee;
  --gray-lighter: #f5f5f5;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background: white;
  color: #111;
}

h1, h2, h3, h4, h5, h6, nav a, button {
  font-family: "Noto Sans Display", sans-serif;
}

header {
  height: 100vh;
  background: url('images/header.jpg') no-repeat center center;
  background-size: cover;
  background-position: 60% center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: white;
}

nav {
  display: flex;
  flex: 1;
  justify-content: center;
  font-size: 1.5rem;
  width: 100%;
  padding: 5vh 4vw;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.25);
}

div.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  border: solid 1px red;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3vw;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.hamburger {
  display: none;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .nav-menu.visible {
    display: flex;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }
}

div.header-container {
  display: flex;
  flex: 50;
  flex-direction: column;
  justify-content: center;
  gap: 1;
  text-align: left;
  padding: 12vh 0 25vh 36vw;
  width: 100%;
  max-width: 1400px;
  border: solid 1px blue;
}

@media (max-width: 768px) {
  div.header-container {
    justify-content: left;
  }
}

section {
  display: flex;
  justify-content: center;
  padding: 5vh 4vw;
  background: var(--gray-light);
}

section.lighter {
  background: var(--gray-lighter)
}

section > div {
  width: 100%;
  max-width: 1400px;
  border: solid 1px yellowgreen;
}

img.logo {
  height: clamp(16px, 8vh, 64px); 
  width: auto;
}

.gray {
  background: var(--gray-light);
  width: 100%;
  padding: 6vh 4vw;
}

.lighter {
  background: var(--gray-lighter);
}

.projects {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.project {
  min-width: 300px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: white;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 1rem;
}

footer {
  background: var(--primary-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  nav .hamburger {
    display: block;
    cursor: pointer;
  }
}

h1.header-slogan {
  font-size: clamp(24px, 4.5vmax, 120px);
}
h4.header-slogan {
  font-size: 2.25vmax;
  margin-left: 12vw;
}