@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@600;700;800&display=swap');

:root {
  --primary-color: #FFB800;
  /* Safety Yellow / Logo Gold */
  --secondary-color: #000000;
  /* Rich Black */
  --accent-color: #111111;
  /* Dark charcoal */
  --bg-color: #F8F9FA;
  /* clean white/light grey */
  --text-main: #222222;
  --text-light: #555555;
  --white: #FFFFFF;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent-color);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}

ul {
  list-style: none;
}

/* Typography styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Reusable Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(0);
}

/* Glassmorphism subtle effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  background: rgba(0, 0, 0, 0.85);
  padding: 1.5rem 0;
}

header.scrolled {
  background: var(--secondary-color);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

.hero-content {
  color: var(--white);
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  color: #e2e8f0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: 0;
  padding: 2.5rem 2rem;
  transition: all var(--transition-speed) ease;
  border-bottom: 4px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: #F0F0F0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Why Choose Us Section */
.why-choose-us {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
}

.why-choose-us .section-title {
  color: var(--white);
}

.why-choose-us .section-subtitle {
  color: #a0aec0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-item h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-item p {
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Image Text Section (About / Project Support) */
.image-text-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.image-text-section.reverse {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
}

.image-content {
  flex: 1;
  position: relative;
}

.image-content img {
  width: 100%;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: block;
}

.image-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  z-index: -1;
  border-radius: 0;
}

.image-text-section.reverse .image-content::before {
  left: auto;
  right: -20px;
}

.stat-box {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--white);
  padding: 2rem;
  border-radius: 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: inline-block;
  border-left: 6px solid var(--primary-color);
}

.image-text-section.reverse .stat-box {
  right: auto;
  left: -30px;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

/* Projects Slider */
.projects-swiper {
  width: 100%;
  padding-bottom: 3rem !important;
  /* space for pagination */
  margin-top: 3rem;
}

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

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color) !important;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.project-item:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

.project-overlay i {
  color: var(--primary-color);
  font-size: 2.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-item:hover .project-overlay i {
  transform: translateY(0);
}

/* Partners Section */
.partners-section {
  padding: 4rem 0 6rem;
  background-color: var(--white);
  border-top: 1px solid #eaeaea;
  overflow: hidden;
}

.partners-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.partners-logo-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: scroll-left 50s linear infinite;
}

.partners-logo-grid:hover {
  animation-play-state: paused;
}

.partner-logo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) opacity(80%);
  transition: all var(--transition-speed) ease;
}

.partner-logo:hover img {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 2rem));
  }
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col p {
  color: #a0aec0;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.95rem;
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #a0aec0;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--primary-color);
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #718096;
  font-size: 0.9rem;
  gap: 1rem;
}
.footer-bottom a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-bottom a:hover {
  color: var(--primary-color);
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* Page Headers (for non-home pages) */
.page-header {
  height: 40vh;
  min-height: 300px;
  background: var(--secondary-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-header-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Contact Page Specific */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  background: var(--secondary-color);
  color: var(--white);
  padding: 3rem;
  border-radius: 0;
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.info-item h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.info-item p {
  color: #a0aec0;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .image-text-section,
  .image-text-section.reverse {
    flex-direction: column;
  }

  .image-content::before {
    display: none;
  }

  .stat-box {
    position: static;
    margin-top: 2rem;
    box-shadow: none;
    border-left: none;
    border-top: 4px solid var(--primary-color);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    color: var(--white);
  }

  header {
    background: var(--secondary-color);
    padding: 1rem 0;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--secondary-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left var(--transition-speed) ease;
  }

  .nav-links.active {
    left: 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}

/* Animations JS classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tech Services Section (Hexagon Layout) */
.tech-services {
  background-color: #06080b; /* Very dark, almost black */
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='173.2' viewBox='0 0 100 173.2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 86.6L0 57.74V0L50 28.87L100 0v57.74L50 86.6zm0 86.6l-50-28.87v-57.74L50 115.47l50-28.87v57.74L50 173.2z' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.04'/%3E%3C/svg%3E");
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.core-grid {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  margin-top: 5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.core-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.core-img-container {
  flex: 1;
  max-width: 50%;
}

.core-img-container img {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.core-text-container {
  flex: 1;
  text-align: center;
  max-width: 45%;
}

.core-icon-wrap {
  margin: 0 auto 1.2rem;
}

.core-icon-wrap i {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.3);
}

.core-text-container h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.core-text-container p {
  color: #a0aab5;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.core-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: capitalize;
}

.core-link i {
  margin-left: 6px;
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.core-link:hover {
  color: var(--primary-color);
}

.core-link:hover i {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .core-row {
      flex-direction: column;
      text-align: center;
      gap: 3rem;
      flex-direction: column-reverse; /* Ensure text is above image on mobile */
  }
  
  .core-img-container, .core-text-container {
      max-width: 100%;
  }
}