/* ============================================
   TRIBNET - Premium Digital Agency
   CSS Variables & Theme System
   ============================================ */

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

:root {
  /* Dark Theme (Default) */
  --bg-primary: #080c10;
  --bg-secondary: #0d1117;
  --bg-card: #111820;
  --bg-card-hover: #161e28;
  --surface: #1a2332;
  --surface-2: #1f2d3d;

  --accent: #00e5ff;
  --accent-2: #7b61ff;
  --accent-glow: rgba(0, 229, 255, 0.15);
  --accent-2-glow: rgba(123, 97, 255, 0.15);

  --text-primary: #f0f4f8;
  --text-secondary: #8899aa;
  --text-muted: #556677;
  --text-accent: #00e5ff;

  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 229, 255, 0.25);

  --gradient-hero: linear-gradient(135deg, #080c10 0%, #0d1a2a 50%, #080c10 100%);
  --gradient-accent: linear-gradient(135deg, #00e5ff, #7b61ff);
  --gradient-card: linear-gradient(145deg, #111820, #0f1621);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.15);
  --shadow-btn: 0 8px 32px rgba(0, 229, 255, 0.3);

  --nav-bg: rgba(8, 12, 16, 0.88);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f4f7fb;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4f8;
  --surface: #e8edf4;
  --surface-2: #dde4ed;

  --accent: #0077cc;
  --accent-2: #6244c5;
  --accent-glow: rgba(0, 119, 204, 0.12);
  --accent-2-glow: rgba(98, 68, 197, 0.12);

  --text-primary: #0d1117;
  --text-secondary: #4a5568;
  --text-muted: #8899aa;
  --text-accent: #0077cc;

  --border: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(0, 119, 204, 0.25);

  --gradient-hero: linear-gradient(135deg, #f4f7fb 0%, #e8f0fc 50%, #f4f7fb 100%);
  --gradient-accent: linear-gradient(135deg, #0077cc, #6244c5);
  --gradient-card: linear-gradient(145deg, #ffffff, #f8fafc);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-glow: 0 0 40px rgba(0, 119, 204, 0.12);
  --shadow-btn: 0 8px 32px rgba(0, 119, 204, 0.25);

  --nav-bg: rgba(244, 247, 251, 0.92);
}

/* ============================================
   BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.65;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.display-hero {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-family: 'Inter', sans-serif;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

[data-theme="light"] .glass-panel {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar-main {
  /* Force Dark Theme Variables for Navbar */
  --nav-bg: rgba(8, 12, 16, 0.88);
  --text-primary: #f0f4f8;
  --text-secondary: #8899aa;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 229, 255, 0.25);
  --surface: #1a2332;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar-main.scrolled {
  padding: 12px 0;
  border-bottom-color: var(--border-accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

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

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

.navbar-nav .nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-primary) !important;
  background: var(--accent-glow);
}

.navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
  width: 52px;
  height: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 3px;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.toggle-knob {
  width: 22px;
  height: 22px;
  background: var(--gradient-accent);
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .toggle-knob {
  transform: translateX(24px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.btn-primary-custom:hover::before {
  opacity: 1;
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-blob-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  filter: blur(60px);
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-2-glow) 0%, transparent 70%);
  bottom: 0;
  left: 20%;
  filter: blur(80px);
  animation: blobFloat 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes blobFloat {

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

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.97);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeInUp 1s ease 0.7s both;
}

.hero-stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-image-wrap {
  position: relative;
  animation: fadeInRight 1s ease 0.3s both;
}

.hero-image-wrap img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.hero-float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card-1 {
  bottom: -20px;
  left: -30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-float-card-2 {
  top: 20px;
  right: -30px;
  text-align: center;
  animation-delay: 2s;
}

@keyframes floatCard {

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

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

/* ============================================
   MARQUEE / TICKER
   ============================================ */
.marquee-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.marquee-item {
  white-space: nowrap;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee-item span.dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.section-pad {
  padding: 100px 0;
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 30px var(--accent-glow);
}

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

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--accent);
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: rotate(-5deg) scale(1.1);
}

.service-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
  display: inline-block;
}

.service-card:hover .service-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
  background: var(--bg-secondary);
}

.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--gradient-card);
  transition: var(--transition);
  position: relative;
}

.process-step:hover {
  border-color: var(--border-accent);
  transform: translateX(8px);
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  min-width: 60px;
  transition: opacity 0.35s;
}

.process-step:hover .step-number {
  opacity: 0.6;
}

.step-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--surface);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 16, 0.95) 30%, rgba(8, 12, 16, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

[data-theme="light"] .portfolio-overlay {
  background: linear-gradient(to top, rgba(13, 17, 23, 0.9) 30%, rgba(13, 17, 23, 0.05) 100%);
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-tag {
  display: inline-block;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.portfolio-overlay h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  margin: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  background: var(--bg-secondary);
}

.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

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

.testimonial-quote {
  font-size: 2.5rem;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-family: 'Syne', sans-serif;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}

.tech-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.footer-divider {
  border-color: var(--border);
  margin: 40px 0 24px;
}

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

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--gradient-hero);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  filter: blur(80px);
  pointer-events: none;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group-custom label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.02em;
}

.form-control-custom {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

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

.contact-info-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

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

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

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

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

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

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

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

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

.reveal-right.visible {
  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;
}

/* ============================================
   UTILS
   ============================================ */
.text-accent {
  color: var(--accent) !important;
}

.bg-surface {
  background: var(--surface);
}

.border-accent {
  border-color: var(--border-accent) !important;
}

/* Mobile toggler */
.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240,244,248,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}




/* Alert messages */
.alert-custom {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 16px;
  display: none;
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .cta-inner {
    padding: 50px 30px;
  }

  .hero-float-card-1,
  .hero-float-card-2 {
    display: none;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 70px 0;
  }

  .hero-section {
    padding-top: 90px;
  }

  .process-step:hover {
    transform: translateY(-4px);
  }

  .navbar-collapse {
    background: var(--nav-bg);
    border-radius: var(--radius);
    padding: 12px;
    margin-top: 8px;
  }
}

@media (max-width: 576px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-inner {
    padding: 40px 20px;
  }
}

/* ============================================
   PORTFOLIO MODAL & ANIMATIONS
   ============================================ */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

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

.portfolio-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.portfolio-modal-close:hover {
  background: var(--accent);
}

.portfolio-modal-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}

.portfolio-modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.portfolio-modal-body iframe {
  width: 100%;
  height: 80vh;
  border: none;
  background: #fff;
}

.portfolio-modal-info {
  padding: 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mouse-move-element {
  transition: transform 0.1s ease-out;
}