/* -------------------------------------------------------------
 * Sarabar Software - Premium Landing Page Stylesheet
 * Theme: Cyberpunk/Minimalist Slate Dark with Glassmorphism
 * ------------------------------------------------------------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables & Design System */
:root {
  /* Color Palette */
  --bg-dark: #070a13;
  --bg-dark-rgb: 7, 10, 19;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(30, 41, 59, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(139, 92, 246, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  
  --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  --gradient-text: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  --gradient-cyan-blue: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --glow-purple: 0 0 25px rgba(139, 92, 246, 0.25);
  --glow-blue: 0 0 25px rgba(59, 130, 246, 0.25);
  
  /* Layout */
  --header-height: 80px;
  --header-shrink-height: 64px;
  --container-max-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Resets & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Lights */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.page-wrapper {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

.bg-glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: floatLight 12s infinite alternate ease-in-out;
}

.bg-glow-spot-1 {
  top: 5%;
  left: 10%;
  width: 40%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.bg-glow-spot-2 {
  top: 35%;
  right: -5%;
  width: 45%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  animation-delay: -3s;
}

.bg-glow-spot-3 {
  top: 70%;
  left: -10%;
  width: 50%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes floatLight {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4%, 6%) scale(1.15);
  }
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
}

/* Scroll-Reveal Base Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--glow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Glass Card Style */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glass-glow);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Header & Glassmorphic Navigation */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

/* Sticky Header Scroll State */
.header-wrapper.scrolled {
  height: var(--header-shrink-height);
  background: rgba(var(--bg-dark-rgb), 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

/* Native CSS Scroll-driven shrink support */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .header-wrapper {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
  
  @keyframes shrinkHeader {
    to {
      height: var(--header-shrink-height);
      background: rgba(var(--bg-dark-rgb), 0.75);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-glass);
      box-shadow: var(--shadow-sm);
    }
  }
}

.header-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  position: relative;
}

.logo-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
  animation: logoPulse 3s infinite ease-in-out;
}

.logo-wrapper:hover .logo-icon-img {
  transform: rotate(-10deg) scale(1.12);
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.5));
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(96, 165, 250, 0.15));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.45));
  }
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
}

.text-gradient-alt {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 5px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger Icon */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Open State of Hamburger */
.mobile-nav-toggle.open .hamburger {
  background: transparent;
}
.mobile-nav-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.mobile-nav-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-grid > div,
.about-grid > div {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.hero-content {
  text-align: left;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 30px;
  color: #a78bfa;
  margin-bottom: 1.5rem;
}

.hero-tagline-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-purple);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Floating Mockup / Canvas */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-back {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-brand);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: -1;
  animation: floatMockup 8s infinite alternate ease-in-out;
}

.hero-visual-frame {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  padding: 10px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  animation: floatMockup 6s infinite alternate ease-in-out;
  width: 100%;
  max-width: 100%;
}

.hero-visual-frame img {
  border-radius: 12px;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

@keyframes floatMockup {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(1deg); }
}

/* About Us Section with Interactive Tabs */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 0;
}

.about-img-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 100%;
}

.about-img-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-img-frame:hover img {
  transform: scale(1.03);
}

/* Products Mockup Responsive Aspect Ratio Fix */
#products .about-img-frame img {
  height: auto;
  aspect-ratio: 1200 / 800;
}

.about-badge {
  color: var(--accent-purple);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: block;
}

.about-subtitle {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* Sales Box with Sparks Background */
.sales-box {
  margin-top: 2rem;
  padding: 1.8rem;
  border-radius: 16px;
  background-image: linear-gradient(rgba(10, 12, 19, 0.85), rgba(10, 12, 19, 0.85)), url('../img/sales_sparks_bg.png');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.sales-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.sales-box-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 20px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.sales-box h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.sales-box p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.btn-sales-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-sales-contact i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-sales-contact:hover {
  color: #fff;
}

.btn-sales-contact:hover i {
  transform: translateX(5px);
}

/* Mission, Vision, Objective Tabs */
.tabs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 6px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-purple);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.tab-content-panel.active {
  display: block;
}

.tab-content-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.tab-content-panel p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
}

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

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-purple);
  transition: var(--transition-smooth);
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  flex-grow: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(150px circle at var(--x, 0px) var(--y, 0px), rgba(139, 92, 246, 0.12), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: -1;
}

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

.service-card:hover .service-icon-box {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}

/* Portfolio Filters & Grid */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-purple);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 2rem;
}

.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.portfolio-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-overlay-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.portfolio-overlay-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--glow-purple);
}

.portfolio-card:hover .portfolio-img-box img {
  transform: scale(1.05);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-meta {
  padding: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.portfolio-meta h4 {
  font-size: 1.15rem;
  margin-bottom: 5px;
}

.portfolio-meta p {
  color: var(--accent-purple);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-card:hover {
  border-color: var(--border-glass-glow);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

/* Testimonials Carousel / Layout */
.testimonials-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  animation: slideFadeIn 0.5s ease-in-out forwards;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 3rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.testimonial-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-purple);
}

.testimonial-quote-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.testimonial-text-box h4 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.testimonial-text-box h5 {
  font-size: 0.9rem;
  color: var(--accent-purple);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.testimonial-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  font-weight: 300;
}

/* Testimonial Nav dots */
.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.testimonial-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.testimonial-dot.active {
  background: var(--accent-purple);
  transform: scale(1.3);
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Client Logos Marquee */
.clients-wrapper {
  margin-top: 50px;
  border-top: 1px solid var(--border-glass);
  padding-top: 40px;
  overflow: hidden;
  max-width: 100%;
}

.clients-marquee {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
}

.clients-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8rem;
  padding-right: 8rem;
  flex-shrink: 0;
}

.client-logo-box {
  opacity: 1;
  transition: var(--transition-smooth);
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-box img {
  max-height: 100px;
  width: auto;
  filter: none;
  transition: var(--transition-smooth);
}

.client-logo-box img.logo-invert-dark {
  filter: invert(1) hue-rotate(180deg) brightness(2.2);
}

.client-logo-box:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.35));
}

.client-logo-box:hover img.logo-invert-dark {
  filter: invert(1) hue-rotate(180deg) brightness(2.2) drop-shadow(0 0 15px rgba(139, 92, 246, 0.35));
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Contact Us Grid */
.contact-grid {
  width: 100%;
}

.contact-cards-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(10px);
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 22px;
  height: 22px;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-info-text p, .contact-info-text a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  word-break: break-all;
  overflow-wrap: break-word;
}

.contact-info-text a:hover {
  color: var(--accent-purple);
}



/* Footer Section */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 50px 0 30px 0;
  background: #05070d;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.social-link:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: var(--glow-purple);
}

.footer-links-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
}

.footer-links-list a:hover {
  color: var(--text-primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Floating Scroll-to-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  translate: 0 20px;
  transition: visibility 0.3s, opacity 0.3s, translate 0.3s;
  box-shadow: var(--glow-purple);
}

.back-to-top-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Scroll query states */
@supports (container-type: scroll-state) {
  .back-to-top-btn {
    visibility: hidden;
    opacity: 0;
  }
}

.scrolled-active .back-to-top-btn {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
}

/* -------------------------------------------------------------
 * Responsive Layout (Media Queries)
 * ------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-cards-stack {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  #nav-container {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
  }

  .logo-icon-container {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-wrapper {
    gap: 8px;
  }

  .marquee-group {
    gap: 3.5rem;
    padding-right: 3.5rem;
  }

  .client-logo-box img {
    max-height: 55px;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 50px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(var(--bg-dark-rgb), 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
    pointer-events: none;
    border-top: 1px solid var(--border-glass);
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .testimonial-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .form-group-flex {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }
  .logo-icon-container {
    width: 28px;
    height: 28px;
  }
  .logo-wrapper {
    gap: 6px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .contact-detail-card {
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }
  .contact-form-card {
    padding: 1.8rem;
  }
}

/* -------------------------------------------------------------
 * Portfolio Lightbox Dialog
 * ------------------------------------------------------------- */
.lightbox-dialog {
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  outline: none;
  overflow: visible;
}

.lightbox-dialog::backdrop {
  background-color: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: var(--transition-smooth);
}

.lightbox-close-btn:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  transform: rotate(90deg);
}

/* Sales Pricing Button */
.btn-sales-pricing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.6);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2), 0 0 10px rgba(6, 182, 212, 0.1);
  letter-spacing: 0.01em;
}

.btn-sales-pricing i {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-sales-pricing:hover {
  background: var(--accent-cyan);
  color: #070a13;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.btn-sales-pricing:hover i {
  transform: scale(1.2) rotate(15deg);
}

/* Pricing Dialog Window Overlay */
.pricing-dialog {
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 840px;
  width: 95%;
  max-height: 90vh;
  outline: none;
  overflow: hidden;
  border-radius: 24px;
}

.pricing-dialog::backdrop {
  background-color: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Pricing Modal Card Content Styling */
.pricing-modal-content {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 2.5rem 2.5rem;
  background: rgba(10, 12, 19, 0.95);
  border: 1px solid var(--border-glass-glow);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.15);
  border-radius: 24px;
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.4) rgba(0, 0, 0, 0.2);
}

.pricing-modal-content::-webkit-scrollbar {
  width: 6px;
}

.pricing-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.pricing-modal-content::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.4);
  border-radius: 10px;
}

.pricing-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.pricing-modal-content .lightbox-close-btn {
  position: sticky;
  top: 0;
  float: right;
  margin-top: -1.5rem;
  margin-right: -1rem;
  z-index: 110;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pricing-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pricing-header h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pricing-modal-content {
    padding: 2.5rem 1.5rem 1.5rem;
  }
}

.pricing-plan-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-plan-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pricing-plan-card.featured {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, rgba(10, 12, 19, 0) 100%), rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.05);
}

.pricing-plan-card.featured:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.1);
}

.plan-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.pricing-plan-card.featured .plan-badge {
  background: rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(139, 92, 246, 0.6);
  color: #f3e8ff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
}

.pricing-plan-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.plan-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li i {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.pricing-plan-card.featured .plan-features li i {
  color: var(--accent-purple);
}

.btn-plan-select {
  width: 100%;
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
}
