/* Custom CSS for Dental Clinic Website */

:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

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

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

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Navigation Styles */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-weight: 600;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  color: var(--dark-color) !important;
  font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 50%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

@media (max-width: 991.98px) {
  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 0 !important;
  }
  .navbar-nav .nav-link:hover {
    color: var(--dark-color) !important;
    background: none !important;
  }
  .why-choose-section .container {
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.navbar .btn-primary {
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.navbar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    );
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-primary-soft {
  background-color: rgba(59, 130, 246, 0.1);
}

/* Hero Image Wrapper */
.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image-bg {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 30px;
  z-index: -1;
  opacity: 0.2;
}

.hero-main-img {
  border-radius: 30px !important;
  box-shadow: var(--shadow-2xl);
  transition: transform 0.5s ease;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.hero-main-img:hover {
  transform: translateY(-10px) scale(1.02);
}

.floating-card {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: white;
  border-radius: 15px;
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

.floating-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  background: white;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: float 3s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.icon-box-sm {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* Stat Cards */
.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(59, 130, 246, 0.1) 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Service Cards - Modern */
.services-section {
  background: white;
  padding: 100px 0;
}

.service-card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.service-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.service-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.service-card-modern:hover .service-image img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.9) 0%,
    rgba(59, 130, 246, 0.9) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card-modern:hover .service-overlay {
  opacity: 1;
}

.service-icon-modern {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card-modern:hover .service-icon-modern {
  transform: scale(1);
}

.service-content {
  padding: 2rem;
}

.service-content h4 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.price-modern {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Why Choose Us Section */
.why-choose-section {
  padding: 100px 0;
}

.image-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
}

.image-grid-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

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

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

.main-img {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 100%;
}

.small-img-1 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.small-img-2 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.experience-badge {
  position: absolute;
  bottom: 20px;
  right: -20px;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-2xl);
  text-align: center;
  z-index: 10;
  border: 3px solid var(--primary-color);
}

.experience-badge h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.experience-badge small {
  color: var(--secondary-color);
  font-size: 0.85rem;
  line-height: 1.3;
}

.feature-list-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item-modern {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item-modern:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(10px);
  border-color: var(--primary-color);
}

.feature-icon-modern {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.feature-icon-modern i {
  font-size: 1.5rem;
  color: white;
}

.feature-content-modern h5 {
  font-weight: 700;
  color: var(--dark-color);
}

/* Testimonial Cards - Modern */
.testimonials-section {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  padding: 100px 0;
}

.testimonial-card-modern {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.testimonial-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.testimonial-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  color: var(--secondary-color);
  line-height: 1.7;
  font-size: 0.95rem;
}

.testimonial-service {
  display: inline-flex;
  align-items: center;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

.stars {
  color: #fbbf24;
}

.rating-summary {
  display: inline-block;
  padding: 2rem 3rem;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-color);
}

.rating-score {
  text-align: center;
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-right {
  animation: fadeInRight 0.6s ease-out;
}

/* Footer */
footer {
  background: var(--dark-color) !important;
}

footer a {
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary-color) !important;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }

  .hero-section .row {
    flex-direction: column-reverse;
  }

  @media (max-width: 991.98px) {
    .hero-section {
      margin-top: 70px;
    }
    .hero-main-img {
      margin-top: 30px;
    }
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .service-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .hero-section .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    margin-bottom: 1rem;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.border-radius-custom {
  border-radius: 15px;
}

/* Custom Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--light-color);
  color: var(--primary-color);
}

/* Form Styles */
.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* CTA Section - Modern */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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%
    );
  z-index: 0;
}

.cta-decoration {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  opacity: 0.1;
}

.cta-decoration i {
  font-size: 300px;
  color: white;
}

.cta-features {
  color: white;
}

.cta-features i {
  opacity: 0.9;
}

/* Rounded Buttons */
.rounded-pill {
  border-radius: 50px !important;
}

/* Shadow 2XL */
.shadow-2xl {
  box-shadow: var(--shadow-2xl);
}

/* Responsive adjustments for new components */
@media (max-width: 992px) {
  .image-grid {
    grid-template-rows: repeat(2, 150px);
  }

  .experience-badge {
    right: 0;
    padding: 1rem 1.5rem;
  }

  .experience-badge h3 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-image-bg {
    display: none;
  }

  .floating-card,
  .floating-badge {
    position: static;
    margin: 1rem 0;
  }

  .service-image {
    height: 200px;
  }

  .image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.5rem;
  }

  .main-img,
  .small-img-1,
  .small-img-2 {
    grid-column: 1 / 2;
    grid-row: auto;
    height: 250px;
  }

  .experience-badge {
    position: static;
    margin-top: 1rem;
    display: inline-block;
  }

  .cta-decoration {
    display: none;
  }
}

/* Additional Utility Classes */
.icon-box-lg {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 1.5rem;
}

/* Kontakt stranica - fix za mobilni layout */
@media (max-width: 991.98px) {
  .kontakt-page .row.g-4,
  .kontakt-page .row.g-0,
  .kontakt-page .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 1rem !important;
    overflow-x: hidden;
  }
  .kontakt-page .card,
  .kontakt-page .card-body {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .kontakt-page .col-lg-4,
  .kontakt-page .col-lg-8,
  .kontakt-page .col-md-4 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

.bg-primary-soft {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

.bg-success-soft {
  background-color: rgba(16, 185, 129, 0.1) !important;
}

.bg-info-soft {
  background-color: rgba(6, 182, 212, 0.1) !important;
}

.text-success {
  color: #10b981 !important;
}

.text-info {
  color: #06b6d4 !important;
}

/* Mobile sidebar fix */
@media (max-width: 991.98px) {
  .sticky-lg-top {
    position: relative !important;
    top: auto !important;
  }
  .card {
    max-width: 100%;
    overflow: hidden;
  }
  .container,
  .row {
    overflow-x: hidden;
  }
}
