:root {
  --primary-red: #ff3131;
  --bg-black: #000000;
  --bg-card: #0a0a0a;
  --card-border: rgba(255, 49, 49, 0.1);
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --glass-bg: rgba(0, 0, 0, 0.8);
  --glass-bg-header: rgba(0, 0, 0, 0.9);
}


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

html, body {
  width: 100%;
  height: auto;
  min-height: 100%;
}

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fix for smooth scroll conflicts */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}


.bebas-font {
  font-family: 'Bebas Neue', sans-serif;
}

/* Animations & Reveal Utility */
.reveal-up {
  opacity: 0;
  will-change: transform, opacity;
}

/* Fallback if JS fails */
.no-js .reveal-up {
  opacity: 1;
}

/* Typography Overhaul */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--text-white);
  letter-spacing: 1px;
}

.text-gradient-red {
  background: linear-gradient(90deg, #fff, var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Layout */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Navbar Premium */
.navbar-custom {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: white !important;
  text-decoration: none;
  letter-spacing: 2px;
}

.navbar-brand span {
  color: var(--primary-red);
}


.nav-link {
  color: var(--text-white) !important;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  margin-left: 2rem;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--primary-red) !important;
}


/* Hero Section Upgrade */
.hero {
  min-height: 80vh;
  padding: 120px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-black);
}

/* Magic Text Background */
.magic-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.magic-text {
  font-size: clamp(3rem, 12vw, 10rem);
  font-family: 'Bebas Neue', sans-serif;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 49, 49, 0.1);
  line-height: 0.9;
  white-space: nowrap;
  letter-spacing: 5px;
  text-transform: uppercase;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 7rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 49, 49, 0.15);
  text-align: center;
  letter-spacing: 4px;
}

.hero h1 .char {
  display: inline-block;
  cursor: default;
  will-change: transform, color, text-shadow;
  /* Removed CSS transition/animation to avoid conflicts with GSAP timeline */
}



.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto 3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Premium Buttons */
.btn-red {
  background-color: var(--primary-red);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
}

.btn-red:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 49, 49, 0.4);
}


.btn-outline-red {
  color: white;
  border: 1px solid rgba(255, 49, 49, 0.3);
  padding: 16px 40px;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-outline-red:hover {
  border-color: var(--primary-red);
  background: rgba(255, 49, 49, 0.05);
  color: var(--primary-red);
}


/* Services / Expertise Section */
.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 24%));
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 31%));
  }
}

.service-card {
  background: var(--bg-card);
  padding: 4rem 3rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}


.service-card i {
  font-size: 3rem;
  background: linear-gradient(135deg, #fff, var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}


.service-card p {
  color: var(--text-gray);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}

/* Project Sequential 'Chain Scrolling' Effect */
.project-image-container {
    height: 162px;
    background-color: #0a0a0a;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 49, 49, 0.1);
    position: relative;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.project-image-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.project-image-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: none; /* Let the container handle scrolls */
}

.project-sliding-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* Auto-scroll handled via JS now to allow manual override */

/* If content is shorter than container, center it horizontally and start from top to allow scrolling */
.project-image-inner:only-child:not(:has(img:nth-child(2))) {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Contact & Footer */
.contact-form-container {
  background: var(--bg-card);
  padding: 4rem;
  border: 1px solid var(--card-border);
}

.form-control-custom {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: white;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  transition: border-color 0.3s;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary-red);
}


footer {
  background-color: var(--bg-black);
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 2rem;
}

.footer-logo span {
  color: var(--primary-red);
}

.footer-links {
  text-align: left;
}
.footer-links h4 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #ffffff !important;
  text-align: left;
}


.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

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

.footer-links a {
  color: #a0a0a0 !important;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none !important;
  transition: color 0.3s;
  font-size: 0.95rem;
}

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


.copyright {
  text-align: center;
  color: var(--text-gray);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 50px;
  margin-top: 50px;
  font-family: 'Montserrat', sans-serif;
}

/* Floating Actions Premium Styling */
.floating-actions {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.whatsapp-float, .back-to-top {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  outline: none;
}

.whatsapp-float {
  background-color: #25d366;
  color: white;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
  color: white;
}

.back-to-top {
  background-color: var(--primary-red);
  color: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}


.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(255, 49, 49, 0.4);
}


@media (max-width: 991px) {
  .navbar-custom {
    padding: 1rem 0;
  }
  
  .navbar-collapse {
    background: var(--bg-black);
    padding: 2rem;
    border-bottom: 1px solid var(--card-border);
    margin-top: 1rem;
    border-radius: 8px;
  }

  .nav-link {
    margin: 1rem 0;
    font-size: 1.5rem;
    text-align: center;
  }

  .container-custom {
    padding: 0 25px;
  }

  .hero h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
  }

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

  section {
    padding: 80px 0 !important;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .magic-text {
    font-size: 4rem;
    opacity: 0.1; /* Reduced stroke visibility on small screens */
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero-btns .btn-outline-red {
    margin-left: 0 !important;
    width: 100%;
    max-width: 250px;
  }

  .btn-red {
    width: 100%;
    max-width: 250px;
  }

  .project-image-container {
    height: 158px;
  }

  .contact-form-container {
      padding: 2rem;
  }

  /* Disable custom cursor on mobile for better UX */
  .cursor-dot, .cursor-outline {
    display: none !important;
  }
  
  body {
    cursor: auto !important;
  }
  
  a, button, .char, .nav-link {
    cursor: auto !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
  
  .magic-text {
      display: none; /* Hide background text on very small screens to reduce clutter */
  }
}

/* Custom Cursor Global Enforcement */
html, body {
  cursor: none !important;
}

body * {
    cursor: none !important;
}

a, button, .char, .nav-link, input, textarea, select {
  cursor: none !important;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-red);
  background: transparent;
  pointer-events: none;
  z-index: 99999;
  transform: rotate(45deg);
  margin-left: -10px;
  margin-top: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-dot::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-red);
    display: block;
}

@keyframes shake-extreme {
  0% { transform: scale(1.35) translateY(-10px) translateX(0); }
  20% { transform: scale(1.35) translateY(-10px) translateX(-2px) rotate(-1.5deg); }
  40% { transform: scale(1.35) translateY(-10px) translateX(2px) rotate(1.5deg); }
  60% { transform: scale(1.35) translateY(-10px) translateX(-1px) rotate(-0.5deg); }
  80% { transform: scale(1.35) translateY(-10px) translateX(1px) rotate(0.5deg); }
  100% { transform: scale(1.35) translateY(-10px) translateX(0); }
}

.char-shake {
    animation: shake-extreme 0.3s ease-out forwards;
}

.cursor-hover .cursor-dot {
    border-color: white;
    scale: 1.2;
}