/* ========================================
   General Styles
======================================== */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #0d2c61; /* deep blue */
  --secondary-color: #ff4500; /* accent color */
}

/* ========================================
   Navbar
======================================== */
header {
  background: transparent;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-brand {
  color: #fff;
  transition: color 0.3s;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-left: 10px;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

/* ========================================
   Hero Section
======================================== */
#hero {
  position: relative;
  height: 100vh;
  background: url('works/banner.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

#hero .hero-overlay {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

#hero p {
  font-size: 1.3rem;
  margin-top: 20px;
  color: #fff;
}

#hero .btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

#hero .btn:hover {
  background-color: #0b5ed7;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  #hero h1 { font-size: 2rem; }
  #hero p { font-size: 1rem; }
  #hero .btn { padding: 12px 30px; font-size: 1rem; }
}

/* ========================================
   Section Headings
======================================== */
section h2 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
}

/* ========================================
   Cards (Services & Testimonials)
======================================== */
.service-card, .testimonial-card {
  border: none;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s, box-shadow 0.4s;
  background: #fff;
}

.service-card:hover, .testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.video-box video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Hover effect */
.video-box:hover video {
  transform: scale(1.1);
}

/* Optional overlay */
.video-box::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  opacity: 0;
  transition: 0.3s;
}

.video-box:hover::after {
  opacity: 0.8;
}
/* ========================================
   About Section
======================================== */
#about {
  background-color: #f8f9fa;
  padding: 100px 0;
  color: #495057;
  line-height: 1.8;
}

#about p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

#about strong {
  color: #0d6efd;
  font-weight: 600;
}

#about .feature-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

#about .feature-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  flex: 1 1 250px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

#about .feature-card i {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  #about h2 { font-size: 2.2rem; }
  #about p { font-size: 1rem; }
  #about .feature-cards { flex-direction: column; gap: 20px; }
}

/* ========================================
   Team Section
======================================== */
.team-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 4px solid var(--secondary-color);
  border-radius: 50%;
  transition: transform 0.3s;
}

.team-img:hover { transform: scale(1.1); }
h5{
  color: #0d2c61;
  font-weight: 700;
}
.fade-in p{
  font-weight: 600;
}
.gallery-card {
  height: 250px;        /* fixed size */
  width: 100%;
  background: #fff;     /* or #000 if you want dark */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;  /* 🔥 NO CROPPING */
  transition: transform 0.4s ease;
}

/* Optional hover */
.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

/* ========================================
   Fade-in Animation
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Contact Section
======================================== */
#contact {
  background-color: #f8f9fa;
  padding: 80px 0;
}

#contact h2 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #343a40;
  margin-bottom: 50px;
}

#contact .contact-details {
  background: #fff;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact .contact-details p {
  font-size: 1.05rem;
  color: #495057;
  margin-bottom: 15px;
}

#contact .contact-details p i {
  color: #0d6efd;
  font-size: 1.2rem;
  margin-right: 8px;
}

#contact .contact-details a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.3s;
}

#contact .contact-details a:hover { color: #0b5ed7; }

#contact form input,
#contact form textarea {
  border-radius: 10px;
  border: 1px solid #ced4da;
  padding: 15px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.25);
  outline: none;
}

#contact form button {
  background-color: #0d6efd;
  border: none;
  padding: 15px 50px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#contact form button:hover {
  background-color: #0b5ed7;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Responsive Contact */
@media (max-width: 992px) {
  #contact .row.g-4 { flex-direction: column; }
  #contact .contact-details,
  #contact form { width: 100%; margin-bottom: 30px; }
}

@media (max-width: 768px) {
  #contact h2 { font-size: 2rem; }
  #contact form input,
  #contact form textarea { font-size: 0.95rem; }
  #contact form button { padding: 12px 40px; font-size: 1rem; }
}

/* ========================================
   Footer Styles
======================================== */
.footer {
  background-color: #0d2c61; /* deep blue */
  color: #fff;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 100;
  padding-top: 60px;
  padding-bottom: 30px;
  overflow: hidden;
}

.footer a {
  color: #fff;
  transition: color 0.3s, transform 0.3s;
}

.footer a:hover {
  color: #ffdd57; /* accent color */
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-logo {
  max-width: 150px;
  transition: transform 0.3s, filter 0.3s;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.footer-heading {
  font-weight: 700;
  color: #ffdd57;
  margin-bottom: 20px;
  font-size: 1.25rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  
  margin-top: 5px;
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-links li a:hover {
  color: #f72b07;
  transform: translateX(5px);
}

.footer-social a {
  display: inline-block;
  margin-right: 15px;
  transition: all 0.3s ease;
  padding: 5px;
}

.footer-social a:hover {
  color: #ffdd57;
  transform: scale(1.3) rotate(10deg);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin-top: 30px;
  margin-bottom: 20px;
}

.footer-bottom {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #ccc;
}

.footer-bottom a {
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #ffdd57;
}

/* Fade-in for footer elements */
.footer, .footer a, .footer-logo, .footer-heading, .footer-links li, .footer-social a {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-in-out;
}

.footer.visible,
.footer a.visible,
.footer-logo.visible,
.footer-heading.visible,
.footer-links li.visible,
.footer-social a.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-links li {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
  }

  .footer-links li a {
    font-size: 0.9rem;
  }

  .footer-social a {
    margin-right: 10px;
    font-size: 1.3rem;
  }

  .footer-heading::after {
    width: 40px;
  }
}

/* ========================================
   Back-to-top Button
======================================== */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: red;
  color: #fff;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: background 0.3s, transform 0.3s;
}

#backToTop:hover {
  background-color: #fd1f06;
  transform: scale(1.1);
}