/* banner.css */

/* Base variables (Ensure these align with your global styles) */
:root {
  --primary: #0f172a;       /* Dark blue/slate */
  --secondary: #1e293b;     /* Slightly lighter dark blue/slate */
  --accent: #38bdf8;       /* Lighter, vibrant blue (Sky Blue) */
  --accent-light: #7dd3fc;   /* Even lighter blue */
  --white: #ffffff;
  --light: #f1f5f9;         /* Very light gray/off-white */
  --gray: #94a3b8;         /* Medium gray */
  --dark-gray: #64748b;     /* Darker gray */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;        /* Slightly reduced for potentially tighter layout */
  --border-radius: 6px;    /* Slightly rounder */
  --transition: all 0.3s ease; /* Smoother default transition */
  /* NEW: Header Height Variables (Update these values!) */
  --header-height-desktop: 80px; /* <<< UPDATE if your desktop header height changes */
  --header-height-mobile: 60px;  /* <<< UPDATE if your mobile header height changes */
}

/* Base button styles (Ensure these align with your global styles) */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem; /* Slightly larger padding */
  border-radius: var(--border-radius);
  font-weight: 600; /* Bolder */
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary); /* Dark text on light accent */
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-light);
  color: var(--primary);
  transform: translateY(-2px); /* Subtle lift */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* --- Product Showcase Section Styles --- */
.product-showcase {
  position: relative;
  width: 100%;
  min-height: 350px; /* Slightly increased min-height */
  /* Refined Gradient with slightly different angle/colors */
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  display: flex; /* Keeps flex layout */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Padding adjusted using header height variables */
  padding-top: calc(var(--header-height-desktop) + var(--space-md));
  padding-bottom: calc(var(--space-lg) + 20px); /* Extra space below dots */
  box-shadow: inset 0 -8px 20px rgba(0,0,0,0.25); /* Enhanced inset shadow */

  /* Optional: Subtle noise overlay */
  /* background-image: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%),
                     url('/images/noise.png'); */ /* Create a subtle noise png */
  /* background-blend-mode: multiply; */
}

.showcase-slide {
  position: absolute;
  /* Positioning adjusted using header height variables */
  top: calc(var(--header-height-desktop) + var(--space-md));
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-height-desktop) - var(--space-md) - var(--space-lg) - 20px); /* Adjust height calc */
  display: flex;
  align-items: center;
  justify-content: space-around; /* Keeps content spread */
  padding: var(--space-md) var(--space-xl); /* Adjusted padding */
  opacity: 0;
  /* Smoother Transition with slight horizontal movement */
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
  transform: translateX(30px); /* Start slightly off-screen right */
  z-index: 1;
  gap: var(--space-lg);
}

/* Non-active slides that AREN'T the "next" one immediately */
.showcase-slide:not(.active) {
   /* If you want previous slides to slide out left, you'd need JS to add a class
      Example: JS adds 'exiting-left' which sets transform: translateX(-30px); */
    transform: translateX(30px); /* Default out position (right) */
}


.showcase-slide.active {
  opacity: 1;
  transform: translateX(0); /* Slide into view */
  z-index: 2;
}

.showcase-content {
  flex: 1;
  max-width: 550px; /* Slightly adjusted max-width */
  z-index: 1; /* Ensure text is above potential image overlaps */
  position: relative; /* Needed for z-index */
}

 /* Refined animations with potentially adjusted timings */
.showcase-slide.active .showcase-content h2,
.showcase-slide.active .showcase-content h3 {
  animation: fadeInDownBanner 0.7s ease-out 0.3s backwards; /* Slightly faster */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); /* Added Text Shadow */
}
.showcase-slide.active .showcase-content p {
   animation: fadeInUpBanner 0.7s ease-out 0.5s backwards; /* Staggered */
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Added Text Shadow */
}
 .showcase-slide.active .showcase-content .btn {
   animation: fadeInUpBanner 0.7s ease-out 0.7s backwards; /* Staggered */
 }
 .showcase-slide.active .showcase-image {
    animation: zoomInBanner 0.9s ease-out 0.4s backwards; /* Slightly slower zoom */
 }


.showcase-content h2,
.showcase-content h3 {
  /* Using clamp for responsive font size */
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); /* Slightly larger max size */
  margin-bottom: var(--space-sm);
  font-weight: 700; /* Keep bold */
  color: var(--white);
  line-height: 1.25; /* Slightly adjusted line height */
}

.showcase-content p {
  font-size: clamp(1rem, 2.5vw, 1.15rem); /* Responsive font size */
  margin-bottom: var(--space-md);
  color: var(--light); /* Use light color from variables */
  line-height: 1.65; /* Slightly increased line height */
  max-width: 500px; /* Constrain paragraph width slightly more */
}

/* Showcase-specific button style override - Using primary button styles now */
/* .showcase-content .btn-primary {
     Keep the default .btn-primary look defined above for consistency
     or redefine specifically if needed
} */

/* General image container styles for ALL slides */
.showcase-image {
  flex: 0 1 45%; /* Allow shrinking, slightly larger basis */
  max-width: 450px; /* Default max size */
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Slightly larger radius */
  /* Refined shadow - using filter for potentially better effect on transparent PNGs */
  /* box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); */
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
  /* Optional: Add subtle effect */
  /* transition: transform 0.3s ease; */
}
/* Optional hover effect for image */
/* .showcase-image:hover img {
  transform: scale(1.03);
} */


/* General vertical positioning for ALL slides (applies default shift) */
/* Note: This is overridden by slide-specific rules below */
.showcase-slide > .showcase-content,
.showcase-slide > .showcase-image {
  margin-top: -15px; /* Default slight lift */
  /* transition: margin-top 0.5s ease-out; */ /* Add if you want smooth vertical shift on slide change */
}


/* Navigation Dots */
.showcase-dots {
  position: absolute;
  bottom: var(--space-md); /* Consistent spacing */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: calc(var(--space-sm) + 2px); /* Slightly increased gap */
  z-index: 3;
  padding: 0;
  margin: 0;
}

.showcase-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4); /* Less transparent */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Added transform transition */
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5); /* Subtle border */
  font-size: 0; /* Keep visually hidden text for screen readers */
}

.showcase-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.1); /* Slight scale on hover */
}

.showcase-dot.active {
  background-color: var(--white);
  transform: scale(1.2); /* Make active dot slightly larger */
  border: none;
}
.showcase-dot:focus {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px; /* Increased offset */
}
.showcase-dot:focus:not(:focus-visible) {
    outline: none;
}


/* Animation Keyframes specific to banner (kept the same, good subtle effects) */
@keyframes fadeInDownBanner {
    from { opacity: 0; transform: translateY(-25px); } /* Slightly more distance */
    to { opacity: 1; transform: translateY(0); }
}
 @keyframes fadeInUpBanner {
    from { opacity: 0; transform: translateY(25px); } /* Slightly more distance */
    to { opacity: 1; transform: translateY(0); }
}
 @keyframes zoomInBanner {
    from { opacity: 0; transform: scale(0.95); } /* Start slightly larger */
    to { opacity: 1; transform: scale(1); }
 }

/* Responsive adjustments for showcase */
 @media (max-width: 768px) {
  .product-showcase {
     /* Padding adjusted using header height variable */
     padding-top: calc(var(--header-height-mobile) + var(--space-sm));
     min-height: 480px; /* Adjust height for mobile */
     padding-bottom: calc(var(--space-lg) + 15px); /* Adjust bottom padding */
  }
   .showcase-slide {
     flex-direction: column;
     text-align: center;
      /* Positioning adjusted using header height variable */
     top: calc(var(--header-height-mobile) + var(--space-sm));
     height: calc(100% - var(--header-height-mobile) - var(--space-sm) - var(--space-lg) - 15px); /* Adjust height calc */
     padding: var(--space-md); /* Mobile padding */
     justify-content: center; /* Center vertically in column */
     gap: var(--space-md); /* Reduced gap for mobile */
   }
    .showcase-content {
        max-width: 100%;
        order: 2; /* Text below image */
        margin-top: 0; /* Reset default margin */
    }
    /* General mobile image container styles */
    .showcase-image {
        order: 1; /* Image above text */
        flex-basis: auto;
        max-width: 70%; /* Default mobile max size */
        margin-bottom: 0; /* Reset */
        width: auto;
        margin-top: -10px; /* Default mobile vertical position */
    }

    .showcase-content h2,
    .showcase-content h3 {
         font-size: 1.7rem; /* Adjusted mobile heading size */
    }
     .showcase-content p {
         font-size: 1rem; /* Standard mobile paragraph size */
         max-width: 90%; /* Allow slightly wider paragraphs */
         margin-left: auto;
         margin-right: auto;
     }
     .showcase-content .btn {
        padding: 0.7rem 1.5rem; /* Slightly adjust button padding */
     }
     .showcase-dots {
        bottom: 10px; /* Closer to bottom edge on mobile */
     }

 }
/* --- End Product Showcase Section Styles --- */


/* ================================================================== */
/* ================================================================== */
/* ==== START: INDIVIDUAL SLIDE IMAGE CONTROLS ==== */
/* These overrides allow fine-tuning image size/position per slide. */
/* Review if these are all necessary after general style updates. */
/* ================================================================== */
/* ================================================================== */

/* ==== SLIDE 1: website_generator_img.png ==== */
#slide-1 .showcase-image {
  max-width: 780px;  /* DESKTOP Size Override */
  margin-top: -50px; /* DESKTOP Position Override */
}
@media (max-width: 768px) {
  #slide-1 .showcase-image {
    max-width: 100%;   /* MOBILE Size Override */
    margin-top: -50px; /* MOBILE Position Override */
  }
}

/* ==== SLIDE 2: Chatbot_img.png ==== */
#slide-2 .showcase-image {
  max-width: 325px;  /* DESKTOP Size Override */
  margin-top: -55px; /* DESKTOP Position Override */
}
@media (max-width: 768px) {
  #slide-2 .showcase-image {
    max-width: 50%;   /* MOBILE Size Override */
    margin-top: -50px; /* MOBILE Position Override */
  }
}

/* ==== SLIDE 3: Custom_Code_img.png ==== */
#slide-3 .showcase-image {
  max-width: 450px;  /* DESKTOP Size Override */
  margin-top: -35px; /* DESKTOP Position Override */
}
/* ADD THIS RULE FOR DESKTOP: */
#slide-3 .showcase-content {
  margin-top: -30px; /* Adjust this value as needed. Try -25px, -35px, -40px */
}

@media (max-width: 768px) {
  #slide-3 .showcase-image {
    max-width: 60%;   /* MOBILE Size Override (matches default) */
    margin-top: -30px; /* MOBILE Position Override (matches default) */
  }
  /* Reset the content margin on mobile if needed, although it's likely already reset */
  #slide-3 .showcase-content {
     margin-top: 0; /* Ensure it doesn't inherit the desktop lift */
  }
}
/* ==== END: INDIVIDUAL SLIDE IMAGE CONTROLS ==== */