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

/* --- CUSTOM VARIABLES --- */
:root {
  --primary: #e83979;
  --primary-hover: #d12c6a;
  --secondary: #fdf0f0;
  --text: #1a1a19;
  --text-muted: #575756;
  --mint: #eef4f1;
  --beige: #f8f2ec;
  --white: #ffffff;
  
  --font-family: 'Space Grotesk', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 30px 60px rgba(232, 57, 121, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
}

/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  background-color: var(--beige);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- THE PREMIUM BACKGROUND --- */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Complex gradient blend with pozadi.jpg */
  background: 
    linear-gradient(135deg, rgba(238, 244, 241, 0.9) 0%, rgba(248, 242, 236, 0.85) 50%, rgba(253, 240, 240, 0.9) 100%),
    url('Obrazky/pozadi.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

/* Decorative abstract background shapes */
.bg-shape-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 57, 121, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: float-slow 15s infinite alternate;
}

.bg-shape-2 {
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 244, 241, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

/* --- HEADER / NAVIGATION --- */
header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo-container:hover .logo-img {
  transform: scale(1.05);
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
}

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

.nav-btn {
  text-decoration: none;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

/* --- MAIN HERO SECTION --- */
.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 1.5rem 1.5rem 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

/* Hero Content Area */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Event Badge (#barcampkolin) */
.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  border: 1px solid rgba(232, 57, 121, 0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  box-shadow: 0 10px 20px rgba(232, 57, 121, 0.05);
  transition: var(--transition-smooth);
  animation: pulse-light 3s infinite;
}

.badge-hashtag {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.badge-dot {
  width: 5px;
  height: 5px;
  background-color: var(--primary);
  border-radius: 50%;
}

.badge-date {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.event-badge:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

/* Title & Headline Styling */
.hero-title-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-pretitle {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-title span {
  display: block;
  background: linear-gradient(90deg, var(--primary) 0%, #ff6e9c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 90%;
  margin-top: 0.5rem;
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
}

/* CTA Buttons Layout */
.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-premium);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(232, 57, 121, 0.25);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary);
  border: 1px solid rgba(232, 57, 121, 0.2);
}

.btn-secondary:hover {
  background-color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

/* Hero Media Area (Right Column) */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-frame-backdrop {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(232, 57, 121, 0.1) 0%, rgba(238, 244, 241, 0.5) 100%);
  border: 2px dashed rgba(232, 57, 121, 0.25);
  transform: rotate(-3deg);
  z-index: 1;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 0.85;
  border-radius: 40px;
  overflow: hidden;
  z-index: 2;
  box-shadow: var(--shadow-soft), 0 30px 60px rgba(0, 0, 0, 0.08);
  border: 8px solid var(--white);
  transform: rotate(2deg);
  transition: var(--transition-smooth);
}

.image-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12), var(--shadow-premium);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.image-wrapper:hover .hero-img {
  transform: scale(1.05);
}

/* Floating glass card */
.glass-card-info {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  z-index: 3;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft), 0 20px 45px rgba(0, 0, 0, 0.05);
  max-width: 260px;
  transform: translateY(0) rotate(-2deg);
  transition: var(--transition-smooth);
  animation: float-card 6s infinite ease-in-out;
}

.image-wrapper:hover ~ .glass-card-info {
  transform: translateY(-5px) rotate(0deg);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* --- FOOTER / INFO SECTION --- */
.hero-footer {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(26, 26, 25, 0.08);
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-dot {
  color: var(--primary);
  font-weight: bold;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(3%, 5%) scale(1.05);
  }
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes pulse-light {
  0%, 100% {
    box-shadow: 0 10px 20px rgba(232, 57, 121, 0.05);
    border-color: rgba(232, 57, 121, 0.15);
  }
  50% {
    box-shadow: 0 10px 25px rgba(232, 57, 121, 0.12);
    border-color: rgba(232, 57, 121, 0.35);
  }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero-container {
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-top: 3rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    max-width: 80%;
    border-left: none;
    border-top: 3px solid var(--primary);
    padding-left: 0;
    padding-top: 1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-media {
    order: -1; /* Image on top for mobile screens */
    margin-bottom: 1rem;
  }

  .image-wrapper {
    max-width: 360px;
  }

  .glass-card-info {
    left: 50%;
    bottom: -1.5rem;
    transform: translateX(-50%) rotate(0deg);
    max-width: 280px;
    animation: float-card-mobile 6s infinite ease-in-out;
  }
  
  .image-wrapper:hover ~ .glass-card-info {
    transform: translateX(-50%) translateY(-5px);
  }

  .hero-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@keyframes float-card-mobile {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@media (max-width: 480px) {
  header {
    padding: 1.5rem 1rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  .header-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-container {
    padding: 1rem;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .image-wrapper {
    max-width: 100%;
    aspect-ratio: 0.9;
  }

  .glass-card-info {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    transform: none;
    animation: none;
  }
  
  .image-wrapper:hover ~ .glass-card-info {
    transform: translateY(-3px);
  }
}
