@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700&display=swap');

    @font-face {
      font-family: 'Humble Signation';
      src: url('Humble Signation.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
    }

    body {
      font-family: 'Bricolage Grotesque', sans-serif;
    }

    .wave {
      animation: wave-animation 2.5s infinite;
      transform-origin: 70% 70%;
      display: inline-block;
    }

    @keyframes wave-animation {
      0% { transform: rotate(0deg); }
      10% { transform: rotate(14deg); }
      20% { transform: rotate(-8deg); }
      30% { transform: rotate(14deg); }
      40% { transform: rotate(-4deg); }
      50% { transform: rotate(10deg); }
      60% { transform: rotate(0deg); }
    }

    .logo-text {
      font-family: 'Humble Signation', cursive;
      font-size: 2.1rem;
      line-height: 1;
      letter-spacing: -2px;
    }

    /* Smaller Brutalist Project Card */
    .brutalist-project-card {
      width: 100%;
      background-color: #fff;
      border: 4px solid #000;
      box-shadow: 6px 6px 0 #000;
      transition: all 0.3s ease;
      overflow: hidden;
    }

    @media (max-width: 768px) {
      .brutalist-project-card {
        box-shadow: 4px 4px 0 #000;
        max-width: 70%;
      }
      .brutalist-project-card:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0 #000;
      }
      .brutalist-project-card__content {
        padding: 1rem;
      }
      .brutalist-project-card__content h5 {
        font-size: 1rem;
        line-height: 1.2;
      }
      .brutalist-project-card__content p {
        font-size: 0.8rem;
      }
    }

    @media (min-width: 769px) {
      .brutalist-project-card:hover {
        transform: translate(-3px, -3px);
        box-shadow: 10px 10px 0 #000;
        .text-xl {color: #FE4300;}
      }
      .brutalist-project-card__content {
        padding: 1.25rem;
      }
      .brutalist-project-card__content h5 {
        font-size: 1.1rem;
      }
    }

    .brutalist-project-card__content {
      padding: 1.25rem;
      border-top: 4px solid #000;
    }

    .brutalist-project-card__content h5 {
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: -0.5px;
      color: #000;
      line-height: 1.3;
    }

    .brutalist-project-card__content p {
      font-weight: 600;
      color: #00000069;
      font-size: 0.9rem;
    }

    /* Hero & About Image Mobile */
    @media (max-width: 768px) {
      img[src*="avatar.svg"] {
        max-width: 130px !important;
        height: auto;
      }
      img[src*="adhi.png"] {
        max-width: 180px !important;
        height: auto;
        width: 100%;
      }
    }

    /* ==================== GRAPHIC DESIGN CAROUSEL ==================== */
.graphic-carousel .carousel-item {
  padding-bottom: 2rem;
}

.graphic-carousel .carousel-image {
  width: 80%;
  max-width: 520px;
  max-height: 520px;
  height: fit-content;
  object-fit: cover;
  border-radius: 20px;
}

.graphic-carousel .carousel-content {
  padding: 1rem 0.5rem;
}

.graphic-carousel .slide-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.75rem;
}

/* Custom Grey Buttons */
.carousel-control-prev-custom,
.carousel-control-next-custom {
  background-color: #d0d0d03e;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
}

.carousel-control-prev-custom:hover,
.carousel-control-next-custom:hover {
  background-color: #0000003b;
  transform: scale(1.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(0); /* Makes arrow white */
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .graphic-carousel .carousel-image {
    max-width: 80%;
    height:min-content;
    max-height:280px;
  }
  
  .graphic-carousel .slide-title {
    font-size: 1.5rem;
  }
  
  .graphic-carousel .slide-desc {
    font-size: 1rem;
  }
  
  .graphic-carousel .carousel-content {
    padding: 1.5rem 1rem 0;
  }
}

/* ==================== WEB DESIGNS SECTION ==================== */
.about-new {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.about-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.about-header span {
  color: #FE4300;
}

.web-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.web-project-card {
  position: relative;
  max-height: 160px;
  max-width: 80%;
  min-width: 380px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 40px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  min-height: 100px;
  overflow: hidden;
  color: rgb(15, 15, 15);
}

.web-project-card:hover {
  background: #FE4300;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.web-project-number {
  font-size: 4rem;
  font-weight: 900;
  color: #fe44007f;
  position: absolute;
  top: -15px;
  right: 15px;
  transition: 0.4s;
}

.web-project-card:hover .web-project-number {
  color: rgba(255, 255, 255, 0.556);
  transform: scale(1.2);
}

.web-project-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  position: relative;
  z-index: 2;
}

.web-project-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #FE4300;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: 0.3s;
}

.web-project-card:hover .web-project-link {
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .web-projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    min-width: 90%;
    align-content: center;
    align-items: center;
  }
  .web-project-card {
    min-height: 80px;
    max-width: 90%;
    padding: 20px 20px;
    min-width: 90%;
  }
  .web-project-card h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .about-header h2 {
    font-size: 2rem;
    line-height: 1.2;
  }}


  /* ==================== DARK MODE ==================== */
    .dark {
      background-color: #0a0a0a;
      color: #f1f1f1;
    }

    .dark .bg-white{ background-color: #111 !important; }
    .dark .imageborder{ border-color: #111 !important; }
    .dark .bg-gray-50 { background-color: #1a1a1a !important; }
    .dark .bg-gray-100 { background-color: #1f1f1f !important; }
    .dark .border-gray-200 { border-color: #333 !important; }
    .dark .text-gray-900,
    .dark .text-gray-800,
    .dark .text-gray-700,
    .dark .text-4xl , .numbers, .logo-textorange{color: #FE4300;}
    .dark .logo-text , .dark .text-sm {color: #f1f1f1;}
    .dark .contact , .dark .bodytextgrey {color: #f1f1f187;}
    .dark h1, .dark h2, .dark h3, .dark h4, .dark h5 , .dark .bodytextwhite{ 
      color: #f1f1f1; 
    }

    .dark .text-gray-500,
    .dark .text-gray-600 { color: #aaa; }

    /* Brutalist Cards */
    .dark .brutalist-project-card {
      background-color: #1a1a1a;
      border-color: #444;
      box-shadow: 6px 6px 0 #444;
    }

    /* Web Project Cards */
    .dark .web-project-card {
      background: #252525;
      border-color: rgba(255,255,255,0.1);
      color: white;
    }

     .dark .web-project-card:hover {
      background: #FE4300;
      border-color: rgba(255,255,255,0.1);
      color: white;
    }

    .dark .carousel-control-prev-custom , .dark .carousel-control-next-custom{
      background: #fe440036;
    }
    .dark .carousel-control-prev-custom:hover , .dark .carousel-control-next-custom:hover {
      background: #fe4400b7;
    }
    .dark .carousel-control-prev-icon, .dark .carousel-control-next-icon{
      filter: brightness(0) invert(1); /* Makes arrow white */
    }
    

    /* Header & Footer */
    .dark header, .dark footer { 
      background-color: #111 !important; 
      border-color: #333 !important; 
    }

    /* ==================== COMPACT ICON-IN-KNOB TOGGLE ==================== */
    #theme-toggle {
      position: fixed;
      bottom: 14px;
      right: 14px;
      scale: 0.8;
      z-index: 100;
      background: #f1f1f1;
      border: 3px solid #ddd;
      border-radius: 9999px;
      padding: 6px;
      transition: all 0.4s ease;
    }

    .dark #theme-toggle {
      background: #1f1f1f;
      border-color: #555;
    }

    #theme-toggle label {
      display: block;
      width: 52px;
      height: 52px;
      position: relative;
      cursor: pointer;
    }

    #theme-toggle input {
      display: none;
    }

    .toggle-knob {
      width: 100%;
      height: 100%;
      background: white;
      border-radius: 9999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dark .toggle-knob {
      background: #111;
    }

    input:checked + .toggle-knob {
      transform: translateX(0); /* We'll handle movement with JS */
    }

    /* ==================== TRULY SEAMLESS GALLERY - Mobile Friendly ==================== */
    .gallery-container {
      overflow: hidden;
      position: relative;
      width: 100%;
      margin: 40px 0;
    }

    .gallery-track {
      display: flex;
      gap: 20px;
      width: fit-content;
      will-change: transform;
    }

    .gallery-item {
      height: 260px;                    /* Desktop */
      border-radius: 16px;
      overflow: hidden;
      flex-shrink: 0;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

   /* ==================== MOBILE OPTIMIZATION ==================== */
    @media (max-width: 768px) {
      .gallery-item {
        height: 220px;           /* Reduced height for mobile */
        border-radius: 14px;
      }
      .gallery-item img {
             /* ← This is the key fix */
        background: #f8f8f8;
        object-fit: cover;   
        max-height: 190px;  /* Light background for portrait images */
      }
    }

    @media (max-width: 480px) {
      .gallery-item {
        height: 190px;         /* Smaller height = less zooming */
      }
      
      .gallery-item img {
             /* ← This is the key fix */
        background: #f8f8f8;
        object-fit: cover;   
        max-height: 190px;  /* Light background for portrait images */
      }
    }

/* ====================== UTILITIES ====================== */
.wave {
  animation: wave-animation 2.5s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave-animation {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}

.logo-text {
  font-family: 'HumbleSignation', cursive;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -2px;
}

/* ====================== SLIDER ====================== */
.work--lockup {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider--item {
  flex-shrink: 0;
  transition: all 0.4s ease;
  width: 70%;                    /* Mobile - 60% width */
}

.slider--item:hover {
  transform: translateY(-8px);
}

.slider--item-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
  max-width: 60%;
}

.slider--item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.slider--item:hover .slider--item-image img {
  transform: scale(1.08);
}

.slider--item-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.25rem;
  color: #111;
}

.slider--item-description {
  color: #666;
  line-height: 1.5;
  margin-top: 0.4rem;
}

/* Navigation Buttons */
.slider--prev, .slider--next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #FE4300;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(254, 67, 0, 0.2);
}

.slider--prev:hover, .slider--next:hover {
  background: #FE4300;
  color: white;
}

.slider--prev { left: 10px; }
.slider--next { right: 10px; }

.slider--prev svg, .slider--next svg {
  width: 28px;
  height: 28px;
  fill: #FE4300;
}

.slider--prev:hover svg, .slider--next:hover svg {
  fill: white;
}

/* Desktop - 30% width */
@media (min-width: 1024px) {
  .slider--item {
    width: 30%;
  }
  .slider--prev { left: -10px; }
  .slider--next { right: -10px; }
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .snap-x {
    scroll-snap-type: x mandatory;
  }

  /* ====================== CAROUSEL ====================== */
.work--lockup {
  position: relative;
  overflow: hidden;
}

.slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider--item {
  flex-shrink: 0;
  width: 100%;
  max-width: 420px;
}

.slider--prev, .slider--next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #FE4300;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(254, 67, 0, 0.25);
  transition: all 0.3s;
}

.slider--prev:hover, .slider--next:hover {
  background: #FE4300;
  color: white;
}

.slider--prev:hover svg, .slider--next:hover svg {
  fill: white;
}

.slider--prev { left: -10px; }
.slider--next { right: -10px; }

.slider--prev svg, .slider--next svg {
  width: 26px;
  height: 26px;
  fill: #FE4300;
}

/* Responsive */
@media (min-width: 1024px) {
  .slider--item {
    max-width: 460px;
  }
}

