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

/* --- CUSTOM PROPERTIES --- */
:root {
  --bg-primary: #030712;
  --bg-secondary: #0b0f19;
  --bg-tertiary: #111827;
  
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  
  --accent-cyan: #06b6d4;
  --accent-cyan-rgb: 6, 182, 212;
  --accent-purple: #a855f7;
  --accent-purple-rgb: 168, 85, 247;
  --accent-pink: #ec4899;
  
  --border-glow: rgba(6, 182, 212, 0.15);
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- LIGHT THEME CUSTOM PROPERTIES --- */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --border-glow: rgba(6, 182, 212, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(15, 23, 42, 0.08);
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

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

button, input, select, textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

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

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.5);
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--accent-cyan);
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

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

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

/* --- GLASS CARD EFFECT --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.05);
}

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

/* --- BACKGROUND CANVAS & EFFECTS --- */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  top: 10%;
  left: -100px;
  background: var(--accent-cyan);
}

.orb-2 {
  bottom: 20%;
  right: -100px;
  background: var(--accent-purple);
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: var(--transition-normal);
}

.header.scrolled .nav-container {
  padding: 10px 0;
}

/* LOGO CUSTOM STYLING */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-primary);
}

.logo svg {
  height: 40px;
  width: auto;
}

/* Logo SVG Colors via CSS Variables */
.logo-text-main {
  fill: var(--text-primary);
  transition: fill var(--transition-normal);
}

.logo-text-sub {
  fill: var(--text-muted);
  transition: fill var(--transition-normal);
}

.logo-path {
  stroke: var(--text-primary);
  transition: stroke var(--transition-normal);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: var(--transition-normal);
}

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

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

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
}

.badge-tag {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-title);
}

.badge-tag span.dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  min-height: 56px; /* Avoid layout shift with typewriter */
}

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

/* Code Preview Card (Hero Right) */
.code-preview-wrapper {
  perspective: 1000px;
}

.code-preview {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(168, 85, 247, 0.1);
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: var(--transition-slow);
}

.code-preview:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6),
              0 0 50px rgba(6, 182, 212, 0.15);
}

.code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
  display: flex;
  gap: 8px;
}

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

.code-dot:nth-child(1) { background-color: #ef4444; }
.code-dot:nth-child(2) { background-color: #f59e0b; }
.code-dot:nth-child(3) { background-color: #10b981; }

.code-title {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-body {
  padding: 24px;
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #a9b2c3;
}

.code-body pre {
  overflow-x: auto;
}

.code-keyword { color: #f43f5e; }
.code-property { color: #38bdf8; }
.code-string { color: #34d399; }
.code-number { color: #fb923c; }
.code-comment { color: #64748b; font-style: italic; }

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.feature-card:nth-child(even) .feature-icon {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  transition: var(--transition-normal);
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
  border-color: transparent;
  transform: scale(1.05);
}

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

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

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

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

.service-features-list li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.service-learn-more svg {
  transition: var(--transition-fast);
}

.service-card:hover .service-learn-more svg {
  transform: translateX(4px);
}

/* --- PORTFOLIO SECTION --- */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

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

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
  font-weight: 600;
}

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

.portfolio-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.portfolio-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

/* Portfolio Overlay / Graphic Effect */
.portfolio-mockup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.2), rgba(3, 7, 18, 0.9));
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.portfolio-tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio-tech-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}

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

.portfolio-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.portfolio-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-purple);
  width: fit-content;
}

.portfolio-link svg {
  transition: var(--transition-fast);
}

.portfolio-item:hover .portfolio-link svg {
  transform: translateX(4px);
}

/* --- COST ESTIMATOR SECTION --- */
.estimator-container {
  max-width: 900px;
  margin: 0 auto;
}

.estimator-card {
  border-radius: 20px;
  padding: 40px;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.estimator-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.form-group label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  appearance: none;
  outline: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.select-wrapper select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.8rem;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Range Slider Styling */
.range-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-val-box {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.slider-val-box span:last-child {
  color: var(--accent-cyan);
  font-weight: 700;
}

.slider-input {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  cursor: pointer;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
  transition: transform 0.1s ease;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Features checklist */
.features-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.checkbox-label:hover {
  color: var(--text-primary);
}

.checkbox-label input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.checkbox-label input:checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.checkbox-label input:checked::after {
  content: '✓';
  font-size: 0.75rem;
  color: var(--bg-primary);
  font-weight: bold;
}

/* Estimator Right side results card */
.estimator-right {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.estimator-right::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.result-header {
  font-family: var(--font-title);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
}

.price-display {
  font-size: 2.8rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  position: relative;
}

.price-display span.currency {
  font-size: 1.8rem;
  font-weight: 600;
  margin-right: 2px;
  color: var(--accent-cyan);
}

.price-display span.starting-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 400;
}

.timeline-display {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
  margin-bottom: 24px;
  position: relative;
}

.timeline-display svg {
  color: var(--accent-purple);
}

.estimate-breakdown {
  margin-bottom: 30px;
  position: relative;
}

.estimate-breakdown h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breakdown-item span:first-child {
  color: var(--text-muted);
}

.estimator-cta {
  width: 100%;
  position: relative;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
}

.testimonials-track {
  display: flex;
  gap: 30px;
  transition: transform var(--transition-slow);
  width: max-content;
}

.testimonial-card {
  width: 400px;
  flex-shrink: 0;
}

.rating {
  color: #fbbf24;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

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

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--bg-primary);
  font-size: 1.1rem;
}

.client-details h4 {
  font-size: 1rem;
  font-weight: 600;
}

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

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

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

.contact-info-item {
  display: flex;
  gap: 18px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item:nth-child(2) .contact-icon-box {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.contact-info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-info-item p a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

.contact-info-item p a:hover {
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--accent-cyan);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-btn:hover {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-color: transparent;
  color: var(--bg-primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
  padding: 40px;
}

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

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

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-title);
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

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

.form-status {
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  color: #10b981;
}

.form-status.error {
  display: block;
  color: #ef4444;
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 30px;
  position: relative;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent-cyan);
}

.newsletter-form button {
  padding: 10px 16px;
  border-radius: 6px;
}

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
  }
  50% {
    transform: scale(1.15);
    opacity: 0.6;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
  }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 70px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .code-preview {
    transform: rotateY(0) rotateX(0);
    max-width: 500px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: var(--transition-normal);
    z-index: 1000;
    border-left: 1px solid var(--glass-border);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    width: 300px;
  }
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: var(--transition-normal);
  border: 1px solid var(--glass-border);
}

.theme-toggle-btn:hover {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* --- LIGHT THEME OVERRIDES --- */
body.light-theme .header.scrolled {
  background: rgba(248, 250, 252, 0.85);
}

body.light-theme .footer {
  background: #f1f5f9;
}

body.light-theme .portfolio-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.05);
}

body.light-theme .portfolio-mockup {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.2), rgba(248, 250, 252, 0.9));
}

body.light-theme .portfolio-tech-tag {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

body.light-theme .feature-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.05);
}

body.light-theme .feature-card:hover {
  background: rgba(168, 85, 247, 0.03);
}

body.light-theme .nav-menu {
  background: rgba(248, 250, 252, 0.95);
}

body.light-theme .code-preview {
  background: #0f172a; /* Keep editor dark for contrast */
}

body.light-theme .select-wrapper select {
  background: rgba(15, 23, 42, 0.02);
}

body.light-theme .checkbox-label input {
  background: rgba(15, 23, 42, 0.02);
}

body.light-theme .estimator-right {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.04);
}

body.light-theme .estimator-right::before {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.04) 0%, transparent 60%);
}

body.light-theme .timeline-display {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .control-btn {
  background: rgba(15, 23, 42, 0.02);
}

body.light-theme .control-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

body.light-theme .social-btn {
  background: rgba(15, 23, 42, 0.02);
}

body.light-theme .social-btn:hover {
  color: #ffffff;
}

body.light-theme .input-group input,
body.light-theme .input-group textarea {
  background: rgba(15, 23, 42, 0.01);
}

body.light-theme .input-group input:focus,
body.light-theme .input-group textarea:focus {
  background: rgba(15, 23, 42, 0.03);
}

body.light-theme .newsletter-form input {
  background: rgba(15, 23, 42, 0.01);
}

body.light-theme .newsletter-form input:focus {
  background: rgba(15, 23, 42, 0.03);
}

@media (max-width: 768px) {
  body.light-theme .nav-menu {
    background: rgba(248, 250, 252, 0.98);
  }
}
