/* WedAstro — Modern Dark Theme, Glassmorphism, Mouse, Mobile & Cinematic Intro System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(13, 18, 30, 0.75);
  --bg-card-hover: rgba(20, 27, 45, 0.9);
  --bg-nav: rgba(7, 9, 14, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.35);
  
  --accent-cyan: #38bdf8;
  --accent-blue: #60a5fa;
  --accent-indigo: #818cf8;
  --accent-teal: #2dd4bf;
  --accent-purple: #c084fc;
  --accent-emerald: #34d399;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dramatic Site Opening Cinematic Loader */
#siteLoader {
  position: fixed;
  inset: 0;
  background: #05070c;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#siteLoader.loaded {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  max-width: 480px;
  padding: 0 1.5rem;
}

.loader-logo {
  font-family: var(--font-main);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.loader-tagline {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.loader-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo), var(--accent-teal));
  box-shadow: 0 0 15px var(--accent-cyan);
  transition: width 0.1s linear;
}

.loader-status {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-code);
}

/* Scroll Progress Bar */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo), var(--accent-teal));
  z-index: 9999;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: width 0.1s linear;
}

/* Back to Top Floating Button */
#backToTopBtn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 18, 30, 0.85);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

#backToTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTopBtn:hover {
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

/* Futuristic Comet Sparkle Overlay Canvas */
#cursorTrailCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9997;
}

/* Liquid Plasma Orb Cursor */
#plasmaCursor {
  position: fixed;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px var(--accent-cyan), 0 0 30px var(--accent-indigo);
  animation: liquidMorph 4s ease-in-out infinite alternate;
}

@keyframes liquidMorph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(-50%, -50%) rotate(0deg); }
  50% { border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%; transform: translate(-50%, -50%) rotate(180deg); }
  100% { border-radius: 30% 70% 50% 50% / 60% 40% 60% 40%; transform: translate(-50%, -50%) rotate(360deg); }
}

/* Magnetic Tech Target Aura Ring */
#magneticAura {
  position: fixed;
  width: 44px;
  height: 44px;
  border: 1px dashed rgba(56, 189, 248, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              background 0.3s ease;
  animation: spinAura 12s linear infinite;
}

@keyframes spinAura {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

body.cursor-hover #plasmaCursor {
  transform: translate(-50%, -50%) scale(1.6);
  background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
  box-shadow: 0 0 25px var(--accent-cyan), 0 0 45px var(--accent-teal);
}

body.cursor-hover #magneticAura {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

@media (max-width: 1024px) {
  #plasmaCursor, #magneticAura, #cursorTrailCanvas {
    display: none !important;
  }
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Particle Canvas */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text-main);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Section Common */
section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 2;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

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

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
}

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

/* Dynamic Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(35px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.cards-grid .glass-card,
.portfolio-grid .project-card,
.process-grid .process-card {
  opacity: 0;
  transform: translateY(30px) rotateX(8deg);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.reveal.active .glass-card,
.reveal.active .project-card,
.reveal.active .process-card {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.cards-grid .glass-card:nth-child(1), .portfolio-grid .project-card:nth-child(1), .process-grid .process-card:nth-child(1) { transition-delay: 0.05s; }
.cards-grid .glass-card:nth-child(2), .portfolio-grid .project-card:nth-child(2), .process-grid .process-card:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .glass-card:nth-child(3), .portfolio-grid .project-card:nth-child(3), .process-grid .process-card:nth-child(3) { transition-delay: 0.19s; }
.cards-grid .glass-card:nth-child(4), .portfolio-grid .project-card:nth-child(4), .process-grid .process-card:nth-child(4) { transition-delay: 0.26s; }
.cards-grid .glass-card:nth-child(5), .portfolio-grid .project-card:nth-child(5), .process-grid .process-card:nth-child(5) { transition-delay: 0.33s; }
.cards-grid .glass-card:nth-child(6), .portfolio-grid .project-card:nth-child(6), .process-grid .process-card:nth-child(6) { transition-delay: 0.40s; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition-normal);
  padding: 1.1rem 0;
}

.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-main);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.03em;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.3rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 700;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
  color: #07090e;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: #0b0f1a;
  z-index: 101;
  padding: 2rem 1.5rem;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--border-glow);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
}

/* Hero Section */
.hero {
  padding-top: 9.5rem;
  padding-bottom: 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(129, 140, 248, 0.08) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 1.12;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Metric Counter Bar */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -8px rgba(56, 189, 248, 0.25);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-main);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Hero Feature Pills */
.hero-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
  text-align: left;
}

.hero-pill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-pill-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.pill-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.pill-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.pill-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Services Grid & Glass Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}

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

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.card-feature-list li {
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-feature-list li i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

/* Portfolio Showcase */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.85rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #121828;
}

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

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

.project-tag-floating {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(9, 12, 21, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

.project-content {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Project Estimator */
.estimator-box {
  background: linear-gradient(135deg, rgba(13, 18, 30, 0.95) 0%, rgba(20, 27, 45, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.option-group-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--accent-cyan);
}

.chips-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.chip-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.estimator-result-card {
  background: rgba(9, 12, 21, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.est-price-display {
  font-size: 2.35rem;
  font-weight: 900;
  font-family: var(--font-main);
  color: var(--accent-emerald);
  margin: 0.75rem 0;
}

/* Process Timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
  border-color: var(--accent-indigo);
  transform: translateY(-3px);
}

.process-step-badge {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-main);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.65rem;
}

/* About WedAstro Compact Grid */
.about-compact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}

.about-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-summary-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.founders-compact-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.founder-pill-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.founder-pill-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.founder-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-cyan);
}

.founder-name-role h5 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.founder-name-role span {
  font-size: 0.775rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.tech-compact-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.65rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech-mini-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.tech-mini-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 0.6rem;
}

.tech-mini-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tech-pill {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-grid {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}

.faq-item.open {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA & Contact Section */
.cta-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.925rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

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

.form-success-message {
  display: none;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* AI Floating Assistant Widget & Modals */
.ai-widget-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #07090e;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
  transition: transform 0.25s ease;
}

.ai-widget-btn:hover {
  transform: scale(1.1);
}

.ai-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ai-modal.active {
  display: flex;
}

.ai-modal-box {
  background: #0b0f1a;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
}

.ai-modal-header {
  padding: 1.25rem 1.5rem;
  background: rgba(13, 18, 30, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-body {
  height: 340px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  align-self: flex-start;
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #07090e;
  font-weight: 600;
  align-self: flex-end;
}

.ai-chat-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.65rem;
}

.ai-chat-input {
  flex-grow: 1;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.875rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.25rem;
  background: rgba(4, 6, 10, 0.97);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
  margin-top: 0.85rem;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--text-main);
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

/* Comprehensive Mobile & Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: 8rem;
  }

  .contact-grid, .estimator-grid, .about-compact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hero-pills-grid {
    grid-template-columns: 1fr;
  }

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

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

  .estimator-box, .contact-form-box {
    padding: 1.5rem;
  }

  .est-price-display {
    font-size: 2rem;
  }

  #backToTopBtn {
    left: 1.25rem;
    bottom: 1.25rem;
    width: 42px;
    height: 42px;
  }

  .ai-widget-btn {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

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

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

  .founders-compact-row {
    flex-direction: column;
  }

  .founder-pill-card {
    width: 100%;
  }
}
