:root {
  --primary: #175fa8;
  --dark: #1a1a1a;
  --light: #f5f5f5;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  padding-top: 80px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.site-header {
  position: fixed; /* sticky at the top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding-right: 40px;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* When scrolled */
.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-flex {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px; /* Adjust height */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 65px; /* Smaller on mobile */
  }
}

.site-header.scrolled .logo {
  color: var(--primary); /* changes when background appears */
}

/* =====================
   Desktop Navigation
===================== */
.main-nav {
  margin-left: auto; /* push nav to the right */
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-header.scrolled .main-nav a {
  color: var(--primary);
}

.main-nav a:hover {
  color: #e01f27;
}

html, body {
  overflow-x: hidden;
}

/* =====================
   Burger Menu Button
===================== */
.burger {
  display: none; /* hidden on desktop */
  position: relative;
  width: 28px;
  height: 20px;
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1001; /* above panel */
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.site-header.scrolled .burger span,
.site-header.scrolled .burger span::before,
.site-header.scrolled .burger span::after {
  background: #e01f27;
}

.burger span {
  top: 50%;
  transform: translateY(-50%);
}

.burger span::before {
  top: -8px;
}

.burger span::after {
  top: 8px;
}

/* Animate burger to X */
.burger.active span {
  background: transparent;
}

.burger.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.burger.active span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* =====================
   Responsive
===================== */
@media (max-width: 768px) {
  .main-nav {
    display: none; /* hide desktop menu */
  }

  .burger {
    display: block;
  }
}

/* Mobile Panel */
.mobile-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 80px 20px 30px;
  gap: 20px;
  transition: right 0.4s ease;
  z-index: 999;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-panel-header {
  display: none; /* Remove if you don't want a header */
}

.mobile-panel a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  transition: color 0.3s ease;
}

.mobile-panel a:hover {
  color: var(--accent);
}

.mobile-panel.active {
  right: 0;
}

/* Mobile panel overlay */
.mobile-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close button for mobile menu */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--primary);
  cursor: pointer;
  z-index: 1001;
}

/* Burger button positioning */
.burger {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1000;
}

.mobile-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* Media queries */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .burger {
    display: block;
  }
  
  body.menu-open {
    overflow: hidden; /* Prevent scrolling when menu is open */
  }
}

.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the section */
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.45; /* Adjust veil strength */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-btn {
  background: var(--white);
  color: var(--primary);
  padding: 12px 24px;
  font-weight: bold;
  /* border-radius: 5px; */
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.cta-btn:hover {
  transform: scale(1.05);
}

.scroll-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e01f27;
  cursor: pointer;
  animation: bounce 1.5s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

@media (max-width:600px) {
  .scroll-arrow {
    display: none;
  }
}

.about, .services, .portfolio {
  padding: 60px 0;
  background: var(--white);
}

.about h3,
.services h3,
.portfolio h3 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about p,
.portfolio p {
  max-width: 800px;
  margin: auto;
  text-align: center;
  font-size: 1rem;
}

.about .intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.about-card {
  background: var(--light);
  border-left: 4px solid var(--primary);
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  /* border-radius: 6px; */
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.who {
  padding-bottom: 40px;
}

.about-card h4 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.about-card p, .about-card ul {
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-card ul {
  list-style: disc inside;
  padding-left: 0;
}

.icon-circle {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 20px;
  margin-bottom: 15px;
  transition: background-color 0.3s;
}

.about-card:hover .icon-circle {
  background-color: var(--dark);
}

/* Fade-in base */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When visible */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--light);
  border-left: 4px solid var(--primary);
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-left: 4px solid #e01f27;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.portfolio-item {
  overflow: hidden;
  /* border-radius: 6px; */
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.contact {
  padding: 60px 0;
  background: var(--light);
}

.contact h3 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form button {
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #0e4a80; /* darker version of primary */
}

.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-grid h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #444;
  padding-top: 10px;

}




