/* ---------------------------------------------
   Base / Reset
--------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111;
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ---------------------------------------------
   Container Utilities
--------------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 700px;
}

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

/* ---------------------------------------------
   Typography
--------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: #0b57d0; /* Primary brand color accent */
}

p {
  color: #333;
}

/* ---------------------------------------------
   Header / Navigation
--------------------------------------------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #0b57d0;
}
.logo span {
  font-weight: 300;
}

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

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #0b57d0;
  font-weight: 500;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: #094aa5;
}

/* Mobile menu button */
.menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #0b57d0;
  cursor: pointer;
}

/* ---------------------------------------------
   Hero Section
--------------------------------------------- */
.hero-section {
  padding: 4rem 0;
  background: #f9fbfd;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}


.hero-copy h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.2s;
}

.hero-copy p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.4s;
}

.hero-cta a {
  margin-right: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.6s;
}

.hero-media {
  justify-self: end; /* pushes the entire image container to the right */
}

.hero-media img {
  width: 100%;
  border-radius: 8px;
  margin-left: auto;
  display: block;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInScale 1s forwards 0.8s;
}
/* About section grid */
.about-section .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center; /* vertically centers content next to image */
}

/* About section image */
.about-media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* About text container */
.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center the text within the grid cell */
}


/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
}

.btn.primary {
  background-color: #0b57d0;
  color: #fff;
  border: none;
}

.btn.primary:hover {
  background-color: #094aa5;
  transform: translateY(-2px);
}

.btn.ghost {
  background-color: transparent;
  border: 2px solid #0b57d0;
  color: #0b57d0;
}

.btn.ghost:hover {
  background-color: #0b57d0;
  color: #fff;
  transform: translateY(-2px);
}

.btn.outline {
  background-color: transparent;
  border: 2px solid #333;
  color: #333;
}

.btn.outline:hover {
  background-color: #333;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------------------------------------------
   Section Titles & Animations
--------------------------------------------- */
.section {
  padding: 4rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0b57d0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
}

/* ---------------------------------------------
   Cards (for Services, etc.)
--------------------------------------------- */
.cards-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card.visible {
  animation: fadeUp 0.8s forwards;
}

.card-media {
  text-align: center;
  margin-bottom: 1rem;
}

.card-media img {
  width: 60px;
  height: 60px;
}

/* ---------------------------------------------
   Industries Section
--------------------------------------------- */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.pill {
  background-color: #0b57d0;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  opacity: 0;
  transform: scale(0.9);
}

/* ---------------------------------------------
   News Section
--------------------------------------------- */
.news-list li {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

/* ---------------------------------------------
   Contact Form
--------------------------------------------- */
.contact-form .form-group {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.contact-form .form-group.visible {
  animation: fadeUp 0.8s forwards;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0b57d0;
  outline: none;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  background-color: #f4f6f9;
  padding: 2rem 0;
  color: #555;
  text-align: center;
}

.site-footer a {
  color: #0b57d0;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #094aa5;
}

/* ---------------------------------------------
   Keyframe Animations
--------------------------------------------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* -----------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
----------------------------------------------------------- */

/* ---------------------------------
   Small phones (up to 480px)
--------------------------------- */
@media (max-width: 480px) {

  html {
    font-size: 14px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-media img {
    max-width: 90%;
    margin: 1.5rem auto 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-btn {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 15px;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .main-nav.open {
    display: block;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-media img {
    max-width: 90%;
    margin: 0 auto;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------------------------------
   Large phones (481px – 768px)
--------------------------------- */
@media (max-width: 768px) {

  html {
    font-size: 15px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-media {
    justify-self: center;
  }

  .main-nav ul {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .about-copy {
    text-align: center;
  }
}

/* ---------------------------------
   Tablets (769px – 1024px)
--------------------------------- */
@media (max-width: 1024px) {

  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }
}

/* ---------------------------------
   Small laptops (1025px – 1280px)
--------------------------------- */
@media (max-width: 1280px) {

  html {
    font-size: 15.5px;
  }

  .container {
    max-width: 1000px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }
}
/* -------------------------------
   Fade-in Scroll Animation
------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ---------------------------------------------
   MOBILE NAVIGATION
--------------------------------------------- */

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

/* Hamburger Button */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 999;
}

.menu-btn .bar {
  width: 28px;
  height: 3px;
  background: rgb(54, 54, 203);
  transition: all 0.3s ease;
  border-radius: 5px;
}

/* Transform menu button into X when open */
.menu-btn.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-btn.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav Hidden */
.main-nav {
  display: flex;
}
.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* Mobile Mode */
@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    padding-top: 6rem;
    transition: right 0.4s ease;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
  }

  .main-nav a {
    font-size: 1.1rem;
  }
}
