/* PREMIUM DESIGN SYSTEM 2.0 - PD-ELEKTRO */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --color-bg-center: #0e1b2c; /* Deeper, more sophisticated indigo */
  --color-bg-edge: #050505;
  --color-background: radial-gradient(circle at center, var(--color-bg-center) 0%, var(--color-bg-edge) 100%);
  
  --color-primary: #e6b94d;
  --color-primary-glow: rgba(230, 185, 77, 0.4);
  --color-cyan-glow: rgba(0, 255, 255, 0.5);
  
  --color-surface: rgba(255, 255, 255, 0.02);
  --color-text: #ffffff;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(0, 255, 255, 0.3);

  --font-main: 'Outfit', system-ui, sans-serif;
  --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Professional silky eased transition */
  --glass: blur(28px) saturate(180%);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--color-bg-edge);
  color: var(--color-text);
  line-height: 1.5; /* Agency standard leading */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--color-background);
  z-index: -2;
}

/* 2. SMOOTH SECTION TRANSITIONS (The Atmospheric Flow) */
section {
  position: relative;
  padding: clamp(4rem, 7vw, 6rem) 0 !important; /* Reduced for better content density */
  background: transparent !important;
}

/* Atmospheric Glows behind sections */
section > .container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(14, 27, 44, 0.4) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.section--darker {
  background: transparent !important;
}

.section--darker > .container::before {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, transparent 75%);
}

/* HEADER MINIMALISM */
.header {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0 !important;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav__link {
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff !important;
  font-weight: 600;
}

.section-header__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  letter-spacing: -0.02em !important;
}

.header__logo {
  font-size: 1.5rem !important;
  letter-spacing: -0.02em;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0 2rem;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at center, var(--color-bg-center) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.6;
}

/* Deep Black Transition Zone */
.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px; /* Large transition zone */
  background: linear-gradient(to bottom, transparent 0%, rgba(5, 5, 5, 0.8) 50%, #050505 100%);
  z-index: 5; /* Above the image overlay */
  pointer-events: none;
}

.hero__visual-overlay {
  position: absolute;
  inset: 0;
  background: url('assets/hero-elektro.jpg') no-repeat center center/cover;
  opacity: 0.55; 
  filter: grayscale(40%) brightness(0.85); 
  z-index: 0;
  /* Cinematic Dissolve: Top is visible, bottom flows into darkness */
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.hero__content {
  max-width: 1000px;
  position: relative;
  z-index: 10;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em; /* Slightly relaxed from -0.04em for better legibility */
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.hero__title span {
  display: inline-block; /* Helps with background-clip clipping issues */
  background: linear-gradient(135deg, #f0c75f 0%, #e6b94d 50%, #b88d2d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px var(--color-primary-glow));
  letter-spacing: -0.01em; /* Further relaxed for the gold part to avoid aliasing artifacts */
  padding-top: 0.1em; /* Tiny headroom for accents */
  margin-top: -0.1em;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}

/* BUTTONS */
.btn {
  padding: 1.2rem 3rem;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.btn--primary {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 0 25px var(--color-primary-glow);
}

.btn--primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 45px var(--color-primary-glow);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 5. PRÉMIOVÉ BOXY (MACHINED GLASS 2.0) */
.why-us__card, 
.project-card, 
.process-step, 
.calculator-wrapper, 
.contact-info-card, 
.contact-form-card,
.stat-item__card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important; /* Precision Edge highlight */
  border-radius: 20px !important; /* Technical radii */
  padding: 2.2rem !important; /* Perfectly balanced for mobile & desktop */
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02) !important; 
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
}

/* Sophisticated Background Glow behind cards */
.why-us__card::before, 
.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(230, 185, 77, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.why-us__card:hover, 
.project-card:hover, 
.process-step:hover,
.stat-item__card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  border-color: rgba(230, 185, 77, 0.25) !important;
  border-top-color: rgba(230, 185, 77, 0.5) !important;
  box-shadow: 
    0 45px 90px -20px rgba(0, 0, 0, 0.8), 
    inset 0 0 20px rgba(230, 185, 77, 0.04) !important;
}

.why-us__card:hover::before, 
.project-card:hover::before {
  opacity: 1;
}

/* PROJECT CARD OVERLAY */
.project-card__media {
  position: relative;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 44, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

/* PROJECT CARD IMAGE SLIDER (Cinematic Preview) */
.project-card__media {
  position: relative;
  overflow: hidden;
}

.project-card__media.has-slider .project-slider {
  display: flex;
  width: 400%; /* For 4 images */
  height: 100%;
  animation: projectSlide 16s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card__media > img,
.service-detail__image img {
  display: block;
}

.project-card__media > img,
.service-detail__image img {
  width: 100%;
  max-width: 100%;
}

.project-card__media.has-slider .project-slider img {
  flex: 0 0 25%;
  width: 25%;
  height: 100%;
  object-fit: cover;
  min-width: 0;
}

.service-detail__image img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@keyframes projectSlide {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-25%); }
  50%, 70% { transform: translateX(-50%); }
  75%, 95% { transform: translateX(-75%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .project-card__media.has-slider .project-slider {
    animation: none;
  }
}

.btn--small {
  padding: 0.8rem 1.6rem;
  font-size: 0.75rem;
}

/* CLIENT REVIEWS WITHIN PROJECT CARDS */
.project-card__review {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.project-card__stars {
  color: var(--color-primary);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  display: flex;
  gap: 2px;
}

.project-card__quote {
  font-style: italic;
  font-size: 0.88rem !important;
  color: #fff !important;
  line-height: 1.5 !important;
  margin-bottom: 0.4rem !important;
  opacity: 0.9;
}

.project-card__author {
  display: block;
  font-size: 0.72rem !important;
  color: var(--color-primary) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* REFINED GRID FOR MORE BOXES */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* REFINED ICON INTEGRATION */
.why-us__card-icon {
  width: 3.8rem;
  height: 3.8rem;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.8rem;
  color: var(--color-primary);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: inherit;
}

.why-us__card:hover .why-us__card-icon {
  border-color: var(--color-primary);
  background: rgba(230, 185, 77, 0.1);
  box-shadow: 0 0 25px rgba(230, 185, 77, 0.15);
}

/* TYPOGRAPHY PROXIMITY */
.why-us__card h3, 
.project-card h3, 
.process-step h3 {
  margin-bottom: 0.75rem !important; /* Tighter gap for professional feel */
  font-size: 1.35rem !important;
  letter-spacing: -0.02em !important;
}

.why-us__card p, 
.project-card p, 
.process-step p {
  font-size: 0.94rem !important;
  line-height: 1.6 !important;
  color: #cbd5e1 !important;
  opacity: 0.85;
}

/* 6. STATS (Agency Style) */
.stat-item__card {
  padding: 4.5rem 2rem !important;
}

.stat-item__number {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em; /* Professional "crunch" */
  background: linear-gradient(135deg, #ffffff 0%, #e6b94d 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

/* FORM FIELDS */
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  color: #fff;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #00ffff !important;
  box-shadow: 0 0 20px var(--color-border-glow) !important;
  outline: none;
}

/* Ensure dropdown options are visible (Prevents white-on-white text) */
.form-group select option {
  background-color: #1a1a1a !important; /* Dark background for options */
  color: #ffffff !important;           /* White text for options */
  padding: 1rem;
}

/* RANGE SLIDER */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  height: 6px;
  border-radius: 10px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 30% 30%, #f0c75f, #b88d2d);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 20px var(--color-primary-glow);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* FOOTER */
.footer {
  background: var(--color-bg-edge) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 8rem 0 4rem !important;
}

.footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-primary) !important;
  margin-bottom: 2.5rem;
  font-weight: 800;
}

.footer__brand .header__logo {
  font-size: 1.5rem !important;
  margin-bottom: 1.5rem;
  display: block;
}

/* REVEAL ANIMATION (Cinematic Timing) */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, opacity;
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* BROWSER & PLATFORM OPTIMIZATION */
@media (max-width: 1024px) {
  section { padding: 7rem 0 !important; }
}

@media (max-width: 768px) {
  section { padding: 5.5rem 0 !important; }
  .hero__title { font-size: clamp(2rem, 8vw, 3.5rem) !important; }
  .contact-wrapper { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.5rem !important; }
  .hero__title { font-size: 1.8rem !important; margin-bottom: 2rem !important; }
  .btn { width: 100%; justify-content: center; }
  
  /* Precision Mobile Rhythm */
  .why-us__card, .project-card, .process-step { padding: 1.75rem !important; border-radius: 16px !important; }
  
  .fab-button { width: 62px !important; height: 62px !important; }
  .fab-button span { display: none !important; }

  /* Calculator specific mobile fixes */
  .calculator-wrapper {
    padding: 1.5rem 1rem !important;
  }
  .calc-lead-magnet {
    padding: 1.5rem 1rem !important;
  }
  .calc-email-row {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  .calc-submit-btn {
    width: 100% !important;
    white-space: normal !important;
    padding: 1rem 0.5rem !important;
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    height: auto !important;
    min-height: 3.5rem !important;
  }
}

/* Browser Specific Safegards */
@supports not (backdrop-filter: blur(10px)) {
  .why-us__card, .project-card, .process-step, .stat-item__card {
    background: rgba(15, 23, 42, 0.95) !important;
  }
}

/* GALLERY MODAL PREMIUM POLISH */
.gallery-modal.open {
  backdrop-filter: blur(12px) !important;
}

.gallery-dialog {
  background: linear-gradient(165deg, #0a1321 0%, #050505 100%) !important;
  border: 1px solid rgba(230, 185, 77, 0.15) !important;
}

.gallery-stage {
  background: #000 !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-nav {
  width: 54px !important;
  height: 54px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gallery-nav:hover {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.gallery-caption {
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.gallery-counter {
  font-family: var(--font-main);
  opacity: 0.6;
}

.gallery-thumb {
  border-radius: 8px !important;
  transform: scale(1);
  transition: var(--transition) !important;
}

.gallery-thumb.active {
  border-color: var(--color-primary) !important;
  transform: scale(1.05);
}
/* 9. SUBPAGES & SERVICE DETAILS */
.hero--subpage {
  padding-bottom: 4rem !important;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
}

.feature-item__icon {
  font-size: 2rem;
  color: var(--color-primary);
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(230, 185, 77, 0.1);
  border: 1px solid rgba(230, 185, 77, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__text h3 {
  font-size: 1.1rem !important;
  margin-bottom: 0.5rem !important;
  color: #fff;
}

.feature-item__text p {
  font-size: 0.9rem !important;
  color: var(--color-text-muted);
}

.image-wrapper.glass-effect {
  position: relative;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
  .project-card__media {
    aspect-ratio: 4 / 3;
    min-height: clamp(13.5rem, 56vw, 21rem);
  }

  .project-card__media > img,
  .project-card__media.has-slider .project-slider img {
    height: 100%;
  }

  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .service-detail__image {
    order: -1;
  }

  .service-detail__image img {
    max-height: min(58vh, 28rem);
  }
}

@media (max-width: 480px) {
  .project-card__media {
    min-height: clamp(13rem, 68vw, 18rem);
  }
}

/* 10. SCOPE OF WORK (Professional Grid) */
.scope-of-work {
  max-width: 1000px;
  margin: 4rem auto 0;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.scope-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: var(--transition);
  cursor: default;
}

.scope-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scope-item__icon {
  width: 28px;
  height: 28px;
  background: rgba(230, 185, 77, 0.1);
  border: 1px solid rgba(230, 185, 77, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.scope-item span:not(.scope-item__icon) {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

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

.section-header__icon {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  line-height: 1;
  /* Premium Glow Effect without breaking emojis */
  filter: drop-shadow(0 0 12px var(--color-primary-glow));
  animation: pulseIcon 3s infinite ease-in-out;
  user-select: none;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--color-primary-glow)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--color-primary-glow)); }
}

