/* Eurobalkan Custom Styles */
:root {
  --navy-blue: #1E3A5F;
  --light-blue: #5BB4E5;
  --coral-orange: #F4A261;
  --dark-gray: #2C3E50;
  --light-gray: #F8F9FA;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-blue);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--light-blue);
}

/* Hero Section Gradient */
.hero-gradient {
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--light-blue) 100%);
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
  background: var(--coral-orange);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #E38B52;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(244, 162, 97, 0.3);
}

.btn-secondary {
  background: var(--navy-blue);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(91, 180, 229, 0.3);
}

/* Section Padding */
.section-padding {
  padding: 80px 0;
}

/* Overlay Effect */
.overlay {
  position: relative;
}

.overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 95, 0.7);
  z-index: 1;
}

.overlay > * {
  position: relative;
  z-index: 2;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  border-color: var(--coral-orange);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Image Zoom Effect */
.image-zoom {
  overflow: hidden;
  border-radius: 12px;
}

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

.image-zoom:hover img {
  transform: scale(1.1);
}

/* Navigation Styles */
.nav-link {
  position: relative;
  color: var(--navy-blue);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--coral-orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--coral-orange);
}

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

.nav-link.active {
  color: var(--coral-orange);
}

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

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* Form Styles */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(91, 180, 229, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-gray);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 999;
  padding: 80px 20px 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Responsive */

/* Extra Small Devices (Phones, 320px-479px) */
@media (max-width: 479px) {
  .section-padding {
    padding: 40px 0 !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Typography Mobile */
  h1 {
    font-size: 2rem !important; /* 32px instead of 48px+ */
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.75rem !important; /* 28px */
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 1.5rem !important; /* 24px */
  }

  /* Hero Section Mobile */
  .hero-section h1 {
    font-size: 2.25rem !important; /* 36px */
  }

  /* Fix h-screen hero on mobile - reduce height */
  section.h-screen {
    min-height: 500px !important;
    height: auto !important;
  }

  /* Page headers with py-20 - reduce padding */
  section.py-20 {
    padding-top: 3rem !important; /* 48px instead of 80px */
    padding-bottom: 3rem !important;
  }

  /* Hero subtitle text */
  section.py-20 .text-xl,
  section.h-screen .text-xl {
    font-size: 1rem !important; /* 16px instead of 20px */
  }

  /* Max-width containers in hero sections */
  section.py-20 .max-w-3xl,
  section.py-20 .max-w-4xl,
  section.h-screen .max-w-4xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Buttons Mobile */
  .btn-primary,
  .btn-secondary {
    padding: 12px 20px !important;
    font-size: 14px !important;
    width: 100%;
    text-align: center;
  }

  /* WhatsApp Button Mobile */
  .whatsapp-button {
    width: 50px;
    height: 50px;
    bottom: 80px; /* Move up to avoid interference with cookie banner */
    right: 16px;
  }

  .whatsapp-button svg {
    width: 26px;
    height: 26px;
  }

  /* Navigation Mobile */
  nav .logo,
  nav img.h-12,
  nav img.md\:h-16 {
    height: 40px !important;
  }

  /* Mobile menu button */
  .mobile-menu-btn svg,
  .mobile-menu-close svg {
    width: 2rem !important; /* 32px */
    height: 2rem !important;
  }

  /* Mobile menu items */
  .mobile-menu a.text-2xl {
    font-size: 1.5rem !important; /* 24px instead of 30px */
  }

  /* Ensure mobile menu is visible when active */
  .mobile-menu.active {
    display: block !important;
  }

  /* Stats Mobile */
  .stats-section .text-5xl,
  .stats-section .text-6xl {
    font-size: 2.5rem !important; /* 40px */
  }

  /* Service Cards Mobile */
  .service-card {
    padding: 20px !important;
  }

  .service-card h3 {
    font-size: 1.25rem !important;
  }

  /* Image Heights Mobile */
  .image-zoom img {
    height: auto !important;
    max-height: 250px;
    object-fit: cover;
  }

  /* Gallery images specific */
  .h-64 {
    height: 200px !important;
  }

  /* Service card image containers */
  .h-48 {
    height: 150px !important;
  }

  /* Icon sizes mobile */
  .text-5xl {
    font-size: 2rem !important; /* 32px instead of 48px */
  }

  .text-6xl {
    font-size: 2.5rem !important; /* 40px instead of 60px */
  }

  /* Background images - ensure they don't cause overflow */
  .absolute.inset-0 img {
    object-fit: cover;
    object-position: center;
  }

  /* Grid Gap Mobile */
  .grid {
    gap: 1rem !important;
  }

  /* Form Inputs Mobile */
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 14px !important;
  }

  /* Form container padding */
  .p-8,
  .p-12 {
    padding: 1.5rem !important; /* 24px instead of 32-48px */
  }

  /* Form checkboxes and radio labels */
  label.flex.items-start.space-x-3,
  label.flex.items-center.space-x-3 {
    padding: 0.75rem !important; /* 12px instead of 16px */
  }

  /* Form section titles */
  form h3.text-xl {
    font-size: 1.125rem !important; /* 18px */
  }

  /* Icon sizes in forms */
  form .text-2xl {
    font-size: 1.25rem !important; /* 20px instead of 24px */
  }

  /* Form button groups */
  .flex.flex-col.sm\:flex-row {
    gap: 0.75rem !important;
  }

  /* Footer Mobile */
  footer {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  footer .text-sm {
    font-size: 12px !important;
  }

  footer .text-xl {
    font-size: 1.125rem !important; /* 18px for footer headings */
  }

  /* Footer grid spacing */
  footer .grid {
    gap: 2rem !important; /* 32px */
  }

  /* Social icons - make them larger for touch */
  footer .flex.space-x-4 a svg {
    width: 2rem !important; /* 32px instead of 24px */
    height: 2rem !important;
  }

  /* Footer logo */
  footer img.h-16 {
    height: 48px !important; /* 48px instead of 64px */
  }

  /* Footer bottom bar - ensure proper spacing */
  footer .border-t {
    padding-top: 1.5rem !important; /* 24px */
  }

  /* Footer policy links - stack on mobile */
  footer .flex.space-x-6 {
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center;
  }
}

/* Small Devices (Small Phones & Large Phones, 480px-639px) */
@media (min-width: 480px) and (max-width: 639px) {
  .section-padding {
    padding: 50px 0;
  }

  h1 {
    font-size: 2.5rem; /* 40px */
  }

  h2 {
    font-size: 2rem; /* 32px */
  }
}

/* Medium Devices (Tablets, 640px-767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* Medium-Large Devices (Tablets & Small Laptops, 768px-1023px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-button svg {
    width: 28px;
    height: 28px;
  }

  /* Ensure proper spacing on tablets */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Landscape Orientation Fix */
@media (max-height: 500px) and (orientation: landscape) {
  .section-padding {
    padding: 30px 0 !important;
  }

  .hero-section {
    min-height: 400px !important;
  }
}

/* AOS Animation Override */
[data-aos] {
  pointer-events: auto;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--dark-gray);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner-text p:first-child {
  font-size: 16px;
  margin-bottom: 5px;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--coral-orange);
  color: white;
}

.cookie-btn-accept:hover {
  background: #e8955a;
}

.cookie-btn-decline {
  background: var(--light-gray);
  color: var(--dark-gray);
}

.cookie-btn-decline:hover {
  background: #e5e7eb;
}

.cookie-link {
  color: var(--light-blue);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.cookie-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner-content {
    flex-direction: column;
    gap: 20px;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }
}
