/* ============================================================
   ProjectResell — Global Design System
   Brand: ProjectResell (Sponsored By ORBIT9.IN - Affordable websites and digital presence for local businesses)
   Author: Antigravity AI
   ============================================================ */

/* ============================================================
   0. Google Fonts Import
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* Primary Brand */
  --primary: #4361ee;
  --primary-dark: #3451d1;
  --primary-light: #eef0fd;
  --primary-gradient: linear-gradient(135deg, #4361ee 0%, #7b2ff7 100%);

  /* Accent */
  --accent: #f72585;
  --accent-light: #fde8f0;

  /* Secondary */
  --secondary: #7b2ff7;
  --secondary-light: #f0e8ff;

  /* Success */
  --success: #06d6a0;
  --success-light: #e6faf5;

  /* Warning */
  --warning: #ffd166;
  --warning-dark: #d4a017;

  /* Neutrals */
  --white: #ffffff;
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --surface: #f0f2f8;
  --border: #e2e6f0;
  --border-light: #f0f2f8;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;

  /* Typography */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing (8px grid) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 4px 6px rgba(15,23,42,0.07), 0 2px 4px rgba(15,23,42,0.04);
  --shadow: 0 10px 15px rgba(15,23,42,0.08), 0 4px 6px rgba(15,23,42,0.04);
  --shadow-md: 0 20px 25px rgba(15,23,42,0.1), 0 8px 10px rgba(15,23,42,0.04);
  --shadow-lg: 0 25px 50px rgba(15,23,42,0.15);
  --shadow-primary: 0 8px 24px rgba(67,97,238,0.25);
  --shadow-card-hover: 0 20px 40px rgba(67,97,238,0.15);

  /* Transitions */
  --transition: all 0.2s ease;
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header Height */
  --header-height: 70px;

  /* Z-indices */
  --z-sticky: 1020;
  --z-modal: 1060;
  --z-tooltip: 1080;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

/* ============================================================
   3. Typography Utilities
   ============================================================ */
.font-display { font-family: var(--font-display); }

.text-primary-brand { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted-custom { color: var(--text-muted); }

.heading-hero {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-section {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.heading-card {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.text-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   4. Layout & Containers
   ============================================================ */
main {
  display: block;
  margin: 0;
  padding: 0;
}

.section {
  padding: var(--sp-12) 0;
  margin: 0;
}

/* Eliminate excessive empty gap before footer across all public pages */
main > section:last-child,
main > section:last-of-type,
.section-last {
  padding-bottom: 56px;
}

.section-sm {
  padding: var(--sp-8) 0;
}

.section-lg {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-8);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-2);
}

/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
  font-family: var(--font-base);
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition-slow);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(67,97,238,0.35);
  color: var(--white);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-accent {
  background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 8px 24px rgba(247,37,133,0.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(247,37,133,0.35);
  color: var(--white);
  filter: brightness(1.05);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-lg-custom {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm-custom {
  padding: 7px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius);
}

/* ============================================================
   6. Cards
   ============================================================ */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-slow);
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(67,97,238,0.2);
}

/* ============================================================
   7. Badges & Chips
   ============================================================ */
.badge-tech {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  letter-spacing: 0.02em;
}

.badge-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--secondary-light);
  color: var(--secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-new {
  background: var(--success-light);
  color: #047857;
}

.badge-featured {
  background: #fff3e0;
  color: #b45309;
}

/* ============================================================
   8. Header / Navbar
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-parent {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-link-custom {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 6px 12px !important;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}

.nav-link-custom:hover {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.nav-link-custom.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.navbar-toggler-custom {
  border: none;
  background: none;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

@media (min-width: 992px) {
  .navbar-toggler-custom {
    display: none !important;
  }
}

.navbar-toggler-custom span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-slow);
}

/* Mobile offcanvas override */
.offcanvas {
  --bs-offcanvas-width: 300px;
}

.offcanvas-custom .offcanvas-header {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3);
}

.offcanvas-custom .offcanvas-body {
  padding: var(--sp-3);
}

.offcanvas-custom .nav-link-custom {
  font-size: 1rem;
  padding: 12px 16px !important;
  margin-bottom: 4px;
  display: block;
}

/* ============================================================
   9. Hero Section
   ============================================================ */
.hero-section {
  background: 
    linear-gradient(135deg, rgba(248, 249, 255, 0.88) 0%, rgba(238, 240, 253, 0.82) 50%, rgba(255, 255, 255, 0.90) 100%),
    url('../images/hero-bg.jpg') center center / cover no-repeat;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--sp-3);
}

.hero-price-badge .price-tag {
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ============================================================
   10. Search Bar
   ============================================================ */
.search-section {
  background: linear-gradient(135deg, #eef2fd 0%, #f6f0fd 50%, #edf2fe 100%);
  padding: 34px 0;
  border-top: 1px solid rgba(67, 97, 238, 0.1);
  border-bottom: 1px solid rgba(67, 97, 238, 0.12);
  position: relative;
}

.search-section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(67, 97, 238, 0.08);
  border: 1px solid rgba(67, 97, 238, 0.16);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.search-container {
  background: var(--white);
  border: 1.5px solid rgba(67, 97, 238, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.09), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  transition: all 0.25s ease;
}

.search-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(67, 97, 238, 0.16), 0 0 0 3px rgba(67, 97, 238, 0.12);
}

.search-input-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-wrap i {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-input-custom {
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
  background: transparent;
}

.search-input-custom::placeholder {
  color: var(--text-muted);
}

.search-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

.search-select {
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

/* ============================================================
   11. Project Cards
   ============================================================ */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(67,97,238,0.25);
}

.project-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface);
}

.project-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.project-card-img-wrap img {
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-img-wrap img {
  transform: scale(1.04);
}

.project-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.project-card-body {
  padding: var(--sp-3);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-footer {
  padding: 12px var(--sp-3);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.project-meta i {
  font-size: 0.8rem;
  color: var(--text-light);
}

.project-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-price small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--warning-dark);
}

.star-rating .review-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ============================================================
   12. Category Cards
   ============================================================ */
.category-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition-slow);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.category-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.category-card:hover .category-icon-wrap {
  transform: scale(1.1);
}

.category-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   13. Feature / Why Cards
   ============================================================ */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  height: 100%;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: var(--sp-2);
  background: var(--primary-light);
  color: var(--primary);
}

/* ============================================================
   14. Step Cards (How It Works)
   ============================================================ */
.step-card {
  text-align: center;
  padding: var(--sp-4) var(--sp-3);
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-2);
  box-shadow: var(--shadow-primary);
}

.step-number-sm {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
}

.step-connector {
  position: absolute;
  top: 26px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

/* ============================================================
   15. Pricing Cards
   ============================================================ */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  position: relative;
  transition: var(--transition-slow);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
}

/* Featured / Highlighted Plan Badge sitting on the top border (red mark position) */
.pricing-card .pricing-featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.35);
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}

.pricing-price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-price .price-original {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 8px;
  opacity: 0.75;
}

.offer-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(239, 68, 68, 0.25);
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

.pricing-feature i {
  color: var(--success);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================================
   16. Student Profile Card
   ============================================================ */
.student-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  text-align: center;
  transition: var(--transition-slow);
}

.student-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--sp-2);
  border: 3px solid var(--primary-light);
}

.student-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-2);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
}

/* ============================================================
   17. Footer
   ============================================================ */
.site-footer {
  background: #0a0f1e;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
  margin-top: 0;
  position: relative;
  clear: both;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  display: block;
  object-fit: contain;
  transition: var(--transition);
}

.footer-logo-img:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-2);
}

.footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  padding: 4px 0;
  transition: var(--transition);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--white);
  padding-left: 4px;
  text-decoration: none;
}

/* Footer Sponsor Box (Platform Section) */
.footer-sponsor-box {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.12) 0%, rgba(123, 47, 247, 0.18) 100%);
  border: 1.5px dashed rgba(123, 47, 247, 0.5);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative;
  transition: var(--transition-slow);
  backdrop-filter: blur(8px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-sponsor-box:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.25);
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.18) 0%, rgba(123, 47, 247, 0.25) 100%);
}

.footer-sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

.footer-sponsor-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.footer-sponsor-title a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.footer-sponsor-title a:hover {
  color: #ffffff;
}

.footer-sponsor-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 0;
}

.footer-bottom {
  margin-top: var(--sp-8);
  padding: var(--sp-3) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

/* ============================================================
   18. Back To Top Button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
  z-index: 999;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(67,97,238,0.4);
}

/* ============================================================
   19. Forms
   ============================================================ */
.form-control-custom {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-base);
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67,97,238,0.12);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

.form-label-custom {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.form-group-custom {
  margin-bottom: var(--sp-3);
}

/* ============================================================
   20. Auth Pages
   ============================================================ */
.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: stretch;
}

.auth-left {
  flex: 1;
  background: var(--primary-gradient);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
}

.auth-right {
  flex: 1;
  padding: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

/* ============================================================
   21. Project Detail Page
   ============================================================ */
.project-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface);
}

.project-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deliverable-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.deliverable-item:last-child {
  border-bottom: none;
}

.deliverable-item .check-yes {
  color: var(--success);
  font-size: 1rem;
}

.deliverable-item .check-no {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================================
   22. FAQ Accordion
   ============================================================ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(67,97,238,0.1);
}

.faq-question {
  padding: var(--sp-3) var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  gap: 12px;
  user-select: none;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.faq-question .faq-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.open .faq-question {
  color: var(--primary);
  background: var(--primary-light);
}

.faq-answer {
  padding: 0 var(--sp-3);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 300px;
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
}

/* ============================================================
   23. Section Backgrounds
   ============================================================ */
.bg-gradient-soft {
  background: linear-gradient(145deg, #f8f9ff 0%, #eef0fd 100%);
}

.bg-dark-navy {
  background: #0a0f1e;
}

.bg-cta {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.bg-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
}

.bg-cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-full);
}

/* ============================================================
   24. Stats Row
   ============================================================ */
.stat-item {
  text-align: center;
  padding: var(--sp-3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   25. Breadcrumb
   ============================================================ */
.breadcrumb-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-custom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-custom a:hover {
  color: var(--primary);
}

.breadcrumb-custom .separator {
  color: var(--text-light);
}

.breadcrumb-custom .active {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   26. Tags / Chips
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================================
   27. Trust / Info Boxes
   ============================================================ */
.info-box {
  background: var(--primary-light);
  border: 1px solid rgba(67,97,238,0.2);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}

.info-box.warning {
  background: #fff8e1;
  border-color: rgba(255,193,7,0.3);
}

.info-box.success {
  background: var(--success-light);
  border-color: rgba(6,214,160,0.3);
}

.info-box i {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================================
   28. Sidebar Filter
   ============================================================ */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  position: sticky;
  top: calc(var(--header-height) + var(--sp-2));
}

.filter-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.filter-group {
  margin-bottom: var(--sp-3);
}

/* ============================================================
   29. Process Timeline
   ============================================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-step {
  display: flex;
  gap: var(--sp-3);
  position: relative;
}

.process-step-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.process-dot {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
  z-index: 1;
}

.process-connector {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--primary) 0%, var(--border) 100%);
  min-height: 32px;
  opacity: 0.3;
}

.process-content {
  padding-bottom: var(--sp-4);
  padding-top: 8px;
}

/* ============================================================
   30. Responsive Adjustments
   ============================================================ */
@media (max-width: 1199.98px) {
  .hero-floating-badge {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .auth-left {
    display: none;
  }

  .auth-right {
    padding: var(--sp-4) var(--sp-3);
  }

  .filter-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 62px;
  }

  .section {
    padding: var(--sp-8) 0;
  }

  main > section:last-child,
  main > section:last-of-type,
  .section-last {
    padding-bottom: 36px;
  }

  .site-footer {
    padding-top: 40px;
  }

  .section-lg {
    padding: var(--sp-10) 0;
  }

  .hero-section {
    padding: 56px 0 64px;
  }

  .hero-section .btn-lg-custom {
    width: 100%;
    justify-content: center;
  }

  .search-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-radius: var(--radius-lg);
    padding: var(--sp-2);
  }

  .search-divider {
    display: none;
  }

  .search-input-wrap {
    min-width: 0;
  }

  .section-header {
    margin-bottom: var(--sp-5);
  }

  .pricing-card {
    padding: var(--sp-4);
  }

  .pricing-price {
    font-size: 2.5rem;
  }

  body {
    padding-left: 0;
    padding-right: 0;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 575.98px) {
  .heading-hero {
    font-size: 1.85rem;
  }

  .heading-section {
    font-size: 1.5rem;
  }

  .project-card-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .auth-right {
    padding: var(--sp-3) var(--sp-2);
  }
}

/* ============================================================
   31. Animations
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(67,97,238,0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(67,97,238,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(67,97,238,0); }
}

.animate-fade-up {
  animation: fadeInUp 0.5s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================================
   32. Utility Overrides
   ============================================================ */
.rounded-card { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.shadow-card { box-shadow: var(--shadow) !important; }
.border-soft { border-color: var(--border) !important; }

.text-small { font-size: 0.825rem; }
.text-xs { font-size: 0.75rem; }

.hover-lift {
  transition: var(--transition-slow);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* Selection */
::selection {
  background: var(--primary-light);
  color: var(--primary);
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   33. Hero Illustration SVG Colors
   ============================================================ */
.hero-illustration {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  animation: fadeIn 0.7s ease 0.3s both;
}

/* ============================================================
   34. Notification Bar
   ============================================================ */
.notice-bar {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  padding: 8px var(--sp-3);
  font-size: 0.825rem;
  font-weight: 500;
  position: relative;
}

.notice-bar a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================================
   35. Legal Pages
   ============================================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-1);
}

.legal-content p, .legal-content li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-content ul {
  padding-left: var(--sp-3);
}

.legal-content ul li {
  margin-bottom: 6px;
}

/* ============================================================
   36. Page Hero (inner pages)
   ============================================================ */
.page-hero {
  background: 
    linear-gradient(135deg, rgba(248, 249, 255, 0.90) 0%, rgba(238, 240, 253, 0.85) 50%, rgba(252, 228, 255, 0.88) 100%),
    url('../images/hero-bg.jpg') center center / cover no-repeat;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(247, 37, 133, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}
