/* MP53 Digital Solutions - Custom Styles */

/* @import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap'); */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* ─── DARK MODE (DEFAULT) ─────────────────────────── */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #020617;
  --bg-card: rgba(15, 23, 42, 0.8);
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border-glass: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(6, 182, 212, 0.3);
  /* --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif; */
  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ─── LIGHT MODE ─────────────────────────────────── */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.96);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-glass: rgba(148, 163, 184, 0.2);
  --border-glow: rgba(6, 182, 212, 0.2);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.05);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition:
    background-color var(--transition),
    color var(--transition);
}

body[data-theme="light"] {
  background-color: #ffffff;
  color: var(--text-primary);
}

body[data-theme="light"] #page-loader,
body[data-theme="light"] #mobile-menu,
body[data-theme="light"] #navbar.scrolled,
body[data-theme="light"] footer {
  background-color: #ffffff;
}

body[data-theme="light"] .glass-card,
body[data-theme="light"] .service-card,
body[data-theme="light"] .testimonial-card,
body[data-theme="light"] .team-card,
body[data-theme="light"] .portfolio-card {
  background-image: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 30%, rgba(59,130,246,0.15) 70%, rgba(45,212,191,0.15) 100%);
  background-color: rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] .form-input,
body[data-theme="light"] .filter-btn,
body[data-theme="light"] .social-icon,
body[data-theme="light"] .hero-badge,
body[data-theme="light"] .section-tag {
  background: rgba(255, 255, 255, 0.98);
}

body[data-theme="light"] .glass-card,
body[data-theme="light"] .service-card,
body[data-theme="light"] .testimonial-card,
body[data-theme="light"] .team-card {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body[data-theme="light"] .glass-card:hover,
body[data-theme="light"] .service-card:hover,
body[data-theme="light"] .testimonial-card:hover,
body[data-theme="light"] .team-card:hover {
  background-image: linear-gradient(135deg, rgba(236,72,153,0.2) 0%, rgba(139,92,246,0.2) 30%, rgba(59,130,246,0.2) 70%, rgba(45,212,191,0.2) 100%);
  background-color: rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .form-input {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
}

body[data-theme="light"] .form-input:focus {
  background: #ffffff;
}

body[data-theme="light"] .feature-item:hover,
body[data-theme="light"] .social-icon:hover,
body[data-theme="light"] .filter-btn:hover,
body[data-theme="light"] .filter-btn.active {
  background: rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .section-tag {
  border-color: rgba(6, 182, 212, 0.18);
}

body[data-theme="light"] section[style*="background: rgba(2, 6, 23"],
body[data-theme="light"] section[style*="background: rgba(15, 23, 42"],
body[data-theme="light"] div[style*="background: rgba(15, 23, 42, 0.95)"],
body[data-theme="light"] div[style*="background: rgba(15, 23, 42, 0.9)"],
body[data-theme="light"] div[style*="background: rgba(15, 23, 42, 0.8)"],
body[data-theme="light"] div[style*="background: rgba(15, 23, 42, 0.6)"],
body[data-theme="light"] div[style*="background: rgba(15, 23, 42, 0.5)"] {
  background: #ffffff !important;
}

/* ─── SCROLL PROGRESS ─────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-cyan),
    var(--accent-blue),
    var(--accent-purple)
  );
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── PAGE LOADER ─────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-secondary);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo-img {
  height: 140px;
  width: auto;
  margin-bottom: 12px;
  animation: pulse-logo 2s infinite ease-in-out;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

html.no-loader #page-loader {
  display: none !important;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-blue),
    var(--accent-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border-glass);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
  animation: loadFill 1.2s ease forwards;
}

@keyframes loadFill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* ─── TYPOGRAPHY ──────────────────────────────────── */
.font-display {
  font-family: var(--font-display);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent-cyan) 0%,
    var(--accent-blue) 50%,
    var(--accent-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-typewriter {
  background: linear-gradient(
    135deg,
    #10b981 0%,    /* Emerald Green */
    #0ea5e9 16%,   /* Sky Blue */
    var(--accent-purple) 32%, /* Deep Purple */
    #22c55e 48%,   /* Green */
    #eab308 64%,   /* Yellow */
    #f97316 80%,   /* Orange */
    #ef4444 100%   /* Red */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(
    135deg,
    #f59e0b 0%,
    #ef4444 50%,
    var(--accent-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAVIGATION ──────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

#navbar.scrolled {
  background-image: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 30%, rgba(59,130,246,0.15) 70%, rgba(45,212,191,0.15) 100%);
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] #navbar.scrolled {
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  transition: width var(--transition);
}

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

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 27px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-ghost:hover {
  gap: 10px;
}

/* ─── GLASS CARDS ─────────────────────────────────── */
.glass-card {
  background-image: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 30%, rgba(59,130,246,0.15) 70%, rgba(45,212,191,0.15) 100%);
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.glass-card:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: translateY(-4px);
}

.gradient-border {
  position: relative;
  border-radius: var(--radius-xl);
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-xl) + 1px);
  background: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-blue),
    var(--accent-purple)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ─── SECTION STYLES ──────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

/* ─── HERO ────────────────────────────────────────── */
.hero-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.15) 0%,
    transparent 70%
  );
  top: -200px;
  left: -200px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.12) 0%,
    transparent 70%
  );
  bottom: -100px;
  right: -100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
  }
}

/* ─── STATS COUNTER ───────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 32px 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  display: inline-block;
  padding-right: 0.1em;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats Grid Borders */
.stat-grid-container {
  /* Borders for the grid cards using pseudo selectors */
}

@media (max-width: 767px) {
  .stat-grid-container .stat-card:nth-child(1) {
    border-right: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
  }
  .stat-grid-container .stat-card:nth-child(2) {
    border-bottom: 1px solid var(--border-glass);
  }
  .stat-grid-container .stat-card:nth-child(3) {
    border-right: 1px solid var(--border-glass);
  }
}

@media (min-width: 768px) {
  .stat-grid-container .stat-card:not(:last-child) {
    border-right: 1px solid var(--border-glass);
    border-bottom: none;
  }
}

/* ─── SERVICE CARDS ───────────────────────────────── */
.service-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background-image: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 30%, rgba(59,130,246,0.15) 70%, rgba(45,212,191,0.15) 100%);
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.05),
    rgba(139, 92, 246, 0.05)
  );
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(6, 182, 212, 0.1);
}

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

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition);
}

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

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.service-card:hover .service-img {
  transform: scale(1.03);
}

/* ─── TESTIMONIALS ────────────────────────────────── */
.testimonial-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background-image: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 30%, rgba(59,130,246,0.15) 70%, rgba(45,212,191,0.15) 100%);
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stars {
  color: #f59e0b;
}

/* ─── TIMELINE ────────────────────────────────────── */
.timeline-item {
  position: relative;
  padding-left: 48px;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), transparent);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* ─── PORTFOLIO ───────────────────────────────────── */
.portfolio-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 30%, rgba(59,130,246,0.15) 70%, rgba(45,212,191,0.15) 100%);
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  height: 100%;
}

.portfolio-card > img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.portfolio-overlay {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.portfolio-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.08);
}

.portfolio-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.85),
    rgba(139, 92, 246, 0.85)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

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

/* ─── FILTER TABS ─────────────────────────────────── */
.filter-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.2),
    rgba(59, 130, 246, 0.2)
  );
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

/* ─── CONTACT FORM ────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input {
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
  background: rgba(15, 23, 42, 0.95);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ─── FOOTER ──────────────────────────────────────── */
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* ─── BACK TO TOP ─────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

#back-to-top svg {
  stroke: var(--text-secondary);
  transition: stroke 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  background: var(--border-glass);
  box-shadow: var(--shadow-lg);
}

#back-to-top:hover svg {
  stroke: var(--text-primary);
}

/* ─── MOBILE NAV ──────────────────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}

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

/* ─── ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}
.delay-6 {
  transition-delay: 0.6s;
}

/* ─── FLOATING TECH BADGES ────────────────────────── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-image: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 30%, rgba(59,130,246,0.15) 70%, rgba(45,212,191,0.15) 100%);
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  max-width: 100%;
}

[data-theme="light"] .tech-badge {
  background-color: rgba(255, 255, 255, 0.9);
  background-image: linear-gradient(135deg, rgba(236,72,153,0.05) 0%, rgba(139,92,246,0.05) 30%, rgba(59,130,246,0.05) 70%, rgba(45,212,191,0.05) 100%);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* ─── NOISE OVERLAY ───────────────────────────────── */
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ─── GRID BACKGROUNDS ────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .hero-glow-1,
  .hero-glow-2 {
    display: none;
  }
}

/* Alert styles */
.alert {
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Map container */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

/* Team cards */
.team-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  background-image: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 30%, rgba(59,130,246,0.15) 70%, rgba(45,212,191,0.15) 100%);
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  transition: all var(--transition);
}

.team-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
    linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)) border-box;
}

/* Why Choose Us feature items */
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  height: 100%;
}

.feature-item:hover {
  background: rgba(6, 182, 212, 0.05);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── CUSTOM SCROLLBAR ────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 3px;
}

/* Make hardcoded white logo text readable in light mode */
body[data-theme="light"] #navbar div[style*="color: white"] {
  color: var(--text-primary) !important;
}
body[data-theme="light"] #navbar div[style*="color: #cbd5e1"] {
  color: var(--text-secondary) !important;
}

/* Make white logo and menu icons readable in light mode */
body[data-theme="light"] #navbar img[src*="logo.png"],
body[data-theme="light"] footer img[src*="logo.png"],
body[data-theme="light"] .loader-logo-img {
  filter: brightness(0);
}
body[data-theme="light"] #navbar #menu-toggle svg {
  stroke: var(--text-primary) !important;
}

.btn:hover {

  transform: translateY(-2px) scale(1.02);
}

body[data-theme="light"] footer a.font-display > div > div:first-child { color: #000000 !important; }
body[data-theme="light"] footer a.font-display > div > div:last-child { color: #000000 !important; }


.no-transition * { transition: none !important; }
/* Accelerate animations for hero section on fast navigation */
html.no-loader section:first-of-type .reveal,
html.no-loader section:first-of-type .reveal-left,
html.no-loader section:first-of-type .reveal-right {
  transition-duration: 0.25s !important;
}
html.no-loader section:first-of-type .delay-1 { transition-delay: 0.05s !important; }
html.no-loader section:first-of-type .delay-2 { transition-delay: 0.1s !important; }
html.no-loader section:first-of-type .delay-3 { transition-delay: 0.15s !important; }

@media (min-width: 1024px) {
  .custom-hero-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* MEGA MENU */
.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 90vw;
  max-width: 1200px;
  margin-top: 10px;
  z-index: 50;
  border-radius: 24px;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: translateX(-50%) translateY(10px);
}

.nav-item.group:hover .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b5cf6;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding-bottom: 8px;
}

.mega-menu-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: transform 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.mega-menu-link:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.mega-badge {
  background: #f97316;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* GIANT FOOTER TEXT */
.footer-giant-text {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(3rem, 15vw, 16rem);
}

/* Sketch Team Section Styling */
.sketch-team-section {
  background-color: #faf9f6;
  color: #111827;
}

body[data-theme="dark"] .sketch-team-section {
  background-color: #0f172a;
  color: #f8fafc;
}

.sketch-team-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: #1e1b4b;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

body[data-theme="dark"] .sketch-team-title {
  color: #f8fafc;
}

.sketch-team-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 64px;
}

body[data-theme="dark"] .sketch-team-subtitle {
  color: #94a3b8;
}

body[data-theme="dark"] .sketch-team-role {
  color: var(--accent-cyan);
}

.sketch-team-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 0 0 32px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sketch-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] .sketch-team-card {
  background-color: #1e293b;
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 4px 25px rgba(6, 182, 212, 0.1);
}

.sketch-avatar {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: cover;
  mix-blend-mode: multiply;
  margin-bottom: 24px;
  transition: filter 0.3s ease;
}

body[data-theme="dark"] .sketch-avatar {
  mix-blend-mode: normal;
  filter: none;
  background-color: #ffffff;
  border-radius: 8px; /* Optional, makes the white box look slightly nicer on dark background */
}

.sketch-team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #1e1b4b;
  margin-bottom: 4px;
}

body[data-theme="dark"] .sketch-team-name {
  color: #f8fafc;
}

.sketch-team-role {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
