/* =============================================================
   Social Moon Stylesheet
   Purpose: Centralized styles for theme, layout, components,
   utilities, and responsive behavior across the website.
   Notes: Purely presentational. Do not place functional JS here.
   ============================================================= */
/* CSS Custom Properties - Color palette and design tokens */
:root {
  /* Brand colors */
  --primary-color: #1e3a8a;
  --accent-color: #06b6d4;
  --purple-color: #8b5cf6;
  --gray-color: #64748b;
  
  /* Background colors */
  --light-bg: #f8fafc;
  --dark-bg: #1e293b;
  --white: #ffffff;
  
  /* Text colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  
  /* UI elements */
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Dark Theme Overrides - Adjust colors for dark mode */
[data-bs-theme="dark"] {
  --primary-color: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --light-bg: #0f172a;
  --border-color: #334155;
  --white: #1e293b;
}

/* Base Typography - Sansita font family for entire website */
body {
  font-family: 'Sansita', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--light-bg);
  transition: all 0.3s ease;
}

/* Headings - Use Sansita font with bold weight */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Sansita', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

/* =============================================================
   Navigation (Navbar)
   Purpose: Visual treatment for the fixed-top Bootstrap navbar
   including scrolled state, toggler visibility, brand sizing,
   and light/dark theme adaptations.
   ============================================================= */
/* Navigation Bar - Glassmorphism effect with backdrop blur */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  min-height: 70px;
}

[data-bs-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
}

/* Make toggler visible in both themes without navbar-light/dark */
.navbar .navbar-toggler {
  border-color: rgba(51, 65, 85, 0.35);
}

[data-bs-theme="dark"] .navbar .navbar-toggler {
  border-color: rgba(226, 232, 240, 0.35);
}

/* Dark theme hamburger icon */
[data-bs-theme="dark"] .navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241,245,249,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

[data-bs-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
}

.navbar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.25rem 0;
}

@media (max-width: 991.98px) {
  .navbar-brand .brand-text {
    font-size: 1.5rem !important;
  }

  .navbar-brand .brand-logo {
    height: 55px !important;
    width: 55px !important;
  }
  
  /* Mobile menu styles */
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    margin: 0.5rem -1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    padding: 0.5rem 0;
  }
  
  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: rgba(6, 182, 212, 0.1);
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.25);
    outline: none;
  }
  
  .brand-logo-navbar {
    height: 50px !important;
    width: auto !important;
  }
}

/* Dark theme adjustments for mobile menu */
[data-bs-theme="dark"] .navbar-collapse {
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
}



.brand-text {
  color: var(--text-primary);
}

.nav-link {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--accent-color);
}


.brand-logo-navbar {
  height: 67px;
  width: 148px;
  border-radius: 50%;
  object-fit: cover;
}

/* =============================================================
   Buttons
   Purpose: Primary gradient button and filter chip buttons with
   hover/focus affordances. Keep semantics in HTML; visuals here.
   ============================================================= */
/* Primary Gradient Button - Main CTA styling */
.btn-gradient {
  background: linear-gradient(135deg, var(--accent-color), #b0dbf7);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* Filter Buttons - Portfolio category filters */
.filter-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--purple-color));
  color: white;
  border-color: transparent;
}

/* =============================================================
   Global Containers & Utilities
   Purpose: Layout helpers, grid presets, spacing utilities, and
   generic elements (cards, images, sections, visibility helpers).
   ============================================================= */
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Layout Utilities - Responsive grid systems */
.grid {
  display: grid;
  gap: 1rem;
}

/* Grid variations for different column counts */
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  box-shadow: var(--shadow);
}

img,
video {
  max-width: 100%;
  height: auto;
}

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 40px 0;
}

.text-center {
  text-align: center;
}

.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

/* =============================================================
   Hero Sections
   Purpose: Large top-of-page sections with gradient backgrounds,
   animated shapes, large headings, and CTA buttons. Includes a
   compact variant and keyframe animations for entrance effects.
   ============================================================= */
.hero-section#top-hero-2 {
  /* Remove photo, keep only gradient */
  background-image: linear-gradient(135deg, grey 10%, black 50%, darkslategray 100%);
  background-color: transparent;
  background-blend-mode: normal;
}

/* Main Hero Section - Video background with gradient overlay */
.hero-section#top-hero {
  /* Gradient overlay with reduced opacity for better video visibility */
  background-image: linear-gradient(135deg, rgba(30, 58, 138, 0.55) 0%, rgba(4, 152, 210, 0.4) 50%, rgba(33, 201, 246, 0.35) 100%);
  background-color: transparent;
  background-blend-mode: normal;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
  color: white;
}

.hero-section#top-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.65) 0%, rgba(4, 152, 210, 0.55) 50%, rgba(33, 201, 246, 0.5) 100%);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

#top-hero .container {
  position: relative;
  z-index: 1;
}

/* Hero Title - Large responsive heading with animation */
#top-hero .hero-title {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  text-align: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  animation: slideInFromTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
  opacity: 0;
}

#top-hero .hero-line-1,
#top-hero .hero-line-2 {
  display: block;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: rgb(253, 236, 0) !important;
  -webkit-text-fill-color: rgb(255, 238, 2) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

#top-hero .hero-line-1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  animation: slideInFromTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
  opacity: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#top-hero .hero-line-2 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  line-height: 1.3;
  animation: slideInFromTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
  opacity: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

#top-hero .hero-buttons {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
  opacity: 0;
}

#top-hero .hero-btn-primary,
#top-hero .hero-btn-secondary {
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 3rem;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  user-select: none;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

#top-hero .hero-btn-primary {
  background: var(--accent-color);
  border: none;
  color: white;
}

#top-hero .hero-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s ease;
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
}

#top-hero .hero-btn-primary:hover::before {
  left: 100%;
  transition: all 0.5s ease;
}

#top-hero .hero-btn-primary:hover {
  background: var(--purple-color);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.7);
  transform: translateY(-4px);
  color: white;
  z-index: 2;
}

#top-hero .hero-btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
  position: relative;
  overflow: hidden;
}

#top-hero .hero-btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.5s ease;
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
}

#top-hero .hero-btn-secondary:hover::before {
  left: 100%;
  transition: all 0.5s ease;
}

#top-hero .hero-btn-secondary:hover {
  background: white;
  color: var(--accent-color);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.7);
  transform: translateY(-4px);
  z-index: 2;
}

@media (max-width: 768px) {
  #top-hero .hero-title {
    font-size: 2.5rem;
  }

  #top-hero .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  #top-hero .hero-btn-primary,
  #top-hero .hero-btn-secondary {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 576px) {
  #top-hero .hero-title {
    font-size: 2rem;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hero-background {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  animation: floating 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--accent-color);
  top: 10%;
  left: 10%;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--purple-color);
  top: 40%;
  right: 10%;
  animation-delay: 1s;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-color), #b0dbf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-line-1 {
  font-size: 1.8rem;
  line-height: 1.3;
}

.hero-line-sm {
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Larger variant for emphasis (used for CONQUER) */
.gradient-text-180 {
  font-size: 120px;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  margin-bottom: 2rem;
}


#top-hero,
#top-hero-2 {
  margin-top: 70px;
  padding-top: 2rem;
}


#top-hero .hero-title,
#top-hero-2 .hero-title {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  text-align: center;
}

#top-hero .hero-line-1,
#top-hero-2 .hero-line-1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin-bottom: 1.5rem;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  font-weight: 300;
  display: block;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
  line-height: 1.1;
  animation: slideInFromTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
  opacity: 0;
}

#top-hero .hero-line-2,
#top-hero-2 .hero-line-2 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: #1E293B !important;
  font-weight: 600;
  display: block;
  letter-spacing: 0.15em;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  line-height: 1.3;
  animation: slideInFromTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
  opacity: 0;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}


#top-hero .hero-btn-primary,
#top-hero-2 .hero-btn-primary {
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
  opacity: 0;
}

#top-hero .hero-btn-secondary,
#top-hero-2 .hero-btn-secondary {
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s both;
  opacity: 0;
}

/* Compact hero variant (for duplicated Top Hero-2 Section) */
.hero-section.hero-compact {
  padding: 2.25rem 0 2.5rem;
  /* much shorter than full hero */
}

.hero-compact .hero-title {
  font-size: clamp(2rem, 7vw, 3rem);
  margin-bottom: 0.75rem;
}

.hero-compact .hero-buttons {
  margin-bottom: 0;
  /* reduce space below buttons */
}

/* Pill-shaped button modifier */
.btn-pill {
  border-radius: 999px !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Animation Keyframes - Entrance animations for hero elements */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


#top-hero .hero-btn-primary,
#top-hero-2 .hero-btn-primary {
  background: #1e293b;
  border: 1px solid #1e293b;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#top-hero .hero-btn-secondary,
#top-hero-2 .hero-btn-secondary {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Button Hover Effects */
#top-hero .hero-btn-primary:hover,
#top-hero-2 .hero-btn-primary:hover {
  background: #334155;
  border-color: #334155;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#top-hero .hero-btn-secondary:hover,
#top-hero-2 .hero-btn-secondary:hover {
  background: rgba(226, 232, 240, 0.1);
  border-color: #f1f5f9;
  color: #f1f5f9;
  transform: translateY(-1px);
}

#top-hero .hero-btn-secondary:hover,
#top-hero-2 .hero-btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive improvements for Top Hero */
@media (max-width: 768px) {

  #top-hero .hero-title,
  #top-hero-2 .hero-title {
    font-size: 2.5rem;
  }

  #top-hero .hero-buttons,
  #top-hero-2 .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  #top-hero .btn,
  #top-hero-2 .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {

  #top-hero .hero-title,
  #top-hero-2 .hero-title {
    font-size: 2rem;
  }
}

.hero-image-container {
  position: relative;
}

.hero-image {
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: scale(1.05);
}

.metric-card {
  position: absolute;
  background: var(--white);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: floating 4s ease-in-out infinite;
  color: var(--text-primary);
}

.metric-card-1 {
  top: -1rem;
  right: -1rem;
  background: #b0dbf7;
}

.metric-card-2 {
  bottom: -1rem;
  left: -1rem;
  animation-delay: 0.5s;
  background: #b0dbf7;
}

.metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* =============================================================
   Section Backgrounds
   Purpose: Alternating backgrounds for major home-page sections.
   Keeps visual rhythm between white and light surfaces.
   ============================================================= */
.services-section,
.testimonials-section {
  background: var(--white);
}

.portfolio-section,
.about-section {
  background: var(--light-bg);
}

/* Extra top spacing for Services section */
#services.services-section {
  margin-top: 10rem !important;
  /* increase space below hero cards */
}

.contact-section {
  background: var(--white);
}

.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}



/* =============================================================
   Service Cards
   Purpose: Clickable service tiles with icon, title, description,
   and feature list. Hover lift for affordance.
   ============================================================= */
/* Service Cards - Clickable service offering tiles */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  display: block;
}

/* Clickable service cards */
.service-card[data-link] {
  cursor: pointer;
  color: inherit;
}

.service-card[data-link] h3,
.service-card[data-link] p,
.service-card[data-link] li {
  color: inherit;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--purple-color));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.service-features i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}


.service-panel {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
  }
  .service-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  }
  .panel-content i {
    color: #0d6efd;
    margin-bottom: 1rem;
  }
  .service-panel:nth-child(even) {
    background: #ffffff;
  }
  .service-panel h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  .service-panel p {
    color: #6c757d;
    font-size: 0.95rem;
  }

/* =============================================================
   Portfolio Cards
   Purpose: Media-first case-study tiles with subtle hover motion
   and metadata styling.
   ============================================================= */
/* Portfolio Cards - Project showcase tiles with hover effects */
.portfolio-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolio-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.category-social {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-color);
}

.category-ads {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple-color);
}

.category-websites {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.portfolio-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.portfolio-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-result {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--accent-color);
}

.portfolio-result i {
  margin-right: 0.5rem;
}

/* =============================================================
   Modern Portfolio Grid
   Purpose: Responsive CSS grid for portfolio items (3/2/1 cols).
   ============================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-item {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 30px -12px rgba(2, 6, 23, 0.35);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -18px rgba(2, 6, 23, 0.45);
}

.pi-media {
  position: relative;
  aspect-ratio: var(--pi-ar, 4 / 3);
}

.pi-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease, filter 400ms ease;
}

.portfolio-item:hover .pi-media img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.pi-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.0) 50%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.portfolio-item:hover .pi-media::after {
  opacity: 1;
}

/* =============================================================
   Splide Slider (Portfolio)
   Purpose: Single-slide, centered carousel to showcase one large
   portfolio item at a time using SplideJS.
   ============================================================= */
.portfolio-splide {
  /* Center the slider and make the viewport larger for single-slide view */
  max-width: clamp(480px, 70vw, 900px);
  margin: 0 auto;
}

.portfolio-splide .splide__slide {
  /* Single slide should consume the full track width */
  width: 100%;
}

.portfolio-splide .portfolio-item {
  display: block;
}

.portfolio-splide .pi-media {
  border-radius: 16px;
  overflow: hidden;
  /* Enforce consistent, taller frame for a single large image */
  aspect-ratio: 3 / 2;
}

.portfolio-splide .splide__track {
  padding-bottom: 12px;
  /* room for varying heights shadow */
}

.portfolio-splide .splide__arrow {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.portfolio-splide .splide__arrow svg {
  fill: #fff;
}

/* Portfolio spacing override */
#portfolio {
  margin-top: 6rem !important;
  /* increase top spacing for portfolio section */
}

/* Remove About section from home page */
#about {
  display: none !important;
}

.pi-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1rem 1rem 1.1rem;
  color: #e2e8f0;
}

/* =============================================================
   About Page Styles
   Purpose: Dark, layered aesthetic with glassy cards and subtle
   gradients. Contains stats, team, and CTA block styles.
   ============================================================= */
.about-hero {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(59, 130, 246, 0.15), transparent 60%),
    radial-gradient(1000px 500px at 120% -10%, rgba(236, 72, 153, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.92) 100%);
  color: #e2e8f0;
}

.about-hero .brand-text {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-ghost {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

.nav-ghost:hover {
  color: #fff;
}

.about-hero-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.about-hero-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-page {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
}

.about-page .section-title {
  color: #e2e8f0;
}

.about-page p,
.about-page .text-secondary {
  color: #94a3b8 !important;
}

.about-stats .stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #e2e8f0;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
}

.about-pane {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 1.25rem 1.25rem;
  color: #cbd5e1;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.about-list i {
  color: #22c55e;
}

.about-cta .cta-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

.about-page .btn-primary {
  background: #3b82f6;
  border-color: #3b82f6;
}

.about-page .btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.about-page .btn-outline-light {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.35);
}

.about-page .btn-outline-light:hover {
  color: #0b1220;
  background: #e2e8f0;
}

/* Team section shared styles */
.team-section .section-subtitle {
  color: #94a3b8;
}

.team-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -18px rgba(2, 6, 23, 0.25);
}

.team-card .card-body {
  padding: 1rem 1.1rem 1.25rem;
}

.team-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #334155;
  background: rgba(241, 245, 249, 0.6);
}

.btn-icon:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* =============================================================
   Light Theme Overrides
   Purpose: Mirror of about-page dark styles adapted for light
   scheme (and [data-bs-theme="light"]).
   ============================================================= */
.theme-light body,
.theme-light .about-page {
  background: #ffffff;
}

.theme-light .about-hero {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 120% -10%, rgba(236, 72, 153, 0.07), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
}

.theme-light .about-page .section-title {
  color: #0f172a;
}

.theme-light .about-page p,
.theme-light .about-page .text-secondary {
  color: #475569 !important;
}

.theme-light .about-hero-card {
  border-color: rgba(100, 116, 139, 0.2);
  box-shadow: 0 22px 44px -22px rgba(15, 23, 42, 0.25);
}

.theme-light .about-pane {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.2);
}

.theme-light .about-stats .stat-card {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.2);
}

.theme-light .stat-card .stat-number {
  color: #0f172a;
}

.theme-light .stat-card .stat-label {
  color: #64748b;
}

.theme-light .about-cta .cta-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(236, 72, 153, 0.10));
  border-color: rgba(100, 116, 139, 0.2);
}

.theme-light .about-page .btn-outline-light {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}

.theme-light .about-page .btn-outline-light:hover {
  background: #0f172a;
  color: #ffffff;
}

.theme-light .team-section .section-subtitle {
  color: #64748b;
}

.theme-light .team-card {
  border-color: rgba(100, 116, 139, 0.2);
}

.theme-light .btn-icon {
  border-color: rgba(100, 116, 139, 0.35);
  color: #0f172a;
  background: #f1f5f9;
}

.theme-light .btn-icon:hover {
  background: #e2e8f0;
  color: #0b1220;
}

/* Apply the same light overrides when system theme is light */
[data-bs-theme="light"] body,
[data-bs-theme="light"] .about-page {
  background: #ffffff;
}

[data-bs-theme="light"] .about-hero {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 120% -10%, rgba(236, 72, 153, 0.07), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
}

[data-bs-theme="light"] .about-page .section-title {
  color: #0f172a;
}

[data-bs-theme="light"] .about-page p,
[data-bs-theme="light"] .about-page .text-secondary {
  color: #475569 !important;
}

[data-bs-theme="light"] .about-hero-card {
  border-color: rgba(100, 116, 139, 0.2);
  box-shadow: 0 22px 44px -22px rgba(15, 23, 42, 0.25);
}

[data-bs-theme="light"] .about-pane {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.2);
}

[data-bs-theme="light"] .about-stats .stat-card {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.2);
}

[data-bs-theme="light"] .stat-card .stat-number {
  color: #0f172a;
}

[data-bs-theme="light"] .stat-card .stat-label {
  color: #64748b;
}

[data-bs-theme="light"] .about-cta .cta-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(236, 72, 153, 0.10));
  border-color: rgba(100, 116, 139, 0.2);
}

[data-bs-theme="light"] .about-page .btn-outline-light {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}

[data-bs-theme="light"] .about-page .btn-outline-light:hover {
  background: #0f172a;
  color: #ffffff;
}

[data-bs-theme="light"] .team-section .section-subtitle {
  color: #64748b;
}

[data-bs-theme="light"] .team-card {
  border-color: rgba(100, 116, 139, 0.2);
}

[data-bs-theme="light"] .btn-icon {
  border-color: rgba(100, 116, 139, 0.35);
  color: #0f172a;
  background: #f1f5f9;
}

[data-bs-theme="light"] .btn-icon:hover {
  background: #e2e8f0;
  color: #0b1220;
}

.pi-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pi-tags {
  display: inline-flex;
  gap: 0.4rem;
}

.pi-tag {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
}

/* Global Font Override - Ensure Sansita is used everywhere */
* {
  font-family: 'Sansita', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

/* Hero Section Font Override - Keep original fonts for hero */
#top-hero .hero-line-1 {
  font-family: 'Playfair Display', serif !important;
}

#top-hero .hero-line-2 {
  font-family: 'Inter', sans-serif !important;
}

#top-hero .hero-btn-primary,
#top-hero .hero-btn-secondary {
  font-family: 'Inter', sans-serif !important;
}

/* =============================================================
   Testimonial Cards
   Purpose: Customer quotes with colored quote chip and author
   identity row.
   ============================================================= */
/* Testimonial Cards - Customer review cards with quote indicators */
.testimonial-card {
  background: var(--light-bg);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  height: 100%;
  border: 1px solid var(--border-color);
}

.testimonial-quote {
  position: absolute;
  top: -0.5rem;
  left: 2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.quote-cyan {
  background: var(--accent-color);
}

.quote-purple {
  background: var(--purple-color);
}

.quote-green {
  background: #22c55e;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-info h6 {
  margin: 0;
  color: var(--text-primary);
}

.author-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* About Section Stats */
.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* =============================================================
   Contact Form
   Purpose: Form container, alerts (success/error) styling, and
   focus states. JS handles visibility; CSS handles visuals.
   ============================================================= */
/* Contact Form - Styled form container with shadow */
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

/* Contact success/error alert */
.contact-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* Success (green) */
.contact-alert.alert-success {
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: linear-gradient(0deg, rgba(34, 197, 94, 0.06), rgba(34, 197, 94, 0.06)), #ffffff;
  color: #166534;
  box-shadow: 0 8px 18px -8px rgba(16, 185, 129, 0.35);
}

/* Error (red) */
.contact-alert.alert-danger {
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: linear-gradient(0deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.06)), #ffffff;
  color: #7f1d1d;
  box-shadow: 0 8px 18px -8px rgba(239, 68, 68, 0.25);
}

.contact-alert .alert-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.contact-alert.alert-success .btn-close { filter: invert(0.35) sepia(1) saturate(2) hue-rotate(80deg) brightness(1); }
.contact-alert.alert-danger .btn-close { filter: invert(0.35) sepia(1) saturate(2) hue-rotate(-20deg) brightness(1); }

/* Smooth fade/show in case Bootstrap JS isn't present */
.alert.fade {
  opacity: 0;
  transition: opacity 200ms ease;
}

.alert.fade.show {
  opacity: 1;
}

/* When our custom contact alert becomes visible, gently slide it into place */
.contact-alert.show {
  transform: translateY(0);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.25);
}

/* =============================================================
   Team 3D Cards
   Purpose: Subtle parallax/3D depth using translateZ layers and
   graceful reduction for prefers-reduced-motion.
   ============================================================= */
/* 3D Team Cards - Parallax hover effects for team member cards */
.team-card-3d {
  perspective: 1000px;
  /* establish 3D context */
  transform-style: preserve-3d;
  transition: transform 300ms ease, box-shadow 300ms ease;
  will-change: transform;
  border-radius: 1rem;
}

.team-card-3d:hover {
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.25);
}

.team-card-3d img.card-img-top {
  transition: transform 300ms ease, filter 300ms ease;
  transform-origin: center;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.team-card-3d .card-body {
  transform: translateZ(22px);
}

/* subtle layered depth */
.team-card-3d .card-title {
  transform: translateZ(30px);
}

.team-card-3d .text-muted {
  transform: translateZ(26px);
}

.team-card-3d .card-text {
  transform: translateZ(24px);
}

.team-card-3d .d-flex {
  transform: translateZ(20px);
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {

  .team-card-3d,
  .team-card-3d * {
    transition: none !important;
    transform: none !important;
  }
}

/* =============================================================
   Footer
   Purpose: Light brand-accented footer with link and social icon
   treatments.
   ============================================================= */
/* Footer - Site footer with brand colors */
.footer {
  background: #b0dbf7;
  color: #0f172a;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  opacity: 0.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-link {
  color: rgba(15, 23, 42, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-link:hover {
  color: #0b1220;
}

.social-links {
  display: flex;
  gap: 1rem;
}

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

.social-link:hover {
  background: var(--accent-color);
  color: white;
}

.contact-info p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.contact-info i {
  color: var(--accent-color);
}

.copyright {
  opacity: 0.8;
}

/* =============================================================
   General Animations
   Purpose: Reusable utility keyframes and reveal/fade helpers.
   ============================================================= */
/* Scroll Animations - Reveal elements as they enter viewport */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar toggler visibility adjustments */
.navbar .navbar-toggler {
  border: none;
}

.navbar .navbar-toggler:focus {
  box-shadow: none;
}

[data-bs-theme="dark"] .navbar-light .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

/* =============================================================
   Responsive Design
   Purpose: Adjust typography, grids, spacing, and tap targets for
   tablets and phones.
   ============================================================= */
/* Responsive Design - Tablet and mobile adaptations */
@media (max-width: 768px) {
  /* Reduce hero text size on tablets */
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .metric-card {
    position: static;
    margin: 1rem 0;
  }

  .hero-image-container {
    margin-top: 2rem;
  }

  .filter-buttons {
    text-align: center;
  }

  .filter-btn {
    margin: 0.25rem;
  }

  /* Collapse helper grids on tablets */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}

/* Mobile Responsive - Phone-specific adjustments */
@media (max-width: 576px) {
  /* Further reduce text sizes on mobile */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

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

  .contact-form {
    padding: 1.5rem;
  }

  /* Mobile tap target & layout tweaks */
  .btn-gradient {
    padding: 0.9rem 1.25rem;
    border-radius: 0.6rem;
  }

  .filter-btn {
    padding: 0.55rem 0.9rem;
    border-radius: 1.25rem;
  }

  .section {
    padding: 36px 0;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hide-mobile {
    display: none;
  }

  .show-mobile {
    display: block;
  }
}

/* =============================================================
   Smooth Scrolling
   Purpose: Enable CSS-based smooth scroll for in-page anchors.
   ============================================================= */
html {
  scroll-behavior: smooth;
}

/* =============================================================
   Loading States
   Purpose: Centered spinner utility for async content placeholders.
   ============================================================= */
/* Loading States - Spinner for async content loading */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

/* Animated spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* =============================================================
   Device Mockups: Phone Card (Android-style)
   Purpose: Decorative device frames for showcasing media.
   Iframes/images are non-interactive (pointer-events: none).
   ============================================================= */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* Device Mockups - Phone frame for showcasing mobile content */
.phone-card {
  position: relative;
  background: #0b0f1a;
  border-radius: 28px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
  aspect-ratio: 9/19;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 10px;
  background: #0b0f1a;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-top: none;
}

.phone-screen {
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
}

.phone-screen iframe,
.laptop-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  display: block;
  pointer-events: none;
  /* decorative playback */
  z-index: 1;
}

.phone-screen img,
.phone-screen video,
.laptop-screen img,
.laptop-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-auto-pan img {
  animation: deviceAutoPan 12s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes deviceAutoPan {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10%);
  }
}

.phone-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(2, 6, 23, 0.7);
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  z-index: 2;
}

/* Phone UI overlays */
.phone-status-bar {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

.phone-status-bar .psb-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-status-bar .psb-signal,
.phone-status-bar .psb-wifi,
.phone-status-bar .psb-battery {
  display: inline-block;
  height: 10px;
  border-radius: 2px;
  background: rgba(203, 213, 225, 0.7);
}

.phone-status-bar .psb-signal {
  width: 14px;
}

.phone-status-bar .psb-wifi {
  width: 12px;
}

.phone-status-bar .psb-battery {
  width: 18px;
}

.phone-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 32%;
  height: 4px;
  background: rgba(203, 213, 225, 0.55);
  border-radius: 3px;
  z-index: 2;
  pointer-events: none;
}

/* =============================================================
   Device Mockups: Laptop Card
   Purpose: 16:10 laptop frame for larger showcases.
   ============================================================= */
/* Laptop Mockup - Desktop frame for showcasing web content */
.laptop-card {
  position: relative;
  background: #0b0f1a;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
  overflow: hidden;
}

/* Maintain a classic 16:10 screen ratio */
.laptop-screen-wrapper {
  position: relative;
  padding-top: 62.5%;
  /* 10/16 = 62.5% */
  background: #0f172a;
}

.laptop-screen {
  position: absolute;
  inset: 0;
}

.laptop-base {
  height: 16px;
  background: linear-gradient(180deg, #0f172a, #0b0f1a);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.laptop-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 3px;
}

.laptop-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.7);
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  z-index: 3;
}

/* =============================================================
   Hover Cards Section
   ============================================================= */
.hero-cards-section .card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-cards-section .card .card-content {
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.hero-cards-section .card .hover-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  text-align: center;
}

.hero-cards-section .card:hover .card-content {
  opacity: 0;
  transform: translateY(-20px);
}

.hero-cards-section .card:hover .hover-content {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   Cards Section
   ============================================================= */
.cards-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.cards-section .card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: white;
    height: 100%;
}

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

.cards-section .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    color: #0d6efd;
}

.cards-section .card-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.cards-section .card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cards-section .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #0d6efd;
    border-color: #0d6efd;
}

.cards-section .btn-outline-primary:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* ===== Fix Top Hero Text Visibility (Like SocialPanga) ===== */
#top-hero.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  color: #fff;
}

/* Video stays full screen */
#top-hero .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay for better contrast */
#top-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

/* Content stays above video */
#top-hero .container {
  position: relative;
  z-index: 2;
}

/* Center text */
#top-hero .row {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO TEXT VISIBILITY FIX */
#top-hero .hero-title {
  font-family: "Poppins", "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.6); /* adds glow for visibility */
  margin-bottom: 1rem;
}

#top-hero .hero-line-1,
#top-hero .hero-line-2 {
  background: linear-gradient(90deg, #333333 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* visible even on light bg */
  display: block; /* Ensure visibility */
}

#top-hero .hero-sub {
  color: #f5f5f5;
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 650px;
  margin: 1rem auto 3rem; /* Increased margin-bottom for more space */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* ensures readability */
}

/* Button */
#top-hero .btn-gradient {
  background: linear-gradient(90deg, #00c3ff 0%, #6df45b 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 40px;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 195, 255, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}

#top-hero .btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 195, 255, 0.35);
}

/* Mobile optimization */
@media (max-width: 768px) {
  #top-hero.hero-section {
    min-height: 90vh;
    padding: 3rem 1rem;
  }

  #top-hero .hero-title {
    font-size: 2rem;
  }

  #top-hero .hero-sub {
    font-size: 1rem;
  }
}



/* === HERO ONE-LINE STYLE (All text black) === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Roboto:wght@400;500&display=swap');

.hero-one-line {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.15;
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 1.5rem;
  color: #ffffff; /* ✅ all black text */
}

/* "We Help Brands" — normal weight */
.hero-one-line .brand-text {
  font-weight: 400;
  color: #ffffff; /* black */
  opacity: 0.95;
}

/* "CONNECT | CREATE | CONQUER" — bold, uppercase, black */
.hero-one-line span:not(.brand-text) {
  color: #ffffff; /* black */
  font-size: 1.25em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* tagline */
.hero-subtext {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(16px, 1.6vw, 20px);
  color: #ffffff; /* black */
  line-height: 2;
  margin-top: 1.2rem;
  letter-spacing: 0.5px;
  text-align: center;
  opacity: 0.95;
}

/* responsive tweaks */
@media (max-width: 768px) {
  .hero-one-line {
    font-size: 28px;
    line-height: 1.2;
  }
  .hero-one-line span:not(.brand-text) {
    display: block;
    font-size: 32px;
    margin-top: 6px;
  }
  .hero-subtext {
    font-size: 15px;
    line-height: 1.8;
    padding: 0 12px;
  }
}
/* === HERO TEXT FONT FIX === */

/* Make "We Help Brands" use Playfair Display */
.brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 400; /* normal (not bold) */
  color: #ffffff;   /* black color */
  font-size: clamp(28px, 5vw, 60px);
  letter-spacing: 1px;
  text-transform: capitalize;
}

/* Make "CONNECT | CREATE | CONQUER" bold uppercase in same font or sans-serif */
.hero-one-line span:not(.brand-text) {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #fffefe;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 3px;
}
