:root {
  /* Color System */
  --bg-deep: #0A0A0A;
  --bg-dark: #121212;
  --accent-primary: #FF2A2A;
  --accent-dark: #B30000;
  --accent-grad: linear-gradient(135deg, #FF2A2A, #8A0000);
  
  --text-main: #FFFFFF;
  --text-muted: #B3B3B3;
  --text-glow-red: rgb(255, 42, 42);

  /* Glassmorphism System */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 42, 42, 0.15);
  --glass-glow: 0 0 15px rgba(255, 42, 42, 0);
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Hide default cursor to use custom one */
}

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

/* Custom Cursor */
.cursor-glow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  filter: blur(10px);
  mix-blend-mode: screen;
  transition: transform 0.1s ease-out;
  transform: translate(-50%, -50%);
}

#maze-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(to bottom, var(--bg-deep), var(--bg-dark));
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, .logo, .brand {
  font-family: var(--font-heading);
}

.text-glow {
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(255, 42, 42, 0.4);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Glassmorphism Utilities */
.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: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 0 20px rgba(255, 42, 42, 0.02);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px rgba(255, 42, 42, 0.15), inset 0 0 15px rgba(255, 42, 42, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card:hover::before {
  left: 125%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-grad);
  border: none;
  color: #fff;
}

.btn-primary.glow-active:hover {
  box-shadow: 0 0 25px rgba(255, 42, 42, 0.5);
  transform: scale(1.02);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 42, 42, 0.1);
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.2);
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 42, 42, 0.1);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo .dot {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-primary);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text .headline {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-text .subheadline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.cta-group {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  height: 500px;
}

.floating-ui {
  position: absolute;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}

.card-ad {
  top: 10%;
  left: 0;
  border-left: 3px solid #10B981;
}

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #10B981;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 10px #10B981;
}

.highlight-green {
  color: #10B981;
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  margin-top: 5px;
}

.card-dash {
  top: 50%;
  right: -5%;
  animation-delay: 2s;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: scan 3s linear infinite;
}

.card-brand {
  bottom: 15%;
  left: 20%;
  animation-delay: 4s;
  border-bottom: 2px solid var(--accent-primary);
}

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

@keyframes scan {
  0% { top: -10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* Services */
.services-section {
  padding: 8rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.service-card .icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 8px rgba(255, 42, 42, 0.4));
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

/* Process Section */
.process-section {
  padding: 8rem 0;
  background: linear-gradient(to right, transparent, rgba(255,42,42,0.02), transparent);
}

.maze-nodes-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.maze-path {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.maze-path::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 0%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  transition: width 0.5s ease;
  transform-origin: left;
}

.maze-nodes-container.active-2 .maze-path::after { width: 25%; }
.maze-nodes-container.active-3 .maze-path::after { width: 50%; }
.maze-nodes-container.active-4 .maze-path::after { width: 75%; }
.maze-nodes-container.active-5 .maze-path::after { width: 100%; }

.maze-node {
  position: relative;
  z-index: 2;
  text-align: center;
}

.node-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--text-muted);
  margin: 0 auto 1rem;
  transition: all 0.4s ease;
}

.maze-node.active .node-circle {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-primary);
  transform: scale(1.3);
}

.maze-node h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.4s ease;
}

.maze-node.active h4 {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* Portfolio */
.portfolio-section {
  padding: 8rem 0;
}

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

.portfolio-card {
  height: 350px;
  padding: 0;
  display: flex;
  align-items: flex-end;
}

.portfolio-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.4);
  transition: all 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%);
}

.portfolio-card:hover .portfolio-bg {
  filter: grayscale(0%) brightness(0.6);
  transform: scale(1.05);
}

.portfolio-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  width: 100%;
}

.portfolio-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.portfolio-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.metrics {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.portfolio-card:hover .metrics {
  opacity: 1;
  transform: translateY(0);
}

.metric {
  background: rgba(255,42,42,0.15);
  border: 1px solid var(--accent-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Results Section */
.results-section {
  padding: 6rem 0;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.counter-box {
  text-align: center;
  padding: 3rem 2rem;
}

.counter-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(255, 42, 42, 0.4);
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.testimonials {
  display: flex;
  justify-content: center;
}

.testimonial-card {
  max-width: 800px;
  text-align: center;
  padding: 3rem;
  border-left: 4px solid var(--accent-primary);
}

.quote {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.author {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Contact */
.contact-section {
  padding: 8rem 0;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.2);
  background: rgba(255, 42, 42, 0.05);
}

.w-100 {
  width: 100%;
}

/* Footer */
footer {
  background: #050505;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,42,42,0.1);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-container .brand {
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-container .links {
  display: flex;
  gap: 2rem;
}

.footer-container .links a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(255,42,42,0.5);
}

/* WhatsApp Float */
.wa-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  color: white;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.wa-icon {
  width: 35px;
  height: 35px;
}

/* --- Portfolio Specific Styles --- */
.full-width-hero {
  grid-column: 1 / -1;
  text-align: center;
}

.center-cta {
  justify-content: center;
}

.portfolio-section .link-metric {
  background: transparent;
  backdrop-filter: blur(5px);
  text-decoration: none;
  transition: all 0.3s ease;
}
.portfolio-section .link-metric:hover {
  background: var(--accent-primary);
  color: white;
}

.reel-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reel-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reel-thumbnail {
  width: 100%;
  aspect-ratio: 9/16;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.reel-card:hover .reel-thumbnail {
  transform: scale(1.02);
}

.play-btn {
  width: 50px;
  height: 50px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.4);
}

.reel-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

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

.logo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.logo-item {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-item:hover img {
  transform: scale(1.1);
}

.border-glow-hover:hover {
  box-shadow: inset 0 0 20px rgba(255, 42, 42, 0.1), 0 0 20px rgba(255, 42, 42, 0.2);
}

.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.profile-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  background-size: cover;
  background-position: center;
}

.profile-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.role {
  color: var(--accent-primary);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-body p {
  color: var(--text-muted);
  line-height: 1.6;
}

.flex-gap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.bg-alternating {
  background: linear-gradient(to bottom, transparent, rgba(255,42,42,0.02), transparent);
}

/* --- Responsive & Mobile Optimization --- */

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  * {
    cursor: auto !important;
  }
  .cursor-glow {
    display: none !important;
  }
}

/* Tablet & Large Mobile (Max 1024px) */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-text .headline {
    font-size: 3.5rem;
  }
  .hero-text .subheadline {
    margin: 0 auto 2rem;
  }
  .cta-group {
    justify-content: center;
  }
  .hero-visual {
    height: 350px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-card {
    height: 300px;
  }
  .counters-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  
  .hero-section {
    padding-top: calc(var(--nav-height) + 2rem);
  }
  .hero-text .headline {
    font-size: 2.5rem;
  }
  .hero-text .subheadline {
    font-size: 1.1rem;
  }
  .cta-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .services-section, .process-section, .portfolio-section, .results-section, .contact-section {
    padding: 5rem 0;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  
  /* Process Section Vertical Layout for Mobile */
  .maze-nodes-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 2rem;
    max-width: 100%;
  }
  .maze-path {
    width: 2px;
    height: 100%;
    top: 0;
    left: 2.7rem; /* Align beautifully with nodes */
  }
  .maze-path::after {
    top: 0; left: 0; width: 100%; height: 0%;
    transition: height 0.5s ease;
    transform-origin: top;
  }
  .maze-nodes-container.active-2 .maze-path::after { height: 25%; }
  .maze-nodes-container.active-3 .maze-path::after { height: 50%; }
  .maze-nodes-container.active-4 .maze-path::after { height: 75%; }
  .maze-nodes-container.active-5 .maze-path::after { height: 100%; }

  .maze-node {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 3rem;
    width: 100%;
  }
  .maze-node:last-child {
    margin-bottom: 0;
  }
  .node-circle {
    margin: 0;
    flex-shrink: 0;
  }
  .maze-node h4 {
    margin: 0;
    font-size: 1.1rem;
  }

  .counters-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .counter-box {
    padding: 2rem 1rem;
  }
  .counter-number {
    font-size: 2.8rem;
  }
  
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  .quote {
    font-size: 1.1rem;
  }
  
  .contact-card h2 {
    font-size: 1.6rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
  }
  .nav-cta {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
  .hero-visual {
    display: none;
  }
  .container {
    padding: 0 1.2rem;
  }
  .wa-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .wa-icon {
    width: 25px;
    height: 25px;
  }
  .glass-card {
    padding: 1.5rem;
  }
  .portfolio-content {
    padding: 1.5rem;
  }
}
