@import url("./font.css");

:root {
  --full-dark: #141c26;
  --primary-dark: #191947;
  --primary-blue: #3534b4;
  --grey: #686a6e;
  --white: #ffffff;
}
* {
  -webkit-tap-highlight-color: transparent;
}
/* Custom text selection color */
::selection {
  background: var(--primary-dark); /* or any color you prefer */
  color: #ffffff;
}

/* For Firefox */
::-moz-selection {
  background: var(--primary-dark);
  color: #ffffff;
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 2px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0; /* Track color */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-dark); /* Scrollbar thumb color */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark); /* Hover color */
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Top Banner */
.top-banner {
  background: var(--full-dark);
  color: var(--white);
  text-align: center;
  padding: 8px 50px 8px 16px;
  font-size: 14px;
  position: relative;
  font-weight: 500;
}
.top-banner span button {
  background: var(--white);
  border: none;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 5px;
  margin-left: 10px;
  text-align: center;
}
.top-banner .close-banner {
  position: absolute;
  right: 15px;
  top: 5px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--white);
  cursor: pointer;
}

/* Header */
.main-header {
  height: 80px;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.main-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 55px;
  margin-right: 8px;
}

.logo-text {
  font-size: 1.755rem;
  font-weight: 600;
  line-height: 1.25rem;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
}

.right-logo-img {
  height: 75px;
  margin-left: 8px;
}

.main-header .logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-dark);
  text-decoration: none;
}
.main-header .nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-header .nav ul li {
  margin-left: 24px;
}
.main-header .nav ul li a {
  position: relative;
  text-decoration: none;
  color: var(--grey);
  font-weight: 500;
  font-family: Poppins, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-style: normal;
  text-transform: capitalize;
  letter-spacing: 1px;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.main-header .nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.8px;
  width: 100%;
  background-color: var(--primary-dark);
  transform: scaleY(0) translateY(6px);
  transform-origin: bottom;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 0;
}
.main-header .nav ul li a:hover,
.main-header .nav ul li a.active {
  color: var(--primary-dark);
}
.main-header .nav ul li a:hover::after,
.main-header .nav ul li a.active::after {
  transform: scaleY(1) translateY(0);
  opacity: 1;
  color: var(--primary-dark);
}

/* Menu Toggle for mobile */
.menu-toggle {
  position: fixed;
  top: 75px;
  right: 0;
  z-index: 1001;
  display: none;
  align-items: center; /* ✅ vertically center */
  justify-content: center; /* ✅ horizontally center */
  width: 40px; /* slightly wider for better touch area */
  height: 30px;
  background-color: var(--white);
  border: none;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Arrow icon styling */
.menu-toggle #mobile-menu-arrow-icon {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  line-height: 5px;
  height: 10px;
  display: inline-block;
  color: var(--primary-dark);
}

#mobile-menu-arrow-icon.open {
  transform: rotate(180deg); /* Flip horizontally */
}
.menu-bg-change {
  background-color: var(--primary-dark);
  line-height: 24px;
  color: white;
}
.menu-bg-change #mobile-menu-arrow-icon {
  color: white;
}

/* Adjust if top banner is closed */
body.no-top-banner .menu-toggle {
  top: 60px;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  flex-direction: column;
  text-align: center;
}
.nav-content h5 {
  margin: 0px;
  font-size: 12px;
  line-height: 2px;
}
.nav-content small {
  margin: 0px;
  font-size: 8px;
  line-height: 2px;
}
.mobile-nav .nav-content {
  width: 100%;
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 10px;
}

.mobile-nav-header .logo-techcov {
  height: 60px;
  object-fit: contain;
  border-radius: 2px;
}
.mobile-nav-header .logo-regx {
  height: 90px;
  object-fit: contain;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  margin: 20px 0;
}

.mobile-nav ul li a {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  transition: color 0.2s ease-in-out;
}

.mobile-nav ul li a:hover {
  color: var(--primary-blue);
}

/* Show menu */
.mobile-nav.active {
  right: 0;
}

/* nav blog */
.mobile-nav .nav-blog-latest-section {
  padding: 40px 12px;
}

.nav-blog-latest-section .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
  gap: 10px;
}

.nav-blog-latest-section .card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.nav-blog-latest-section .card:hover {
  transform: translateY(-4px);
}

.nav-blog-latest-section .featured-pic {
  height: 80px;
  background-size: cover;
  background-position: center;
}

.nav-blog-latest-section .title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px;
  color: #191947;
}

/* Sections */
.section {
  padding: 50px 20px;
  background-color: var(--white);
  border-bottom: 1px solid #eee;
  color: var(--primary-dark);
  font-size: 18px;
}
.hero-banner {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.hero-slider {
  height: 90%;
  position: relative;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
}

.hero-slider .slide.active {
  display: block;
}

.hero-slider .slide .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0c0c0c8a;
  z-index: 1;
}

.slide-content {
  color: #fff;
  max-width: 600px;
  padding: 20px 0;
  animation: fadeInUp 1s ease forwards;
  z-index: 2;
}

.slide-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.slide-content p {
  font-size: 1.125rem;
  margin-bottom: 20px;
}

.slide-content .btn {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s;
}

.slide-content .btn:hover {
  background-color: var(--primary-blue);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* about us section */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text .highlight {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--grey);
  margin-bottom: 20px;
}

.about-text .link {
  font-weight: 500;
  color: var(--primary-dark);
  text-decoration: underline;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* services section */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  flex: 1 1 calc(33% - 16px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-content {
  padding: 20px;
}
.service-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-content p {
  margin-top: 8px;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* projects */
.projects-section {
  background: #fff;
  padding: 100px 20px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  justify-content: space-between;
}

.project-card {
  flex: 1 1 calc(33.333% - 16px);
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 16px;
  height: 220px;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.5;
}

/* contact us */
.contact-section {
  background-color: #f4f7fc;
  padding: 100px 20px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 40%;
  font-size: 1rem;
  color: #333;
}

.contact-info h3 {
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.contact-info a {
  color: var(--primary-blue);
  text-decoration: none;
}

.contact-form {
  width: 100%;
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--primary-blue);
}
.social-icons {
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  margin-right: 12px;
  color: var(--primary-dark);
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-blue);
}

/* footer section */
.site-footer {
  background: #f4f7fa;
  color: #333;
  font-family: "Poppins", sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 30px;
}

.footer-about img.footer-logo {
  height: 50px;
  margin-bottom: 10px;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-links h4,
.footer-newsletter h4 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #444;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--primary-blue);
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-newsletter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-newsletter input[type="email"] {
  padding: 10px;
  border: 1px solid #ccc;
  flex: 1;
  border-radius: 4px;
  font-size: 0.9rem;
}

.footer-newsletter button {
  background: var(--primary-dark);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.footer-newsletter button:hover {
  background: var(--primary-blue);
}

.footer-bottom {
  background: var(--primary-dark);
  color: var(--white);
  padding: 15px 0;
  font-size: 0.85rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icons a {
  color: var(--white);
  margin-right: 12px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-blue);
}

.footer-bottom-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-bottom-links a {
  color: #444;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

/* -------- Extra Small Devices (Mobile Portrait ≤ 480px) -------- */
@media (max-width: 480px) {
  .main-header {
    height: 60px;
  }
  .main-header .container {
    padding: 0 12px;
  }

  .logo-img {
    height: 35px;
    border-radius: 5px;
  }
  .logo-text {
    font-size: 1rem;
  }
  .right-logo-img {
    height: 50px;
  }
  .hero-banner {
    height: 60vh;
  }
  .slide-content h1 {
    font-size: 1.75rem;
  }
  .slide-content p {
    font-size: 0.9rem;
  }
}

/* -------- Small to Medium Devices (Mobile Landscape & Small Tablets ≤ 576px) -------- */
@media (max-width: 576px) {
  .main-header .nav ul li {
    margin-left: 12px;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-newsletter form {
    flex-direction: column;
  }

  .footer-newsletter input[type="email"],
  .footer-newsletter button {
    width: 100%;
  }
  .footer-bottom-links {
    justify-content: center;
    text-align: center;
  }
}

/* -------- Medium Devices (Tablets ≤ 768px) -------- */
@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 2rem;
  }
  .slide-content p {
    font-size: 1rem;
  }
  .main-header .nav ul {
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .mobile-nav ul li {
    margin: 2px 0;
  }
  .mobile-nav .nav-blog-latest-section {
    padding: 10px 12px;
  }
  .nav-blog-latest-section .title{
    font-size: 12px;
  } .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    order: -1;
  }
  .services-grid,
  .projects-grid,
  .contact-grid {
    flex-direction: column;
  }
}

/* -------- Large Devices (Tablets Landscape & Laptops ≤ 992px) -------- */
@media (max-width: 992px) {
  .container {
    max-width: 90%;
  }
}

/* -------- Extra Large Devices (Desktops ≤ 1200px) -------- */
@media (max-width: 1200px) {
  .container {
    max-width: 95%;
  }
}

/* -------- Ultra Large Devices (Large Desktops ≥ 1201px) -------- */
@media (min-width: 1201px) {
  .container {
    max-width: 1200px;
  }
}
