/* ==========================================================================
   Tomyris Software - Corporate Full-Stack Developer & Agency Design System
   ========================================================================== */

/* --- CSS Variables & Design Tokens (WCAG AAA High Contrast) --- */
:root {
  /* Color Palette */
  --bg-main: #090a0f;
  --bg-surface: #0e111a;
  --bg-surface-elevated: #151926;
  --bg-glass: rgba(14, 17, 26, 0.85);
  --bg-glass-card: rgba(21, 25, 38, 0.75);
  --bg-glass-card-hover: rgba(28, 34, 51, 0.95);

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-medium: rgba(255, 255, 255, 0.2);
  --border-active: rgba(129, 140, 248, 0.6);

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;     /* 10.5:1 contrast on #090a0f */
  --text-muted: #94a3b8;         /* 7.5:1 contrast on #090a0f - Exceeds AAA */
  --text-inverse: #090a0f;

  --accent-primary: #818cf8;     /* Indigo-400: >5.5:1 contrast */
  --accent-primary-hover: #6366f1;
  --accent-primary-glow: rgba(129, 140, 248, 0.25);
  
  --accent-cyan: #38bdf8;        /* Sky-400: >7.8:1 contrast */
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  
  --accent-emerald: #34d399;     /* Emerald-400: >8.2:1 contrast */
  --accent-emerald-glow: rgba(52, 211, 153, 0.25);
  
  --accent-purple: #c084fc;
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  --gradient-dark: linear-gradient(180deg, rgba(14, 17, 26, 0.8) 0%, rgba(9, 10, 15, 0.95) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --container-width: 1240px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.25);

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

/* --- Light Mode Color Palette & High Contrast Tokens --- */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-card: rgba(255, 255, 255, 0.88);
  --bg-glass-card-hover: #ffffff;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-active: #4f46e5;

  --text-primary: #0f172a;       /* >15:1 contrast */
  --text-secondary: #334155;     /* >9.5:1 contrast */
  --text-muted: #475569;         /* >7.2:1 contrast */
  --text-inverse: #ffffff;

  --accent-primary: #4f46e5;     /* Indigo-600 */
  --accent-primary-hover: #4338ca;
  --accent-primary-glow: rgba(79, 70, 229, 0.18);
  
  --accent-cyan: #0284c7;        /* Sky-600 */
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);
  
  --accent-emerald: #059669;     /* Emerald-600 */
  --accent-emerald-glow: rgba(5, 150, 105, 0.15);
  
  --accent-purple: #7e22ce;
  --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  --gradient-accent: linear-gradient(135deg, #7e22ce 0%, #4f46e5 50%, #0284c7 100%);
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 70%);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 35px rgba(79, 70, 229, 0.12);
  --shadow-glow-cyan: 0 0 35px rgba(2, 132, 199, 0.12);
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Lighting */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle Grid Texture */
.grid-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* Selection */
::selection {
  background: var(--accent-primary);
  color: #090a0f;
}

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

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* --- Container & Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-glass-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(129, 140, 248, 0.12);
  color: #ffffff;
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

.btn-icon-right {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-right {
  transform: translateX(4px);
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.glass-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-glass-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  height: 70px;
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

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

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-name span {
  color: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.885rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: rotate(20deg) scale(1.05);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* CTA button label visibility */
.btn-label-mobile { display: none; }
.btn-label-desktop { display: inline; }

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.hero-pill i {
  color: var(--accent-cyan);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
}

.dynamic-role {
  color: var(--accent-cyan);
  border-bottom: 2px solid var(--accent-primary);
  min-height: 1.2em;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.metric-number span {
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Hero Visual Box / Code Card */
.hero-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

.card-topbar {
  background: var(--bg-surface-elevated);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.card-title-tab {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-body-content {
  padding: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

.code-line {
  margin-bottom: 0.4rem;
}

.code-keyword { color: #f43f5e; }
.code-var { color: #38bdf8; }
.code-fn { color: #c084fc; }
.code-string { color: #34d399; }
.code-comment { color: #94a3b8; font-style: italic; }
.code-prop { color: #cbd5e1; }
.code-num { color: #fbbf24; }

.floating-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(14, 17, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  animation: floatSlow 4s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.floating-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
}

.floating-badge-title {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  color: #ffffff;
}

.floating-badge-text p {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Tech Ticker / Marquee */
.tech-marquee-wrapper {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  background: rgba(14, 17, 26, 0.4);
}

.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-main), transparent);
}

.tech-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-main), transparent);
}

.tech-marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.tech-marquee-track:hover {
  animation-play-state: paused;
}

.tech-marquee-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.tech-marquee-item i {
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.tech-marquee-item:hover {
  color: #ffffff;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Services / Solutions Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.6rem;
  margin-bottom: 1.75rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-top: auto;
}

.service-features-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features-list li i {
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

/* --- Featured Projects / Works Section --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: #ffffff;
  border-color: var(--accent-primary);
}

.filter-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

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

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.project-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-preview-wrap {
  position: relative;
  width: 100%;
  height: 270px;
  background: #111420;
  overflow: hidden;
}

.project-browser-frame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.browser-bar {
  background: #1a1e2d;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
  display: flex;
  gap: 0.35rem;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.browser-url-mock {
  background: #0f121d;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #cbd5e1;
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-screen-mock {
  flex-grow: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: top center;
  transition: transform 6s ease-in-out;
}

.project-card:hover .project-screen-mock {
  transform: translateY(-20px);
}

/* Custom Styled Visual Displays for Mockups */
.mock-bg-speedboat {
  background: linear-gradient(135deg, #0c2340 0%, #1e3a8a 50%, #0369a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.mock-bg-baha {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.mock-bg-yedi {
  background: linear-gradient(135deg, #27272a 0%, #18181b 50%, #3f3f46 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.mock-bg-elektrik {
  background: linear-gradient(135deg, #451a03 0%, #1c1917 50%, #78350f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.mock-inner-banner {
  text-align: center;
  color: #ffffff;
}

.mock-inner-banner i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.mock-inner-banner h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mock-inner-banner p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.project-overlay-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(9, 10, 15, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.project-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.785rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.project-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.live-site-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-site-link:hover {
  color: #ffffff;
}

/* --- Interactive Project Scope & Cost Estimator --- */
.estimator-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
  position: relative;
  overflow: hidden;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
}

.estimator-form-col h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.estimator-step {
  margin-bottom: 2.25rem;
}

.step-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-badge {
  background: var(--accent-primary);
  color: #090a0f;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.option-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.estimator-option-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
}

.estimator-option-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-glass-card-hover);
}

.estimator-option-card.selected {
  background: rgba(129, 140, 248, 0.15);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.option-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

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

.checkbox-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.estimator-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.estimator-checkbox-label:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.estimator-checkbox-label.checked {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.estimator-checkbox-label.checked .custom-checkbox {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--text-inverse);
}

/* Estimator Live Summary Column */
.estimator-summary-col {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.summary-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.summary-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.summary-row .label {
  color: var(--text-muted);
}

.summary-row .val {
  font-weight: 600;
  color: var(--text-primary);
}

.est-highlight-box {
  background: rgba(9, 10, 15, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

.est-timeline-val {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.est-timeline-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Tech Architecture Ecosystem --- */
.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tech-tab-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-tab-btn:hover {
  color: #ffffff;
  border-color: var(--accent-primary);
}

.tech-tab-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.tech-content-pane {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tech-content-pane.active {
  display: grid;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.tech-item-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-md);
}

.tech-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  display: inline-block;
}

.tech-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

/* --- Engineering Workflow Process --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-num-watermark {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.process-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.process-step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.process-step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Testimonials & Client Trust --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-rating {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.25rem;
}

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

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Contact & Project Consultation Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-col h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.contact-info-col p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-fast);
}

.contact-card-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
  transform: translateX(4px);
}

.contact-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(129, 140, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.4rem;
}

.contact-detail-text h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-detail-text a, .contact-detail-text span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-email-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: auto;
  transition: all var(--transition-fast);
}

.copy-email-btn:hover {
  background: var(--accent-primary);
  color: #090a0f;
  border-color: transparent;
  font-weight: 600;
}

/* Contact Form Styling */
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 1.15rem center !important;
  background-size: 16px 16px !important;
  padding-right: 2.75rem;
  cursor: pointer;
  color-scheme: dark;
}

.form-select option {
  background-color: #0e111a;
  color: #f8fafc;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.form-select option:hover, .form-select option:checked {
  background-color: #1e2538;
  color: #ffffff;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  background-color: rgba(129, 140, 248, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  color: var(--text-primary);
  outline: none;
}

.form-select:focus {
  border-color: var(--accent-primary);
  background-color: var(--bg-surface-elevated);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  color: var(--text-primary);
  outline: none;
  background-repeat: no-repeat !important;
  background-position: right 1.15rem center !important;
  background-size: 16px 16px !important;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Custom Dark Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #1e2538;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: #818cf8;
}

/* --- Footer --- */
.site-footer {
  background: #06070a;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem 0;
  position: relative;
  z-index: 1;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand-col p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  background: var(--accent-primary);
  color: #090a0f;
  border-color: transparent;
  transform: translateY(-3px);
}

/* --- Case Study Modal --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95) translateY(20px); }
  to { transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: transparent;
}

.modal-header-banner {
  padding: 3rem 3rem 2rem 3rem;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.15) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-category-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-meta-row span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-meta-row span i {
  color: var(--accent-primary);
}

.modal-body {
  padding: 2.5rem 3rem;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section h3 i {
  color: var(--accent-cyan);
}

.modal-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.modal-feature-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.875rem;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.modal-feature-item i {
  color: var(--accent-emerald);
  margin-top: 0.2rem;
}

.modal-footer {
  padding: 1.75rem 3rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.3);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification i {
  color: var(--accent-emerald);
  font-size: 1.25rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1080px) {
  .hero-title { font-size: 2.8rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-content-pane { grid-template-columns: repeat(3, 1fr); }
  .estimator-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 868px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* --- Mobile Navbar --- */
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-medium);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }

  .nav-menu.mobile-open {
    transform: translateY(0);
    box-shadow: var(--shadow-lg);
  }

  .mobile-toggle-btn { display: block; }
  .status-badge { display: none; }

  /* Switch CTA to short label on mobile */
  .btn-label-desktop { display: none; }
  .btn-label-mobile { display: inline; }

  /* Shrink logo on tablet/mobile */
  .brand-logo-img { height: 34px; }
  .brand-logo-link { gap: 0.6rem; margin-right: 0.75rem; }

  /* Tighter nav-actions */
  .nav-actions { gap: 0.5rem; }

  .tech-content-pane { grid-template-columns: repeat(2, 1fr); }
  .option-cards-row { grid-template-columns: 1fr; }
  .checkbox-options-grid { grid-template-columns: 1fr; }
  .estimator-wrapper { padding: 2rem 1.5rem; }
  .contact-form-card { padding: 2rem 1.5rem; }
  .modal-header-banner, .modal-body, .modal-footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .modal-features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.9rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .tech-content-pane { grid-template-columns: 1fr; }
  .form-group-grid { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: 1fr; }

  /* Smaller logo & hide brand text on small phones */
  .brand-logo-img { height: 30px; }
  .brand-name { display: none; }

  /* Compact theme & lang buttons */
  .theme-toggle-btn { width: 34px; height: 34px; font-size: 0.95rem; }
  .lang-dropdown-btn { padding: 0.35rem 0.6rem; font-size: 0.8rem; gap: 0.3rem; }


}

@media (max-width: 380px) {
  /* On very narrow screens keep CTA visible with short label */
  .brand-logo-link { margin-right: 0; }
}

/* --- Light Mode Component Adaptations --- */
[data-theme="light"] .grid-bg-overlay {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0f172a;
}

[data-theme="light"] .toast-notification {
  background: #ffffff;
  border-color: var(--accent-emerald);
  color: #0f172a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 16px rgba(5, 150, 105, 0.2);
}

[data-theme="light"] .brand-name {
  color: #0f172a;
}

[data-theme="light"] .brand-logo-img {
  filter: none;
}

[data-theme="light"] .hero-pill {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.28);
  color: #4338ca;
}

[data-theme="light"] .metric-number {
  color: #0f172a;
}

[data-theme="light"] .site-header.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .floating-badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .floating-badge-title {
  color: #0f172a;
}

[data-theme="light"] .estimator-option-card.selected {
  background: rgba(79, 70, 229, 0.08);
  border-color: #4f46e5;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
}

[data-theme="light"] .estimator-summary-col {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .est-highlight-box {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .contact-info-col h2 {
  color: #0f172a;
}

[data-theme="light"] .contact-info-col p {
  color: #475569;
}

[data-theme="light"] .contact-card-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .contact-card-item:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .contact-detail-text h3 {
  color: #64748b;
}

[data-theme="light"] .contact-detail-text a,
[data-theme="light"] .contact-detail-text span {
  color: #0f172a;
}

[data-theme="light"] .contact-form-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .form-label {
  color: #0f172a;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a !important;
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  background-color: #ffffff;
  border-color: #4f46e5;
  color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

[data-theme="light"] .form-select {
  background-color: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a !important;
  color-scheme: light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 1.15rem center !important;
  background-size: 16px 16px !important;
}

[data-theme="light"] .form-select:focus {
  background-color: #ffffff;
  border-color: #4f46e5;
  color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background-repeat: no-repeat !important;
  background-position: right 1.15rem center !important;
  background-size: 16px 16px !important;
}

[data-theme="light"] .form-select option {
  background-color: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .form-select option:hover,
[data-theme="light"] .form-select option:checked {
  background-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .modal-container {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .modal-section h3 {
  color: #0f172a;
}

[data-theme="light"] .modal-feature-item {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .modal-footer {
  background: #f8fafc;
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}

[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .step-num-watermark {
  color: rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .footer-col-title {
  color: #0f172a;
}

/* ==========================================================================
   Language Switcher Component & RTL Layout Overrides
   ========================================================================== */
.lang-switcher-wrap {
  position: relative;
}

.lang-dropdown-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-dropdown-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-glass-card-hover);
}

.lang-dropdown-btn i.fa-globe {
  color: var(--accent-cyan);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  min-width: 140px;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  animation: dropdownFade 0.2s ease-in-out;
}

.lang-dropdown-menu.open {
  display: flex;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option-btn {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.lang-option-btn:hover {
  background: var(--bg-surface-elevated);
  color: #ffffff;
}

.lang-option-btn.active {
  background: rgba(129, 140, 248, 0.15);
  color: var(--accent-primary);
  font-weight: 700;
}

[data-theme="light"] .lang-option-btn:hover {
  color: #0f172a;
}

/* RTL Specific Overrides for Arabic */
[dir="rtl"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif;
  text-align: right;
}

[dir="rtl"] .hero-grid,
[dir="rtl"] .estimator-grid,
[dir="rtl"] .contact-wrapper,
[dir="rtl"] .footer-top-grid {
  direction: rtl;
}

[dir="rtl"] .brand-logo-link {
  margin-right: 0;
  margin-left: 1.5rem;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option-btn {
  text-align: right;
}

[dir="rtl"] .btn-icon-right {
  transform: rotate(180deg);
}

[dir="rtl"] .btn:hover .btn-icon-right {
  transform: rotate(180deg) translateX(4px);
}

[dir="rtl"] .step-num-watermark {
  right: auto;
  left: 1.25rem;
}

[dir="rtl"] .floating-badge {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .project-overlay-badge {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .copy-email-btn {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .form-select {
  background-position: left 1.15rem center !important;
  padding-left: 2.75rem;
  padding-right: 1.15rem;
}

[dir="rtl"] .card-title-tab,
[dir="rtl"] .card-body-content {
  direction: ltr;
  text-align: left;
}

