/* Theme variables */
:root {
  --color-primary: #4f8cff;
  --color-primary-dark: #1e2a78;
  --color-primary-light: #6ba0ff;
  --color-background: #f8f9fa;
  --color-white: #fff;
  --color-text: #222;
  --color-text-light: #666;
  --color-card: #ffffff;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadow-hover: rgba(79, 140, 255, 0.15);
  --color-border: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

/* Header */
header {
  background: rgba(34, 34, 34, 0.98);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo-img {
  height: 60px;
  width: auto;
}

.logo-img {
  height: 200px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  background: transparent;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-light);
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, #4f8cff 0%, #1e2a78 100%);
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--color-primary-dark);
  padding: 1.1rem 2.8rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: var(--color-primary-light);
  color: #fff;
}

/* Trust signals */
.trust-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  font-size: 1.05rem;
  color: #e2e8f0;
}

.trust-signals span::before {
  content: "✓ ";
  color: #10b981;
  font-weight: bold;
}

.cta-subtext {
  font-size: 1rem;
  color: #4f8cff;
  font-weight: 600;
  margin-top: 1.2rem;
}

/* Services, About, Contact */
.services,
.about,
.contact {
  padding: 6rem 2rem;
}

.services {
  background: #fff;
}
.about {
  background: var(--color-background);
  text-align: center;
}
.contact {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
}

.services-container,
.about-container,
.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  line-height: 1.6;
}

.services h2,
.about h2,
.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-text);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.8rem;
}

.service-item {
  background: var(--color-card);
  border-radius: 1rem;
  padding: 3.2rem 2.6rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px var(--color-shadow-hover);
  border-color: var(--color-primary-light);
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1.4rem;
  font-size: 1.55rem;
}

.service-item p {
  color: var(--color-text-light);
  line-height: 1.8;
}

.contact .cta-btn {
  background: var(--color-primary);
  color: #fff;
  padding: 1.3rem 3.2rem;
  font-size: 1.2rem;
}

.contact .cta-btn:hover {
  background: var(--color-primary-dark);
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

footer p {
  opacity: 0.8;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}

.hamburger {
  position: relative;
  width: 28px;
  height: 3px;
  background: #fff;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

.hamburger::before {
  top: -9px;
}
.hamburger::after {
  top: 9px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .navbar {
    padding: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(34, 34, 34, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 1.6rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links a {
    color: #fff;
    font-weight: 600;
  }

  .hero {
    padding: 4rem 1.5rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1.15rem;
  }

  .trust-signals {
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
  }

  .services,
  .about,
  .contact {
    padding: 4.5rem 1.5rem;
  }
  .service-item {
    padding: 2.8rem 2rem;
  }
  .cta-btn {
    padding: 1.3rem 3rem;
    font-size: 1.15rem;
    min-height: 56px;
  }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: white;
  padding: 10px;
  z-index: 100;
  border-radius: 4px;
}
.skip-link:focus {
  top: 6px;
}

/* Strengths & Technologies Section */
.strengths {
  padding: 6rem 2rem;
  background: #fff;
}
.strengths-container {
  max-width: 1400px;
  margin: 0 auto;
}
.strengths h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--color-text);
}
.strengths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.tech-stack h3,
.core-strengths h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}
.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.tech-logo {
  position: relative;
  width: 80px;
  height: 80px;
  padding: 8px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: default;
}
.tech-logo img,
.tech-logo svg {
  width: 100%;
  height: auto;
  max-height: 64px; /* prevents oversizing */
  display: block;
  fill: var(--color-primary);
}
.tech-logo:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px var(--color-shadow-hover);
}
.tech-logo .tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.tech-logo:hover .tooltip {
  opacity: 1;
}
/* Optional: add a small arrow below the tooltip */
.tech-logo .tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
}

.core-strengths ul {
  list-style: none;
}
.core-strengths li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
  color: var(--color-text-light);
  line-height: 1.7;
}
.core-strengths li::before {
  content: "Right Arrow";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.tech-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-items: center;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-background);
}
@media (max-width: 600px) {
  .tech-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tech-logos {
    flex-direction: column;
    align-items: center;
  }
}
