:root {
  --primary-color: #1a4d8f;
  --secondary-color: #28a745;
  --accent-color: #ff6b35;
  --dark-color: #2d3e50;
  --light-color: #f8f9fa;
}

.nav-link:hover::after {
  width: 100%;
}
body {
  font-family: "Poppins", sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
}

.navbar {
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.95);
  min-height: 64px;
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  margin-right: 10px;
  object-fit: contain;
  display: block;
}

/* keep smaller logo on small screens */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 36px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-section::after {
    bottom: -30px;
    height: 60px;
  }
}

.nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  position: relative;
  margin: 0 15px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("img/logikent/4.jpg") center/cover fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -10%;
  width: 120%;
  height: 100px;
  background: white;
  transform: rotate(3deg);
  z-index: 1;
}

.btn-custom {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--primary-color);
}

.btn-custom:hover {
  color: var(--primary-color);
  background: transparent;
  transform: translateY(-3px);
}

.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  transition: all 0.3s;
}

.service-card:hover .service-card-content {
  color: white;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.2);
  color: white !important;
}

.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1a4d8f, #28a745);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .card-body {
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

.service-card:hover .card-body {
  color: white;
}

.service-icon {
  transition: all 0.3s;
  color: #1a4d8f !important;
  margin-top: 18px;
}

.service-card:hover .service-icon {
  color: white !important;
  transform: scale(1.15);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  position: relative;
  display: inline-block;
  border-radius: 50%;
  background: rgba(26, 77, 143, 0.1);
  transition: all 0.3s;
}

.service-card:hover .icon-wrapper {
  background: rgba(255, 255, 255, 0.15);
}

.vision-card {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 15px;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.vision-card:hover::before {
  opacity: 1;
}

.vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.vision-card .icon-wrapper {
  position: relative;
  display: inline-block;
  padding: 20px;
  border-radius: 50%;
  background: rgba(26, 77, 143, 0.1);
  transition: all 0.3s ease;
  z-index: 2;
}

.vision-card:hover .icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
}

.vision-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.vision-card:hover i {
  color: white;
  transform: scale(1.1);
}

.vision-card h4 {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.vision-card:hover h4 {
  color: white;
}

.vision-card p {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.vision-card:hover p {
  color: white;
}

.list-unstyled li {
  transition: transform 0.3s;
}

.service-card:hover .list-unstyled li {
  transform: translateX(5px);
}

.vision-card {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 2rem;
  transition: transform 0.3s ease;
  text-align: center;
}

.vision-card:hover {
  transform: translateY(-10px);
}

.vision-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-section {
  position: relative;
  padding: 8rem 0;
  background: linear-gradient(to right, var(--light-color), #ffffff);
}

.about-image {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: rotate(3deg);
  transition: all 0.3s;
}

.about-image:hover {
  transform: rotate(0);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

footer {
  background: #06063b;
  padding: 5rem 0 2rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #06063b;
  transform: rotate(-3deg);
  z-index: -1;
}

.footer-img {
  width: 180px;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .navbar-brand img {
    width: 140px;
  }
}

/* Partners Section Styles */
.partners-section {
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #f8f9fa;
  transform: rotate(3deg);
  z-index: 1;
}

.partner-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-card img {
  max-width: 100%;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(26, 77, 143, 0.9);
  color: white;
  text-align: center;
  transform: translateY(100%);
  transition: all 0.3s ease;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 0.8rem;
}

.partner-card:hover .partner-overlay {
  transform: translateY(0);
}

/* Navbar / logo responsive and alignment fixes */
.navbar-logo {
  height: 48px; /* default visible size on desktop */
  max-height: 56px; /* prevent growing too large */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Vertical alignment for nav items (keeps language selector level with links) */
.navbar-nav {
  align-items: center; /* ensures all items are vertically centered inside navbar */
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  margin: 0 10px; /* slightly reduced horizontal spacing for balance */
  height: 48px; /* creates consistent vertical rhythm */
  line-height: 1;
}

/* make the emoji/flag line up visually */
.lang-flag {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  transform: translateY(0); /* tune if needed */
}

/* smaller screens: shrink logo and reduce heights */
@media (max-width: 768px) {
  .navbar-logo {
    height: 40px;
    max-height: 44px;
  }

  .navbar-nav .nav-link,
  .navbar-nav .dropdown-toggle {
    height: 40px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin: 0 8px;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 34px;
    max-height: 36px;
  }

  .navbar-nav .nav-link,
  .navbar-nav .dropdown-toggle {
    height: 36px;
  }
}
