body {
  background-color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}


/* Default Navbar */
#navbar {
    background-color: #111; /* dark black */
    transition: background-color 0.4s, box-shadow 0.4s;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #fff; /* or any color you like */

}

#navbar .nav-link {
    color: white;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

#navbar .nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00a859; /* Green color */
    transition: width 0.3s ease;
}

#navbar .nav-link:hover::after {
    width: 100%;
}


#navbar .btn {
    background: white;
    color: black;
}

/* When scrolled */
#navbar.navbar-scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}

#navbar.navbar-scrolled .nav-link {
    color: #000;
}

#navbar.navbar-scrolled .btn {
    background: black;
    color: white;
}

#navbar .navbar-nav .nav-item {
    margin: 0 10px; /* this adds spacing between <li> items */
}

#navbar .navbar-brand img {
    height: 60px;
    width: 180px;
    object-fit: contain;
}

/* Optional: Adjust Bootstrap dropdown arrow */
.navbar .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    content: "▼";
    font-size: 0.6rem;
    border: none; /* remove default Bootstrap triangle */
    color: inherit;
}

/* On hover, change arrow color */
.navbar .dropdown-toggle:hover::after {
    color: #00a859; /* match your green */
}





/* herosec */

.hero-section {
    position: relative;
    height: 100vh;
    background-image: url('assets/hero-sec.jpg'); /* replace with correct path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section .btn-success {
    background-color: #00a859;
    border: none;
    font-weight: 600;
    border-radius: 4px;
}

.cctvtech-hero  {
padding-bottom: 0 !important;}

/* cctvtech-intro-section */


.read-more-btn {
    background-color: black;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
  }

  .read-more-btn:hover {
    background-color: gray;
  }

  .image-rotation-container {
    perspective: 1200px;
    width: 100%;
    max-width: 400px;
    height: 400px;
    position: relative;
  }

  .image-rotation {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
  }

  .image-rotation img {
    position: absolute;
    width: 120px;
    height: auto;
    transform-style: preserve-3d;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .mt-5 {
    margin-top: 14rem !important;
}   

.text-success2 {
    font-size: 0.8rem;
}



/* product sec*/

:root {
    --camera-primary: #000000;  /* Black */
    --camera-secondary: #28a745; /* Green */
    --camera-light: #ffffff;     /* White */
}

.camera-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.camera-section-title {
    color: var(--camera-primary);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.camera-section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--camera-secondary);
    margin: 1rem auto;
}

.camera-category-card {
    background: var(--camera-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--camera-secondary);
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 2.5rem;

}

.camera-category-title {
    color: var(--camera-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.resolution-badge {
    display: inline-block;
    background-color: var(--camera-secondary);
    color: var(--camera-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-features {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
}

.product-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: "+";
    color: var(--camera-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Popup Modal Styles */
.product-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--camera-primary);
    transition: all 0.2s ease;
}

.popup-close:hover {
    color: var(--camera-secondary);
    transform: rotate(90deg);
}

.popup-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.popup-title {
    color: var(--camera-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.popup-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.popup-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.popup-features {
    flex: 1;
    min-width: 300px;
}

.popup-features-title {
    color: var(--camera-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.popup-specs {
    flex: 1;
    min-width: 300px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.specs-table th, .specs-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    color: var(--camera-primary);
    font-weight: 600;
    width: 40%;
}

.popup-image {
    text-align: center;
    margin-top: 1.5rem;
}

.popup-image img {
    max-width: 40%;
    max-height: 40%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/*form sec*/
.section-title {
  font-weight: 700;
  color: black;
}

.section-subtitle {
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

.contact-info {
  background-color: #198754; /* Green */
  color: #ffffff;
}

.contact-info h5 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info ul {
  padding-left: 0;
  list-style: none;
}

.contact-info i {
  color: #ffffff;
}

.contact-form {
  background-color: #ffffff;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #198754;
  box-shadow: 0 0 8px rgba(25, 135, 84, 0.25);
}

.btn-green {
  background-color: #198754;
  color: #ffffff;
  border-radius: 0.75rem;
  transition: 0.3s;
}

.btn-green:hover {
  background-color: #157347;
}

.shadow-sm {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-section {
  margin-bottom: 50px;
  margin-top: 50px;
}
.testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.testimonial-text {
  font-style: italic;
  color: #6c757d; /* Grey */
  margin-bottom: 20px;
}
.client-name {
  color: #000; /* Black */
  font-weight: bold;
  margin-bottom: 0;
}
.client-position {
  color: #28a745; /* Green */
}
.rating {
  color: #ffc107; /* Yellow for stars */
  margin-bottom: 15px;
}

.carousel-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-item {
  transition: transform 1s ease;
}

.testimonial-section {
  margin-top: 50px;
}

.testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  color: #6c757d; /* Grey */
  margin-bottom: 20px;
}

.client-name {
  color: #000; /* Black */
  font-weight: bold;
  margin-bottom: 0;
}

.client-position {
  color: #28a745; /* Green */
}

.rating {
  color: #ffc107; /* Yellow for stars */
  margin-bottom: 15px;
}


/*footer */

.footer {
  margin-top: 90px;
  padding: 60px 0;
  background-color: #111;
}
.footer .logo img {
  width: 200px;
}
.footer .quick-links a,
.footer .products a {
  display: block;
  margin-bottom: 8px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}
.footer .quick-links a:hover,
.footer .products a:hover {
  color: #fff;
}
.footer .social-icons a {
  color: #28a745;
  font-size: 20px;
  margin: 0 10px;
  transition: 0.3s;
}
.footer .social-icons a:hover {
  color: #fff;
}
.download-btn {
  background-color: #28a745;
  border: none;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  transition: 0.3s;
}
.download-btn:hover {
  background-color: #218838;
  color: #fff;
}
.footer .products {
  font-size: 14px;
}
.footer img.surveillance {
  width: 250px;
  margin-top: 20px;
}

.footer-p {
  color: white;
}















/* ===========================
   Small devices (phones ≤576px)
   =========================== */
   @media (max-width: 575.98px) {
    html, body {
      max-width: 100%;
      overflow-x: hidden;
    }

    * {
      box-sizing: border-box;
    }
    /* Navbar */
    #navbar {
      padding: .5rem 0rem;
    }
    #navbar .navbar-brand img {
      height: 40px;
      width: auto;
    }
    #navbar .navbar-nav {
      flex-direction: column;
      align-items: center;
    }
    #navbar .nav-link {
      padding: .5rem 0;
      text-align: center;
    }
    #navbar .btn {
      display: block;
      width: 100%;
      margin-top: .5rem;
    }
  
    /* Hero section */
    .hero-section {
      height: 60vh;
      padding: 0 1rem;
    }
    .hero-content h1 {
      margin-top: 120px;
      font-size: 1.6rem;
      line-height: 1.2;
    }
    .hero-section .btn-success {
      padding: .6rem 1.2rem;
      font-size: .9rem;
    }
  
    /* Intro text & button */
    .cctvtech-hero .col-lg-6 {
      text-align: center;
    }
    .read-more-btn {
      width: 100%;
      font-size: .9rem;
      padding: .6rem;
    }
  
    /* 3D image rotation */
    .image-rotation-container {
      height: 250px;
    }
    .image-rotation img {
      width: 70px !important;
    }
  
    /* Utility classes */
    .mt-5 {
      margin-top: 6rem !important;
    }
    .text-success2 {
      font-size: .7rem;
    }
  
    /* Section titles and content */
    .section-title {
      font-size: 1.8rem;
    }
    .section-subtitle {
      font-size: 1rem;
      padding: 0 15px;
    }
    .contact-info,
    .contact-form,
    .testimonial-card {
      padding: 20px;
    }
    .testimonial-text {
      font-size: 0.95rem;
    }
  }
  
  /* ===========================
     Medium devices (tablets 576px–767.98px)
     =========================== */
  @media (min-width: 576px) and (max-width: 767.98px) {
    .section-title {
      font-size: 2rem;
    }
    .section-subtitle {
      font-size: 1.05rem;
      padding: 0 30px;
    }
    .contact-info,
    .contact-form,
    .testimonial-card {
      padding: 25px;
    }
    .testimonial-text {
      font-size: 1rem;
    }
  }
  
  /* ===========================
     Large devices (desktops 768px–991.98px)
     =========================== */
  @media (min-width: 768px) and (max-width: 991.98px) {
    .section-title {
      font-size: 2.2rem;
    }
    .section-subtitle {
      font-size: 1.1rem;
      padding: 0 50px;
    }
    .contact-info,
    .contact-form,
    .testimonial-card {
      padding: 30px;
    }
    .testimonial-text {
      font-size: 1.05rem;
    }
  }
  
  /* ===========================
     Extra large devices (≥1200px)
     =========================== */
  @media (min-width: 1200px) {
    body {
      background-color: #ffffff;
      font-family: 'Segoe UI', sans-serif;
      overflow-x: hidden;
      margin: 0;
      padding: 0;
    }
    * {
      box-sizing: border-box;
    }
  
    /* Navbar */
    #navbar {
      padding: 1.5rem 0rem !important;
    }
    #navbar .navbar-brand img {
      height: 80px;
      width: auto;
    }
    #navbar .navbar-nav .nav-item {
      margin: 0 0.5rem;
    }
    #navbar .nav-link {
      font-size: 1.1rem;
      padding-bottom: 8px;
    }
    #navbar .btn {
      padding: .8rem 2rem;
      font-size: 1rem;
    }
  
    /* Hero section */
    .hero-section {
      height: 100vh;
      padding: 0 4rem;
    }
    .hero-content {
      max-width: 800px;
      margin: 0 auto;
    }
    .hero-content h1 {
      font-size: 3.5rem;
      line-height: 1.1;
    }
    .hero-section .btn-success {
      padding: 1rem 2.5rem;
      font-size: 1.2rem;
    }
  
    /* Intro text & button */
    .cctvtech-hero .col-lg-6 {
      padding-right: 4rem;
    }
    .read-more-btn {
      font-size: 1rem;
      padding: .8rem 2rem;
    }
  
    /* 3D image rotation */
    .image-rotation-container {
      max-width: 500px;
      height: 500px;
    }
    .image-rotation img {
      width: 150px !important;
    }
  
    /* Utility classes */
    .mt-5 {
      margin-top: 20rem !important;
    }
    .text-success2 {
      font-size: .9rem;
    }
  }
  