/* =================================================
   GLOBAL
================================================= */

body {
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  color: #333;
  overflow-x: hidden;
  position: relative;
}

.section {
  padding: 100px 0;
}

img {
  max-width: 100%;
  display: block;
}

/* =================================================
   NAVBAR – FIXED, LOGO SAFE, ANIMATED
================================================= */

.main-navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 70px;
  padding: 22px 0;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
  z-index: 9999 !important;
}

.main-navbar.scrolled {
  min-height: 58px;
  padding: 12px 0;
  background: rgba(11, 15, 20, 0.97);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* BRAND WRAPPER */
.navbar-brand {
  display: flex;
  align-items: center;
  max-height: 60px;
  overflow: hidden;
}

/* LOGO – HARD LIMITED */
.navbar-logo {
  max-height: 42px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: all 0.4s ease;
}

.main-navbar.scrolled .navbar-logo {
  max-height: 32px;
  max-width: 100px;
}

/* BRAND TEXT */
.brand-text {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.05rem;
  color: #fff;
}

/* NAV LINKS */
.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-left: 18px;
  position: relative;
  transition: color 0.3s ease;
}

/* UNDERLINE HOVER */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #ffc107;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* =================================================
   MOBILE MENU ANIMATION
================================================= */

@media (max-width: 991px) {

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 80%;
    background: rgba(11,15,20,0.98);
    padding: 100px 30px;
    transition: left 0.4s ease;
    z-index: 9998;
  }

  .navbar-collapse.show {
    left: 0;
  }

  .navbar-nav {
    gap: 22px;
  }

  .navbar-nav .nav-link {
    font-size: 1.2rem;
    margin-left: 0;
  }

  .navbar-toggler {
    border: none;
  }

  .navbar-logo {
    max-height: 32px;
    max-width: 90px;
  }
}

/* =================================================
   HERO SLIDER
================================================= */

.carousel,
.carousel-inner,
.carousel-item {
  z-index: 1;
}

.carousel {
  margin-top: 90px;
}

@media (max-width: 768px) {
  .carousel {
    margin-top: 75px;
  }
}

.carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.carousel-caption {
  bottom: 35%;
  max-width: 650px;
}

.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.carousel-caption p {
  font-size: 1.15rem;
}

.carousel-caption .btn {
  box-shadow: 0 15px 40px rgba(0,0,0,0.45);
}

/* =================================================
   STATS
================================================= */

.stats {
  background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
}

.stats h2 {
  font-weight: 700;
}

/* =================================================
   SERVICES
================================================= */

.service-box {
  padding: 45px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

.service-box:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}

/* =================================================
   IMAGE PARALLAX SECTION
================================================= */

.image-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.image-section .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.55)
  );
}

.image-section .container {
  position: relative;
  z-index: 2;
}

/* =================================================
   PROJECTS
================================================= */

.project-card img {
  border-radius: 14px;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

/* =================================================
   VIDEO PARALLAX SECTION
================================================= */

.video-section {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.video-section .container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* =================================================
   FOOTER
================================================= */

.site-footer {
  background: linear-gradient(180deg,#0b0f14,#07090c);
  color: #b5b5b5;
  padding: 80px 0 30px;
}

.footer-links a {
  color: #b5b5b5;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ffc107;
  padding-left: 5px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff;
  margin-right: 10px;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #ffc107;
  color: #000;
  transform: translateY(-4px);
}

/* =================================================
   PAGE TRANSITION
================================================= */

.page-transition {
  animation: fadeIn 0.7s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
