/* ===== BASE STYLES ===== */
:root {
  --primary-color: #d93b48;
  --secondary-color: #1e3859;
  --accent-color: #ffc107;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #777777;
  --white: #ffffff;
  --black: #000000;
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Roboto", sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
}

/* CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

button,
input,
textarea {
  font-family: var(--font-primary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  height: auto;
  line-height: 1.2;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
}

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

.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  color: var(--dark-gray);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo h1 {
  font-size: 28px;
  color: var(--primary-color);
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  height: 100%;
}

nav ul {
  display: flex;
  align-items: center;
  margin: 0;
  height: 100%;
  gap: 20px;
}

nav ul li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

nav ul li a {
  font-weight: 600;
  font-size: 16px;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

nav ul li a.btn {
  height: 40px;
  padding: 0 15px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 4px;
  text-transform: none;
  font-weight: normal;
  line-height: 40px;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0px;
  left: 0;
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a.active {
  color: var(--primary-color);
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

/* New vertical dropdown styles */
.vertical-dropdown {
  position: relative;
  display: inline-block;
}

.vertical-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-top: 3px solid #d93b48;
  border-radius: 0 0 5px 5px;
}

.vertical-dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}

.vertical-dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: #d93b48;
  border-left: 3px solid #d93b48;
  padding-left: 19px;
}

.vertical-dropdown:hover .vertical-dropdown-content {
  display: block;
}

/* Mobile nav menu styles */
@media (max-width: 768px) {
  header .container {
    padding: 10px 20px;
  }

  nav ul {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  nav ul.show {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
    height: auto;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    gap: 0;
  }

  nav ul.show li {
    margin: 15px 0;
    width: 100%;
    height: auto;
  }

  nav ul.show li a {
    width: 100%;
    justify-content: flex-start;
    height: auto;
    padding: 12px 0;
  }

  nav ul.show li a.btn {
    margin: 5px 0;
    text-align: center;
    justify-content: center;
    height: 40px;
    line-height: 40px;
  }

  /* Mobile vertical dropdown styles */
  .vertical-dropdown {
    width: 100%;
  }

  .vertical-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .vertical-dropdown-content {
    position: relative;
    width: 100%;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--primary-color);
    margin: 5px 0 5px 15px;
    padding-left: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .vertical-dropdown.active .vertical-dropdown-content {
    display: block;
    max-height: 300px;
  }

  .vertical-dropdown-content a {
    padding: 10px 15px;
  }
}

/* Page Header (Inner Pages) */
.page-header {
  background-color: var(--light-gray);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.breadcrumbs {
  font-size: 16px;
  color: var(--dark-gray);
}

.breadcrumbs a {
  color: var(--primary-color);
}

.breadcrumbs span {
  color: var(--dark-gray);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: url("../img/krecenje.jpeg") no-repeat center center;
  background-size: cover;
  padding: 120px 0;
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(30, 56, 89, 0.9) 0%,
    rgba(30, 56, 89, 0.7) 50%,
    rgba(30, 56, 89, 0.4) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
  position: relative;
}

.hero-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-buttons .btn {
  min-width: 160px;
}

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

.hero-buttons .btn-outline:hover {
  background-color: var(--white);
  color: var(--secondary-color);
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-10px);
}

.feature i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.feature p {
  color: var(--dark-gray);
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service:hover {
  transform: translateY(-10px);
}

.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service h3 {
  font-size: 20px;
  margin: 20px 0 10px;
  padding: 0 20px;
}

.service p {
  padding: 0 20px;
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.service .btn-sm {
  margin: 0 20px 20px;
}

.services-cta {
  text-align: center;
  margin-top: 50px;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding: 80px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 250px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 106, 213, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

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

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

.portfolio-overlay h3 {
  color: var(--white);
  margin-bottom: 5px;
  font-size: 20px;
}

.portfolio-overlay p {
  color: var(--white);
  margin-bottom: 15px;
}

.portfolio-cta {
  text-align: center;
  margin-top: 50px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.testimonials-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.testimonial {
  flex: 0 0 calc(33.333% - 20px);
  scroll-snap-align: start;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-color);
  position: relative;
  padding-left: 25px;
}

.testimonial-content p::before {
  content: '"';
  font-size: 50px;
  color: var(--primary-color);
  position: absolute;
  top: -15px;
  left: 0;
  font-family: serif;
}

.testimonial-info {
  display: flex;
  align-items: center;
}

.testimonial-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.testimonial-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.testimonial-info p {
  color: var(--dark-gray);
  font-size: 14px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 80px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-item i {
  font-size: 20px;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.contact-item h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

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

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  background-color: transparent;
  outline: none;
  font-size: 16px;
  transition: var(--transition);
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: var(--dark-gray);
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
  border-color: var(--primary-color);
  padding-top: 25px;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
  top: 5px;
  font-size: 12px;
  color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 70px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-logo img {
  max-width: 40px;
  width: auto;
  height: auto;
  margin-right: 8px;
}

.footer-logo h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 0;
}

.footer-column p {
  color: #bbbbbb;
  margin-bottom: 20px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #bbbbbb;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-column .contact-item {
  margin-bottom: 15px;
}

.footer-column .contact-item i {
  color: var(--primary-color);
  margin-right: 10px;
}

.footer-column .contact-item p {
  margin-bottom: 0;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.copyright p {
  margin-bottom: 5px;
  color: #bbbbbb;
}

.copyright a {
  color: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .features-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 36px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial {
    flex: 0 0 100%;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 500px;
  }

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

  .features-grid,
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Modern Gallery Styles */
.modern-gallery {
  padding: 60px 0;
}

.modern-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 20px;
  margin-top: 40px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card.vertical {
  grid-row: span 2;
}

.gallery-card.horizontal {
  grid-column: span 2;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-overlay h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.gallery-card.large .gallery-card-overlay h3 {
  font-size: 22px;
}

.gallery-card-overlay p {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}

.gallery-filter-btn {
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  margin: 0 5px;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.gallery-filter-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.gallery-filter-btn.active {
  color: var(--primary-color);
}

.gallery-filter-btn.active::after {
  width: 80%;
}

.gallery-filter-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 15px 0;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.lightbox-nav button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ===== ABOUT PAGE STYLES ===== */
.about-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
}

.value {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.value:hover {
  transform: translateY(-10px);
  border-bottom: 3px solid var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
  width: 80px;
  height: 80px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.value-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: -1;
  transform: scale(0);
  transition: var(--transition);
}

.value:hover .value-icon::before {
  transform: scale(1);
}

.value-icon i {
  font-size: 32px;
  color: var(--secondary-color);
  transition: var(--transition);
}

.value:hover .value-icon i {
  color: var(--white);
}

.value h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: var(--secondary-color);
  position: relative;
}

.value h3::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.value:hover h3::after {
  width: 60px;
}

.value p {
  color: var(--dark-gray);
  line-height: 1.6;
  font-size: 15px;
}

/* CTA Section */
.cta {
  background-color: var(--secondary-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  margin: 50px 0;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(217, 59, 72, 0.9) 0%,
    rgba(30, 56, 89, 0.9) 100%
  );
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-content h2 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cta-buttons .btn {
  min-width: 200px;
}

.cta-buttons .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.cta-buttons .btn-outline:hover {
  background-color: var(--white);
  color: var(--secondary-color);
}

.cta-buttons .btn-outline i {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .about-values {
    flex-direction: column;
    align-items: center;
  }

  .value {
    max-width: 100%;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .cta-content p {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* Clients Section */
.clients {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.client {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  max-width: 300px;
}

.client:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.client img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-icon {
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Fixed dropdown menu positioning */
.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important; /* Start at the left edge of parent */
  width: 240px !important;
  background-color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 12px 0;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  border-top: 3px solid var(--primary-color);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  transform: none !important;
}

/* Simple dropdown visibility toggle */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  width: 100%;
  padding: 12px 24px;
  color: var(--text-color);
  font-size: 14px;
  text-align: left;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding-left: 27px;
}

@media (max-width: 768px) {
  .dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    border-top: none;
    border-left: 2px solid var(--primary-color);
    box-shadow: none;
    margin: 0;
    padding-left: 15px;
    display: none;
    border-radius: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
  }
}

/* Service Detail Page */
.service-detail-page {
  padding: 60px 0;
}

.service-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.service-content.reverse {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.service-info {
  flex: 1;
  min-width: 300px;
}

.service-info h2 {
  color: var(--secondary-color);
  font-size: 32px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.service-info h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.service-info p {
  margin-bottom: 25px;
  line-height: 1.7;
  color: var(--text-color);
}

.service-features,
.service-types {
  margin-bottom: 30px;
}

.service-features h3,
.service-types h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.service-features ul,
.service-types ul {
  list-style: none;
}

.service-features ul li,
.service-types ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.service-features ul li i,
.service-types ul li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 16px;
  margin-top: 5px;
}

.service-details-extended {
  margin: 50px 0;
  background-color: var(--light-gray);
  padding: 40px;
  border-radius: 10px;
}

.service-details-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.service-details-col {
  flex: 1;
  min-width: 300px;
}

.service-details-col h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 10px;
}

.service-details-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.service-list li,
.benefits-list li {
  display: flex;
  margin-bottom: 25px;
}

.service-list li i,
.benefits-list li i {
  font-size: 20px;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.service-list li div,
.benefits-list li div {
  flex: 1;
}

.service-list li h4,
.benefits-list li h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.service-list li p,
.benefits-list li p {
  color: var(--dark-gray);
  line-height: 1.6;
}

.service-gallery {
  margin: 60px 0;
}

.service-gallery h3 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--secondary-color);
}

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

.service-cta {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.service-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(217, 59, 72, 0.8) 0%,
    rgba(30, 56, 89, 0.8) 100%
  );
  z-index: 1;
}

.service-cta h3,
.service-cta p,
.service-cta .cta-buttons {
  position: relative;
  z-index: 2;
}

.service-cta h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.service-cta p {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .service-content {
    flex-direction: column;
  }

  .service-content.reverse {
    flex-direction: column;
  }

  .service-image {
    max-width: 100%;
  }

  .service-details-row {
    flex-direction: column;
  }

  .service-gallery-grid {
    grid-template-columns: 1fr;
  }

  .service-cta h3 {
    font-size: 24px;
  }

  .service-cta p {
    font-size: 16px;
  }
}
