@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #BDE038;
  --dark: #1F1F1F;
  --light: #F7F7F7;
  --accent: #FFD700;
  --text-color: #F7F7F7;
  --bg-color: #1F1F1F;
  --card-bg: #2A2A2A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.1;
}

/* Global Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(31, 31, 31, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.logo span {
  color: var(--light);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mega Menu */
.has-mega-menu {
  position: static;
}

/* Invisible bridge to prevent hover loss between nav and mega menu */
.mega-toggle::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 50px;
  background: transparent;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 5%;
  display: flex;
  gap: 4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 999;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-title {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mega-col-title {
  color: var(--light);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  text-decoration: none;
  font-weight: 800;
  transition: color 0.3s ease;
}

.mega-col-title:hover {
  color: var(--primary);
}

.mega-sub-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mega-sub-links a {
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: transparent;
  transition: all 0.3s ease;
}

.mega-sub-links a::after {
  display: none;
}

.mega-sub-links a:hover {
  color: var(--light);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
  .has-mega-menu {
    position: relative;
  }

  .mega-menu {
    position: static;
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: none;
    gap: 2rem;
  }

  .has-mega-menu.active .mega-menu {
    display: flex;
  }

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

  .mega-menu>div:nth-child(2) {
    border-left: none !important;
    padding-left: 0 !important;
  }
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(189, 224, 56, 0.4);
}

.btn-primary-hover:hover {
  box-shadow: 0 0 20px #BDE038;
}

.btn-accent {
  background: transparent;
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-accent:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(189, 224, 56, 0.4);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(189, 224, 56, 0.5);
}

.btn-glow:hover {
  box-shadow: 0 0 40px rgba(189, 224, 56, 0.8);
  transform: translateY(-5px);
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  background-color: rgba(189, 224, 56, 0.5);
  /* var(--primary) with opacity */
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 50px;
  height: 50px;
  background-color: rgba(189, 224, 56, 0.8);
}

/* Common 3D & Animations */
.perspective-container {
  perspective: 1000px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tilt-card-inner {
  transform: translateZ(30px);
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.pop-up {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pop-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Layouts */
section {
  padding: 8rem 5%;
  position: relative;
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title span {
  color: var(--primary);
}

/* Footer */
footer {
  padding: 4rem 5% 2rem;
  background: #161616;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: #aaa;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #888;
}

/* Utility */
/* Layouts Section Styles */
.why-promote-out {
  background: radial-gradient(circle at bottom left, rgba(189, 224, 56, 0.05), transparent 40%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(189, 224, 56, 0.1);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(189, 224, 56, 0.2);
  transition: all 0.3s ease;
}

.tilt-card:hover .icon-box {
  background: var(--primary);
  transform: scale(1.1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: translateX(100%);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: #ccc;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: gap 0.3s ease;
}

.service-link:hover {
  gap: 1rem;
}

/* Portfolio Masonry */
.portfolio-section {
  padding: 8rem 5%;
  background: var(--bg-color);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Note: For a true masonry, CSS columns or flex-column might be needed, but a robust grid with spanned rows/heights mimics it closely here */
.masonry-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.masonry-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: transform 0.5s ease;
}

.masonry-item:hover .card-bg {
  transform: scale(1.05);
}

.portfolio-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.portfolio-content .tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(189, 224, 56, 0.2);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.portfolio-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.portfolio-content .stat {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--light);
  margin-bottom: 0.2rem;
}

.portfolio-content .desc {
  font-size: 0.9rem;
  color: #aaa;
}

/* Testimonial Carousel (Horizontal Scroll) */
.testimonial-carousel {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-behavior: smooth;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  width: max-content;
}

.testimonial-card {
  width: 400px;
  flex-shrink: 0;
}

.tilt-card-inner {
  position: relative;
  z-index: 2;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--card-bg);
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--primary);
}

/* About Section */
.about-section {
  background: #1a1a1a;
}

.about-split {
  align-items: center;
  gap: 4rem;
}

.core-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-item h4::before {
  content: '✓';
  font-size: 1rem;
}

.value-item p {
  color: #aaa;
  font-size: 0.95rem;
}

.stacked-images {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.stacked-images img {
  position: absolute;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.img-back {
  width: 80%;
  height: 80%;
  top: 0;
  right: 0;
  opacity: 0.6;
  filter: grayscale(100%);
}

.img-front {
  width: 85%;
  height: 85%;
  bottom: 0;
  left: 0;
  z-index: 2;
  border: 2px solid var(--primary);
}

.stacked-images:hover .img-back {
  opacity: 1;
  filter: grayscale(0%);
  transform: translate(10px, -10px);
}

.stacked-images:hover .img-front {
  transform: translate(-10px, 10px);
}

/* FAQ Section */
.faq-section {
  background: var(--bg-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 2rem;
  color: #ccc;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* Utility Grid adjustments */
.text-center {
  text-align: center;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {

  .why-grid,
  .services-grid,
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .why-grid,
  .services-grid,
  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .testimonial-card {
    width: 85vw;
  }
}