/* ========================================================= 
   STYLE.CSS – Moderní portfolio Dagmar Vodákové
   Mobile-first, font Inter, barevná paleta a moderní layout
========================================================= */

/* -------------------- ROOT VARIABLES -------------------- */
:root {
  --color-primary: #0F2A44;
  --color-secondary: #1E6F73;
  --color-accent: #2FA36B;
  --color-cta: #F59E0B;
  --color-contrast: #38BDF8;

  --color-bg: #F9FAFB;
  --color-bg-light: #FFFFFF;
  --color-border: #E5E7EB;
  --color-text: #1F2937;
  --color-text-muted: #6B7280;

  --font-base: 'Inter', sans-serif;
  --transition: 0.3s ease-in-out;
  --radius: 8px;
}

/* -------------------- GLOBAL RESET -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

main {
  padding: 3rem 0 4rem;
}

main > .hero {
  margin-top: -3rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* -------------------- HEADINGS SPACING -------------------- */
h2 {
  margin-top: 3rem;     
  margin-bottom: 1.2rem;
}

h3 {
  margin-top: 2rem; 
  margin-bottom: 0.8rem; 
}

/* -------------------- CONTAINERS -------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* -------------------- HEADER -------------------- */
.site-header {
  background-color: var(--color-bg-light);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  flex-direction: column; /* Mobile-first: logo nahoře, menu pod ním */
  align-items: center;    /* Logo vycentrované */
}

.site-header .logo {
  font-weight: 500;
  font-size: 2rem;  /* větší písmo */
  color: var(--color-primary);
  text-transform: none; /* normální písmo */
  text-align: center;
  margin-bottom: 0.5rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column; /* Mobile-first: menu pod logem */
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.main-nav a.btn {
  background-color: var(--color-cta);
  color: var(--color-bg-light);
  font-weight: 600;
}

.main-nav a.btn:hover {
  background-color: var(--color-accent);
}

.main-nav li.active a {
  background-color: var(--color-border);
  font-weight: 600;
}

/* -------------------- HERO SECTION -------------------- */
.hero {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0.5rem auto 1.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
}

.hero-actions .btn {
  width: 180px;
  text-align: center;
}

.hero-actions .btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-bg-light);
  color: var(--color-bg-light);
}

.hero-actions .btn-outline:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
}

/* -------------------- ABOUT PREVIEW -------------------- */
.about-preview {
  margin-bottom: 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-grid img {
  max-width: 250px;
  display: block;
  margin: 0 auto;
}

.about-grid h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-grid p {
  margin-bottom: 0.8rem;
}

.text-link {
  color: var(--color-cta);
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

/* -------------------- PAGE HEADER -------------------- */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* -------------------- PROJECTS GRID -------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-card {
  background-color: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.project-card h2 {
  margin-top: 1rem;
  color: var(--color-secondary);
}

.project-card ul {
  margin-top: 1rem;
  list-style: disc inside;
}

.project-card .text-link {
  display: inline-block;
  margin-top: 1rem;
}

/* -------------------- SKILLS GRID -------------------- */
.skills-section {
  margin-bottom: 2rem;
}

.skills-section h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.skill-card {
  background-color: var(--color-bg-light);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.skill-icon {
  width: 60px;
  margin-bottom: 0.8rem;
}

/* -------------------- TOOLS LIST -------------------- */
.tools-list {
  list-style: disc inside;
  color: var(--color-text-muted);
}

/* -------------------- EDUCATION / CV SECTIONS -------------------- */
.education-section, .cv-section {
  margin-bottom: 2rem;
}

.education-item {
  margin-bottom: 1.5rem;
}

.education-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.cv-list, .education-list {
  list-style: disc inside;
  color: var(--color-text-muted);
}

.cv-section p {
  padding-top: 1rem;
}

.cv-section .btn {
  margin: 1.5rem 3rem 0 0;
}

/* -------------------- CONTACT -------------------- */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list a {
  color: var(--color-secondary);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--color-cta);
}

/* -------------------- FOOTER -------------------- */
.site-footer {
  background-color: var(--color-bg-light);
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-secondary);
}

.site-footer a:hover {
  color: var(--color-cta);
}

/* -------------------- BUTTONS -------------------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--color-cta);
  color: var(--color-bg-light);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color var(--transition);
  text-align: center;
}

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

/* -------------------- RESPONSIVE BREAKPOINTS -------------------- */

/* Tablets and above */
@media (min-width: 768px) {

  /* HEADER */
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 1rem;
    margin-top: 0;
  }

  /* HERO */
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: row;
    gap: 1rem;
  }

  /* ABOUT PREVIEW */
  .about-grid {
    grid-template-columns: 1fr 250px;
  }

  .about-grid img {
    order: 2;
  }

  .about-grid > div {
    order: 1;
  }

  /* PROJECTS GRID */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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