/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .logo {
  color: white;
  transition: color 0.3s ease;
}

.navbar.scrolled .logo {
  color: #1a1a1a;
}

.navbar .nav-link {
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navbar.scrolled .nav-link {
  color: #2d3748;
}

.navbar .nav-link:hover {
  color: #00A3E0;
}

.navbar .nav-cta {
  background: #0066CC;
  color: white;
}

.navbar .nav-cta:hover {
  background: #00A3E0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

#mobile-menu-btn {
  color: white;
  transition: color 0.3s ease;
}

.navbar.scrolled #mobile-menu-btn {
  color: #1a1a1a;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  max-height: 500px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 80px;
}

.hero-image-container {
  position: relative;
  padding: 0;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: white;
  border-radius: 2rem;
  z-index: 0;
  box-shadow: 
    0 0 0 8px rgba(0, 102, 204, 0.1),
    0 0 0 16px rgba(0, 102, 204, 0.08),
    0 0 0 24px rgba(0, 102, 204, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-image {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  border-radius: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(0, 102, 204, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-image.loaded {
  opacity: 1;
  transform: translateX(0);
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0066CC 0%, #00A3E0 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  color: white;
  width: 32px;
  height: 32px;
}

/* Service Cards */
.service-item {
  background: #F8FAFB;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  opacity: 0;
  transform: translateY(30px);
}

.service-item:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left-color: #0066CC;
  transform: translateY(30px) translateX(8px);
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item.visible:hover {
  transform: translateY(0) translateX(8px);
}

.service-item-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0066CC 0%, #00A3E0 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-item-icon i {
  color: white;
  width: 28px;
  height: 28px;
}

.services-image-wrapper {
  position: relative;
}

.services-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 
    0 0 0 6px rgba(0, 102, 204, 0.1),
    0 0 0 12px rgba(0, 102, 204, 0.06),
    0 15px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-image.loaded {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .services-image {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  aspect-ratio: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-caption {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.gallery-featured-wrapper {
  position: relative;
}

.gallery-featured-image {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 
    0 0 0 8px rgba(0, 102, 204, 0.1),
    0 0 0 16px rgba(0, 102, 204, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-featured-image.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Contact Cards */
.contact-card {
  background: #F8FAFB;
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateX(8px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: #0066CC;
  width: 24px;
  height: 24px;
}

/* Scroll to Top Button */
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

/* Animations - Initial States */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.slide-right {
  opacity: 0;
  transform: translateX(60px);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2rem;
  }
  
  .hero-subheadline {
    font-size: 1rem;
  }
}

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

  .fade-up,
  .slide-right,
  .scale-in,
  .stagger-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Image Showcase Section */
.showcase-image-wrapper {
  position: relative;
}

.showcase-image {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 
    0 0 0 8px rgba(0, 102, 204, 0.1),
    0 0 0 16px rgba(0, 102, 204, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.showcase-image.loaded {
  opacity: 1;
  transform: translateX(0);
}

.showcase-content {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.2s;
}

.showcase-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.showcase-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  color: #2d3748;
}

.showcase-feature-item i {
  color: #0066CC;
  flex-shrink: 0;
}

/* CTA Banner Section */
.cta-banner-section {
  position: relative;
}

.cta-banner-bg {
  background-image: url('https://www.bazos.sk/img/4/165/189249165.jpg?t=1772359947');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.cta-banner-overlay {
  z-index: 1;
}

/* Section overflow containment for GSAP animations */
.hero-section,
.showcase-content,
.services-image-wrapper,
.gallery-item,
.cta-banner-section,
.contact-section {
  overflow-x: hidden;
}

/* Responsive Fixes */

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subheadline {
    font-size: 1.125rem;
  }
  
  .hero-cta,
  .hero-cta-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .feature-card,
  .service-item {
    padding: 1.5rem;
  }
  
  .showcase-image,
  .services-image {
    max-width: 100%;
  }
}

/* Very small screens < 350px */
@media (max-width: 350px) {
  /* Container padding reduction */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Navigation */
  .navbar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .navbar .h-20 {
    height: 4rem;
  }
  
  .navbar .logo {
    font-size: 1.25rem;
  }
  
  /* Hero section */
  .hero-headline {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subheadline {
    font-size: 1rem;
  }
  
  .hero-cta,
  .hero-cta-secondary {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Images */
  .hero-image,
  .showcase-image,
  .services-image {
    max-width: 240px;
    margin: 0 auto;
  }
  
  /* Feature cards */
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-icon {
    width: 48px;
    height: 48px;
  }
  
  .feature-icon i {
    width: 24px;
    height: 24px;
  }
  
  /* Service items */
  .service-item {
    padding: 1.25rem;
  }
  
  .service-item h3 {
    font-size: 1.25rem;
  }
  
  .service-item-icon {
    width: 48px;
    height: 48px;
  }
  
  /* Gallery */
  .gallery-item {
    border-radius: 0.75rem;
  }
  
  /* Contact section */
  .contact-card {
    padding: 1rem;
  }
  
  #contact-form {
    padding: 1.5rem;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  /* Long text wrapping */
  .contact-card a,
  .contact-card p {
    word-break: break-all;
  }
  
  /* CTA Banner */
  .cta-banner-section h2 {
    font-size: 1.75rem;
  }
  
  .cta-banner-section p {
    font-size: 1rem;
  }
  
  /* Buttons */
  .scroll-top-btn {
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  /* Section headings */
  section h2 {
    font-size: 1.75rem;
  }
  
  section p.text-lg {
    font-size: 1rem;
  }
}
