html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    padding-top: 60px;
    margin: 0;
    max-width: 100vw; /* Prevent body from exceeding viewport */
}

.scrolling-text-container {
    overflow-x: hidden; /* Critical fix */
}

















/* Navbar Styles */
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: Arial, sans-serif;
  }
  body {
      padding-top: 60px;
      /* To prevent content from hiding behind navbar */
  }
  .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      background: white;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      position: fixed;
      width: 100%;
      top: 0;
      left: 0;
      z-index: 1000;
  }
  /* Logo */
  .logo {
      font-size: 24px;
      font-weight: bold;
  }
  /* Menu */
  .menu {
      display: flex;
      list-style: none;
  }
  .menu-item {
      margin: 0 15px;
  }
  .menu-item a {
      text-decoration: none;
      color: black;
      font-size: 18px;
      transition: 0.3s ease;
  }
  .menu-item a:hover {
      color: #ff5733;
  }
  /* Hamburger Icon */
  .burger {
      font-size: 28px;
      cursor: pointer;
      display: none;
      background: none;
      border: none;
  }
  /* Responsive Navbar */
  @media (max-width: 768px) {
      .burger {
          display: block;
      }
      .menu {
          display: none;
          flex-direction: column;
          position: absolute;
          top: 60px;
          left: 0;
          width: 100%;
          background: white;
          text-align: center;
          padding: 10px 0;
          box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
      }
      .menu.active {
          display: flex;
      }
      .menu-item {
          padding: 10px 0;
      }
  }

  /* ===== HOME SECTION - FIXED FOR MOBILE ===== */
  .home {
      position: relative;
      width: 100%;
      overflow: hidden;
      background: #000;
  }

  /* Desktop - tall hero */
  @media (min-width: 769px) {
      .home {
          height: 550px;
      }
  }

  /* Tablet - medium height */
  @media (max-width: 768px) and (min-width: 481px) {
      .home {
          height: 380px;
      }
  }

  /* Mobile - responsive without cutoff */
  @media (max-width: 480px) {
      .home {
          height: 320px;
      }
  }

  .bg-video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      position: absolute;
      top: 0;
      left: 0;
  }

  /*second section*/
  .container {
    height: auto;  /* or use padding instead */
    padding: 60px 0;  /* Add controlled spacing */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}
  /* Main Content */
  .content {
      display: flex;
      align-items: center;
      width: 90%;
      max-width: 1200px;
      position: relative;
  }
  /* Left Image */
  .image-container {
      width: 50%;
      height: 100%;
  }
  .main-image {
      width: 100%;
      height: auto;
      border-radius: 50px;
  }
  /* Right Content */
  .text-content {
      width: 50%;
      padding: 50px;
      text-align: left;
      position: relative;
      z-index: 2;
  }
  .sub-heading {
      font-size: 18px;
      text-transform: uppercase;
      font-weight: bold;
      letter-spacing: 2px;
  }
  .title {
      font-size: 48px;
      font-weight: bold;
      margin: 10px 0;
  }
  .description {
      font-size: 18px;
      color: #bbb;
      line-height: 1.6;
  }
  /* Responsive - FIXED */
  @media (max-width: 768px) {
      .container {
          height: auto !important;
          padding: 40px 20px;
          background-attachment: scroll;
      }
      .content {
          flex-direction: column;
          text-align: center;
          width: 100%;
          max-width: 100%;
      }
      .image-container {
          width: 100%;
          height: auto;
          padding: 0;
          margin-bottom: 20px;
      }
      .main-image {
          width: 100%;
          height: auto;
          border-radius: 20px;
          display: block;
      }
      .text-content {
          width: 100%;
          padding: 30px 20px;
          text-align: center;
      }
      .sub-heading {
          font-size: 16px;
      }
      .title {
          font-size: 32px;
      }
      .description {
          font-size: 15px;
          line-height: 1.6;
      }
      .btn {
          width: 100%;
          max-width: 300px;
      }
  }
  @media (max-width: 480px) {
      .container {
          height: auto !important;
          padding: 20px 10px;
          background-attachment: scroll;
      }
      .content {
          flex-direction: column;
          width: 100%;
          gap: 0;
      }
      .image-container {
          width: 100%;
          height: auto;
          padding: 0;
          margin-bottom: 15px;
      }
      .main-image {
          width: 100%;
          height: auto;
          border-radius: 15px;
          display: block;
      }
      .text-content {
          width: 100%;
          padding: 20px 15px;
      }
      .sub-heading {
          font-size: 14px;
      }
      .title {
          font-size: 26px;
          margin: 10px 0;
      }
      .description {
          font-size: 13px;
          line-height: 1.5;
          margin-bottom: 15px;
      }
      .btn {
          width: 100%;
          padding: 12px 20px;
          font-size: 14px;
      }
  }
  /*headline*/
  .scrolling-text-container {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: black;
      padding: 10px 10px;
      overflow: hidden;
      white-space: nowrap;
  }
  .scrolling-text {
      display: inline-block;
      font-size: 18px;
      color: white;
      font-weight: bold;
      text-transform: uppercase;
      animation: marquee 15s linear infinite;
  }
  /* Smooth scrolling animation */
  @keyframes marquee {
      from {
          transform: translateX(100%);
      }
      to {
          transform: translateX(-100%);
      }
  }
  /* Image and text fade + slight movement on scroll */
  .image-container,
  .text-content {
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  /* Show when in viewport */
  .show {
      opacity: 1 !important;
      transform: translateY(0) !important;
  }
  /* Smooth Parallax Effect on Image */
  .main-image {
      transition: transform 0.3s ease-out;
  }
  .scrolled {
      transform: translateY(-20px);
  }
  /*3rd section*/
  .container1 {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 40px;
      gap: 20px;
  }
  .text-content {
      width: 45%;
  }
  .text-content h2 {
      cursor: pointer;
      margin: 20px 0 5px;
      font-size: 22px;
      transition: color 0.3s ease;
      text-transform: uppercase;
      color: #333;
  }
  .text-content h2.active {
      color: #ff6600;
  }
  .text-content p {
      margin: 0 0 20px;
      font-size: 16px;
      color: #555;
      line-height: 1.5;
  }
  .image-content {
      width: 50%;
  }
  .image-content img {
      width: 100%;
      border-radius: 10px;
      transition: opacity 0.3s ease;
  }
  /* Responsive */
  @media (max-width: 768px) {
      .container1 {
          flex-direction: column;
          text-align: center;
      }
      .text-content,
      .image-content {
          width: 100%;
      }
      .text-content h2 {
          font-size: 20px;
      }
      .text-content p {
          font-size: 14px;
      }
  }
  /* 🌟 Hero Section */
  .hero1 {
      text-align: center;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 80px 20px;
      background: url('https://i.pinimg.com/736x/30/8f/2f/308f2fd627c36e007527bc50337f6c7b.jpg') no-repeat center center/cover;
      color: white;
      border-radius: 10px;
      position: relative;
  }
  /* Dark Overlay */
  .hero1::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
  }
  .hero1 h1 {
      font-size: 24px;
      font-weight: bold;
      letter-spacing: 1px;
      text-transform: uppercase;
      position: relative;
      z-index: 1;
  }
  .hero1 h2 {
      font-size: 32px;
      font-weight: bold;
      text-transform: uppercase;
      position: relative;
      z-index: 1;
  }
  .hero1 p {
      font-size: 18px;
      margin-top: 10px;
      position: relative;
      z-index: 1;
  }
  /* 🃏 Cards Section */
  .cards-container {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 30px;
      margin-top: -50px;
      flex-wrap: wrap;
      padding: 40px 20px;
  }
  .card {
      background: white;
      border-radius: 15px;
      box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
      padding: 30px;
      text-align: center;
      width: 300px;
      transition: transform 0.3s ease-in-out;
  }
  .card img {
      width: 50px;
      height: 50px;
      margin-bottom: 15px;
  }
  .card h3 {
      font-size: 20px;
      margin-bottom: 10px;
  }
  .card p {
      font-size: 16px;
      color: #555;
  }
  .card:hover {
      transform: translateY(-10px);
  }
  /* 📌 Consultation Section */
  .hero {
      text-align: center;
      background: url('bg.png') no-repeat center center/cover;
      color: white;
      padding: 100px 20px;
      position: relative;
  }
  /* Dark Overlay */
  .hero::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
  }
  .hero-content {
      position: relative;
      z-index: 1;
  }
  .hero h1 {
      font-size: 2.5rem;
      font-weight: bold;
      text-transform: uppercase;
  }
  .hero h1 span {
      color: #facc15;
      text-decoration: underline;
  }
  .hero p {
      font-size: 1rem;
      color: #ddd;
      margin-top: 10px;
  }
  /* 🎨 Button */
.btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 24px;
    background: #e65c00; /* Darker orange */
    color: white;
    font-weight: bold;
    border-radius: 30px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 2px solid #cc5200;
}

.btn:hover {
    background: #cc5200;
    transform: translateY(-2px);
}
  /* 📱 Responsive Design */
  @media (max-width: 1024px) {
      .hero1 h2 {
          font-size: 28px;
      }
      .hero1 p {
          font-size: 16px;
      }
      .cards-container {
          gap: 20px;
      }
      .card {
          width: 250px;
          padding: 25px;
      }
      .hero h1 {
          font-size: 2rem;
      }
      .hero p {
          font-size: 0.9rem;
      }
      .btn {
          padding: 10px 20px;
      }
  }
  @media (max-width: 768px) {
      .hero1 {
          padding: 50px 10px;
      }
      .hero1 h2 {
          font-size: 24px;
      }
      .hero1 p {
          font-size: 14px;
      }
      .cards-container {
          flex-direction: column;
          align-items: center;
      }
      .card {
          width: 90%;
          max-width: 320px;
      }
      .hero {
          padding: 60px 15px;
      }
      .hero h1 {
          font-size: 20px;
      }
      .hero p {
          font-size: 12px;
      }
  }
  /*6*/
  /* 🔹 Fade-in Animation */
  .fade-in {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  /* Show the elements when in viewport */
  .fade-in.show {
      opacity: 1;
      transform: translateY(0);
  }
  /* 5th Section - Work Section Styling */
  .work-section {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 0;
      text-align: center;
  }
  /* Work Grid */
  .work-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      width: 90%;
      max-width: 1200px;
      margin: 0 auto;
  }
  /* Work Title */
  .work-title {
      font-size: 36px;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: #333;
      margin-bottom: 30px;
  }
  /* Work Card Styling */
  .work-card {
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 1;
      background-color: #f5f5f5;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s ease-in-out;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .work-card:hover {
      transform: scale(1.05);
  }
  /* Image Styling */
  .work-card img {
      width: 80%;
      height: 80%;
      object-fit: cover;
      transition: opacity 0.3s ease-in-out;
  }
  /* Hover Overlay */
  .work-overlay {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 20px;
      font-weight: bold;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
  }
  .work-card:hover .work-overlay {
      opacity: 1;
  }
  /* 🔹 Responsive Design */
  @media (max-width: 1024px) {
      .work-grid {
          grid-template-columns: repeat(2, 1fr);
      }
  }
  @media (max-width: 768px) {
      .work-grid {
          grid-template-columns: repeat(1, 1fr);
      }
  }
  /* 🔹 Intro Section Styling */
  #intro {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      text-align: center;
      padding: 60px 20px;
  }
  /* Small Title */
  .h1-title:first-child {
      font-size: 14px;
      font-weight: bold;
      letter-spacing: 1px;
      color: #888;
      text-transform: uppercase;
      margin-bottom: 10px;
  }
  /* Main Heading */
  .h1-title {
      font-size: 36px;
      font-weight: 700;
      color: #222;
      margin-bottom: 10px;
  }
  /* Subtitle */
  .h2-title {
      font-size: 20px;
      font-weight: 400;
      color: #555;
      max-width: 800px;
      margin: 0 auto;
      line-height: 1.5;
  }
  /* 🔹 Responsive Design */
  @media (max-width: 768px) {
      .h1-title {
          font-size: 28px;
      }
      .h2-title {
          font-size: 18px;
      }
  }
  /*contact*/
  /* General Styling */
 .contact-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      min-height: 100vh;
      background: #f8f8f8;
      padding: 50px 20px;
}
  /* Centering the Contact Section */
  .contact-container {
      max-width: 800px;
      width: 100%;
      background: white;
      padding: 40px;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  /* LET'S CONNECT Heading */
  .sub-heading {
      font-size: 14px;
      letter-spacing: 2px;
      font-weight: bold;
      color: #666;
      text-transform: uppercase;
      margin-bottom: 10px;
      position: relative;
      display: inline-block;
  }
  .sub-heading::after {
      content: "";
      width: 50px;
      height: 1px;
      background: black;
      position: absolute;
      bottom: -5px;
      left: 50%;
      transform: translateX(-50%);
  }
  /* Main Heading */
  .contact-heading {
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 30px;
  }
  /* Contact Info */
  .contact-info {
      display: flex;
      justify-content: space-between;
      margin-bottom: 30px;
  }
  .contact-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
      text-align: center;
  }
  .contact-box .icon {
      font-size: 30px;
      background: black;
      color: white;
      padding: 10px;
      border-radius: 50%;
      margin-bottom: 10px;
  }
  .contact-box p {
      font-weight: bold;
      margin-bottom: 5px;
  }
  .contact-link {
      font-size: 12px;
      color: black;
      text-decoration: none;
      font-weight: bold;
      border-bottom: 1px solid black;
  }
  .contact-link:hover {
      color: gray;
  }
  /* Form */
  .contact-form {
      display: flex;
      flex-direction: column;
      gap: 15px;
      max-width: 600px;
      width: 100%;
  }
  /* Row Fields */
  .field-row {
      display: flex;
      gap: 15px;
  }
  /* Input & Select */
  .field-row input,
  textarea,
  select {
      width: 100%;
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 5px;
  }
  textarea {
      height: 120px;
      resize: none;
  }
  /* Button */
  .send-btn {
      background: black;
      color: white;
      padding: 12px;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
  }
  .send-btn:hover {
      background: #333;
  }
  /* 🌍 Responsive Design */
  @media (max-width: 1024px) {
      .contact-info {
          flex-wrap: wrap;
          justify-content: center;
          gap: 20px;
      }
  }
  @media (max-width: 768px) {
      .contact-info {
          flex-direction: column;
          align-items: center;
      }
      .field-row {
          flex-direction: column;
      }
  }
  
 
 
 
 
 
 
 /*7*/
/* Custom Footer */
.custom-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 60px 40px;
    background-color: #0a1a3a; /* Dark blue background */
    color: #fff;
    gap: 30px;
}

.custom-footer .footer-box {
    flex: 1 1 250px;
    min-width: 250px;
}

.custom-footer .footer-logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ff6600;
}

.custom-footer .footer-heading {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.custom-footer .footer-text, 
.custom-footer .footer-contact, 
.custom-footer .footer-menu,
.custom-footer .footer-subscribe input[type="email"] {
    font-size: 14px;
    line-height: 1.6;
}

.custom-footer .footer-menu li, 
.custom-footer .footer-contact li {
    list-style: none;
    margin-bottom: 8px;
}

.custom-footer .footer-menu li a,
.custom-footer .footer-contact li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.custom-footer .footer-menu li a:hover,
.custom-footer .footer-contact li a:hover {
    color: #ff6600;
}

.footer-subscribe {
    display: flex;
    margin-top: 10px;
}

.footer-subscribe input[type="email"] {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.footer-subscribe .footer-btn {
    padding: 10px 20px;
    border: none;
    background-color: #ff6600;
    color: #fff;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.3s;
}

.footer-subscribe .footer-btn:hover {
    background-color: #e65c00;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .custom-footer {
        flex-direction: column;
        padding: 40px 20px;
    }
    .custom-footer .footer-box {
        margin-bottom: 30px;
    }
}

 
  /* Back to Top Button */
  .back-to-top {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #ffffff;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: 0.3s;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      opacity: 0;
      visibility: hidden;
      z-index: 999;
  }
  .back-to-top img {
      width: 40px;
      height: 40px;
  }
  .back-to-top:hover {
      background: #a1a1a1;
  }
  /* Show button when scrolling */
  .show {
      opacity: 1;
      visibility: visible;
  }
  
  /* ========================================
   ACCESSIBILITY FIX - COLOR CONTRAST
   ======================================== */

/* Fix orange button contrast for better accessibility */
.btn, .submit-btn, .footer-btn {
    background: #e65c00 !important; /* Darker orange - better contrast */
    color: white !important;
    border: 2px solid #cc5200 !important; /* Add border for definition */
}

/* Alternative gradient version (choose one) */
.submit-btn {
    background: linear-gradient(135deg, #ff6600 0%, #cc5200 100%) !important;
}




/* ========================================
   CLIENTS/PORTFOLIO SECTION
   ======================================== */

.clients-section {
    background: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
}

.clients-section .sub-heading {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.clients-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 15px;
}

.clients-section .section-description {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Clients Grid - Logo Display */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.client-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.client-card img {
    max-width: 140px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Portfolio Stats */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.stat-box {
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clients-section {
        padding: 50px 15px;
    }
    
    .clients-section .section-title {
        font-size: 28px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .client-card {
        padding: 20px;
        min-height: 100px;
    }
    
    .client-card img {
        max-width: 100px;
        max-height: 60px;
    }
    
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 30px 15px;
    }
}