/* ===================================
   VLAJKO PREMIUM - CUSTOM STYLES
   =================================== */

/* Root Variables */
:root {
  --gold-primary: #d4af37;
  --gold-dark: #b8962f;
  --dark-bg: #0a0a0a;
  --dark-secondary: #1a1a1a;
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Selection Color */
::selection {
  background: var(--gold-primary);
  color: white;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ===================================
   LOADING SCREEN
   =================================== */
#loading-screen {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(212, 175, 55, 0.1);
  border-top: 4px solid var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===================================
   NAVIGATION
   =================================== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  transition: max-height 0.4s ease;
}

.mobile-menu.active {
  max-height: 500px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-menu-link {
  transform: translateX(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu.active .mobile-menu-link {
  transform: translateX(0);
  opacity: 1;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--gold-primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
  background: var(--gold-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  position: relative;
}

.hero-background {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  /* Dodajte background-image: url('images/hero-bg.jpg'); */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(26, 26, 26, 0.75) 50%,
    rgba(212, 175, 55, 0.1) 100%
  );
}

/* Animated Particles */
.particles-container {
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
  }
}

/* Luxury Badge */
.luxury-badge {
  color: var(--gold-primary);
  font-weight: 300;
  letter-spacing: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  border: 1px solid var(--gold-primary);
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  animation: bounce 2s infinite;
}

/* Stats Box */
.stat-box {
  background: rgba(212, 175, 55, 0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
}

/* ===================================
   SERVICE CARDS
   =================================== */
.service-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* ===================================
   CAR CARDS
   =================================== */
.car-card {
  background: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.car-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.car-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.car-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(212, 175, 55, 0.5);
}

.car-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}

.car-info {
  padding: 25px;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
  font-size: 0.85rem;
  color: #888;
}

.car-specs span {
  display: flex;
  align-items: center;
}

.car-price {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.car-btn {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.car-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* ===================================
   SHOP CARDS
   =================================== */
.shop-card {
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.4s ease;
}

.shop-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.shop-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.4s ease;
}

.shop-icon i {
  font-size: 2.5rem;
  color: white;
}

.shop-card:hover .shop-icon {
  transform: scale(1.1) rotate(10deg);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-image-container {
  position: relative;
  z-index: 1;
}

.about-placeholder {
  transition: transform 0.4s ease;
}

.about-image-container:hover .about-placeholder {
  transform: scale(1.05);
}

/* ===================================
   GALLERY
   =================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(212, 175, 55, 0.5);
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-placeholder {
  background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-info-box {
  display: flex;
  align-items: start;
  background: rgba(212, 175, 55, 0.05);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.contact-info-box:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(10px);
  border-color: rgba(212, 175, 55, 0.5);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-form-container {
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   FOOTER
   =================================== */
.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--gold-primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* ===================================
   WHATSAPP FLOAT BUTTON
   =================================== */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
  z-index: 999;
  animation: pulse-float 2s infinite;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 35px rgba(212, 175, 55, 0.6);
}

@keyframes pulse-float {
  0%,
  100% {
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 5px 35px rgba(212, 175, 55, 0.6);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  .service-card,
  .shop-card {
    padding: 30px 25px;
  }

  .contact-form-container {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 80px;
  }

  .service-card,
  .shop-card {
    padding: 25px 20px;
  }

  .service-icon,
  .shop-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i,
  .shop-icon i {
    font-size: 1.5rem;
  }

  .contact-form-container {
    padding: 25px 20px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-icon i {
    font-size: 1.2rem;
  }

  .stat-box {
    padding: 15px;
  }

  .back-to-top,
  .whatsapp-float {
    right: 20px;
  }

  .back-to-top {
    bottom: 20px;
    width: 45px;
    height: 45px;
  }

  .whatsapp-float {
    bottom: 75px;
    width: 55px;
    height: 55px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 640px) {
  .car-image {
    height: 200px;
  }

  .car-info {
    padding: 20px;
  }

  .luxury-badge {
    font-size: 0.65rem;
    padding: 8px 20px;
    letter-spacing: 2px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-glow {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease;
}

.animate-zoomIn {
  animation: zoomIn 0.8s ease;
}
