/* ===========================
   General Styling
=========================== */
body {
    font-family: Georgia, serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #121212;
  }
  
  /* ===========================
     Navbar
  =========================== */
  .navbar {
    position: fixed; /* Fixed navbar */
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: #19181e;
  }
  
  .logo img {
    width: auto;
    display: block;
  }
  
  /* Hide the detailed navigation */
  .nav-links {
    display: none;
  }
  
  /* Mobile navbar container & hamburger always visible */
  .mobile-navbar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    /* Adjust padding so hamburger is not behind scrollbar */
    padding: 0 40px;
    background-color: #19181e;
  }
  
  .mobile-navbar .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }
  
  .mobile-navbar .hamburger .bar {
    height: 3px;
    background-color: white;
  }
  
  /* Navigation menu (from hamburger) styled as absolute below the navbar */
  .nav-links-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #19181e;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: hidden;
  }
  
  .nav-links-mobile.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links-mobile a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px;
    margin: 10px 0;
    padding: 10px 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Remove bullets from navbar list items */
  .nav-links-mobile li {
    list-style: none;
  }
  
  /* ===========================
     Hero Section with Slider
  =========================== */
  .hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Set a generous padding and min-height for desktops */
    padding: 150px 20px;
    min-height: 500px;
    
    /* Background image properties */
    background-position: center;
    background-repeat:repeat;
    background-size: cover;
  }
  
  /* Ensure the hero-slider covers the whole area */
  .hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .hero-slider .slide.active {
    opacity: 1;
  }
  
  .hero h2 {
    position: relative;
    z-index: 2;
    font-weight: normal;
    font-size: 55px;
    font-family: Georgia, sans-serif;
  }
  
  /* Ensure "Rat&Cat" stays red */
  .hero span {
    color: #E74C3C !important;
  }
  
  /* Mobile-specific adjustments for the hero */
  @media (max-width: 600px) {
    .hero {
      padding: 80px 10px;
      min-height: 400px;
    }
    .hero h2 {
      font-size: 28px !important;
      line-height: 1.2;
      padding: 0 10px;
      margin: 0;
    }
  }
  
  /* ===========================
     Section Headings & CTA
  =========================== */
  .section-heading {
    font-size: 32px;
    margin-bottom: 20px;
    color: #12181e;
    text-align: center;
  }
  
  .section-heading-wht {
    font-size: 32px;
    margin-bottom: 20px;
    font-family: Georgia, serif;
    color: #fff;
    text-align: center;
  }
  
  .cta-text {
    font-weight: bold;
    color: #E74C3C;
    margin-top: 20px;
  }
  
  /* ===========================
     About Us Section
  =========================== */
  .about {
    padding: 50px 20px;
    text-align: center;
    background: #fff;
    color: #000;
    position: relative;
  }
  
  .about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
  }
  
  /* Red Border Lines for About */
  .about::before,
  .about::after {
    content: "";
    display: block;
    width: 100%;
    height: 8px;
    background-color: #E74C3C;
    position: absolute;
    left: 0;
  }
  .about::before {
    top: 0;
  }
  .about::after {
    bottom: 0;
  }
  
  /* ===========================
     Service Section
  =========================== */
  .services-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 400px;
    position: relative;
  }
  .services-top {
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* (Desktop only) Shift "Our Services" Heading Up */
  @media (min-width: 1025px) {
    .services-top .section-heading-wht {
      margin-top: -40px;
    }
  }
  .services-bottom {
    background-color: #FFFFFF;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .service-box {
    position: absolute;
    top: var(--box-top, 70%);
    left: var(--box-left, 50%);
    transform: translate(var(--box-translate-x, -50%), var(--box-translate-y, -50%));
    z-index: 10;
    width: var(--box-width, 80%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
  }
  
  /* ===========================
     Service Item (General)
  =========================== */
  .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #19181e;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 20px;
    padding: 40px 30px;
    width: 160px;
    height: 150px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    margin-bottom: 0;
  }
  .service-item img {
    width: 80px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
  }
  
  /* Service Details as bullet list */
  .service-details ul {
    list-style: none !important;
    margin: 10px 0 0 20px;
    padding: 0;
  }
  .service-details li {
    margin-bottom: 5px;
    font-weight: 200 !important;
    font-size: 14px !important;
  }
  
  /* Hover effect for service item */
  .service-item:hover {
    transform: translateY(-5px);
  }
  
  /* ===========================
     Desktop (min-width: 1025px) Behavior
  =========================== */
  @media (min-width: 1025px) {
    .service-item {
      position: relative;
      height: 150px;
    }
    .service-details {
      position: absolute;
      top: 80px;
      left: 0;
      right: 0;
      bottom: 0;
      max-height: calc(100% - 80px);
      overflow-y: auto;
      background: rgba(25, 24, 30, 0.95);
      padding: 10px;
      box-sizing: border-box;
      text-align: left;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.3s ease, transform 0.3s ease;
      pointer-events: none;
      scrollbar-width: thin;
      scrollbar-color: #E74C3C rgba(25, 24, 30, 0.95);
    }
    .service-details::-webkit-scrollbar {
      width: 8px;
    }
    .service-details::-webkit-scrollbar-track {
      background: rgba(25, 24, 30, 0.95);
      border-radius: 4px;
    }
    .service-details::-webkit-scrollbar-thumb {
      background-color: #E74C3C;
      border-radius: 4px;
      border: 2px solid rgba(25, 24, 30, 0.95);
    }
    .service-item:hover .service-details {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .service-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: transform 0.3s ease;
    }
    .service-item:hover .service-header {
      transform: translateY(-20px);
    }
    .service-header img {
      width: 100px;
      margin: 0 auto 15px;
    }
    .service-title {
      transition: opacity 0.3s ease;
    }
    .service-item:hover .service-title {
      opacity: 0;
    }
  }
  
  /* ===========================
     Accordion Arrow (Mobile)
  =========================== */
  .accordion-arrow {
    display: none;
    margin-left: 10px;
    transition: transform 0.3s ease;
  }
  .service-item.active .accordion-arrow {
    transform: rotate(180deg);
  }
  
  /* Service Header for mobile accordion */
  .service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* ===========================
     Services Grid
  =========================== */
  .services-grid {
    display: flex;
    overflow: hidden;
    gap: 20px;
    background-color: transparent;
    position: absolute;
    top: var(--box-top, 70%);
    left: var(--box-left, 50%);
    transform: translate(var(--box-translate-x, -50%), var(--box-translate-y, -50%));
    z-index: 10;
    width: var(--box-width, 80%);
    justify-content: center;
    align-items: center;
  }
  
  /* Navigation Slider Buttons */
  .prev-btn, .next-btn {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
  }
  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }
  
  /* ===========================
     Mobile and Tablet Styling (max-width: 1024px)
  =========================== */
  @media (max-width: 1024px) {
    header {
      position: relative;
    }
    .hero {
      padding: 100px 10px;
      min-height: 400px;
    }
    .hero h2 {
      font-size: 28px !important;
      line-height: 1.2;
      padding: 0 10px;
      margin: 0;
    }
    .nav-links {
      display: none;
    }
    .mobile-navbar {
      display: flex;
    }
    .mobile-navbar .hamburger {
      display: flex;
    }
    .nav-links-mobile {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: #19181e;
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin: 0;
      padding: 10px 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .nav-links-mobile.active {
      opacity: 1;
      visibility: visible;
    }
    .nav-links-mobile a {
      color: #fff !important;
      text-decoration: none !important;
      font-size: 18px !important;
      margin: 20px 0 !important;
      padding: 10px 0 !important;
      display: block !important;
      width: 100% !important;
      box-sizing: border-box;
    }
    .service-details {
      display: none;
    }
    .service-item.active .service-details {
      display: block;
      margin-top: 10px;
    }
    .accordion-arrow {
      display: inline-block;
    }
    .services-grid {
      position: static;
      transform: none;
      flex-direction: column;
      width: 90%;
      max-width: 400px;
      gap: 15px;
      justify-content: center;
      align-items: center;
      margin: 20px;
    }
    .services-container {
      height: auto;
    }
    .services-bottom {
      display: none;
    }
    .service-item {
      flex-direction: column;
      width: 100%;
      max-width: 350px;
      height: auto;
      padding: 15px;
      justify-content: flex-start;
      align-items: center;
      border-radius: 8px;
      background: linear-gradient(45deg, #19181e, #323232);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .service-header {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
    }
    .service-header img {
      width: 60px;
      height: auto;
      margin-right: 15px;
    }
    .service-header .service-title {
      flex: 1;
      font-size: 18px;
      text-align: left;
    }
    .service-details ul {
      list-style: none !important;
      padding-left: 20px;
      margin: 10px 0 0;
      text-align: left;
    }
    .service-details li {
      margin: 5px 0;
    }
    .team {
      padding-top: 20px;
    }
  }
  
  /* ===========================
     Team Section
  =========================== */
  .team {
    padding: 40px 20px;
    text-align: center;
    background: #FFFFFF;
    color: #000;
    position: relative;
    height: auto;
  }
  .team p {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
  }
  .team::after {
    content: "";
    display: block;
    width: 100%;
    height: 8px;
    background-color: #E74C3C;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  
  /* ===========================
     Contact Section
  =========================== */
  .contact {
    padding: 80px 20px;
    text-align: center;
    background: #19181e;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .contact p {
    font-size: 18px;
    margin: 5px 0;
  }
  .contact a {
    color: #fff !important;
    text-decoration: none;
    position: relative;
    z-index: 1;
  }
  
  /* ===========================
     Tilted Image Styling
  =========================== */
  .tilted-image {
    position: absolute;
    top: 58%;
    left: 90%;
    transform: translateY(-50%) rotate(8deg);
    max-width: 250px;
    z-index: -1;
  }
  
  /* ===========================
     Footer
  =========================== */
  footer {
    background: #19181e;
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 14px;
  }
  
  /* ------------------------------------------------------------------
     Ensure Service Details List is Light & Smaller
  --------------------------------------------------------------------- */
  .service-details,
  .service-details ul,
  .service-details li {
    font-weight: 200 !important;
    font-size: 14px !important;
  }
  
  /* ------------------------------------------------------------------
     Mobile Override for the Tilted Image
  --------------------------------------------------------------------- */
  @media (max-width: 1024px) {
    .tilted-image {
      top: 58.5%;
      left: 98.5%;
      max-width: 190px;
      transform: translate(-50%, -50%) rotate(4.5deg);
      opacity: 0.8;
    }
  }
  
  /* ===========================
     Portfolio Section Styling
  =========================== */
  .portfolio {
    padding: 50px 20px;
    background: #fff;
    color: #000;
    text-align: center;
  }
  .portfolio .portfolio-description {
    margin-bottom: 30px;
    font-family: Georgia, serif;
    font-size: 18px;
  }
  .portfolio .masonry {
    column-count: 3;
    column-gap: 15px;
  }
  .portfolio .masonry .item {
    break-inside: avoid;
    margin-bottom: 15px;
  }
  .portfolio .masonry .item img {
    width: 100%;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
  }
  .portfolio .masonry .item img:hover {
    transform: scale(1.05);
  }
  @media (max-width: 1024px) {
    .portfolio .masonry {
      column-count: 2;
    }
  }
  @media (max-width: 600px) {
    .portfolio .masonry {
      column-count: 1;
    }
  }
  
  /* ==================================================================
     VIEWPORT-SPECIFIC SERVICE TITLE FONT SIZE RULES
  ================================================================== */
  /* Desktop: width > 1025px */
  @media (min-width: 1025px) {
    .service-header .service-title {
      font-size: 26px !important;
    }
  }
  /* Tablet: 600px <= width <= 1024px */
  @media (min-width: 600px) and (max-width: 1024px) {
    .service-header .service-title {
      font-size: 23px !important;
    }
  }
  /* Mobile: width <= 600px */
  @media (max-width: 600px) {
    .service-header .service-title {
      font-size: 23px !important;
    }
  }
  /* When accordion is active in mobile/tablet, make the title bold */
  @media (max-width: 1024px) {
    .service-item.active .service-title {
      font-weight: bold !important;
    }
  }
  
  /* ==================================================================
     SCROLL ANIMATION EFFECTS
  ================================================================== */
  .animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  .animate.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ==================================================================
     NEW: Contact Icons Styling
  ================================================================== */
  .contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  .contact-icons a img {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease;
  }
  .contact-icons a img:hover {
    transform: scale(1.1);
  }
  .separator {
    color: white;
    font-size: 34px;
    padding: 0 3px;
  }
  
  /* ==================================================================
     NEW: Portfolio Images Lazy-Load Fade-in
  ================================================================== */
  .portfolio .masonry .item img {
    opacity: 1;  /* Images are loaded normally */
    transition: opacity 0.5s ease;
  }
  
  /* ==================================================================
     OVERRIDE: Disable scroll animation effect ONLY for "Our Works" Section
  ================================================================== */
  #portfolio .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* ==================================================================
     VIEW MORE Button for Portfolio Section
  ================================================================== */
  .view-more-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #E74C3C;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  .view-more-btn:hover {
    background-color: #c0392b;
  }
  
  /* Hide elements with .hidden class */
  .hidden {
    display: none;
  }
  
  /* NEW: Masonry Wrapper with Fixed Height and Fade Overlay for Portfolio Section */
  .masonry-wrapper {
    position: relative;
    height: 800px; /* Adjust this value to show approximately 6-8 images */
    overflow: hidden;
  }
  .fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Adjust for the desired fade effect height */
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
    z-index: 5;
  }
  
/* Clients Section */
.clients-section {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
}

.clients-container {
  max-width: 1300px;
  margin: 0 auto;
}

.clients-title {
  font-size: 32px;
  font-weight: 700;
  color: #e74c3c; /* red heading */
  margin-bottom: 10px;
}

.clients-subtitle {
  font-size: 16px;
  color: #333;
  margin-bottom: 50px;
}

.clients-rows {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.clients-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 30px;
}

.client-logo img {
  max-width: 160px;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
}

.client-logo img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.client-separator {
  width: 1px;
  height: 50px;
  background: #e74c3c;
}

/* Animations */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hide separators on small screens */
@media (max-width: 768px) {
  .clients-row {
    flex-wrap: wrap;
    gap: 30px;
  }
  .client-separator {
    display: none;
  }
}
