/* Custom styles for The Web Dr */

/* Scale down header logo to 75% */
.header__logo-2 img {
    max-height: 45px;
    width: auto;
    transform: scale(0.75);
    transform-origin: left center;
}

/* Adjust logo container to prevent layout issues */
.header__logo-2 {
    display: flex;
    align-items: center;
}

/* Ensure both light and dark logos are properly sized */
.header__logo-2 .logo-dark img,
.header__logo-2 .logo-light img {
    max-height: 45px;
    width: auto;
}

/* Scale down service details page header logo to 60% */
.header__area .header__logo img,
.header__area .header__logo a img {
    max-height: 35px;
    width: auto;
    transform: scale(0.6);
    transform-origin: left center;
}

/* Ensure service details header logo container alignment */
.header__area .header__logo {
    display: flex;
    align-items: center;
}

/* Fix hero section paragraph text visibility */
.hero__text-3 p,
.hero__text-animation {
    color: #555555 !important;
    opacity: 1 !important;
}

/* Dark mode support for hero text */
[data-mode="dark"] .hero__text-3 p,
[data-mode="dark"] .hero__text-animation {
    color: #cccccc !important;
}

/* Fix hero title positioning to prevent overlap */
.hero__area-3 .sec-title-wrapper {
    position: relative;
    margin-bottom: 40px !important;
}

.hero__area-3 .title-left {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin-right: 20px !important;
    display: inline-block !important;
}

.hero__area-3 .title-right {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    display: inline-block !important;
    margin-left: -10px !important;
}

/* Ensure proper spacing between title and text */
.hero__area-3 .hero__text-3 {
    margin-top: 60px !important;
    position: relative;
    z-index: 10;
    clear: both;
}

/* Pricing Section Enhancements */
.price__table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.price__item {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Pay-Upon-Rank featured card */
.price__item:first-child {
    position: relative;
    overflow: hidden;
}

.price__item:first-child::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    z-index: -1;
    border-radius: 12px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.monthly-label,
.popular-label,
.best-value {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.accordion-subtitle {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Fix header on mobile */
    .header__area-3 {
        padding: 15px 20px !important;
        height: auto !important;
    }
    
    .header__inner-3 {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .header__logo-2 img {
        max-height: 35px !important;
        transform: scale(1) !important;
    }
    
    .header__nav-2 {
        display: none !important;
    }
    
    .header__nav-icon-3 {
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .header__nav-icon-3 .search-icon {
        display: none !important;
    }
    
    /* Fix hero section on mobile */
    .hero__area-3 {
        padding: 60px 15px 40px !important;
        min-height: auto !important;
        overflow: hidden !important;
    }
    
    .hero__area-3 .container {
        padding: 0 !important;
    }
    
    .hero__area-3 .sec-title-wrapper {
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    .hero__area-3 .sec-sub-title {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .hero__area-3 .title-left,
    .hero__area-3 .title-right {
        font-size: 2rem !important;
        display: inline-block !important;
        margin: 0 !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
    }
    
    .hero__area-3 .title-left {
        margin-right: 5px !important;
    }
    
    .hero__area-3 .hero__text-3 {
        margin-top: 30px !important;
        padding: 0 15px !important;
        text-align: center !important;
    }
    
    .hero__area-3 .hero__text-3 p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Fix hero button on mobile */
    .hero__btn {
        margin-top: 30px !important;
        text-align: center !important;
    }
    
    .hero__btn .btn-item {
        padding: 12px 30px !important;
        font-size: 0.9rem !important;
    }
}

/* Scroll Container Effect Styles */
.heroimg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 1rem;
}

/* Main Scroll Container */
#scroll-container {
  height: 68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.5rem;
  background: var(--black-2);
}

/* Dark mode support */
[data-mode="dark"] #scroll-container {
  background: var(--black-2);
}

/* Perspective Wrapper for 3D Effect */
.perspective-wrapper {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  width: 100%;
  position: relative;
  perspective: 600px;
}

/* Animated Header */
#scroll-header {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  will-change: transform;
}

.scroll-title {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1rem;
}

[data-mode="dark"] .scroll-title {
  color: var(--white-2);
}

.scroll-highlight {
  background: linear-gradient(90deg, #9a9586, #f7ec55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.scroll-subtitle {
  font-size: 1.125rem;
  color: #a1a1aa;
  margin-top: 1rem;
}

/* Animated Card */
#scroll-card {
  max-width: 64rem;
  margin-top: 8vh;
  margin-left: auto;
  margin-right: auto;
  height: 30rem;
  width: 100%;
  border: 4px solid #6c6c6c;
  padding: 0.5rem;
  background-color: #323232;
  border-radius: 30px;
  box-shadow: 0 9px 92px -3px oklch(50% .4051 240 /.085), 0 3.7px 3.7px 5px #00000042,
  0 -9.4px 9.5px -3px oklch(92% .10018 100 / .0475), 0 149px 60px #0000000a, 0 23px 6.5px 50px #00000003;
  will-change: transform;
  align-items: center;
  align-content: center;
  justify-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
}

.card-content {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
   z-index: 9;
  background: black url('assets/imgs/new/software-code1.webp') no-repeat center/cover;
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
  #scroll-container {
    height: 80rem;
    padding: 5rem;
  }

  .perspective-wrapper {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }

  .scroll-title {
    font-size: 3.75rem;
  }

  #scroll-card {
    height: 40rem;
    padding: 1.5rem;
  }

  .card-content {
    border-radius: 1.5rem;
    padding: 1rem;
  }
}

.blogo {
  max-width: 145px !important;
  height: auto;
}

/* Marquee Portfolio Section */
.marquee-portfolio {
  background: var(--white);
  position: relative;
  overflow: hidden;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

[data-mode="dark"] .marquee-portfolio {
  background: var(--black-2);
}

.marquee-subtitle {
  font-size: 1.125rem;
  color: #666;
  margin-top: 1rem;
  font-weight: 400;
}

[data-mode="dark"] .marquee-subtitle {
  color: #999;
}

/* Marquee Container */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1.25rem;
  }
}

/* Marquee Rows */
.marquee-row {
  display: flex;
  margin-bottom: 1.5rem;
  position: relative;
}

.marquee-row:last-child {
  margin-bottom: 0;
}

/* Marquee Content Container */
.marquee-content {
  display: flex;
  gap: 1.5rem;
  padding-left: 1.5rem;
  animation: marquee 40s linear infinite;
}

/* Special styling for image row */
.marquee-image-row {
  height: 340px;
  overflow: hidden;
  margin-bottom: 5rem;
}

.marquee-image-content {
  display: flex;
  gap: 0;
  padding-left: 0;
  animation: marquee 60s linear infinite;
}

.marquee-strip-image {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 280px;
}

/* Reverse direction for second row */
.marquee-row-2 .marquee-content {
  animation: marquee-reverse 45s linear infinite;
}

/* Bento Box Base Styles */
.bento-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-height: 250px;
}

/* Specific Box Positioning for 5-Box Layout */
@media (min-width: 768px) {
  /* Box 1 - Top Left Large (2x1) */
  .box-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  /* Box 2 - Top Right */
  .box-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  /* Box 3 - Bottom Left */
  .box-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  /* Box 4 - Bottom Center */
  .box-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  /* Box 5 - Right Tall (spans 2 rows) */
  .box-5 {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
  }
}

.bento-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

[data-mode="dark"] .bento-box {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-mode="dark"] .bento-box:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.bento-link {
  text-decoration: none;
  display: block;
  height: 100%;
  width: 100%;
}

.bento-content {
  position: relative;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.marquee-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  transition: background 0.3s ease;
}

.bento-box:hover .bento-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.bento-text {
  color: white;
  position: relative;
  z-index: 2;
}

.bento-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #f7ec55;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: white;
}

.marquee-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Accent Card Styles */
.accent-card {
  background: linear-gradient(135deg, #7FFF00 0%, #32CD32 100%);
}

.accent-card .marquee-overlay {
  background: linear-gradient(135deg, rgba(127, 255, 0, 0.9) 0%, rgba(50, 205, 50, 0.9) 100%);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.marquee-card:hover .accent-card .marquee-overlay {
  background: linear-gradient(135deg, rgba(111, 239, 0, 0.95) 0%, rgba(34, 189, 34, 0.95) 100%);
}

.marquee-stat {
  font-size: 3rem;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0;
  line-height: 1;
}

.marquee-stat-label {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Gradient Overlays for Fade Effect */
.marquee-gradient {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  z-index: 10;
  pointer-events: none;
}

.marquee-gradient-left {
  left: 0;
  background: linear-gradient(90deg, 
    var(--white) 0%, 
    var(--white) 20%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0.4) 60%,
    transparent 100%
  );
}

.marquee-gradient-right {
  right: 0;
  background: linear-gradient(-90deg, 
    var(--white) 0%, 
    var(--white) 20%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0.4) 60%,
    transparent 100%
  );
}

[data-mode="dark"] .marquee-gradient-left {
  background: linear-gradient(90deg, 
    var(--black-2) 0%, 
    var(--black-2) 20%,
    rgba(27, 27, 30, 0.8) 40%,
    rgba(27, 27, 30, 0.4) 60%,
    transparent 100%
  );
}

[data-mode="dark"] .marquee-gradient-right {
  background: linear-gradient(-90deg, 
    var(--black-2) 0%, 
    var(--black-2) 20%,
    rgba(27, 27, 30, 0.8) 40%,
    rgba(27, 27, 30, 0.4) 60%,
    transparent 100%
  );
}

/* Marquee Card Styles */
.marquee-card {
  flex: 0 0 auto;
  width: 320px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f5f5f5;
  position: relative;
}

.marquee-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

[data-mode="dark"] .marquee-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: #1a1a1a;
}

[data-mode="dark"] .marquee-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.marquee-link {
  text-decoration: none;
  display: block;
  height: 100%;
  width: 100%;
}

.marquee-card-content {
  position: relative;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.marquee-text {
  color: white;
  position: relative;
  z-index: 2;
}

.marquee-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: block;
}

.marquee-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: white;
}

.marquee-card:hover .marquee-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Marquee Animations */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Pause on hover */
.marquee-row:hover .marquee-content {
  animation-play-state: paused;
}

/* Scroll-reactive speed control */
.marquee-content.scroll-fast {
  animation-duration: 20s;
}

.marquee-content.scroll-slow {
  animation-duration: 60s;
}

/* Responsive card sizes */
@media (max-width: 768px) {
  .marquee-card {
    width: 280px;
    height: 200px;
  }
  
  .marquee-image-row {
    height: 180px;
  }
  
  .marquee-gradient {
    width: 15%;
  }
  
  .marquee-gradient-left {
    background: linear-gradient(90deg, 
      var(--white) 0%, 
      rgba(255, 255, 255, 0.6) 50%,
      transparent 100%
    );
  }
  
  .marquee-gradient-right {
    background: linear-gradient(-90deg, 
      var(--white) 0%, 
      rgba(255, 255, 255, 0.6) 50%,
      transparent 100%
    );
  }
  
  [data-mode="dark"] .marquee-gradient-left {
    background: linear-gradient(90deg, 
      var(--black-2) 0%, 
      rgba(27, 27, 30, 0.6) 50%,
      transparent 100%
    );
  }
  
  [data-mode="dark"] .marquee-gradient-right {
    background: linear-gradient(-90deg, 
      var(--black-2) 0%, 
      rgba(27, 27, 30, 0.6) 50%,
      transparent 100%
    );
  }
}

@media (max-width: 480px) {
  .marquee-card {
    width: 240px;
    height: 180px;
  }
}

.bento-accent-box .bento-stat-label {
  font-size: 1.25rem;
  color: #1a1a1a;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.bento-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.stat-text {
  display: block;
  font-size: 0.875rem;
  color: #2a2a2a;
  font-weight: 600;
}


/* GSAP Animation Initial States */
.bento-slide-up {
  opacity: 0;
  transform: translateY(80px);
}

.bento-slide-left {
  opacity: 0;
  transform: translateX(80px);
}

.bento-slide-right {
  opacity: 0;
  transform: translateX(-80px);
}

/* Additional Mobile Responsive Fixes */
@media (max-width: 767px) {
    /* Global mobile fixes */
    body {
        overflow-x: hidden !important;
    }
    
    #smooth-wrapper,
    #smooth-content {
        overflow-x: hidden !important;
    }
    
    /* Fix container widths on mobile */
    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Fix scroll container on mobile */
    #scroll-container {
        height: auto !important;
        padding: 2rem 1rem !important;
    }
    
    .perspective-wrapper {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        perspective: none !important;
    }
    
    #scroll-header {
        padding: 0 15px !important;
    }
    
    .scroll-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .scroll-subtitle {
        font-size: 0.95rem !important;
        padding: 0 10px !important;
    }
    
    #scroll-card {
        height: 250px !important;
        margin-top: 3vh !important;
        padding: 0.25rem !important;
        transform: none !important;
    }
    
    /* Fix service sections on mobile */
    .service__area {
        padding: 60px 0 !important;
    }
    
    .service__item {
        padding: 30px 20px !important;
        margin-bottom: 20px !important;
    }
    
    /* Fix about section on mobile */
    .about__area-3 {
        padding: 60px 0 !important;
    }
    
    .about__title-wrapper {
        padding: 0 15px !important;
    }
    
    .about__content-3 {
        padding: 30px 15px !important;
    }
    
    /* Fix portfolio/marquee section on mobile */
    .marquee-portfolio {
        padding: 40px 0 !important;
    }
    
    .marquee-container {
        padding: 0 !important;
    }
    
    .marquee-row {
        margin-bottom: 1rem !important;
    }
    
    .marquee-image-row {
        height: 200px !important;
        margin-bottom: 2rem !important;
    }
    
    /* Fix bento grid on mobile */
    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 15px !important;
    }
    
    .bento-box {
        min-height: 200px !important;
        margin-bottom: 15px !important;
    }
    
    /* Reset grid positioning on mobile */
    .box-1, .box-2, .box-3, .box-4, .box-5 {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
    }
    
    /* Fix CTA section on mobile */
    .cta__area {
        padding: 60px 0 !important;
    }
    
    .cta__content {
        padding: 0 15px !important;
        text-align: center !important;
    }
    
    .cta__title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    /* Fix footer on mobile */
    .footer__area {
        padding-top: 40px !important;
    }
    
    .footer__inner {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .footer__widget,
    .footer__widget-2,
    .footer__widget-3,
    .footer__widget-4 {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }
    
    /* Fix offcanvas menu on mobile */
    .offcanvas__area {
        width: 100% !important;
    }
    
    .offcanvas__body {
        padding: 20px !important;
    }
    
    /* Prevent horizontal scroll */
    * {
        max-width: 100vw !important;
    }
    
    /* Fix buttons on mobile */
    .wc-btn-primary,
    .wc-btn-secondary,
    .btn-item {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
        white-space: normal !important;
    }
    
    /* Fix text overflow on mobile */
    p, span, div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Hide desktop-only elements */
    .cursor1,
    .cursor2,
    .switcher__area {
        display: none !important;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    .hero__area-3 .title-left,
    .hero__area-3 .title-right {
        font-size: 1.5rem !important;
    }
    
    .scroll-title {
        font-size: 1.5rem !important;
    }
    
    #scroll-card {
        height: 200px !important;
    }
    
    .marquee-card {
        width: 90vw !important;
        max-width: 320px !important;
    }
    
    .bento-box {
        min-height: 180px !important;
    }
}