:root {
  --bg:         #030305;
  --bg-2:       #07070F;
  --card:       #0D0D1A;
  --card-hover: #12122A;
  --blue:       #2563EB;
  --blue-b:     #3B82F6;
  --cyan:       #06B6D4;
  --violet:     #7C3AED;
  --gradient:   linear-gradient(135deg, #2563EB, #7C3AED);
  --white:      #FFFFFF;
  --gray:       #94A3B8;
  --border:     rgba(255,255,255,0.06);
  --font-h:     'Syne', sans-serif;
  --font-b:     'Inter', sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-b);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  font-weight: 700;
}

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

ul {
  list-style: none;
}

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

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

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

/* Layout */
section {
  padding: 8rem 2rem;
  position: relative;
  z-index: 10;
  background: var(--bg);
}

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

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.preloader-counter {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 800;
}
.loading-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.loading-bar-inner {
  height: 100%;
  width: 0%;
  background: var(--gradient);
}
.preloader-svg {
  width: 300px;
  height: 60px;
}
.preloader-svg text, .preloader-svg circle {
  stroke: var(--white);
  stroke-width: 1;
  fill: var(--white);
  fill-opacity: 0;
}
.preloader-svg circle.dot {
  stroke: url(#grad);
  fill: url(#grad);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(3,3,5,0.9), transparent);
  backdrop-filter: blur(5px);
}
.nav-logo img {
  height: 30px;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--blue-b);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-h);
  font-size: 1rem;
  cursor: pointer;
  z-index: 101;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-2);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-size: 2rem;
  font-family: var(--font-h);
}

/* Hero Section (3D) */
#room-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}
.scroll-driver {
  position: relative;
  z-index: 1;
  width: 100%;
  pointer-events: none;
}
.sticky-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.monitor-overlay {
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.4s;
}
.monitor-overlay.active {
  pointer-events: auto;
  transform: translateY(0);
}
.label {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--blue-b);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-title .line {
  display: block;
}
.hero-sub {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.btn-primary {
  background: var(--gradient);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37,99,235,0.3);
}
.btn-outline {
  border: 1px solid var(--border);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray);
  opacity: 1;
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray), transparent);
  animation: scrollAnim 1.5s infinite;
}
@keyframes scrollAnim {
  0% { transform: translateY(-10px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* Marquee */
.marquee-wrapper {
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-reverse {
  animation: marquee-rev 20s linear infinite;
  background: var(--bg-2);
  color: var(--gray);
}
.marquee span {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 2rem;
  padding: 0 2rem;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-rev {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 1rem;
  transition: border-color 0.3s;
  cursor: pointer;
  transform-style: preserve-3d;
}
.service-card:hover {
  border-color: rgba(37,99,235,0.3);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transform: translateZ(20px);
}
.service-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  transform: translateZ(10px);
}
.service-price {
  font-weight: 600;
  color: var(--cyan);
  font-size: 0.9rem;
  transform: translateZ(15px);
}

/* Portfolio */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-b);
  transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--white);
  color: var(--bg);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  cursor: pointer;
  position: relative;
  group: hover;
}
.portfolio-preview {
  height: 350px;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.browser-bar {
  height: 30px;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f56;
}
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #27c93f; }
.preview-content {
  height: calc(100% - 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(37,99,235,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-overlay span {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.portfolio-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.portfolio-info p {
  color: var(--gray);
  font-size: 0.9rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

/* Stats */
.stats-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 2rem;
}
.stat-number {
  font-family: var(--font-h);
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.stat-label {
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 3rem 2rem;
  position: relative;
}
.pricing-card.highlight {
  background: var(--card-hover);
  border-color: var(--blue-b);
  transform: scale(1.05);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pricing-name {
  font-family: var(--font-h);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.pricing-desc {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.pricing-price {
  font-family: var(--font-h);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.pricing-price span {
  font-size: 1rem;
  color: var(--gray);
}
.pricing-features {
  margin: 2rem 0;
}
.pricing-features li {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-features li.pro { color: var(--white); }
.pricing-features li.con { color: var(--gray); opacity: 0.5; }
.pricing-btn {
  display: block;
  text-align: center;
  width: 100%;
}
.pricing-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Process */
.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 4rem;
}
.process-line {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.process-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--gradient);
}
.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 200px;
}
.step-number {
  font-family: var(--font-h);
  font-size: 3rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--gray);
  width: 80px;
  height: 80px;
  line-height: 80px;
  background: var(--bg);
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s;
}
.process-step:hover .step-number {
  background: var(--gradient);
  color: var(--white);
  -webkit-text-stroke: 0px;
}
.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-slider {
  padding: 2rem 0 4rem 0;
}
.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 1rem;
}
.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: #E2E8F0;
  line-height: 1.6;
}
.testimonial-author {
  font-weight: 600;
  color: var(--cyan);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 1.1rem;
}
.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
}
.faq-a {
  height: 0;
  overflow: hidden;
  color: var(--gray);
  line-height: 1.6;
}
.faq-a p {
  padding-bottom: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 4rem;
}
.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--gray);
}
.contact-item span {
  font-size: 1.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.9rem;
  color: var(--gray);
}
input, select, textarea {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: var(--font-b);
  outline: none;
  transition: border-color 0.3s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-b);
}
textarea {
  resize: vertical;
  min-height: 120px;
}
button[type="submit"] {
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* Footer */
footer {
  padding: 4rem 2rem 2rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-links a {
  color: var(--gray);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-bottom {
  color: var(--gray);
  font-size: 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--blue-b);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--blue-b);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

/* Responsive (<768px) */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  
  .services-grid, .portfolio-grid, .stats-grid, .pricing-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.highlight {
    transform: none;
  }
  
  .process-timeline {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .process-line {
    display: none;
  }
  
  .contact-grid {
    padding: 2rem;
  }
  
  .scroll-driver { height: 100vh !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  
  /* Fallback Hero bg */
  .sticky-hero {
    background: radial-gradient(circle at 50% 50%, #0a1a4a, #030305 70%);
  }
}
