/* ===================================================
   SABR ENTERPRISES - Ultra Professional Website
   Clean, Modern, Impactful Design
   Note: design-system.css is loaded in HTML <head> before this file
   =================================================== */

@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');

:root {
  /* Legacy color compatibility - maps to design system */
  --primary: #6A11CB;
  --primary-dark: #5209A8;
  --primary-light: #8B4FD9;
  --accent: #00C9FF;
  /* Glassmorphism System */
  --glass-bg: rgba(20, 25, 40, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Theme Variables - Extended for backward compatibility */
body {
  --bg-secondary: #0f1219;
  /* Darker to let glass pop */
  --color-primary: var(--primary);
}

body.light-theme {
  /* Apple-like Premium Light Theme */
  --bg-secondary: #f5f5f7;
  /* Classic Apple light grey */
  --glass-bg: rgba(255, 255, 255, 0.75);
  /* Higher opacity for crispness */
  --glass-border: rgba(0, 0, 0, 0.05);
  /* Grey border for definition on white */
  --glass-blur: blur(20px) saturate(180%);
  /* Saturated blur for vibrancy */
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  /* Ultra soft premium shadow */
}

/* Light theme specific overrides for Glass */
body.light-theme .stat-card,
body.light-theme .service-card,
body.light-theme .portfolio-card,
body.light-theme .team-card,
body.light-theme .value-card,
body.light-theme .card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* Page-specific overrides (design-system.css handles base styles) */

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-24) 0 var(--space-16);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content h1 {
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: var(--space-8);
  max-width: 540px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, #6A11CB), var(--accent, #00C9FF));
  box-shadow: 0 20px 60px rgba(106, 17, 203, 0.4);
  animation: heroFloat 6s ease-in-out infinite;
  position: relative;
}

.hero-circle::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, #6A11CB), var(--accent, #00C9FF));
  opacity: 0.2;
  filter: blur(40px);
  z-index: -1;
}

@keyframes heroFloat {

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 14px 0 rgba(106, 17, 203, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  transform: translateY(-2px);
  box-shadow: 0 10px 25px 0 rgba(106, 17, 203, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
}

/* Section */
.section {
  padding: var(--space-24, 6rem) 0;
  position: relative;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.section-header h2 {
  margin-bottom: var(--space-4, 1rem);
  color: var(--text, #ffffff);
  font-weight: 700;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.7;
}

/* Stats */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  opacity: 1 !important;
  visibility: visible !important;
}

.stat-card {
  text-align: center;
  padding: var(--space-8, 2rem);
  background: var(--bg-elevated, #1a1a2e) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(106, 17, 203, 0.1) !important;
  transition: all 0.3s;
  min-height: 200px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  opacity: 1 !important;
  visibility: visible !important;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(106, 17, 203, 0.3);
  border-color: var(--primary);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary, #6A11CB);
  margin-bottom: var(--space-2, 0.5rem);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim, #64748b);
  font-weight: 600;
  margin-top: var(--space-2, 0.5rem);
}

/* Services */
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-8);
  opacity: 1 !important;
  visibility: visible !important;
}

.service-card {
  padding: var(--space-8, 2rem);
  background: var(--bg-elevated, #1a1a2e) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(106, 17, 203, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex !important;
  flex-direction: column;
  backdrop-filter: blur(10px);
  opacity: 1 !important;
  visibility: visible !important;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(106, 17, 203, 0.3);
  border-color: var(--primary);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 100px;
  height: 100px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.15), rgba(0, 201, 255, 0.15)) !important;
  border: 2px solid rgba(106, 17, 203, 0.3) !important;
  border-radius: 1.5rem;
  margin-bottom: var(--space-6, 1.5rem);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(106, 17, 203, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Gradient overlay on hover */
.service-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.3), rgba(0, 201, 255, 0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

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

/* SVG styling inside icon */
.service-icon svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(106, 17, 203, 0.6) !important;
  box-shadow:
    0 16px 48px rgba(106, 17, 203, 0.35),
    0 0 0 1px rgba(106, 17, 203, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon svg {
  transform: scale(1.1) rotate(-5deg);
}

/* Light theme adjustments */
body.light-theme .service-icon {
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.08), rgba(0, 201, 255, 0.08)) !important;
  border-color: rgba(106, 17, 203, 0.25) !important;
  box-shadow:
    0 8px 32px rgba(106, 17, 203, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-theme .service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.12), rgba(0, 201, 255, 0.12)) !important;
  border-color: rgba(106, 17, 203, 0.4) !important;
  box-shadow:
    0 16px 48px rgba(106, 17, 203, 0.25),
    0 0 0 1px rgba(106, 17, 203, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.light-theme .service-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-3, 0.75rem);
  color: var(--text, #ffffff) !important;
  font-weight: 700;
  opacity: 1 !important;
  visibility: visible !important;
}

.service-card p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-5, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted, #94a3b8) !important;
  flex-grow: 1;
  opacity: 1 !important;
  visibility: visible !important;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.service-link:hover {
  gap: 0.75rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
}

/* Footer */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: var(--space-3);
}

.footer a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 90px;
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  z-index: 101;
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}

/* Portfolio Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--space-8);
}

.portfolio-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(106, 17, 203, 0.1);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(106, 17, 203, 0.25);
  border-color: var(--primary);
}

.portfolio-image {
  height: 220px;
  background: linear-gradient(135deg, var(--primary, #6A11CB), var(--accent, #00C9FF));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  flex-shrink: 0;
}

.portfolio-content {
  padding: var(--space-6, 1.5rem);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(106, 17, 203, 0.1);
  color: var(--primary);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.portfolio-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3, 0.75rem);
  color: var(--text, #ffffff);
  font-weight: 700;
}

.portfolio-card p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-4, 1rem);
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-4);
}

.tech-tag {
  padding: 0.375rem 0.75rem;
  background: var(--bg, #0a0e1a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-dim, #64748b);
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2rem;
  border-radius: 1.25rem;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--glass-shadow);
}

.contact-form {
  background: var(--glass-bg);
  /* Use shared glass variable */
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 2rem;
  padding: 3.5rem;
  box-shadow: var(--glass-shadow);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text);
  margin-left: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  /* Subtle input glass */
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(106, 17, 203, 0.1);
  outline: none;
}

/* Light Theme overrides for inputs */
body.light-theme .form-input,
body.light-theme .form-textarea {
  background: rgba(255, 255, 255, 0.6);
  border-color: #e2e8f0;
}

body.light-theme .form-input:focus,
body.light-theme .form-textarea:focus {
  background: #ffffff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    height: 400px;
  }

  .hero-circle {
    width: 320px;
    height: 320px;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 72px);
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    gap: var(--space-4);
    transition: right 0.3s;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .theme-toggle {
    top: 12px;
    right: 5rem;
    width: 40px;
    height: 40px;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility */
.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Image Updates */
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Founder Section */
.founder-section {
  padding: 8rem 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.founder-image-wrapper {
  flex: 0 0 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(106, 17, 203, 0.3);
  border: 1px solid rgba(106, 17, 203, 0.2);
}

.founder-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.founder-image-wrapper:hover img {
  transform: scale(1.05);
}

.founder-content {
  flex: 1;
}

.founder-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #6A11CB, #00C9FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.founder-quote {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid #6A11CB;
}

.founder-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.founder-role {
  color: #6A11CB;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .founder-container {
    flex-direction: column;
    text-align: center;
  }

  .founder-content h2 {
    text-align: center;
  }

  .founder-quote {
    padding-left: 0;
    border-left: none;
    border-top: 4px solid #6A11CB;
    padding-top: 2rem;
  }
}

/* Text Only Team Cards */
.team-card.text-only {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
}

.team-card.text-only h3 {
  font-size: 1.5rem;
  margin: 0;
  background: var(--gradient-primary);
  /* Use theme gradient for better visibility */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================================================
   REVAMPED GLOBAL FOOTER
   =================================================== */

.premium-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  /* 4 Columns */
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Brand Column */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 320px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #6A11CB, #00C9FF);
  border-color: transparent;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(106, 17, 203, 0.3);
}

/* Footer Links */
.footer-column h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* Newsletter Section */
.footer-newsletter-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.35rem;
  border-radius: 12px;
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-btn {
  background: linear-gradient(135deg, #6A11CB, #00C9FF);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.newsletter-btn:hover {
  transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.built-by {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Capabilities Section */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding: 0 1rem;
}

.capability-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  /* Fixed from hardcoded rgba */
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
}

.capability-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary, #6A11CB);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.capability-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(255, 255, 255, 0.05); */
  border-radius: 50%;
  padding: 10px;
  transition: all 0.3s ease;
}

.capability-item:hover .capability-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.capability-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.capability-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text, #fff);
}

/* Philosophy Section */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding: 0 1rem;
}

.philosophy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.philosophy-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary, #6A11CB);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.philosophy-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(0, 201, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary, #6A11CB);
  transition: all 0.3s ease;
}

.philosophy-card:hover .philosophy-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.philosophy-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text, #fff);
  font-weight: 700;
}

.philosophy-card p {
  font-size: 1rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
}

.cta-section .hero-buttons {
  justify-content: center;
}

/* Premium SABR Logo Animation */
.sabr-logo-svg {
  overflow: visible;
}

.logo-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLogoLoop 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 2px rgba(106, 17, 203, 0.5));
}

.logo-dot {
  transform-origin: center;
  animation: dotPulse 6s ease-in-out infinite;
}

/* Premium Text Animation */
.navbar-logo .logo-text,
.footer-logo .logo-text {
  position: relative;
  background: linear-gradient(110deg, var(--text) 45%, var(--primary) 50%, var(--text) 55%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  transition: all 0.3s ease;
  animation: shimmerFlow 8s linear infinite;
}

/* Shimmer on highlight - clearer distinction */
.logo-highlight {
  background: linear-gradient(135deg, #6A11CB 0%, #00C9FF 50%, #6A11CB 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerFlow 4s linear infinite;
  display: inline-block;
  font-weight: 800;
  /* Extra weight for SABR */
}

@keyframes drawLogoLoop {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  30% {
    stroke-dashoffset: 0;
  }

  80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(0, 201, 255, 0.8));
  }
}

/* Smoother looping draw/undraw or just glowing pulse */
@keyframes drawLogoLoop {
  0% {
    stroke-dashoffset: 100;
  }

  40% {
    stroke-dashoffset: 0;
  }

  60% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 0;
  }

  /* Keep drawn longer, reset happens via dasharray loop if set differently, but here simple draw-in repeat might look jerky. Let's do a pulse width/opacity */
}

/* Better Loop: Draw In -> Glow -> Fade Out -> Repeat */
@keyframes drawLogoLoop {
  0% {
    stroke-dashoffset: 100;
    opacity: 0.5;
  }

  35% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  75% {
    stroke-dashoffset: 0;
    opacity: 1;
    stroke-width: 3;
  }

  85% {
    stroke-dashoffset: 0;
    opacity: 1;
    stroke-width: 4;
    filter: drop-shadow(0 0 4px rgba(0, 201, 255, 0.6));
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
    stroke-width: 3;
  }
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(0);
    opacity: 0;
  }

  30% {
    transform: scale(1.2);
    opacity: 1;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }

  90% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmerFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Navbar Logo Specifics - Enhance hover */
.navbar-logo:hover .logo-path {
  filter: drop-shadow(0 0 8px rgba(0, 201, 255, 0.8));
  animation-play-state: paused;
  /* Pause loop on hover to let user see it */
  stroke-dashoffset: 0;
}

/* Premium Success Modal */
.success-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 12, 41, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.5rem;
}

.success-modal.active {
  opacity: 1;
  visibility: visible;
}

.success-content {
  text-align: center;
  padding: 3rem;
  max-width: 400px;
  width: 90%;
  transform: translateY(20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal.active .success-content {
  transform: translateY(0) scale(1);
}

/* Animated Checkmark */
.success-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #10b981;
  stroke-miterlimit: 10;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.success-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: white;
}

.success-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.close-modal-btn {
  padding: 0.875rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal-btn:hover {
  background: var(--primary);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}

/* Visual Break Section (New) */
.visual-break-section {
  position: relative;
  height: 60vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.visual-break-section .visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.85);
  /* Increased opacity for better contrast */
  backdrop-filter: blur(4px);
}

.visual-break-section .visual-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.visual-break-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  /* Added shadow for legibility */
}

.visual-break-section p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #e2e8f0;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Added shadow for legibility */
}

/* Universal Text Visibility Helper */
.text-shadow-enhanced {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-title,
.section-header h2 {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  /* Subtle lift from background */
}

/* ==================== GLOBAL POLISH ==================== */

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(106, 17, 203, 0.3);
  border-radius: 5px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(106, 17, 203, 0.6);
}

/* Text Selection */
::selection {
  background: rgba(106, 17, 203, 0.3);
  color: var(--text);
}

body.light-theme ::selection {
  background: rgba(106, 17, 203, 0.2);
  color: #000;
}

/* ==================== PREMIUM MOBILE OPTIMIZATIONS ==================== */
@media (max-width: 768px) {

  /* Tighter Section Spacing */
  .section {
    padding: 4rem 0 !important;
  }

  /* Compact Hero Typography */
  .hero-content h1 {
    font-size: 2.5rem !important;
  }

  .hero-subtitle {
    font-size: 1.125rem !important;
  }

  /* Contact Form Breathability */
  .contact-form {
    padding: 1.5rem !important;
    border-radius: 1.5rem !important;
  }

  /* Fix Grid Blowouts on Small Screens */
  .services-grid,
  .process-cards-grid,
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .stat-card {
    min-height: auto !important;
    padding: 1.5rem !important;
  }

  .service-card {
    min-height: auto !important;
  }

  /* Mobile Hero Circle Sizing */
  .hero-circle {
    width: 280px;
    height: 280px;
    opacity: 0.8;
  }

  .hero-visual {
    height: 350px;
  }
}