/* =========================================
   1. Global Variables
   ========================================= */
:root {
  --primary-color: #8c00ffcb;
  --secondary-color: #ff6b6b;
  --dark-color: #2a2d3b;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --gray-color: #6c757d;

  /* Button Specific Vars */
  --brand: #da0a72;
  --brand-dark: #2a2d3b;
  --accent: #7c3aed;
  --ink: #212121;
  --border: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

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

/* =========================================
   2. Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  /* Inherit color to avoid blue links everywhere */
  transition: all 0.3s ease;
}

/* =========================================
   3. Navigation & Header (Fixed Side Drawer)
   ========================================= */
nav {
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--primary-color);
  margin-right: 5px;
}

.logo-img {
  height: 36px;
  width: auto;
  display: inline-block;
  object-fit: contain;
  transform: translateY(-3px);
}

.logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #212121;
  letter-spacing: 0.5px;
}

.logo-highlight {
  font-weight: 500;
  color: #9370DB;
}

/* Logo graceful fallback */
.logo.logo-text-only .logo-img {
  display: none !important;
}

.logo.logo-text-only .logo-name {
  display: inline-block;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--gray-color);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Hover underline effect */
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Icon */
.mobile-menu {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1002;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

/* --- MOBILE MENU LOGIC (Slide-in Drawer) --- */
@media (max-width: 768px) {
  .mobile-menu {
    display: flex !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden off-screen */
    width: 280px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.253);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    gap: 0;
  }

  /* Active class added by JS */
  .nav-links.active {
    right: 0;
    /* Slide in */
  }

  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  /* Animate items in */
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
  }

  .nav-links a {
    display: block;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    color: var(--dark-color);
  }

  .nav-links a:hover {
    background-color: var(--light-color);
    padding-left: 35px;
  }

  .nav-links a::after {
    display: none;
    /* No underline on mobile */
  }
}

/* =========================================
   4. Hero Section & Typewriter
   ========================================= */
.hero {
  /* Premium Deep Gradient: Dark Violet -> Brand Purple -> Brand Pink */
  background:
    radial-gradient(circle at top right, rgba(218, 10, 114, 0.2) 0%, transparent 40%),
    radial-gradient(circle at bottom left, rgba(140, 0, 255, 0.2) 0%, transparent 40%),
    linear-gradient(135deg, #1a0b2e 0%, #2d0042 50%, #4a0072 100%);
  color: white;
  padding: 180px 0 140px;
  text-align: center;
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Modern geometric edge */
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  display: inline-block;
  min-height: 1.2em;
  line-height: 1.2;
}



.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
  .hero {
    padding: 140px 0 100px;
    clip-path: ellipse(180% 100% at 50% 0%);
    /* Flatter curve on mobile */
  }

  .hero h2 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.9rem;
    padding: 0 1.5px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
    /* Even smaller for very narrow phones */
  }
}

/* =========================================
    Type Writer Animation Keyframe
   ========================================= */

/* --- 1. H1 Cursor Styles --- */
.h1-cursor {
  display: inline-block;
  color: #ffc107;
  /* Yellow cursor */
  font-weight: 100;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

/* --- 2. Typewriter Box Styles --- */
.typewriter-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Box Appearance */
  background-color: #ffee00;
  /* Warning Yellow */
  color: #2a2d3b;
  /* Dark text */
  border-radius: 4px;
  padding: 0 8px;
  margin: 0 4px;
  font-weight: 600;

  /* Fixed Width to prevent jumping */
  min-width: 140px;
  /* Wide enough for "Assignments" */
  height: 1.5em;
  /* Keeps line height stable */
  vertical-align: bottom;
  /* Aligns with text baseline */

  /* Text handling */
  white-space: nowrap;
}

/* Shared Blink Animation */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .typewriter-box {
    min-width: 130px;
    /* Slightly smaller on phones */
    font-size: 0.9em;
    padding: 0 5px;
  }
}


/* =========================================
   5. General Section Styles
   ========================================= */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 2rem;
  color: #333;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

/* =========================================
   6. Buttons & CTA
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: large;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  background-color: #dc3545;
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.btn-primary {
  background: #ff0080;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.22s, outline 0.22s, background 0.18s, color 0.18s, border 0.18s;
}

.btn.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 9px 20px rgba(218, 10, 114, 0.35);

  /* 3. Slightly brighten the background */
  background: #da0a72;
  border-color: #da0a72;
  filter: brightness(1.1);
  outline: none;
}

.btn.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.13rem;
  min-width: 160px;
  min-height: 48px;
  letter-spacing: 0.01em;
}

/* CTA Generic */
.cta-button {
  display: inline-block;
  padding: 0.4rem 1.05rem;
  border-radius: 20px;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  text-align: center;
  transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .12s ease;
}

.cta-button.primary {
  box-shadow: 0 6px 18px rgba(74, 107, 255, 0.06);
}

.cta-button.secondary {
  opacity: 0.95;
}

.cta-button:hover,
.cta-button:focus {
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(74, 107, 255, 0.16);
}

.cta-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.cta-block {
  text-align: center;
  margin: 28px 0 10px;
}

/* =========================================
   7. Modals
   ========================================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal:target {
  display: flex;
}

.modal .modal-contents {
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  background: #fff;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.modal:target .modal-contents {
  width: 100%;
  max-width: none;
  height: 100vh;
  border-radius: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  color: #555555;
  text-decoration: none;
  z-index: 10001;
  background: #ffffff;
  border-radius: 50%;
  padding: 0;
  border: 2px solid rgba(16, 53, 155, 0.486);
}

.modal .modal-contents>div {
  width: 100%;
  height: 100%;
}

.modal iframe {
  width: 100%;
  height: 100%;
  display: block;
}


/* =========================================
   8. Trust Badges
   ========================================= */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #f3e8ff 0%, #e0f2fe 100%);
}

.badge {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  width: 280px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.icon i {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, #8c00ffcb, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.badge p {
  font-size: 0.95rem;
  color: var(--gray-color);
  line-height: 1.4;
}

/* =========================================
   9. Services Grid
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  font-weight: 500;
}

.service-link:hover {
  color: var(--primary-color);
}



/* Values Grid (Unchanged) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* =========================================
   11. Testimonials Section
   ========================================= */
.testimonials-preview {
  background: linear-gradient(135deg, #f3e8ff 0%, #e0f2fe 100%);
  padding: 40px 0;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}

.testimonial-item {
  min-width: 100%;
  box-sizing: border-box;
  background: white;
  border-radius: 15px;
  padding: 40px 25px 20px 25px;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.quote-icon {
  color: #8c00ffcb;
  font-size: 20px;
  margin-bottom: 0px;
}

.testimonial-item p {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #8c00ffcb;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.author span {
  display: block;
  font-weight: 600;
  color: #222;
}

.author small {
  color: #777;
  font-size: 0.9rem;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-item {
  min-width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  background: white;
  border-radius: 15px;

  /* INCREASED SIDE PADDING: Keeps text away from the arrows */
  padding: 30px 70px;

  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
  text-align: center;
}

/* Arrows - Positioning them ON TOP of the slide */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.151);
  color: var(--primary-color);
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 15px;
  /* Sit inside the left edge */
}

.slider-arrow.next {
  right: 15px;
  /* Sit inside the right edge */
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .testimonial-item {
    /* Less padding on mobile so text fits */
    padding: 30px 20px;
    padding-bottom: 60px;
    /* Space for arrows at bottom if preferred, or keep side */
  }

  .slider-arrow {
    width: 35px;
    height: 35px;
    /* On mobile, maybe move them slightly transparent or lower */
    background: rgba(255, 255, 255, 0.658);
  }
}

/* =========================================
   13. Footer
   ========================================= */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 30px 0 10px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 15px 0;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* =========================================
   13. Global Responsive Styles (Exceptions)
   ========================================= */
@media (max-width: 992px) {
  .our-story {
    flex-direction: column;
  }

  .story-content,
  .story-image {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Note: Navigation logic is handled in Section 3 */

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .testimonial-highlight {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .testimonial-item {
    padding: 30px 15px;
  }

  .author img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  /* Hero padding handled in Section 4 */

  .trust-badges {
    flex-direction: column;
    gap: 10px;
  }

  section {
    padding: 60px 0;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }

  /* Footer Stack */
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ============================
   GLOBAL CONFIRM MODAL (Branded Light)
   ============================ */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  /* PREVENT CLICKS WHEN HIDDEN */
}

.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* ENABLE CLICKS WHEN VISIBLE */
}

.custom-modal {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(140, 0, 255, 0.15);
  /* Brand shadow hint */
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Poppins', sans-serif;
}

.custom-modal-overlay.active .custom-modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  outline: none;
}

.modal-close-btn:hover {
  color: #da0a72;
  /* Brand accent hover */
}

.modal-body {
  padding: 30px 24px;
  text-align: center;
  /* Centered look for better focus */
}

.warning-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.warning-icon i {
  color: #ef4444;
  /* Danger Red */
  font-size: 1.8rem;
}

.modal-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-title-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1a1a1a;
  margin: 0;
}

.modal-sub-text {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.modal-footer {
  padding: 20px 24px;
  background: #fcfcfc;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
  /* Centered buttons */
  gap: 15px;
}

.btn-modal {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  min-width: 100px;
}

.btn-secondary {
  background: white;
  color: #555;
  border: 1px solid #d1d1d1;
}

.btn-secondary:hover {
  background: #f3f3f3;
  color: #333;
  border-color: #bbb;
}

.btn-danger {
  background: #da0a72;
  /* Brand secondary/danger */
  color: white;
  border: 1px solid #c20965;
  box-shadow: 0 4px 12px rgba(218, 10, 114, 0.2);
}

.btn-danger:hover {
  background: #b90861;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(218, 10, 114, 0.3);
}

/* ============================
   GLOBAL TOAST (Top Positioned)
   ============================ */
.custom-toast {
  position: fixed;
  top: 30px;
  /* Moved to TOP */
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  /* Center horizontally, start slightly up */
  background: white;
  border-left: 5px solid;
  /* Colored strip based on type */
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  z-index: 20002;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy enter */
  pointer-events: none;
  /* PREVENT CLICKS WHEN HIDDEN */
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  pointer-events: auto;
  /* ENABLE CLICKS WHEN VISIBLE */
}

/* Dynamic Border Colors */
.toast-success-border {
  border-color: #10b981;
}

.toast-loading-border {
  border-color: #8c00ff;
}

.toast-error-border {
  border-color: #ef4444;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toast-icon-success {
  color: #10b981;
  font-size: 1.3rem;
}

.toast-spinner {
  color: #8c00ff;
  /* Brand Primary */
  font-size: 1.3rem;
  animation: fa-spin 1s infinite linear;
}

.toast-content span {
  white-space: nowrap;
}

/* Mobile Optimization: Show Toast at Top */
@media (max-width: 768px) {
  .custom-toast {
    top: 80px;
    /* Below navbar */
    bottom: auto;
    width: 90%;
    max-width: 400px;
    text-align: center;
    justify-content: center;
    transform: translateX(-50%) translateY(-20px);
  }

  .custom-toast.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* --- RESTORED STYLES --- */
.team-member:hover .member-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.member-info {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  background: white;
  padding: 18px 20px;
  z-index: 2;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
   11. Auth Modal (New Dynamic) 
   ========================================= */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  /* KEY FIX: prevents blocking clicks when hidden */
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* Re-enable clicks when visible */
}

.auth-modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 420px;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  overflow: hidden;
}

.auth-modal-overlay.active .auth-modal-card {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.auth-modal-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.auth-modal-close:hover {
  background: #f1f5f9;
  color: #334155;
  transform: rotate(90deg);
}

.auth-header {
  margin-bottom: 30px;
}

.auth-logo {
  font-size: 2rem;
  margin-bottom: 10px;
  display: inline-block;
  background: linear-gradient(135deg, #8c00ff 0%, #da0a72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}

.auth-subtitle {
  color: #64748b;
  font-size: 0.9rem;
}

.auth-social-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.auth-social-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.auth-social-btn img {
  width: 25px;
  height: 25px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #6f747a;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 10px;
}

.auth-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-input-group {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 14px 14px 14px 45px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: #f8fafc;
}

.auth-input:focus {
  background: white;
  border-color: #8c00ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(140, 0, 255, 0.1);
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.auth-input:focus+.auth-input-icon {
  color: #8c00ff;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.password-toggle:hover {
  color: #8c00ff;
}

.auth-input-has-toggle {
  padding-right: 45px !important;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #8c00ff 0%, #aa26ff 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
  box-shadow: 0 10px 15px -3px rgba(140, 0, 255, 0.3);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 20px -4px rgba(140, 0, 255, 0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-footer {
  margin-top: 25px;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-switch-link {
  color: #8c00ff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-switch-link:hover {
  color: #da0a72;
  text-decoration: underline;
}

.auth-forgot-pass {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 5px;
  text-decoration: none;
}

.auth-forgot-pass:hover {
  color: #8c00ff;
}

/* =========================================
   Why Choose Us / Features Section
   ========================================= */
.features-section {
  padding: 80px 0;
  background-color: #ffffff;
  /* Clean white background */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  /* Uniform height */
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(140, 0, 255, 0.1);
  /* Subtle brand border on hover */
}

/* Icon Wrapper with Glow */
.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(140, 0, 255, 0.08);
  /* Light brand background */
  color: var(--primary-color, #8c00ff);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary-color, #8c00ff);
  color: #ffffff;
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a202c;
  /* Darker gray for headers */
}

.feature-card p {
  color: #64748b;
  /* Slate gray for readable text */
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Add a subtle top border gradient for premium feel */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #8c00ff, #da0a72);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}


/* =========================================
   Deal Badge (Hero Section)
   ========================================= */
.deal-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff0080, #da0a72);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9em;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  vertical-align: middle;
  box-shadow: 0 0 12px rgba(255, 0, 128, 0.5);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.45);
  }

  50% {
    box-shadow: 0 0 22px rgba(255, 0, 128, 0.85);
  }
}