/* ===== CSS RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* ===== LANGUAGE SWITCHER ===== */
.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  color: #333;
}

.navbar-nav .dropdown-item:hover {
  background-color: #007bff;
  color: white;
  transform: translateX(5px);
}

.navbar-nav .dropdown-item i {
  width: 20px;
  text-align: center;
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #007bff !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #007bff;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
  left: 10%;
}

.navbar-brand img {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
  background: transparent;
  /* Remove mix-blend-mode to preserve original colors */
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Ensure logo transparency is preserved */
.logo {
  background: transparent !important;
  opacity: 1;
  /* Remove any background color inheritance */
  background-color: transparent !important;
}

/* ===== HERO SECTION ===== */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../resources/hero.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== 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 pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== SECTIONS ===== */
.services,
.about,
.contact {
  padding: 80px 0;
  position: relative;
}

.services {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 123, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  color: #007bff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: #666;
  line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: white;
}

.about p {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-info {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.1);
}

.contact-icon {
  animation: pulse 2s infinite;
}

.contact-card {
  background: #f8f9fa;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 123, 255, 0.1);
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: white;
}

.contact-card h5 {
  color: #007bff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-note {
  background: rgba(0, 123, 255, 0.05);
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid #007bff;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #212529, #000);
  color: white;
  padding: 40px 0 20px;
}

footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #007bff;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: linear-gradient(135deg, #007bff, #28a745);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
section {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .lead {
    font-size: 1.2rem;
  }

  section {
    scroll-margin-top: 100px;
  }

  .services,
  .about,
  .contact {
    padding: 60px 0;
  }

  .service-card {
    margin-bottom: 2rem;
  }

  .hero {
    background-attachment: scroll;
  }

  .navbar-brand img {
    height: 60px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .btn-primary {
    padding: 0.6rem 1.5rem;
  }
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible,
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hero,
  footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    max-width: none;
    width: 100%;
  }
}
