/* CSS Reset & Variables */
:root {
  --bg-dark: #d6dde4;
  --bg-card: #ffffff;
  --text-main: #212529;
  --text-muted: #6c757d;
  --accent: #5a32a3; /* darker accent for light theme */
  --gradient: linear-gradient(135deg, #7b2cbf 0%, #3a0ca3 100%);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}



h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.decorative-text {
  font-family: 'Caveat', cursive;
}

/* Custom UI Utils & Buttons */
.btn {
  transition: all 0.3s ease;
}
.btn:hover {
  transform: scale(1.05) translateY(-2px) !important;
  filter: brightness(1.15);
  font-weight: 700 !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  z-index: 10;
}

.btn-gradient {
  background: var(--gradient);
}
.btn-outline-dark:hover {
  background-color: var(--text-main);
  color: var(--bg-dark);
}

.hover-dark:hover {
  color: var(--text-main) !important;
  transition: 0.3s ease;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.custom-navbar {
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  padding-block: 20px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding-block: 10px;
  margin-top: 15px;
  margin-inline: auto;
  width: 95%;
  max-width: 1200px;
  border-radius: 100px;
  left: 0;
  right: 0;
}
@media (max-width: 991px) {
  .custom-navbar.navbar-scrolled {
     border-radius: 24px;
     padding-inline: 15px;
  }
}
.navbar-brand.logo {
  font-weight: 800;
  font-size: 1.7rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}
.navbar-brand.logo:hover {
  transform: scale(1.05);
}
.nav-link {
  color: var(--text-main);
  font-weight: 600;
  margin: 0 0.2rem;
  padding: 0.5rem 1.2rem !important;
  border-radius: 100px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-link:hover {
  background-color: var(--text-main);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Hero Section */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero {
  min-height: 100vh;
  padding-top: 100px;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(123, 44, 191, 0.25), transparent 60%),
    linear-gradient(rgba(214, 221, 228, 0.85), rgba(214, 221, 228, 0.92)),
    url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-title {
  line-height: 1.2;
  background: linear-gradient(to right, var(--text-main) 20%, var(--accent) 40%, var(--accent) 60%, var(--text-main) 80%);
  background-size: 200% auto;
  color: var(--text-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}
.hero-subtitle {
  max-width: 700px;
}
.pill-placeholder {
  display: inline-block;
  width: 120px;
  height: 60px;
  background: transparent;
  border-radius: 100px;
  vertical-align: middle;
  margin: 0 10px;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .pill-placeholder {
    width: 80px;
    height: 40px;
  }
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-content {
  display: flex !important;
  width: max-content;
  animation: marquee 20s linear infinite;
  will-change: transform;
}
.marquee-item {
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); } /* Loops exactly 1/4th of the way */
}

/* Global Images Floating */
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

img {
  animation: float 4s ease-in-out infinite;
  transition: scale 0.4s ease, translate 0.4s ease;
  will-change: transform;
}

img:hover {
  animation-play-state: paused;
  scale: 1.03;
}

/* Services */
.service-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  min-height: 350px;
}

/* Contact */
.check-chips .btn-check:checked + .btn {
  background-color: var(--text-main);
  color: var(--bg-dark);
  border-color: var(--text-main);
}
.form-control:focus, .form-select:focus {
  background-color: var(--bg-dark);
  color: var(--text-main);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(213, 255, 63, 0.25);
}

/* CTA Banner / All-in-one section */
.cta-box {
  background: var(--gradient);
  margin-block: 3rem;
}
.img-composition {
  position: absolute;
  top: -60px;
  right: 0;
  width: 480px;
  height: 440px;
  pointer-events: auto;
}
.comp-img {
  position: absolute;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  object-fit: cover;
  border: 4px solid var(--bg-card);
}
.comp-img:hover {
  z-index: 10 !important;
}
.img-1 { /* eBook */
  width: 180px;
  height: 260px;
  top: 0;
  left: 20px;
  z-index: 2;
}
.img-2 { /* Design */
  width: 220px;
  height: 200px;
  top: 50px;
  right: 20px;
  z-index: 1;
}
.img-3 { /* eCommerce */
  width: 200px;
  height: 240px;
  bottom: 0px;
  right: 60px;
  z-index: 3;
}
.img-4 { /* App Dev */
  width: 130px;
  height: 270px;
  bottom: -20px;
  left: 100px;
  z-index: 4;
  border-radius: 20px !important;
  border: 6px solid #1a1a1a;
}
@media (max-width: 991px) {
  .cta-box { margin-block: 1rem; }
  .img-composition { display: none; }
}

/* Pricing Cards */
.class-pricing-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.class-pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.15) !important;
  z-index: 1;
}

/* Custom Accordion Header Tweaks */
.custom-accordion {
  border: none;
}
.custom-accordion .accordion-item {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.custom-accordion .accordion-item:nth-child(odd) {
  background: linear-gradient(225deg, rgba(255, 255, 255, 0.75) 20%, rgba(123, 44, 191, 0.08) 100%) !important;
}
.custom-accordion .accordion-item:nth-child(even) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 20%, rgba(123, 44, 191, 0.08) 100%) !important;
}
.custom-accordion .accordion-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(123, 44, 191, 0.12) !important;
}

.custom-accordion .accordion-button {
  background: transparent !important;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  box-shadow: none !important;
  text-align: center;
}
.custom-accordion .accordion-button::after {
  position: absolute;
  right: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.acc-title {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(0);
  text-align: center;
}

/* Active Tab Styles */
.custom-accordion .accordion-button:not(.collapsed) {
  background: var(--gradient) !important;
  color: white !important;
}
.custom-accordion .accordion-button:not(.collapsed) .acc-title {
  transform: translateX(40px); /* Slide text to the right side */
  text-align: left;
}
.custom-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1); /* Target chevron */
}

/* Shimmer inside active tab */
.acc-shimmer {
  background: linear-gradient(to right, var(--text-main) 20%, var(--accent) 40%, var(--accent) 60%, var(--text-main) 80%);
  background-size: 200% auto;
  color: var(--text-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

/* Slide in animations for tab contents (Image & Text) */
.anim-col-left, .anim-col-right {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.anim-col-left {
  transform: translateX(-60px);
}
.anim-col-right {
  transform: translateX(60px);
}
.accordion-collapse.show .anim-col-left,
.accordion-collapse.show .anim-col-right {
  opacity: 1;
  transform: translateX(0);
}

.accordion-img {
  animation: none !important; /* Disable global float */
  transition: scale 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  scale: 1.0;
}
.accordion-item:hover .accordion-img {
  scale: 1.05;
}

/* Accordion Body Background Alternating */
.acc-body-bg {
  border-top: 1px solid rgba(123, 44, 191, 0.15);
}
.custom-accordion .accordion-item:nth-child(odd) .acc-body-bg {
  background: linear-gradient(225deg, rgba(255,255,255,0.95) 20%, rgba(123, 44, 191, 0.05) 100%);
}
.custom-accordion .accordion-item:nth-child(even) .acc-body-bg {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 20%, rgba(123, 44, 191, 0.05) 100%);
}

/* Contact Section Background Image */
.contact-bg-img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 75%; /* Spans past the left text and slides under the form card */
  height: 60%; /* Horizontal manner */
  object-fit: cover;
  opacity: 0.12; /* Very light so text remains readable */
  border-radius: 0 40px 40px 0;
  z-index: 0;
  filter: grayscale(100%); /* Keeps it neutral and professional */
  transition: opacity 0.4s ease;
}
.contact:hover .contact-bg-img {
  opacity: 0.18;
}
