* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors tuned to logo image: red, blue, teal */
  --primary: #e3362d; /* main logo red (FIRE text) */
  --primary-light: #e3362d; /* use clear red instead of pink tint */
  --primary-dark: #84191565; /* darker red for hovers */
  --secondary: #1d5fa8; /* CODEBRIDGE blue */
  --secondary-light: #e4eef9; /* light blue background */
  --secondary-accent: #0f76c3; /* brighter logo blue */
  --teal: #18a3a3; /* icon teal band */
  --teal-dark: #0f6f78; /* darker teal band */
  --white: #ffffff;
  --dark: #111827;
  --dark-light: #1f2933;
  --light-gray: #f4f5f7;
  --medium-gray: #e1e4ea;
  --border-gray: #c4ccd9;
  --text-gray: #6b7280;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: var(--white); /* clean white page background */
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  /* now use primary red for emphasis text */
  color: var(--primary);
}

.digital-reality {
  color: var(--primary);
  font-weight: 800;
}

/* Navigation */
.navbar {
  background-color: var(--white); /* clean white header */
  color: var(--dark);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid var(--border-gray);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--secondary);
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo-image {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.logo-text {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.logo-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.logo-part-primary {
  color: var(--secondary);
}

.logo-part-accent {
  color: var(--primary); /* red accent in wordmark */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section - Balanced Layout */
.hero {
  min-height: 90vh;
  background-color: var(--secondary-light); /* soft light blue band behind hero */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 60px;
  gap: 60px;
}

.hero-left {
  flex: 1;
  max-width: 600px;
  color: var(--dark); /* dark text on light hero background */
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--primary); /* main red CTA */
  color: var(--white);
  box-shadow: 0 8px 20px rgba(230, 41, 47, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--primary-dark);
  box-shadow: 0 12px 30px rgba(230, 41, 47, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary); /* blue outline */
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Right Side Visual */
.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(51, 169, 255, 0.5); /* subtle sky blue ring */
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px dashed rgba(102, 194, 255, 0.35);
}

.visual-card {
  position: absolute;
  background: rgba(10, 17, 30, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
}

.visual-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 153, 255, 0.3);
}

.visual-card i {
  font-size: 3rem;
  color: var(--accent-light);
}

.visual-card span {
  font-weight: 600;
  font-size: 1.1rem;
}

.card-1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-150px);
}

.card-2 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(150px);
}

.card-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(150px);
}

.card-4 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(-150px);
}

/* Vision, Mission & Research Section */
.vision-section {
  padding: 80px 20px;
  background: var(--white);
}

.vision-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.vision-intro h2 {
  font-size: 2.6rem;
  margin-bottom: 12px;
  color: var(--primary-lighter);
  font-weight: 800;
}

.vision-intro p {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.vision-card {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.vision-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.vision-card p {
  color: var(--text-gray);
  line-height: 1.7;
}

.vision-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 153, 255, 0.16);
  transform: translateY(-6px);
}

/* Page Heroes */
.page-hero {
  padding: 100px 20px 80px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.services-hero {
  background-color: var(--primary-light);
}

.about-hero {
  background-color: var(--primary-lighter);
}

.contact-hero {
  background-color: var(--primary-light);
}

/* Projects Section */
.projects-section {
  padding: 100px 20px;
  background: var(--light-gray);
}

.projects-section h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-lighter);
  font-weight: 800;
}

.section-intro {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid var(--border-gray);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-gray);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 153, 255, 0.2);
}

.project-image {
  height: 220px;
  background-color: var(--primary-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: scale(1.1);
}

.project-content {
  padding: 25px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--light-gray);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.project-year {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.project-content h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 700;
}

.project-content p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tech span {
  padding: 5px 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Services Detailed - Alternating Layout */
.services-detailed {
  padding: 80px 20px;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-row:hover {
  box-shadow: 0 15px 50px rgba(0, 153, 255, 0.15);
  transform: translateY(-5px);
}

.service-row.reverse {
  flex-direction: row-reverse;
  background: var(--light-gray);
}

.service-content {
  flex: 1;
}

.service-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-lighter);
  line-height: 1;
  margin-bottom: 10px;
}

.service-content h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-content h2 i {
  color: var(--accent);
}

.service-description {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.service-features {
  list-style: none;
  margin-bottom: 30px;
}

.service-features li {
  padding: 12px 0;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.service-features li:hover {
  color: var(--accent);
  padding-left: 10px;
}

.service-features i {
  color: var(--accent);
  font-size: 1.1rem;
}

.service-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-placeholder {
  width: 350px;
  height: 350px;
  background: #f3f5f9;
  border-radius: 20px;
  border: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.visual-placeholder:hover {
  transform: scale(1.05) rotate(2deg);
}

.visual-placeholder i {
  font-size: 7rem;
  color: var(--primary-light);
}
/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section ul li a:hover {
  color: var(--accent-light);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .service-row,
  .service-row.reverse {
    flex-direction: column;
  }

  .story-content {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: var(--primary);
    width: 100%;
    padding: 20px;
    gap: 0;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid-layout {
    grid-template-columns: 1fr;
  }

  .blog-item,
  .blog-item.large {
    grid-column: span 1;
    flex-direction: column;
  }

  .featured-article {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    flex-direction: column;
  }

  .story-values {
    grid-template-columns: 1fr;
  }

  .contact-form-side {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .visual-card {
    padding: 20px;
  }

  .visual-card i {
    font-size: 2rem;
  }

  .service-number {
    font-size: 2.5rem;
  }
}