/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: rgba(255, 255, 255, 0.8);  /* The default color of the main navmenu links */
  --nav-hover-color: #e3a127; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #29343a; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #29343a; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: rgba(255, 255, 255, 0.8); /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #e3a127; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* ===============================================================
# General
================================================================*/
:root {
  --primary-color: #0056b3;
  --secondary-color: #e9ecef;
  --accent-color: #ffc107;
  --text-color: #212529;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
  padding-top: 80px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #003d7a;
  text-decoration: underline;
}

/* ===============================================================
# Header & Navbar
================================================================*/
#header {
  background: #1a1a1a;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  border-bottom: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.logo-dukcapil {
  height: 60px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 17px;
    font-family: var(--nav-font);
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/* ===============================================================
# Hero
================================================================*/
#hero {
  width: 100%;
  min-height: 90vh;
  background: linear-gradient(rgba(0,86,179,0.85), rgba(0,86,179,0.9)),
    url('../img/bagroundkoter.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  padding: 60px 0;
}

.hero-logo {
  max-height: 180px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  animation: float 6s ease-in-out infinite;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: 0.5rem;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 1rem auto 2rem;
}

.btn-get-started {
  background: var(--accent-color);
  color: #212529;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  transition: all 0.3s;
}

.btn-get-started:hover {
  background: #ffca28;
  transform: translateY(-3px);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ===============================================================
# Services
================================================================*/
.services {
  padding: 80px 0;
  background: #f8f9fa;
}

.service-box {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(0, 86, 179, 0.1);
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 86, 179, 0.2);
}

.service-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f8ff;
  padding: 20px;
}

.service-img img {
  max-height: 100%;
  transition: 0.5s;
}

.service-box:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
}

.service-content h4 {
  font-weight: 700;
  margin-bottom: 10px;
}

.service-content p {
  color: #6c757d;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
}

.read-more:hover {
  color: #003d7a;
}

/* ===============================================================
# Footer
================================================================*/
.footer {
  background: #2c3e50;
  color: #fff;
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  margin-bottom: 10px;
}

.footer .footer-links ul li i {
  margin-right: 5px;
  color: var(--accent-color);
}

.footer .footer-links ul li a {
  color: rgba(255,255,255,0.8);
  transition: 0.3s;
}

.footer .footer-links ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer .footer-contact p {
  margin-bottom: 8px;
}

.footer .social-links a {
  margin-right: 8px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer-links li {
  margin-bottom: 10px;
  transition: all 0.3s;
}

.footer-links li a {
  color: rgba(255,255,255,0.8);
  transition: all 0.3s;
}

.footer-links li a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-links li i {
  margin-right: 5px;
  color: var(--accent-color);
}


.footer .social-links a:hover {
  background: var(--accent-color);
  color: #000;
}

.footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer .credits {
  text-align: center;
  font-size: 13px;
  margin-top: 5px;
  color: rgba(255,255,255,0.6);
}

.footer .credits a {
  color: var(--accent-color);
}

.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  background: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #ffca28;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }
  .footer .footer-links ul li {
    justify-content: center;
  }
  .footer .social-links {
    justify-content: center;
  }
}
