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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Fonts */
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme Defaults (Dark Mode First) */
  --bg-main: #06080F;
  --bg-card: rgba(13, 18, 30, 0.7);
  --bg-card-hover: rgba(20, 27, 45, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.18);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;
  
  /* Brand Colors & Gradients */
  --color-primary: #6366F1;
  --color-secondary: #06B6D4;
  --color-accent: #EC4899;
  
  --grad-primary: linear-gradient(135deg, #6366F1, #3B82F6, #06B6D4);
  --grad-accent: linear-gradient(135deg, #F43F5E, #D946EF, #8B5CF6);
  --grad-dark-overlay: linear-gradient(to bottom, rgba(6, 8, 15, 0.2), rgba(6, 8, 15, 0.95));
  --grad-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(0,0,0,0) 100%);
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(12px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
body.light-mode {
  --bg-main: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.07);
  --border-color-hover: rgba(0, 0, 0, 0.15);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  
  --grad-dark-overlay: linear-gradient(to bottom, rgba(248, 250, 252, 0.2), rgba(248, 250, 252, 0.95));
  --grad-glow: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(6, 182, 212, 0.02) 50%, rgba(0,0,0,0) 100%);
  
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

button {
  font-family: var(--font-title);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- GLOBAL LAYOUT & DECORATIONS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid var(--border-color-hover);
  border-radius: 30px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

.section-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--grad-glow);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.glow-top-right {
  top: -100px;
  right: -200px;
}

.glow-bottom-left {
  bottom: -200px;
  left: -200px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary {
  border: 1px solid var(--border-color-hover);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  border-color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* --- STICKY GLASS HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(6, 8, 15, 0.4);
  backdrop-filter: var(--glass-blur);
  transition: var(--transition);
}

body.light-mode header {
  background: rgba(248, 250, 252, 0.4);
}

header.scrolled {
  height: 70px;
  background: rgba(6, 8, 15, 0.85);
  box-shadow: var(--shadow-md);
}

body.light-mode header.scrolled {
  background: rgba(248, 250, 252, 0.85);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-text-fill-color: #FFFFFF;
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

body.light-mode .theme-toggle .moon-icon {
  display: none;
}

body.light-mode .theme-toggle .sun-icon {
  display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-tag span {
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.4; }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-title span.grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glass Floating Cards */
.hero-canvas {
  width: 100%;
  max-width: 420px;
  height: 420px;
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphingBlob 12s ease-in-out infinite alternate;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes morphingBlob {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%; }
  100% { border-radius: 60% 40% 60% 40% / 40% 50% 50% 60%; }
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.f-card-1 {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
  width: 180px;
}

.f-card-2 {
  bottom: 15%;
  right: -30px;
  animation-delay: 2s;
  width: 200px;
}

.f-card-3 {
  bottom: -20px;
  left: 20px;
  animation-delay: 4s;
  width: 160px;
  display: flex;
  align-items: center;
  gap: 12px;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-change {
  font-size: 0.8rem;
  color: #10B981;
  font-weight: 600;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
  margin-top: 10px;
}

.chart-bar {
  flex: 1;
  background: var(--grad-primary);
  border-radius: 2px 2px 0 0;
  min-height: 5px;
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

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

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid var(--border-color-hover);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.service-card:hover .service-icon {
  color: var(--text-inverse);
  background: var(--grad-primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.service-features li svg {
  color: var(--color-secondary);
  width: 14px;
  height: 14px;
}

/* --- ESTIMATOR / CALCULATOR SECTION --- */
.estimator-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.estimator-config {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.estimator-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.estimator-group-title span.val-bubble {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid var(--border-color-hover);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

/* Custom Grid of Options */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.option-btn:hover {
  border-color: var(--border-color-hover);
  background: rgba(255, 255, 255, 0.05);
}

.option-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border-color: var(--color-primary);
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.option-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  transition: var(--transition);
}

.option-btn.active svg {
  color: var(--color-secondary);
}

/* Interactive Sliders */
.slider-container {
  position: relative;
  margin-top: 10px;
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--text-main);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--color-secondary);
}

/* Feature Toggles */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.feature-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.feature-checkbox:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feature-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color-hover);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feature-checkbox input:checked ~ .checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.feature-checkbox input:checked ~ .checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.feature-checkbox input:checked ~ span {
  color: var(--text-main);
}

/* Estimator Dashboard Result Card */
.estimator-result {
  background: linear-gradient(135deg, rgba(13, 18, 30, 0.8), rgba(20, 27, 45, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

body.light-mode .estimator-result {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.98));
}

.estimator-result::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(99, 102, 241, 0.05) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.res-header {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.res-main-metric {
  margin-bottom: 30px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-price {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-title);
  line-height: 1.1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 6px 0;
}

.estimator-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.metric-box {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.metric-box-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-box-value {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
}

.metric-box-value.green {
  color: #10B981;
}

.res-cta-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  list-style: none;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #FFFFFF;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.portfolio-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(6,8,15,0) 40%, rgba(6,8,15,0.8));
}

.portfolio-item-meta {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.portfolio-category {
  padding: 4px 10px;
  background: var(--grad-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
}

.portfolio-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.portfolio-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.portfolio-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.portfolio-metric {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.port-metric-val {
  font-family: var(--font-title);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- PROCESS TIMELINE SECTION --- */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary), transparent);
}

.process-step {
  display: flex;
  gap: 30px;
  position: relative;
}

.step-number {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-primary);
  flex-shrink: 0;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.process-step:hover .step-number {
  border-color: var(--color-secondary);
  color: var(--text-inverse);
  background: var(--grad-primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-md);
  flex-grow: 1;
  transition: var(--transition);
}

.process-step:hover .step-content {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- CONTACT SECTION --- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-header h2 span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid var(--border-color-hover);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.contact-method-details h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-method-details p {
  font-weight: 600;
  color: var(--text-main);
}

/* Form Styles */
.contact-form {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

body.light-mode .form-control {
  background: rgba(0, 0, 0, 0.01);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

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

/* Form Submit Feedback States */
.success-msg {
  display: none;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10B981;
  padding: 16px;
  border-radius: var(--radius-sm);
  color: #10B981;
  font-weight: 600;
  text-align: center;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-color);
  background: rgba(6, 8, 15, 0.8);
  padding: 60px 0 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

body.light-mode footer {
  background: rgba(248, 250, 252, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  max-width: 300px;
}

.footer-links h4 {
  color: var(--text-main);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--color-primary);
  border-color: transparent;
  color: white;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  /* Mobile Header Navigation toggle */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  
  nav.active {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Grids */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-desc {
    margin: 0 auto 30px;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-canvas {
    margin: 0 auto;
    width: 320px;
    height: 320px;
  }
  
  .estimator-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .process-timeline::before {
    left: 20px;
  }
  
  .process-step {
    gap: 16px;
  }
  
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}
