:root {
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --accent-blue: #31a8ff;
  --accent-neon: #00f0ff;
  --accent-purple: #7000ff;
  --border-color: #333;
  --font-main: 'Inter', sans-serif;
  --transition-fast: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography & Utilities --- */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(49, 168, 255, 0.4);
}

.btn-secondary, .btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover, .btn-outline:hover {
  border-color: var(--accent-blue);
  color: white;
}

/* --- Navigation --- */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
}
.highlight { color: var(--accent-blue); }

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a:not(.btn-primary) {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
  color: white;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh;
  padding: 120px 10% 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(49,168,255,0.15) 0%, rgba(18,18,18,0) 70%);
  z-index: -1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge-hero {
  display: inline-block;
  background: rgba(49, 168, 255, 0.1);
  color: var(--accent-blue);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(49, 168, 255, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 480px;
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  border-left: 2px solid var(--border-color);
  padding-left: 20px;
}

.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: white; }
.stat-desc { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* Abstract PS Window Mockup */
.ps-window {
  width: 450px;
  height: 340px;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  border: 1px solid var(--border-color);
  transform: rotateY(-10deg) rotateX(5deg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.ps-toolbar {
  height: 30px;
  background: #2a2a2a;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  padding-left: 15px;
  gap: 8px;
  border-bottom: 1px solid #111;
}

.ps-menu {
  margin-left: 15px;
  font-size: 0.7rem;
  color: #888;
  word-spacing: 10px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.ps-canvas {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-palette {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 30px;
  bottom: 10px;
  background: #2a2a2a;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 10;
}
.tool-palette span { width: 100%; height: 20px; background: #444; border-radius: 2px; }

.floating-layer {
  position: absolute;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  border-radius: 8px;
  opacity: 0.8;
  filter: blur(30px);
}

.layer-1 { width: 120px; height: 120px; top: 60px; left: 100px; animation: float 6s infinite ease-in-out; }
.layer-2 { width: 80px; height: 80px; top: 180px; right: 80px; background: var(--accent-neon); animation: float 8s infinite ease-in-out reverse; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* --- Section General --- */
.section { padding: 100px 0; }
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.portfolio-item {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: 0.3s;
}
.portfolio-item:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px);
}

.portfolio-item h3 { margin-bottom: 5px; font-size: 1.2rem; }
.case-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; min-height: 40px; }

.tags { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.tags span {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* --- Reusable Slider --- */
.comparison-slider {
  width: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio for grid consistency */
  overflow: hidden;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.image-after { z-index: 1; } 
.image-before { 
  z-index: 2; 
  width: 50%;
  border-right: 2px solid var(--accent-blue);
}

.slider-handle {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  z-index: 3;
  cursor: ew-resize; /* Better cursor */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.handle-circle {
  width: 32px; height: 32px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* --- References --- */
.references-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(30,30,30,0.5) 50%, var(--bg-dark) 100%);
}

.logos-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 60px;
  opacity: 0.5;
  flex-wrap: wrap;
}
.client-logo {
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.1;
  color: #555;
  text-transform: uppercase;
}

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

.testimonial-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stars { color: #ffbd2e; margin-bottom: 15px; font-size: 1.2rem; }
.testimonial-card p { font-style: italic; margin-bottom: 20px; font-size: 1.05rem; }

.author { display: flex; align-items: center; gap: 15px; }
.avatar {
  width: 40px; height: 40px;
  background: var(--accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}
.author strong { display: block; font-size: 0.95rem; }
.author span { font-size: 0.8rem; color: var(--text-muted); }

/* --- Pricing --- */
.pricing-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider { background-color: var(--accent-blue); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.toggle-label { font-weight: 600; }
.toggle-label.active { color: white; }
.badge {
  background: var(--accent-purple);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-blue);
}

.pricing-card.featured {
  border: 1px solid var(--accent-blue);
  background: linear-gradient(180deg, rgba(49,168,255,0.05) 0%, var(--bg-card) 100%);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-header h3 { font-size: 1.5rem; margin-bottom: 5px; }
.card-header p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; }

.card-price { margin-bottom: 30px; }
.currency { font-size: 1.2rem; vertical-align: top; }
.amount { font-size: 3rem; font-weight: 800; }
.unit { color: var(--text-muted); }

.features { text-align: left; margin-bottom: 30px; }
.features li { margin-bottom: 12px; color: #ccc; }
.features .icon { color: var(--accent-blue); margin-right: 10px; font-weight: bold; }

/* Interactive Calculator */
.interactive-calculator {
  background: #151515;
  border: 1px solid #333;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.calc-header h3 { margin-bottom: 10px; }
.calc-header p { color: var(--text-muted); margin-bottom: 30px; }

.slider-wrapper { margin-bottom: 30px; padding: 0 20px; }
.qty-slider {
  width: 100%;
  accent-color: var(--accent-blue);
  height: 6px;
  background: #333;
  border-radius: 5px;
  outline: none;
}

.calc-result {
  display: flex;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.res-item { display: flex; flex-direction: column; gap: 5px; }
.res-item span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.res-item strong { font-size: 1.5rem; color: white; }
.res-item strong.highlight { color: var(--accent-blue); }


/* Footer */
footer {
  border-top: 1px solid #333;
  padding: 60px 0 20px;
  background: #0f0f0f;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-col h4 { margin-bottom: 10px; }
.footer-col p { color: var(--text-muted); }
.footer-col a { display: block; margin-bottom: 10px; color: var(--text-muted); transition: 0.2s; }
.footer-col a:hover { color: var(--accent-blue); }

.copyright {
  text-align: center;
  color: #555;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content { margin-bottom: 50px; }
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
  .stats-row { justify-content: center; border-left: none; padding-left: 0; }
  .calc-result { flex-direction: column; gap: 20px; }
}
