/* Modern 2025 UI/UX Design - Ultra Modern & Glassmorphism */
/* Using Digital Hub (dh-) prefixed variables for custom styling */

/* Navigation - Glassmorphism Effect */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 20, 25, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dh-border);
  z-index: 1000;
  transition: all var(--dh-transition-normal);
}

.navbar.scrolled {
  background: rgba(15, 20, 25, 0.2);
  border-bottom: 1px solid rgba(0, 188, 212, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--dh-spacing-md) var(--dh-spacing-lg);
}

/* Modern brand container with icon and text */
.brand-container {
  display: flex;
  align-items: center;
  gap: var(--dh-spacing-md);
  cursor: pointer;
  transition: all var(--dh-transition-normal);
}

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

.brand-icon {
  width: 50px; /* Increased from 40px */
  height: 50px;
  object-fit: contain; /* Preserve original proportions */
  filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.4));
  transition: all var(--dh-transition-normal);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.8));
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 1.8rem; /* Increased from 1.5rem */
  font-weight: 800;
  background: linear-gradient(135deg, var(--dh-text-primary) 0%, var(--dh-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  font-family: "Inter", sans-serif;
}

.brand-tagline {
  font-size: 0.8rem; /* Increased from 0.7rem */
  color: var(--dh-primary);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px; /* Increased spacing between lines */
}

.logo {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.3));
  transition: all var(--dh-transition-normal);
}

.logo:hover {
  filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.6));
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: var(--dh-spacing-xl);
}

.nav-link {
  color: var(--dh-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--dh-transition-normal);
  position: relative;
  padding: var(--dh-spacing-sm) var(--dh-spacing-md);
  border-radius: var(--dh-radius-md);
}

.nav-link:hover,
.nav-link.active {
  color: var(--dh-primary);
  background: rgba(0, 188, 212, 0.1);
  backdrop-filter: blur(10px);
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dh-primary), transparent);
  transition: all var(--dh-transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--dh-spacing-sm);
  border-radius: var(--dh-radius-sm);
  background: rgba(0, 188, 212, 0.1);
  backdrop-filter: blur(10px);
  transition: all var(--dh-transition-normal);
}

.nav-toggle:hover {
  background: rgba(0, 188, 212, 0.2);
  transform: scale(1.1);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dh-primary);
  margin: 3px 0;
  transition: all var(--dh-transition-normal);
  border-radius: 2px;
}

/* Hero Section - Ultra Modern with Animated Background */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--dh-spacing-3xl);
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Контейнерът вече не е твърдо ограничен */
.hero-3d-model {
  display: flex;
  align-items: center; /* 🔹 Центрира по вертикала */
  justify-content: center;
  height: 850px; /* леко увеличена височина */
  position: relative;
  margin-top: 40px;
  overflow: visible;
}

/* Основен viewer */
.drone-model-viewer {
  width: 120%;
  height: 120%;
  border: none;
  background: radial-gradient(circle at center, rgba(0, 188, 212, 0.05) 0%, transparent 85%);
  border-radius: 0;
  overflow: visible !important;
  --poster-color: transparent;
  --progress-bar-color: var(--dh-primary);
  --progress-mask: rgba(0, 188, 212, 0.2);
  transform: scale(1.1) translateY(140px); /* 🔹 Смъква центъра надолу с ~1/4 */
  transition: transform 1.2s ease-out, opacity 0.8s ease-out;
  z-index: 5;
}

/* Разрешаваме показване извън canvas */
model-viewer::part(canvas),
model-viewer::part(scene),
model-viewer::part(default-ar-button) {
  overflow: visible !important;
  clip-path: none !important;
  contain: none !important;
}

/* Fade-in ефект */
.drone-model-viewer[loaded] {
  opacity: 1;
  transform: scale(1.1) translateY(140px);
}

.drone-model-viewer:not([loaded]) {
  opacity: 0;
  transform: scale(0.9) translateY(180px);
  position: relative;
}

/* Зареждащ текст */
.drone-model-viewer:not([loaded])::before {
  content: "Визуализиране на 3D модел...";
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--dh-primary);
  font-size: var(--dh-font-size-lg);
  font-weight: 600;
  z-index: 10;
}

.drone-model-viewer:not([loaded])::after {
  content: "";
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 188, 212, 0.3);
  border-top: 3px solid var(--dh-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--dh-spacing-lg);
  background: linear-gradient(
    135deg,
    var(--dh-text-primary) 0%,
    var(--dh-primary) 30%,
    var(--dh-primary-light) 60%,
    var(--dh-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(0, 188, 212, 0.3);
  letter-spacing: -0.02em;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, var(--dh-background) 0%, rgba(26, 74, 92, 0.8) 100%);
  z-index: -1;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(1deg);
  }
}

.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%2300bcd4" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(0, 188, 212, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(0, 188, 212, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0, 188, 212, 0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(0, 188, 212, 0.2), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(0, 188, 212, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particleFloat 25s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  100% {
    transform: translateY(-100px) translateX(50px);
  }
}

.hero-subtitle {
  font-size: var(--dh-font-size-xl);
  color: var(--dh-text-secondary);
  margin-bottom: var(--dh-spacing-2xl);
  line-height: 1.6;
  font-weight: 300;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-buttons {
  display: flex;
  gap: var(--dh-spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* Floating logo elements for hero section */
.floating-logos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-logo {
  position: absolute;
  opacity: 0.1;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.floating-logo img {
  width: 100px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.3));
}

.floating-logo-1 {
  top: 20%;
  left: 10%;
  animation-name: floatUpRight;
  animation-delay: 0s;
}

.floating-logo-2 {
  top: 60%;
  right: 15%;
  animation-name: floatDownLeft;
  animation-delay: 7s;
}

.floating-logo-3 {
  bottom: 30%;
  left: 20%;
  animation-name: floatUpLeft;
  animation-delay: 14s;
}

@keyframes floatUpRight {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translate(200px, -300px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatDownLeft {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translate(-200px, 300px) rotate(-360deg);
    opacity: 0;
  }
}

@keyframes floatUpLeft {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translate(-150px, -250px) rotate(180deg);
    opacity: 0;
  }
}

.scroll-indicator {
  position: absolute; /* relative to hero section */
  bottom: var(--dh-spacing-xl); /* original distance from bottom */
  left: 50%; /* center horizontally */
  transform: translateX(-50%);
  padding: var(--dh-spacing-md);
  background: rgba(0, 188, 212, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(0, 188, 212, 0.2);
  animation: scrollBounce 2s infinite;
  z-index: 1000; /* make sure it's above hero content */
  cursor: pointer; /* clickable */
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--dh-primary);
  border-bottom: 2px solid var(--dh-primary);
  transform: rotate(45deg);
  pointer-events: none; /* clicks pass to parent */
}

@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* Section Styles - Modern Layout */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--dh-spacing-md);
  color: var(--dh-text-primary);
  text-align: center;
  position: relative;
  /* Removed any backdrop-filter that might cause blur */
  text-shadow: none; /* Removed text-shadow that might cause blur */
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--dh-primary), transparent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--dh-font-size-lg);
  color: var(--dh-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-weight: 400; /* Increased from 300 for better readability */
  line-height: 1.7;
  /* Removed any filters that might cause blur */
}

/* Fixed blurred text in section-subtitle for gallery and services sections */
#gallery .section-subtitle,
#services .section-subtitle {
  font-size: var(--dh-font-size-lg);
  color: var(--dh-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-weight: 500; /* Increased from 400 for better readability */
  line-height: 1.7;
  /* Removed any filters that might cause blur */
  backdrop-filter: none !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important; /* Ensure full opacity */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Added clear-text class to fix blurred subtitles 
.clear-text,
.section-subtitle.clear-text {
  font-size: var(--dh-font-size-lg);
  color: var(--dh-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-weight: 500;
  line-height: 1.7;
  backdrop-filter: none !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*/

.bg-surface {
  background: radial-gradient(circle at 10% 20%, rgba(0, 188, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(0, 188, 212, 0.03) 0%, transparent 50%), var(--dh-surface);
  position: relative;
}

.bg-surface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 188, 212, 0.02);
  backdrop-filter: blur(1px);
  pointer-events: none;
}

/* Section logo styling */
.section-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--dh-spacing-lg);
}

.section-logo-icon {
  width: 80px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.4));
  animation: sectionIconFloat 4s ease-in-out infinite;
}

@keyframes sectionIconFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* About Section - Modern Cards */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--dh-spacing-3xl);
  align-items: center;
}

.about-text h3 {
  font-size: var(--dh-font-size-2xl);
  color: var(--dh-primary);
  margin-bottom: var(--dh-spacing-md);
  font-weight: 600;
}

.about-text p {
  color: var(--dh-text-secondary);
  margin-bottom: var(--dh-spacing-lg);
  line-height: 1.8;
  font-weight: 300;
}

.services-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--dh-spacing-sm);
}

.services-list li {
  padding: var(--dh-spacing-md);
  color: var(--dh-text-secondary);
  position: relative;
  padding-left: var(--dh-spacing-2xl);
  background: rgba(0, 188, 212, 0.05);
  border-radius: var(--dh-radius-md);
  border: 1px solid var(--dh-border);
  transition: all var(--dh-transition-normal);
}

.services-list li:hover {
  background: rgba(0, 188, 212, 0.1);
  transform: translateX(5px);
}

.services-list li::before {
  content: "✓";
  position: absolute;
  left: var(--dh-spacing-md);
  color: var(--dh-primary);
  font-weight: bold;
  font-size: var(--dh-font-size-lg);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--dh-spacing-xl);
}

.stat-item {
  text-align: center;
  padding: var(--dh-spacing-xl);
  background: rgba(0, 188, 212, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--dh-radius-xl);
  border: 1px solid var(--dh-border);
  position: relative;
  overflow: hidden;
  transition: all var(--dh-transition-normal);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dh-primary), var(--dh-primary-light), var(--dh-primary));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 188, 212, 0.1), 0 0 20px rgba(0, 188, 212, 0.05);
}

.stat-number {
  font-size: var(--dh-font-size-4xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--dh-primary), var(--dh-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--dh-spacing-sm);
}

.stat-label {
  color: var(--dh-text-secondary);
  font-size: var(--dh-font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Services Grid - Modern Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--dh-spacing-xl);
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--dh-spacing-2xl);
  border-radius: var(--dh-radius-xl);
  border: 1px solid var(--dh-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, transparent 50%, rgba(0, 188, 212, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--dh-transition-normal);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02) rotateX(5deg);
  border-color: rgba(0, 188, 212, 0.3);
  box-shadow: 0 25px 50px rgba(0, 188, 212, 0.15), 0 0 30px rgba(0, 188, 212, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--dh-primary), var(--dh-primary-light));
  border-radius: var(--dh-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--dh-spacing-lg);
  font-size: var(--dh-font-size-2xl);
  color: white;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 188, 212, 0.3);
}

.service-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--dh-primary), var(--dh-primary-light), var(--dh-primary));
  border-radius: var(--dh-radius-lg);
  z-index: -1;
  /*animation: iconGlow 3s ease-in-out infinite;*/
}

@keyframes iconGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.service-title {
  font-size: var(--dh-font-size-xl);
  font-weight: 600;
  margin-bottom: var(--dh-spacing-md);
  color: var(--dh-text-primary);
}

.service-description {
  color: var(--dh-text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* Portfolio & Gallery - Modern Filters */
.portfolio-filters,
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: var(--dh-spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--dh-spacing-2xl);
}

.filter-btn,
.tab-btn {
  padding: var(--dh-spacing-md) var(--dh-spacing-xl);
  background: rgba(0, 188, 212, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--dh-border);
  color: var(--dh-text-secondary);
  border-radius: var(--dh-radius-lg);
  cursor: pointer;
  transition: all var(--dh-transition-normal);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

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

.filter-btn:hover::before,
.tab-btn:hover::before {
  left: 100%;
}

.filter-btn:hover,
.filter-btn.active,
.tab-btn:hover,
.tab-btn.active {
  border-color: rgba(0, 188, 212, 0.4);
  color: var(--dh-primary);
  background: rgba(0, 188, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.2);
}

/* Portfolio & Gallery Grids */
.portfolio-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--dh-spacing-xl);
}

.portfolio-item,
.gallery-item {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border-radius: var(--dh-radius-xl);
  overflow: hidden;
  border: 1px solid var(--dh-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.portfolio-item::before,
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, transparent 50%, rgba(0, 188, 212, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--dh-transition-normal);
  z-index: 1;
}

.portfolio-item:hover::before,
.gallery-item:hover::before {
  opacity: 1;
}

.portfolio-item:hover,
.gallery-item:hover {
  transform: translateY(-10px) scale(1.02) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(0, 188, 212, 0.15), 0 0 30px rgba(0, 188, 212, 0.1);
  border-color: rgba(0, 188, 212, 0.3);
}

.portfolio-image,
.gallery-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(0, 188, 212, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dh-text-muted);
  font-size: var(--dh-font-size-sm);
  position: relative;
  overflow: hidden;
}

.portfolio-image::after,
.gallery-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="%2300bcd4" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.portfolio-content,
.gallery-info {
  padding: var(--dh-spacing-xl);
  position: relative;
  z-index: 2;
}

.portfolio-title,
.gallery-title {
  font-size: var(--dh-font-size-lg);
  font-weight: 600;
  margin-bottom: var(--dh-spacing-sm);
  color: var(--dh-text-primary);
}

.portfolio-description,
.gallery-description {
  color: var(--dh-text-secondary);
  font-size: var(--dh-font-size-sm);
  margin-bottom: var(--dh-spacing-md);
  line-height: 1.6;
  font-weight: 300;
}

.portfolio-tags {
  display: flex;
  gap: var(--dh-spacing-sm);
  flex-wrap: wrap;
}

.portfolio-tag {
  padding: var(--dh-spacing-xs) var(--dh-spacing-sm);
  background: linear-gradient(135deg, var(--dh-primary), var(--dh-primary-light));
  color: white;
  border-radius: var(--dh-radius-md);
  font-size: var(--dh-font-size-xs);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

/* Contact Section - Modern Form */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--dh-spacing-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--dh-spacing-xl);
}

.contact-item {
  padding: var(--dh-spacing-xl);
  background: rgba(0, 188, 212, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--dh-radius-xl);
  border: 1px solid var(--dh-border);
  transition: all var(--dh-transition-normal);
}

.contact-item:hover {
  background: rgba(0, 188, 212, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 188, 212, 0.1);
}

.contact-item h3 {
  color: var(--dh-primary);
  margin-bottom: var(--dh-spacing-sm);
  font-size: var(--dh-font-size-lg);
  font-weight: 600;
}

.contact-item p {
  color: var(--dh-text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--dh-spacing-lg);
  padding: var(--dh-spacing-xl);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border-radius: var(--dh-radius-xl);
  border: 1px solid var(--dh-border);
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group input,
.form-group textarea {
  padding: var(--dh-spacing-lg);
  background: rgba(0, 188, 212, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg);
  color: var(--dh-text-primary);
  font-family: var(--dh-font-family);
  transition: all var(--dh-transition-normal);
  font-size: var(--dh-font-size-md);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 188, 212, 0.4);
  background: rgba(0, 188, 212, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1), 0 5px 15px rgba(0, 188, 212, 0.1);
  transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dh-text-muted);
  font-weight: 300;
}

/* Footer - Modern Design */
.footer {
  background: radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.05) 0%, transparent 50%), var(--dh-surface);
  border-top: 1px solid var(--dh-border);
  padding: var(--dh-spacing-3xl) 0 var(--dh-spacing-xl);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dh-primary), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--dh-spacing-xl);
  margin-bottom: var(--dh-spacing-xl);
}

.footer-section h3 {
  color: var(--dh-primary);
  margin-bottom: var(--dh-spacing-md);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--dh-spacing-sm);
}

.footer-section ul li a {
  color: var(--dh-text-secondary);
  text-decoration: none;
  transition: all var(--dh-transition-normal);
  font-weight: 300;
}

.footer-section ul li a:hover {
  color: var(--dh-primary);
  transform: translateX(5px);
}

/* Footer brand styling */
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--dh-spacing-md);
  margin-bottom: var(--dh-spacing-md);
}

.footer-logo-icon {
  width: 35px;
  height: auto;
  max-height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.3));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dh-text-primary);
  font-family: "Inter", sans-serif;
}

.footer-brand-tagline {
  font-size: 0.6rem;
  color: var(--dh-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -2px;
}

.footer-logo {
  height: 45px;
  margin-bottom: var(--dh-spacing-md);
  filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.3));
}

.footer-logo-main {
  width: 60px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.3));
}

.social-links {
  display: flex;
  gap: var(--dh-spacing-md);
}

.social-link {
  color: var(--dh-text-secondary);
  text-decoration: none;
  transition: all var(--dh-transition-normal);
  padding: var(--dh-spacing-sm);
  border-radius: var(--dh-radius-md);
  background: rgba(0, 188, 212, 0.05);
  border: 1px solid var(--dh-border);
}

.social-link:hover {
  color: var(--dh-primary);
  background: rgba(0, 188, 212, 0.1);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--dh-spacing-xl);
  border-top: 1px solid var(--dh-border);
  color: var(--dh-text-muted);
  font-weight: 300;
}

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--dh-spacing-xl);
    text-align: center;
  }

  .hero-content {
    text-align: center;
    order: 2;
  }

  .hero-3d-model {
    order: 1;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--dh-spacing-3xl);
    transition: all var(--dh-transition-normal);
    border-right: 1px solid var(--dh-border);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-subtitle {
    font-size: var(--dh-font-size-lg);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Mobile responsive adjustments for 3D model */
  .hero-3d-model {
    height: 300px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--dh-spacing-xl);
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--dh-spacing-xl);
  }

  .portfolio-filters,
  .gallery-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--dh-spacing-sm);
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .brand-name {
    font-size: 1.5rem; /* Responsive sizing */
  }

  .brand-tagline {
    font-size: 0.7rem;
    margin-top: 3px;
  }

  .brand-icon {
    width: 42px; /* Responsive sizing */
    height: 42px;
  }

  .floating-logos {
    display: none;
  }

  .mouse-follower {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  /* Small mobile adjustments for 3D model */
  .hero-3d-model {
    height: 250px;
  }

  .about-stats {
    flex-direction: column;
  }

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

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-tagline {
    font-size: 0.6rem;
    margin-top: 2px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }
}

/* Modal Styles - Ultra Modern */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(20px);
  margin: 5% auto;
  padding: var(--dh-spacing-2xl);
  border-radius: var(--dh-radius-xl);
  width: 90%;
  max-width: 600px;
  border: 1px solid rgba(0, 188, 212, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--dh-spacing-lg);
}

.modal-title {
  color: var(--dh-text-primary);
  font-size: var(--dh-font-size-xl);
  font-weight: 600;
}

.close {
  color: var(--dh-text-muted);
  font-size: var(--dh-font-size-2xl);
  font-weight: bold;
  cursor: pointer;
  transition: all var(--dh-transition-normal);
  padding: var(--dh-spacing-sm);
  border-radius: var(--dh-radius-md);
  background: rgba(0, 188, 212, 0.05);
}

.close:hover {
  color: var(--dh-primary);
  background: rgba(0, 188, 212, 0.1);
  transform: scale(1.1);
}

/* Success/Error Messages - Modern */
.message {
  padding: var(--dh-spacing-lg);
  border-radius: var(--dh-radius-lg);
  margin-bottom: var(--dh-spacing-lg);
  display: none;
  backdrop-filter: blur(10px);
  border: 1px solid;
  font-weight: 500;
}

.message.success {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--dh-success);
  color: var(--dh-success);
}

.message.error {
  background: rgba(244, 67, 54, 0.1);
  border-color: var(--dh-error);
  color: var(--dh-error);
}

/* Loading States - Enhanced */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Enhanced button animations with physics-based effects */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--dh-spacing-lg) var(--dh-spacing-2xl);
  background: linear-gradient(135deg, var(--dh-primary) 0%, var(--dh-primary-light) 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--dh-radius-lg);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-family: var(--dh-font-family);
  font-size: var(--dh-font-size-md);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  transform-style: preserve-3d;
}

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

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4), 0 0 20px rgba(0, 188, 212, 0.2);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s;
}

.btn-secondary {
  background: rgba(0, 188, 212, 0.1);
  color: var(--dh-primary);
  border: 2px solid var(--dh-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 188, 212, 0.2);
  border-color: var(--dh-primary-light);
}

/* Mouse follower for premium interaction */
.mouse-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.6) 0%, rgba(0, 188, 212, 0.2) 50%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease-out;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

/* Added back to top button styles */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--dh-primary) 0%, var(--dh-primary-light) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  transition: all var(--dh-transition-normal);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* Performance optimizations for animations */
.service-card,
.portfolio-item,
.gallery-item,
.btn,
.nav-link {
  will-change: transform;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mouse-follower {
    display: none;
  }

  .floating-logos {
    display: none;
  }
}

/* Gesture-based animations for mobile */
@media (hover: none) and (pointer: coarse) {
  .service-card:active,
  .portfolio-item:active,
  .gallery-item:active {
    transform: scale(0.95);
    transition: transform 0.1s;
  }

  .btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
  }
}

/* Enhanced scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced smooth scrolling for all browsers */
/* html {
  scroll-behavior: smooth;
} */

/* Gallery Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-modal.visible {
  opacity: 1;
  pointer-events: all;
}

.gallery-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  animation: fadeInScale 0.3s ease;
}

.gallery-modal-content video,
.gallery-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background: #000;
}

.gallery-modal-close {
  position: absolute;
  top: -40px;
  right: -10px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: color 0.2s ease;
}

.gallery-modal-close:hover {
  color: #00bcd4;
}

.gallery-modal-caption {
  margin-top: 1rem;
  color: #f0f0f0;
  font-size: 1.1rem;
  font-weight: 500;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Portfolio Modal === */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.portfolio-modal.visible {
  opacity: 1;
  visibility: visible;
}

.portfolio-modal-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  animation: fadeInUp 0.4s ease;
}

.portfolio-modal-content img,
.portfolio-modal-content video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.portfolio-modal-close {
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.portfolio-modal-close:hover {
  transform: scale(1.1);
}

.section-highlight {
  animation: highlight-section 1.2s ease-in-out;
}
@keyframes highlight-section {
  0% { background-color: rgba(0,188,212,0.1); }
  100% { background-color: transparent; }
}

/* === Force-clear subtitle glow/blur for elements that should be plain text === */
/* за всички поззаглавия с блър ефект проблема */

.section-subtitle.clear-text,
.clear-text,
.section-subtitle.clear-text::before,
.section-subtitle.clear-text::after,
.clear-text::before,
.clear-text::after {
  /* remove glows / blur / overlays */
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  mix-blend-mode: normal !important;
  -webkit-text-stroke: 0px transparent !important;

  /* ensure correct colour / weight */
  color: var(--dh-text-secondary) !important; /* или var(--dh-text-primary) ако искаш по-ярко */
  opacity: 1 !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;

  /* layout */
  max-width: 600px !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: block !important;
  position: relative !important;
  z-index: 2 !important;
}

/* If a parent adds overlay pseudo-elements, hide them when clear-text is present */
.section-subtitle.clear-text + .overlay,
.section-subtitle.clear-text ~ .overlay,
.clear-text + .overlay,
.clear-text ~ .overlay {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* More specific fallback: inline style if stylesheet still not applied (copy into HTML element as last resort) */
/* <p class="section-subtitle clear-text" style="text-shadow:none; filter:none; backdrop-filter:none;">Текст</p> */

/* === Portfolio "Посетете сайта" бутон === */
.visit-site-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0a74da, #1e90ff);
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.visit-site-btn:hover {
  background:  linear-gradient(135deg, var(--dh-primary) 0%, var(--dh-primary-light) 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow:  0 4px 15px rgba(0, 188, 212, 0.3);
}

.portfolio-item.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}


/* ==========================================================================
   📱 FULL RESPONSIVE FIX - DIGITAL HUB 2025
   ========================================================================== */


@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    position: relative;
    padding-top: var(--dh-spacing-2xl);
  }

  .hero-content {
    text-align: center;
    order: 1;
    padding: 0 var(--dh-spacing-lg);
    position: relative;
    z-index: 10;
    margin-top: var(--dh-spacing-md);
  }

  .hero-3d-model {
    order: 2;
    height: 300px;
    margin-top: -40px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
  }

  .drone-model-viewer {
    transform: scale(0.7) translateY(50px);
  }

  .drone-model-viewer[loaded] {
    transform: scale(0.7) translateY(50px);
  }
}


/* Допълнителни стилове за центриране при мобилен изглед */
@media (max-width: 768px) {
  /* Центриране на иконките в услугите */
  .services-grid .service-card {
    text-align: center;
  }

  .services-grid .service-icon {
    margin-left: auto;
    margin-right: auto;
  }

  /* Центриране на контактната информация */
  .contact-info {
    text-align: center;
  }

  .contact-item {
    text-align: center;
  }

  .contact-item h3 {
    text-align: center;
  }

  .contact-item p {
    text-align: center;
  }

  /* Центриране на футъра */
  .footer-content {
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-section ul li a {
    display: inline-block;
  }

  .social-links {
    justify-content: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Центриране на иконките в услугите за малки екрани */
  .services-grid .service-card {
    text-align: center;
  }

  .services-grid .service-icon {
    margin-left: auto;
    margin-right: auto;
  }

  /* Центриране на контактната информация за малки екрани */
  .contact-item {
    text-align: center;
  }

  .contact-item h3 {
    text-align: center;
  }

  .contact-item p {
    text-align: center;
  }

  /* Центриране на футъра за малки екрани */
  .footer-content {
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* fix for gallery view */
.gallery-image {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(0, 188, 212, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dh-text-muted);
  font-size: var(--dh-font-size-sm);
  position: relative;
  overflow: hidden;
}

/* Видео и снимки да запълват контейнера правилно */
.gallery-image img,
.gallery-image video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Запазва пропорциите без размазване */
}

/* За видеа с различни пропорции */
.gallery-image video {
  object-fit: contain; /* Показва цялото видео без crop */
  background: #000; /* Черен фон за letterbox ефект */
}