/* =====================================================
   ADVANCED NEXT TECH — Premium Dark Theme
   Modern | Glassmorphic | Animated | Professional
   ===================================================== */

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root,
[data-bs-theme="dark"] {
  /* Dark palette */
  --bg-primary: #050816;
  --bg-secondary: #0a0f24;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-glass: rgba(17, 24, 39, 0.6);
  --bg-glass-light: rgba(255, 255, 255, 0.04);

  /* Brand colors */
  --brand-primary: #3b82f6;
  --brand-secondary: #8b5cf6;
  --brand-accent: #06b6d4;
  --brand-glow: rgba(59, 130, 246, 0.3);
  --brand-glow-purple: rgba(139, 92, 246, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #050816 0%, #0a1628 40%, #0f172a 70%, #050816 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  --gradient-border: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));

  /* Text colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #60a5fa;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(59, 130, 246, 0.4);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
  --shadow-card-hover: 0 20px 40px rgba(59, 130, 246, 0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* New Tokens */
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-input-focus: rgba(255, 255, 255, 0.08);
  --bg-nav: rgba(5, 8, 22, 0.85);
  --bg-nav-scrolled: rgba(5, 8, 22, 0.95);
}

[data-bs-theme="dark"] select option {
  background-color: #111827;
  /* Match var(--bg-card) */
  color: #f1f5f9;
  /* Match var(--text-primary) */
}

[data-bs-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-light: rgba(0, 0, 0, 0.03);

  --text-primary: #0f172a;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-accent: #2563eb;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(59, 130, 246, 0.4);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.1);
  --shadow-card-hover: 0 20px 40px rgba(59, 130, 246, 0.1);

  --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(249, 250, 251, 1));

  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;

  --bg-nav: rgba(255, 255, 255, 0.9);
  --bg-nav-scrolled: rgba(255, 255, 255, 0.98);
}

/* =====================================================
   GLOBAL RESET & BASE
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

/* =====================================================
   ANIMATED BACKGROUND PARTICLES
   ===================================================== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  background: var(--bg-nav) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: var(--bg-nav-scrolled) !important;
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(59, 130, 246, 0.1);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  flex-shrink: 0;
}

.brand-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.navbar-brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand-tagline {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.navbar .nav-link i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(59, 130, 246, 0.1);
}

.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.btn-nav-login {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 1.2rem !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 15px rgba(59, 130, 246, 0.3);
}

.btn-nav-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
  color: #fff !important;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
  background: var(--gradient-primary);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  background: var(--gradient-hero);
  color: var(--text-primary);
  padding-top: 7rem;
  padding-bottom: 7rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, -20px) scale(1.1);
  }
}

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

.hero h1 {
  font-weight: 900;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* =====================================================
   GRADIENT TEXT
   ===================================================== */
.grad-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* =====================================================
   SECTION STYLES
   ===================================================== */
section {
  padding: 5rem 0;
  position: relative;
}

.section-head {
  background: var(--gradient-hero);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.section-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.section-head .container {
  position: relative;
  z-index: 1;
}

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

.section-head p {
  color: var(--text-secondary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.bg-dim {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
}

.bg-dim::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.bg-dim .container {
  position: relative;
  z-index: 1;
}

/* =====================================================
   CARDS — Glassmorphic Premium
   ===================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

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

.card-hover {
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.card-body {
  padding: 1.75rem;
}

.card-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.card:hover .card-title {
  color: var(--text-accent);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* Service card icon badge */
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all var(--transition-normal);
}

.service-icon i {
  font-size: 1.3rem;
  color: var(--brand-primary);
}

.card:hover .service-icon {
  background: var(--gradient-primary);
  transform: scale(1.1) rotate(-5deg);
}

.card:hover .service-icon i {
  color: #fff;
}

/* =====================================================
   HERO CARD (WHY US)
   ===================================================== */
.hero-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.hero-card h6 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.hero-feature {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid transparent;
  transition: all var(--transition-normal);
}

.hero-feature:nth-child(1) {
  border-left-color: #3b82f6;
}

.hero-feature:nth-child(2) {
  border-left-color: #8b5cf6;
}

.hero-feature:nth-child(3) {
  border-left-color: #06b6d4;
}

.hero-feature:nth-child(4) {
  border-left-color: #10b981;
}

.hero-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.hero-feature .fw-semibold {
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
  background: var(--bg-primary);
}

.contact-section .card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.contact-section .card:hover {
  transform: none;
}

.contact-section .form-control,
.contact-section .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  transition: all var(--transition-normal);
}

.contact-section .form-control:focus,
.contact-section .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: var(--bg-input-focus);
  color: var(--text-primary);
}

.contact-section .form-control::placeholder {
  color: var(--text-muted);
}

.contact-section .form-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* =====================================================
   FOOTER — Premium Dark
   ===================================================== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.footer-heading {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-office {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-office i {
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-office strong {
  color: var(--text-primary);
}

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

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.footer-links a:hover {
  color: var(--text-accent);
}

.footer-links a:hover::after {
  width: 100%;
}

.cursor-pointer {
  cursor: pointer;
}

.footer-links .btn-link:hover {
  color: var(--brand-primary) !important;
  transform: scale(1.2);
}

.footer-links .btn-link {
  transition: all var(--transition-fast);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.footer-social:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* =====================================================
   CASE STUDY SLIDER
   ===================================================== */
#case-studies {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.case-study-slider {
  position: relative;
  overflow: hidden;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.case-study-slider .swiper-slide {
  height: 420px !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-slow);
}

.case-study-slider .swiper-slide:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.case-study-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-img {
  transition: transform 0.8s ease, filter 0.5s ease;
}

.swiper-slide:hover .showcase-img {
  transform: scale(1.07);
  filter: brightness(1.1);
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
  color: #e5e7eb !important;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 44px !important;
  height: 44px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-subtle);
}

.swiper-button-prev {
  left: 0.75rem !important;
}

.swiper-button-next {
  right: 0.75rem !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.9rem !important;
  font-weight: 700;
}

.swiper-pagination {
  position: absolute !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: 25 !important;
}

.swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.4) !important;
  opacity: 0.7;
  width: 8px;
  height: 8px;
  transition: all var(--transition-normal);
}

.swiper-pagination-bullet-active {
  background: var(--gradient-primary) !important;
  opacity: 1;
  width: 24px;
  border-radius: 4px;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-primary {
  color: var(--brand-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

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

.fade-in-up {
  animation: fadeInUp 0.7s ease-out both;
}

.card {
  animation: fadeIn 0.6s ease-out both;
}

/* Stagger delay for cards in a grid */
.row>.col-md-6:nth-child(1) .card,
.row>.col-lg-4:nth-child(1) .card {
  animation-delay: 0.05s;
}

.row>.col-md-6:nth-child(2) .card,
.row>.col-lg-4:nth-child(2) .card {
  animation-delay: 0.1s;
}

.row>.col-md-6:nth-child(3) .card,
.row>.col-lg-4:nth-child(3) .card {
  animation-delay: 0.15s;
}

.row>.col-md-6:nth-child(4) .card,
.row>.col-lg-4:nth-child(4) .card {
  animation-delay: 0.2s;
}

.row>.col-md-6:nth-child(5) .card,
.row>.col-lg-4:nth-child(5) .card {
  animation-delay: 0.25s;
}

.row>.col-md-6:nth-child(6) .card,
.row>.col-lg-4:nth-child(6) .card {
  animation-delay: 0.3s;
}

/* =====================================================
   HOVER ZOOM EFFECT
   ===================================================== */
.hover-zoom {
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.hover-zoom:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 991px) {
  .navbar .nav-link {
    padding: 0.6rem 1rem !important;
  }

  .btn-nav-login {
    margin-top: 0.5rem;
    text-align: center;
    display: block;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-card {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  section {
    padding: 3rem 0;
  }

  .card-body {
    padding: 1.5rem;
  }

  .stats-bar {
    margin-top: -2rem;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {

  h1,
  .display-5 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-outline-light {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }

  .brand-name {
    font-size: 0.8rem;
  }

  .logo-wrapper {
    height: 36px;
    width: 36px;
  }
}

/* =====================================================
   ADMIN STYLES
   ===================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.admin-login-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.admin-login-card .form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  transition: all var(--transition-normal);
}

.admin-login-card .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: var(--bg-input-focus);
  color: var(--text-primary);
}

.admin-login-card .form-control::placeholder {
  color: var(--text-muted);
}

.admin-login-card .form-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Admin Dashboard */
.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  min-height: calc(100vh - 60px);
  padding: 1.5rem;
}

.admin-sidebar .nav-link {
  color: var(--text-secondary);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-accent);
}

.admin-sidebar .nav-link i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
}

.admin-content {
  padding: 2rem;
  min-height: calc(100vh - 60px);
}

.admin-table {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-table table {
  margin-bottom: 0;
  color: var(--text-primary);
}

.admin-table thead th {
  background: rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem;
}

.admin-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 0.9rem;
}

.admin-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table .project-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.btn-sm {
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.btn-outline-primary {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline-primary:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-outline-danger {
  border-color: #ef4444;
  color: #ef4444;
}

.btn-outline-danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* Admin Form */
.admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.admin-form-card .form-control,
.admin-form-card .form-select,
.admin-form-card textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  transition: all var(--transition-normal);
}

.admin-form-card .form-control:focus,
.admin-form-card .form-select:focus,
.admin-form-card textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: var(--bg-input-focus);
  color: var(--text-primary);
}

.admin-form-card .form-control::placeholder,
.admin-form-card textarea::placeholder {
  color: var(--text-muted);
}

.admin-form-card .form-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.image-preview-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.image-preview-item .delete-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(239, 68, 68, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.image-preview-item:hover .delete-overlay {
  opacity: 1;
}

/* Upload dropzone */
.upload-zone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--brand-primary);
  background: rgba(59, 130, 246, 0.05);
}

.upload-zone i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Admin Navbar */
.admin-nav {
  background: #0a0f24 !important;
  /* Keep consistently dark */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}

.admin-nav .navbar-brand {
  color: #f1f5f9 !important;
  /* Constant light text on dark background */
  font-weight: 700;
}

.admin-nav .nav-link {
  color: #94a3b8 !important;
  /* Constant muted text */
}

.admin-nav .nav-link:hover {
  color: #60a5fa !important;
  /* Constant accent on hover */
}

.admin-nav .btn-outline-secondary,
.admin-nav .btn-outline-light {
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.admin-nav .btn-outline-secondary:hover,
.admin-nav .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f1f5f9 !important;
}

/* =====================================================
   MISC
   ===================================================== */
.link-light {
  color: var(--text-secondary) !important;
}

.link-light:hover {
  color: var(--text-accent) !important;
}

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

/* Alert styles */
.alert {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.alert-success {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.alert-danger {
  border-left: 4px solid #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.alert-warning {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.alert-info {
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}