:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --dark-bg: #000000;
  --section-bg: #111111;
  --text-color: #e0e0e0;
  --heading-color: #ffffff;
  --card-bg: #1a1a1a;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--dark-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading-color);
}

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

a:hover {
  text-decoration: none;
  color: #0b5ed7;
}

/* Header */
#header {
  height: 80px;
  transition: all 0.5s;
  z-index: 997;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0px 0px 20px 0px rgba(255, 255, 255, 0.05);
}

#header.sticked {
  height: 60px;
  background: rgba(0, 0, 0, 0.95);
}

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

.logo img {
  max-height: 40px;
  /* Invert colors for dark mode visibility (assuming dark logo) and add glow */
  filter: invert(1) drop-shadow(0 0 5px rgba(13, 110, 253, 0.8)) drop-shadow(0 0 10px rgba(13, 110, 253, 0.5));
  transition: all 0.3s ease;
}

.logo img:hover {
  filter: invert(1) drop-shadow(0 0 8px rgba(13, 110, 253, 1)) drop-shadow(0 0 15px rgba(13, 110, 253, 0.8));
  transform: scale(1.05);
}

/* Navbar */
.nav-menu {
  padding: 0;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  color: var(--primary-color);
}

.nav-menu .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: var(--card-bg);
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  border-radius: 4px;
  border: 1px solid #333;
}

.nav-menu .dropdown ul li {
  min-width: 200px;
}

.nav-menu .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  font-weight: 400;
  color: #e0e0e0;
}

.nav-menu .dropdown ul a i {
  font-size: 12px;
}

.nav-menu .dropdown ul a:hover,
.nav-menu .dropdown ul .active:hover,
.nav-menu .dropdown ul li:hover>a {
  color: var(--primary-color);
  background: transparent;
}

.nav-menu .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    position: fixed;
    right: 15px;
    top: 25px;
    z-index: 999;
  }

  .nav-menu ul {
    display: none;
  }
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .nav-menu {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  transition: 0.3s;
  z-index: 998;
}

.mobile-nav-active .nav-menu ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: var(--card-bg);
  overflow-y: auto;
  transition: 0.3s;
  border-radius: 10px;
  border: 1px solid #333;
}

.mobile-nav-active .nav-menu a {
  padding: 10px 20px;
  font-size: 15px;
  color: #e0e0e0;
}

.mobile-nav-active .nav-menu a:hover,
.mobile-nav-active .nav-menu .active,
.mobile-nav-active .nav-menu li:hover>a {
  color: var(--primary-color);
}

.mobile-nav-active .mobile-nav-toggle {
  top: 15px;
  right: 15px;
  color: #fff;
}

/* Hero */
#hero {
  width: 100%;
  min-height: 90vh;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%), url('../assets/img/hero-bg.png') center center no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 80px;
}

#hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

#hero h1 span {
  color: var(--primary-color);
  border-bottom: 4px solid var(--primary-color);
}

#hero p {
  font-size: 20px;
  color: #e0e0e0;
  margin-bottom: 40px;
}

#hero .hero-img img {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translatey(0px);
  }
  50% {
    transform: translatey(-20px);
  }
  100% {
    transform: translatey(0px);
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 32px;
  }
  #hero p {
    font-size: 16px;
  }
  #hero {
    margin-top: 60px;
    height: auto;
    padding: 60px 0;
  }
}

.btn-get-started {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 50px;
  transition: 0.5s;
  color: #fff;
  background: var(--primary-color);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-get-started:hover {
  background: #0b5ed7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.5);
}

/* Sections */
section {
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--dark-bg);
}

.section-bg {
  background-color: var(--section-bg);
}

.section-title {
  text-align: center;
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #fff;
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: calc(50% - 25px);
}

.section-title p {
  margin-bottom: 0;
  color: #aaa;
}

/* Services */
.service-box {
  background: var(--card-bg);
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  transition: 0.3s;
  height: 100%;
  text-align: center;
  border: 1px solid #333;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
  border-color: var(--primary-color);
}

.service-box .icon {
  margin-bottom: 20px;
  font-size: 40px;
  color: var(--primary-color);
  transition: 0.3s;
}

.service-box:hover .icon {
  transform: scale(1.2);
}

.service-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.service-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  color: #ccc;
}

/* Portfolio */
.portfolio-item {
  margin-bottom: 30px;
}

.portfolio-wrap {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  border: 1px solid #333;
}

.portfolio-wrap img {
  width: 100%;
  height: auto;
  transition: 0.3s;
}

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

.portfolio-wrap:hover {
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
  border-color: var(--primary-color);
}

.portfolio-info {
  padding: 20px;
  background: var(--card-bg);
  border-top: 1px solid #333;
}

.portfolio-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}

.portfolio-info p {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 0;
}

/* Testimonials */
.testimonials .testimonial-item {
  box-sizing: content-box;
  padding: 30px;
  margin: 40px 30px;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid #333;
  transition: 0.3s;
}

.testimonials .testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15);
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  border: 4px solid var(--card-bg);
  float: left;
  margin: 0 10px 0 0;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #fff;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--primary-color);
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px 0 0 0;
  padding: 0;
  color: #e0e0e0;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--card-bg);
  opacity: 1;
  border: 1px solid var(--primary-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
}

/* Contact */
.contact .info-box {
  color: #e0e0e0;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  padding: 20px 0 30px 0;
  background: var(--card-bg);
  border-radius: 10px;
  height: 100%;
  border: 1px solid #333;
  transition: 0.3s;
}

.contact .info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

.contact .info-box i {
  font-size: 32px;
  color: var(--primary-color);
  border-radius: 50%;
  padding: 8px;
  background: rgba(13, 110, 253, 0.1);
  transition: 0.3s;
}

.contact .info-box:hover i {
  background: var(--primary-color);
  color: #fff;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form input, 
.contact .php-email-form textarea {
  border-radius: 5px;
  box-shadow: none;
  font-size: 14px;
  background: var(--card-bg);
  border: 1px solid #333;
  color: #fff;
  transition: 0.3s;
}

.contact .php-email-form input:focus, 
.contact .php-email-form textarea:focus {
  border-color: var(--primary-color);
  background: #222;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}

.contact .php-email-form button[type="submit"] {
  background: var(--primary-color);
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: #0b5ed7;
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.6);
  transform: scale(1.05);
}

/* Footer */
#footer {
  background: #000;
  color: #fff;
  font-size: 14px;
  padding: 50px 0;
  border-top: 1px solid #222;
}

#footer h3 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

#footer p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  color: #aaa;
}

#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-links li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-links li:first-child {
  padding-top: 0;
}

#footer .footer-links li a {
  color: #aaa;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
  text-decoration: none;
}

#footer .footer-links li a:hover {
  color: #fff;
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #222;
  color: #777;
}

/* Back to top */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #2e7afd;
  color: #fff;
  transform: translateY(-5px);
}

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