/* ============================================
   Minecraft server - Dark Wood & Emerald Theme
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Color Palette - Dark Wood & Emerald */
  --color-primary: #50c878;       /* Emerald Green */
  --color-primary-light: #6ee7b7; /* Lighter Green */
  --color-primary-dark: #047857;  /* Darker Green */
  --color-secondary: #d4af37;     /* Gold / Brass */
  --color-accent: #ef4444;        /* Redstone Red for alerts/actions */

  /* Neutral/Background Colors */
  --color-bg-light: #2d241e;      /* Light Wood/Dirt */
  --color-bg-white: #e2e8f0;      /* Slate White for text */
  --color-bg-dark: #120c0a;       /* Dark Chocolate/Obsidian-ish */
  --color-text-dark: #f1f5f9;     /* Light text for dark bg */
  --color-text-light: #94a3b8;    /* Muted Slate */
  --color-text-muted: #a8a29e;    /* Stone Grey */
  --color-surface: #1e1611;       /* Dark Wood Planks for cards */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #065f46 0%, #059669 100%); /* Deep Forest */
  --gradient-overlay: linear-gradient(180deg, rgba(18, 12, 10, 0.8) 0%, rgba(18, 12, 10, 0.95) 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 22, 17, 0.9) 0%, rgba(20, 15, 12, 0.95) 100%);
  --gradient-gold: linear-gradient(45deg, #b45309, #d4af37, #f59e0b);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;   /* Minecraft blocky feel - smaller radius */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 15px rgba(80, 200, 120, 0.3); /* Emerald glow */

  /* Typography */
  --font-primary: "Inter", system-ui, sans-serif;
  --font-heading: "Rajdhani", "Segoe UI", sans-serif; /* Tech/Blocky feel */

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-dark);
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEgMWgydjJIMUMxeiIgZmlsbD0iIzI2MjYyNiIgZmlsbC1vcGFjaXR5PSIwLjA1Ii8+PC9zdmc+'); /* Subtle pattern */
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* Space for fixed header */
}

/* ============================================
   UTILITIES
   ============================================ */
.w-100 { width: 100%; }
.margin-auto { margin: auto; }
.text-lg { font-size: 1.125rem; line-height: 1.8; color: var(--color-text-light); }
.text-center { text-align: center; }
.d-block { display: block; }
.d-none { display: none; }
.text-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.text-gold {
  color: var(--color-secondary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.text-muted { color: var(--color-text-muted); }
.italic { font-style: italic; }

.bg-wood-dark {
  background-color: var(--color-surface);
  color: var(--color-text-dark);
}

.img-rotate-frame {
  transform: rotate(2deg);
  transition: transform var(--transition-normal);
  display: block;
  border: 4px solid var(--color-surface);
  box-shadow: var(--shadow-md);
}

.card-premium:hover .img-rotate-frame {
  transform: rotate(0deg) scale(1.02);
  border-color: var(--color-primary);
}

.italic-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding-left: var(--spacing-md);
  margin: var(--spacing-md) 0;
  background: rgba(80, 200, 120, 0.05);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 12, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(18, 12, 10, 0.98);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-fast);
  text-shadow: 0 0 10px rgba(80, 200, 120, 0.2);
}

.logo:hover {
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(80, 200, 120, 0.5);
}

.logo span { color: var(--color-primary); }

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 600;
  color: var(--color-text-light);
  position: relative;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: var(--transition-fast);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
  box-shadow: 0 0 8px var(--color-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-light);
  text-shadow: 0 0 8px rgba(80, 200, 120, 0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-dark);
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: white;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.1);
  background: rgba(0, 0, 0, 0.4);
}

.form-group { margin-bottom: var(--spacing-sm); }

.bg-surface {
  background-color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   COMPONENTS - CARDS & SECTIONS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.card-body {
  padding: var(--spacing-sm);
}

.datum { font-weight: 600; color: var(--color-secondary); }
.autor { font-style: italic; color: var(--color-text-muted); }

.border-top-glass {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
}

/* ============================================
   COMPONENTS - STATUSY / AVATARS
   ============================================ */
.avatar-container {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm); /* Blocky avatars */
  overflow: hidden;
  border: 2px solid var(--color-primary);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-image-container {
  margin: var(--spacing-sm) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.status-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */
.comments-container {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform var(--transition-fast);
}

.comment-item:hover {
  transform: translateX(5px);
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(80, 200, 120, 0.1);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-xs);
}

.comment-author {
  font-weight: 700;
  color: var(--color-primary-light);
}

.comment-date { font-size: 0.75rem; color: var(--color-text-muted); }
.comment-text { font-size: 0.95rem; color: var(--color-text-dark); line-height: 1.4; }

.comment-form {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 480px) {
  .comment-form-grid { grid-template-columns: 1fr; }
}

.input-premium {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  background: white;
}

.input-premium:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.btn-submit {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   CONTACT PAGE COMPONENTS
   ============================================ */
.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.contact-method:hover {
  background: rgba(139, 69, 19, 0.05);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-details h4 {
  margin-bottom: 0.25rem;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.1);
}

.contact-form-premium {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
  }

  .main-nav.active,
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--color-primary-light); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
  font-size: 1rem;
}

.lead {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--color-text-muted);
}

/* ============================================
   LAYOUT & GRID UTILITIES (FIXED)
   ============================================ */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section { padding: var(--spacing-xl) 0; }

.section-dark {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Grid System - Explicitly defined */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

/* Responsive Grids */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

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

/* ============================================
   FLEXBOX UTILITIES
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ============================================
   SPACING UTILITIES
   ============================================ */
.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.32);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--spacing-md);
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  color: var(--color-text-dark);
  text-shadow: 0 4px 16px rgba(0,0,0,0.8);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .lead {
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-content .flex {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
}

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

.btn-outline-light:hover {
  background: var(--color-text-light);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

/* ============================================
   CARDS
   ============================================ */
.card-premium {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-premium:hover::before {
  transform: scaleX(1);
}

.img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */
.testimonial-section {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.testimonial-section::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-stars {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.25rem;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin: var(--spacing-md) 0;
  line-height: 1.8;
}

.testimonial-author {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  font-style: normal;
  margin-top: var(--spacing-sm);
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-overlay h3 {
  color: var(--color-text-light);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay h3 {
  transform: translateY(0);
}

/* ============================================
   SKILL CARDS (HOME PAGE)
   ============================================ */
.skill-card {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.5s;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-normal);
}

.skill-card:hover .skill-icon {
  transform: scale(1.2) rotate(10deg);
}

.skill-card h3 {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

.skill-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */
@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-bg-animate {
  animation: heroZoom 20s infinite alternate ease-in-out;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }

  .hero-section {
    min-height: 80vh;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .flex {
    flex-direction: column;
    align-items: stretch;
  }

  .testimonial-quote {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {

  .container,
  .container-sm {
    padding: 0 var(--spacing-sm);
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .skill-card {
    padding: var(--spacing-md);
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.otvoreny,
.lightbox[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-obrazok-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
}

.lightbox-obrazok {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-zatvor {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
  transition: all var(--transition-fast);
  line-height: 1;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-zatvor:hover {
  color: white;
  transform: scale(1.1);
}

.lightbox-navigacia {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 2001;
  backdrop-filter: blur(5px);
  border-radius: var(--radius-sm);
}

.lightbox-navigacia:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
  transform: translateY(-50%) scale(1.05);
}

.lightbox-pred {
  left: 20px;
}

.lightbox-dalsi {
  right: 20px;
}

.lightbox-popis {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  text-align: center;
  color: white;
  z-index: 2001;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.lightbox-nadpis {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.lightbox-popis-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.lightbox-pocitadlo {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}


/* ============================================
   MODAL
   ============================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--color-bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-align: center;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-title-custom {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary-dark);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

  .hero-section,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}