:root {
  --primary: #4a3aff;
  --accent: #cf59ff;
  --dark: #0a0a0b;
  --light: #f8f9fa;
  --glass: rgba(255, 255, 255, 0.03);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* BENTO GRID */
.services-section {
  padding: 100px 0;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bento-box {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 40px;
}
.large-box {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--primary);
}
.wide-box {
  grid-column: span 2;
}
.purple {
  background: var(--accent);
}

/* Container Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Bento Boxes Base Styling */
.bento-box {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background-position: top center;
    background-size: 130%; /* Scroll ke liye thoda bara size */
    transition: background-position 4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease;
}

/* Hover: Background Scroll */
.bento-box:hover {
    background-position: bottom center;
}

/* --- TEXT REVEAL LOGIC --- */

/* Hide H3 and P initially */
.bento-box h3, 
.bento-box p {
    color: white;
    margin: 0;
    opacity: 0;
    transform: translateY(30px); /* Neeche se start hoga */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 2;
}

/* P (Description) ko thoda late dikhane ke liye delay */
.bento-box p {
    transition-delay: 0.1s;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Hover karne par Text reveal */
.bento-box:hover h3, 
.bento-box:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Overlay taake text parha jaye */
.bento-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 10%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.bento-box:hover::after {
    opacity: 1;
}
.mar-h {
  height: 360px;
}
.mar-h-1 {
    margin-top: 165px;
  height: 350px;
}

/* Specific Sizes for Layout (Bento Style) */
@media (min-width: 992px) {
    .large-box { grid-row: span 2; height: 100%; }
    .wide-box { grid-column: span 2; }
}
/* PROCESS */
.process-section {
  background-image: linear-gradient(160deg, #941c97 0%, #337b8b 80%);
  padding: 100px 0;
  text-align: center;
}
.process-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 50px;
}
.step span {
  color: white;
  font-size: 4rem;
  font-weight: 900;
  opacity: 0.1;
  display: block;
}
.step h4 {
  /* margin-top: -30px; */
  font-size: 1.5rem;
}

.process-section {
    padding: 80px 0;
    background: var(--dark);
    /* background-image: linear-gradient(160deg, #941c97 0%, #337b8b 80%); */
}

.process-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Mobile responsiveness ke liye */
}


.step {
    position: relative;
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 40px 20px;
    /* background: #111; */
    border-radius: 20px;
    transition: all 0.4s ease;
    /* border: 1px solid #ffffff; */
}

/* Hover effect for the box */
.step:hover {
    /* background: #1a1a1a; */
    transform: translateY(-10px);
    border-color: #555;
}

/* Numbers Styling */
.step span {
    font-size: 33px;
    font-weight: bold;
    color: #fff;
    background: rgba(255,255,255,0.05);
    /* padding: 8px 15px; */
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Heading Styling */
.step h4 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    letter-spacing: 1px;
}

/* --- THE ARROWS --- */
/* Sirf Desktop par arrows dikhane ke liye (Aakhri step ke baad nahi) */
@media (min-width: 992px) {
    .step:not(:last-child)::after {
        content: '→'; /* Aap icon bhi use kar sakte hain */
        position: absolute;
        right: -15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 48px;
        color: #fff;
        font-weight: 300;
        z-index: 2;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .process-row {
        flex-direction: column; /* Vertical layout on mobile */
    }
    
    .step {
        width: 100%;
    }

    /* Mobile par arrow ko neeche dikhane ke liye */
    .step:not(:last-child)::after {
        content: '↓'; 
        display: block;
        margin-top: 20px;
        font-size: 25px;
        color: #fff;
    }
}

/* CTA WITH OVERLAY */
.emt-cta {
  position: relative;
  padding: 150px 0;
  background: url("https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2000");
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}
.overlay-black {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

/* BUTTONS */
.btn-fill {
  background: var(--primary);
  color: white;
  padding: 18px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}
.btn-white {
  background: white;
  color: black;
  padding: 18px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .process-row {
    flex-direction: column;
    gap: 50px;
  }
  h1 {
    font-size: 3rem;
  }
   .mar-h {
  height: 180px;
}
  .mar-h-1 {
    margin-top: 0px;
  height: 180px;
}
}
