* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --secondary: #1e293b;
  --accent: #f59e0b;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

.roboto {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  color: black !important;
  font-variation-settings: "wdth" 100;
}

/* Header Styles */
.header-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #334155 100%);
  color: white;
  padding: 12px 0;
  font-size: 0.875rem;
}

.header-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.banner-contacts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.banner-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}

.banner-contact-item i {
  color: var(--primary-light);
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-image {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text .aqua {
  color: #64748b;
}
.logo-text .klima {
  color: var(--text-dark);
}
.logo-text .prima {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 48px;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(images/hero1.webp);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* .hero {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(https://hvac-solution.hr/wp-content/uploads/2025/02/young-attractive-woman-using-remote-controller-adjustment-air-conditioner-temperature-room.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
} */

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-weight: 300;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

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

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 24px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: inline-block;
  filter: grayscale(0.3);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.service-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 16px;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #334155 100%);
  border-radius: 24px;
  padding: 50px 40px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  color: white;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Gallery */
.gallery-section {
  margin-bottom: 80px;
}

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

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  transition: opacity 0.4s ease;
}

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

.gallery-item:hover::before {
  opacity: 0.9;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: white;
  z-index: 1;
}

.gallery-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gallery-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.gallery-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact-section {
  background: white;
  border-radius: 24px;
  padding: 64px 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

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

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.contact-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.emergency-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  padding: 64px 24px 32px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary-light);
}

.footer-section p,
.footer-section ul {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

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

.footer-section li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Gallery Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-info {
  text-align: center;
  color: white;
  margin-top: 24px;
  max-width: 600px;
}

.modal-album-title {
  font-size: 1.125rem;
  opacity: 0.7;
  margin-bottom: 8px;
  font-weight: 500;
}

.modal-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-info p {
  font-size: 1rem;
  opacity: 0.8;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 24px;
}

.modal-next {
  right: 24px;
}

.modal-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 8px 20px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}
.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
  .header-banner {
    padding: 8px 0;
    font-size: 0.75rem;
  }

  .header-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 0 16px;
    gap: 8px;
  }

  .banner-contacts {
    flex-direction: column;
    gap: 6px;
  }

  .nav-container {
    padding: 12px 16px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo-image {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .container {
    padding: 20px 16px;
  }

  .section-header {
    margin-bottom: 25px;
  }

  .section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .service-card {
    padding: 24px;
    border-radius: 16px;
  }

  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .stats-section {
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  .gallery-section {
    margin-bottom: 40px;
  }

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

  .gallery-item {
    height: 240px;
    border-radius: 16px;
  }

  .gallery-overlay {
    padding: 20px;
  }

  .gallery-overlay h3 {
    font-size: 1.1rem;
  }

  .gallery-overlay p {
    font-size: 0.875rem;
  }

  .contact-section {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .contact-grid {
    gap: 32px;
    margin-top: 32px;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .contact-item p {
    font-size: 0.9rem;
  }

  footer {
    padding: 40px 16px 24px;
    margin-top: 40px;
  }

  .footer-content {
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .footer-section p,
  .footer-section ul {
    font-size: 0.9rem;
  }

  .footer-section li {
    margin-bottom: 8px;
  }

  .footer-bottom {
    padding-top: 24px;
    font-size: 0.875rem;
  }

  .modal-nav {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .modal-prev {
    left: 12px;
  }

  .modal-next {
    right: 12px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .modal-counter {
    top: 12px;
    font-size: 0.875rem;
    padding: 6px 16px;
  }
}
