/* ====== VARIABLES & RESET ====== */
:root {
  --bg-color: #030305;
  --text-color: #f0f0f0;
  --accent-1: #00f0ff; /* Cyan */
  --accent-2: #8a2be2; /* Purple */
  --accent-3: #ff0055; /* Neon Pink */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  cursor: none; /* Custom cursor */
}

/* ====== 3D CANVAS BACKGROUND ====== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at center, #0a0a12 0%, #000000 100%);
}

/* ====== CUSTOM CURSOR ====== */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-1);
  box-shadow: 0 0 10px var(--accent-1);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-2);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  border-color: var(--accent-1);
  background-color: rgba(0, 240, 255, 0.1);
}

/* ====== TYPOGRAPHY & LAYOUT ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--accent-1), var(--accent-3));
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

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

section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  text-decoration: none;
  letter-spacing: 2px;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: none;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(138, 43, 226, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--accent-2);
}

.btn-outline:hover {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ====== NAVBAR ====== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(3, 3, 5, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
  padding: 10px 0;
  background: rgba(3, 3, 5, 0.95);
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav a:hover {
  color: var(--accent-1);
  text-shadow: 0 0 10px var(--accent-1);
}

/* ====== HERO SECTION ====== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  max-width: 900px;
  z-index: 1;
}

.glitch {
  font-size: 5rem;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  color: white;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
  margin-bottom: 1rem;
  margin-top: 5rem; /* Added to move text lower */
}


.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--accent-3);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent-1);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 86px, 0); }
  20% { clip: rect(66px, 9999px, 12px, 0); }
  40% { clip: rect(13px, 9999px, 98px, 0); }
  60% { clip: rect(44px, 9999px, 32px, 0); }
  80% { clip: rect(88px, 9999px, 7px, 0); }
  100% { clip: rect(23px, 9999px, 55px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  20% { clip: rect(12px, 9999px, 44px, 0); }
  40% { clip: rect(88px, 9999px, 22px, 0); }
  60% { clip: rect(34px, 9999px, 77px, 0); }
  80% { clip: rect(9px, 9999px, 11px, 0); }
  100% { clip: rect(55px, 9999px, 99px, 0); }
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ccc;
  background: none;
  -webkit-text-fill-color: initial;
}

.hero p {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  line-height: 1.6;
}
.hero .action-buttons {
    justify-content: center;
}

/* ====== ABOUT SECTION & 3D CUBE ====== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #aaa;
}

.highlight {
  color: var(--accent-1);
  font-weight: 600;
}

.about-3d-visual {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.cube-container {
  width: 200px;
  height: 200px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: spinCube 10s infinite linear;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(10, 10, 20, 0.8);
  border: 2px solid var(--accent-1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3) inset;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-1);
  backdrop-filter: blur(5px);
}

.front  { transform: rotateY(0deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes spinCube {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to { transform: rotateX(360deg) rotateY(360deg); }
}

/* ====== SERVICES SECTIONS ====== */
.service-detail {
  padding: 100px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bg-alternate {
  background: rgba(10, 10, 15, 0.4);
}
.service-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.reverse-row {
  flex-direction: row-reverse;
}
.service-info {
  flex: 1;
}
.service-subtitle {
  color: var(--accent-1);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.service-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.service-info p {
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.service-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

/* ====== 3D ANIMATED CARDS ====== */
.service-3d-card {
  width: 320px;
  height: 420px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  cursor: pointer;
}
.s3d-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.bg-layer {
  background: linear-gradient(145deg, rgba(30,30,40,0.8), rgba(10,10,15,0.9));
  transform: translateZ(0px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
}
.bg-layer::before {
  content: '';
  position: absolute;
  width: 150%; height: 150%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.2), transparent 30%);
  animation: rotate 6s linear infinite;
    }

/* Service card custom background gradients */
.seo-bg { background: radial-gradient(circle at center, rgba(0,240,255,0.4), rgba(0,0,0,0.8)); }
.web-bg { background: radial-gradient(circle at center, rgba(138,43,226,0.4), rgba(0,0,0,0.8)); }
.social-bg { background: radial-gradient(circle at center, rgba(255,0,85,0.4), rgba(0,0,0,0.8)); }
.branding-bg { background: radial-gradient(circle at center, rgba(0,240,255,0.4), rgba(0,0,0,0.8)); }
.gbp-bg { background: radial-gradient(circle at center, rgba(138,43,226,0.4), rgba(0,0,0,0.8)); }
.ai-bg { background: radial-gradient(circle at center, rgba(255,0,85,0.4), rgba(0,0,0,0.8)); }
.hosting-bg { background: radial-gradient(circle at center, rgba(0,240,255,0.4), rgba(0,0,0,0.8)); }
.border-layer {
  border: 2px solid rgba(255,255,255,0.1);
  transform: translateZ(30px);
  transition: border-color 0.3s;
}
.service-3d-card:hover .border-layer {
  border-color: var(--accent-1);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2) inset;
}
.float-content {
  transform: translateZ(80px);
  pointer-events: none;
}
.metric-badge {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-1);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--accent-1);
  font-weight: bold;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(0,240,255,0.3);
}
.floating-icon {
  font-size: 5rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.s3d-title {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transform: translateZ(50px);
  letter-spacing: 1px;
}

/* Card Specific Colors */
.seo-card .bg-layer::before { background: conic-gradient(from 0deg, transparent, var(--accent-1), transparent 30%); }
.social-card .bg-layer::before { background: conic-gradient(from 0deg, transparent, var(--accent-3), transparent 30%); }
.social-card .border-layer:hover { border-color: var(--accent-3); box-shadow: 0 0 30px rgba(255, 0, 85, 0.2) inset; }
.social-card .metric-badge { border-color: var(--accent-3); color: var(--accent-3); background: rgba(255, 0, 85, 0.1); box-shadow: 0 0 15px rgba(255,0,85,0.3); }

.web-card .bg-layer::before { background: conic-gradient(from 0deg, transparent, var(--accent-2), transparent 30%); }
.web-card .border-layer:hover { border-color: var(--accent-2); box-shadow: 0 0 30px rgba(138, 43, 226, 0.2) inset; }
.web-card .metric-badge { border-color: var(--accent-2); color: #fff; background: rgba(138, 43, 226, 0.3); box-shadow: 0 0 15px rgba(138,43,226,0.5); }

.data-card .bg-layer::before { background: conic-gradient(from 0deg, transparent, #00ff88, transparent 30%); }
.data-card .border-layer:hover { border-color: #00ff88; box-shadow: 0 0 30px rgba(0, 255, 136, 0.2) inset; }
.data-card .metric-badge { border-color: #00ff88; color: #00ff88; background: rgba(0, 255, 136, 0.1); box-shadow: 0 0 15px rgba(0, 255, 136, 0.3); }

.chatbot-card .bg-layer::before { background: conic-gradient(from 0deg, transparent, #ffaa00, transparent 30%); }
.chatbot-card .border-layer:hover { border-color: #ffaa00; box-shadow: 0 0 30px rgba(255, 170, 0, 0.2) inset; }
.chatbot-card .metric-badge { border-color: #ffaa00; color: #ffaa00; background: rgba(255, 170, 0, 0.1); box-shadow: 0 0 15px rgba(255, 170, 0, 0.3); }

/* ====== PROJECTS SECTION (3D Flip Cards) ====== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 350px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 20px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.flip-card-front {
  background-color: #0a0a12;
}

.flip-card-front h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    z-index: 2;
}
.flip-card-front p {
    color: #888;
    z-index: 2;
}

/* Animated CSS Backgrounds for Cards */
.animated-bg, .animated-bg-2, .animated-bg-3 {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    z-index: 1;
    opacity: 0.3;
}
.animated-bg {
    background: conic-gradient(from 0deg, transparent, var(--accent-1), transparent 30%);
    animation: rotate 4s linear infinite;
}
.animated-bg-2 {
    background: conic-gradient(from 0deg, transparent, var(--accent-2), transparent 30%);
    animation: rotate 5s linear infinite reverse;
}
.animated-bg-3 {
    background: conic-gradient(from 0deg, transparent, var(--accent-3), transparent 30%);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.flip-card-back {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  color: white;
  transform: rotateY(180deg);
}
.flip-card-back h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.flip-card-back p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ====== FAQ SECTION ====== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}

.faq-question:hover {
    color: var(--accent-1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #aaa;
  line-height: 1.6;
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-1);
}

/* ====== CONTACT & MAP ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.glow-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
  padding: 15px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
}

.glow-link:hover {
  border-color: var(--accent-1);
  background: rgba(0, 240, 255, 0.05);
  transform: translateX(10px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.whatsapp-link:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  border: none;
  filter: invert(100%) hue-rotate(180deg) contrast(1.2); /* Dark mode map trick */
}

/* ====== FOOTER WAVES & 3D LOGO ====== */
.footer-wave-container {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: 50px;
    background: transparent;
}

.footer-wave {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 150px;
    transform: translateX(0);
    animation: wave-animation 10s linear infinite;
}

@keyframes wave-animation {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
    100% { transform: translateX(0); }
}

.logo-3d {
    text-shadow: 
        0px 1px 0px #333,
        0px 2px 0px #222,
        0px 3px 0px #111,
        0px 4px 0px #0a0a0a,
        0px 5px 0px #000,
        0px 6px 10px rgba(0,0,0,0.8),
        0px 0px 20px var(--accent-2),
        0px 0px 40px rgba(0, 240, 255, 0.4);
    transform: perspective(500px) rotateX(10deg);
    display: inline-block;
    transition: transform 0.3s;
}

.logo-3d:hover {
    transform: perspective(500px) rotateX(0deg) translateY(-5px);
    text-shadow: 
        0px 1px 0px #333,
        0px 2px 0px #222,
        0px 3px 0px #111,
        0px 4px 0px #0a0a0a,
        0px 5px 0px #000,
        0px 6px 10px rgba(0,0,0,0.8),
        0px 0px 30px var(--accent-1),
        0px 0px 60px rgba(138, 43, 226, 0.6);
}

/* ====== FOOTER ====== */
footer {
  background: rgba(0,0,0,0.8);
  padding: 0 0 4rem 0; /* Removed top padding to sit flush with wave */
  text-align: center;
  backdrop-filter: blur(10px);
}

.footer-links {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: var(--accent-1);
}

/* ====== CHATBOT WIDGET ====== */
#chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

#chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4);
  transition: transform 0.3s;
}

#chat-toggle:hover {
  transform: scale(1.1);
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4); }
    100% { box-shadow: 0 5px 30px rgba(138, 43, 226, 0.8); }
}

#chat-window {
  display: none;
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  flex-direction: column;
}

#chat-header {
  padding: 15px;
  background: linear-gradient(to right, rgba(0,240,255,0.1), rgba(138,43,226,0.1));
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

#chat-close {
  cursor: pointer;
  color: #aaa;
}

#chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bot-message {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.user-message {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

#chat-quick-actions {
  display: flex;
  gap: 8px;
  padding: 10px 15px;
  overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(5, 5, 8, 0.5);
  scrollbar-width: none;
}

#chat-quick-actions::-webkit-scrollbar {
  display: none;
}

.chat-pill {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.chat-pill:hover {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

#chat-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 10px;
  outline: none;
}

#chat-send {
  background: transparent;
  border: none;
  color: var(--accent-1);
  cursor: pointer;
  padding: 0 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* RESPONSIVE & MOBILE DEBUGGING */
@media (max-width: 768px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Fix Expertise Section Responsiveness */
  .service-row, .service-row.reverse-row {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .service-info {
    order: -1; /* Always show text before the 3D card on mobile */
  }
  .service-info h2 {
    font-size: 2rem;
  }
  .service-3d-card {
    width: 100%;
    max-width: 300px;
    height: 380px;
  }
  
  /* Typography Adjustments */
  .glitch {
    font-size: 2.5rem;
  }
  
  nav ul {
    display: none;
  }
  
  .cube-container {
      margin: 0 auto;
  }
  
  /* Fix Chatbot Widget on Mobile */
  #chat-window {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 90px;
    height: 60vh;
  }
  
  /* Disable custom cursor on mobile to fix touch/scrolling bugs */
  .cursor-dot, .cursor-outline {
    display: none !important;
  }
  
  /* Show hamburger button on mobile */
  .hamburger-btn {
    display: flex !important;
  }
}

/* ====== HIGH-CONVERTING & PROFESSIONAL STYLES ====== */

/* WhatsApp Floating CTA */
.whatsapp-sticky {
  position: fixed;
  left: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  cursor: none; /* custom cursor compatibility */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}
.whatsapp-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}
.whatsapp-sticky svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.whatsapp-tooltip {
  position: absolute;
  left: 75px;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
  font-weight: 500;
  font-family: var(--font-main);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}
.whatsapp-sticky:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Hamburger Menu */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: none;
  z-index: 1001;
  padding: 0;
}
.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  transform-origin: center;
}
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--accent-1);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--accent-1);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 5, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-nav-overlay.active {
  transform: translateY(0);
}
.mobile-nav-overlay ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mobile-nav-overlay a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
  display: block;
}
.mobile-nav-overlay a:hover {
  color: var(--accent-1);
  text-shadow: 0 0 15px var(--accent-1);
}

/* Client Logos Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: rgba(5, 5, 8, 0.3);
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
}
.marquee-track {
  display: flex;
  width: calc(250px * 12);
  animation: scrollMarquee 25s linear infinite;
}
.marquee-item {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #444;
  letter-spacing: 2px;
  transition: color 0.3s, text-shadow 0.3s;
}
.marquee-item:hover {
  color: var(--accent-1);
  text-shadow: 0 0 10px var(--accent-1);
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 6)); }
}

/* Statistics Grid & Counters */
.stats-section {
  padding: 80px 0;
  background: rgba(5, 5, 8, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stats-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.stats-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.08), transparent 60%);
  pointer-events: none;
}
.stats-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-1);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}
.stats-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}
.stats-label {
  font-size: 0.9rem;
  color: #aaa;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Trust Badges */
.trust-badges-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.trust-badge span {
  color: var(--accent-1);
}

/* Precision Workflow / Process Section */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
  margin-top: 3rem;
}
.workflow-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}
.workflow-card:hover {
  border-color: var(--accent-2);
  box-shadow: 0 10px 35px rgba(138, 43, 226, 0.15);
  transform: translateY(-3px);
}
.workflow-step {
  position: absolute;
  top: -15px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  transition: color 0.4s;
}
.workflow-card:hover .workflow-step {
  color: rgba(138, 43, 226, 0.08);
}
.workflow-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.workflow-card h3 span {
  color: var(--accent-1);
}
.workflow-card p {
  color: #aaa;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Testimonials section */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
}
.testimonial-card:hover {
  border-color: var(--accent-3);
  box-shadow: 0 10px 30px rgba(255, 0, 85, 0.15);
  transform: translateY(-5px);
}
.testimonial-rating {
  color: #ffaa00;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.testimonial-quote {
  font-style: italic;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-family: var(--font-heading);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.author-meta h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}
.author-meta p {
  font-size: 0.8rem;
  color: #888;
}

/* Glassmorphism Contact Form & validation states */
.contact-form {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(15px);
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  width: 100%;
}
.form-group {
  position: relative;
  margin-bottom: 2rem;
}
.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}
.form-control:focus {
  border-color: var(--accent-1);
  background: rgba(0, 240, 255, 0.02);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}
textarea.form-control {
  height: 120px;
  resize: none;
}
.form-label {
  position: absolute;
  left: 18px;
  top: 14px;
  color: #888;
  pointer-events: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -24px;
  left: 4px;
  font-size: 0.8rem;
  color: var(--accent-1);
}
.form-submit-btn {
  width: 100%;
}
.form-status {
  margin-top: 1.5rem;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
  text-align: center;
  font-family: var(--font-main);
}
.form-status.success {
  display: block;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid #00ff88;
  color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}
.form-status.error {
  display: block;
  background: rgba(255, 0, 85, 0.05);
  border: 1px solid var(--accent-3);
  color: var(--accent-3);
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.1);
}

/* Pricing Grid & Tier Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.pricing-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  backdrop-filter: blur(10px);
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-2);
  box-shadow: 0 15px 40px rgba(138, 43, 226, 0.15);
}
.pricing-card.popular {
  border-color: var(--accent-1);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
  background: rgba(0, 240, 255, 0.01);
}
.pricing-card.popular::after {
  content: 'Popular';
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-1);
  color: #030305;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}
.pricing-tier {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2rem;
}
.pricing-price span {
  font-size: 0.95rem;
  color: #888;
  font-weight: 400;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2.5rem;
}
.pricing-features li {
  color: #aaa;
  margin-bottom: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent-1);
  font-weight: bold;
}

/* Portfolio Filters & Before/After Metrics */
.portfolio-filter-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.compare-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(5px);
}
.compare-box.before {
  border-left: 4px solid var(--accent-3);
}
.compare-box.after {
  border-left: 4px solid var(--accent-1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}
.compare-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.compare-box.before .compare-title { color: var(--accent-3); }
.compare-box.after .compare-title { color: var(--accent-1); }

.compare-metric {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}
.compare-desc {
  font-size: 0.85rem;
  color: #888;
}

/* Blog progress bar and Toc sidebar */

/* Founder photo styling */
.founder-photo {
  width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  transition: transform 0.3s ease;
}
.founder-photo:hover {
  transform: scale(1.05);
}

#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right, var(--accent-1), var(--accent-3));
  z-index: 2000;
}
.blog-search-bar {
  max-width: 500px;
  margin: 0 auto 3rem auto;
}
.category-filter-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #aaa;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: none;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.filter-pill:hover, .filter-pill.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.blog-container-split {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 4rem;
  align-items: start;
}
.blog-toc-sidebar {
  position: sticky;
  top: 110px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}
.blog-toc-sidebar h4 {
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.blog-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-toc-link {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s, padding-left 0.3s;
  display: block;
  cursor: none;
  line-height: 1.4;
}
.blog-toc-link:hover, .blog-toc-link.active {
  color: var(--accent-1);
  padding-left: 8px;
  border-left: 2px solid var(--accent-1);
}
.author-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 4rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.author-avatar-large {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: bold;
  color: white;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
  flex-shrink: 0;
}
.author-card-content h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}
.author-card-content p {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.5;
}
.share-toolbar {
  display: flex;
  gap: 10px;
  margin-top: 2rem;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  cursor: none;
}
.share-btn:hover {
  background: var(--accent-1);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
  color: #030305;
}

/* FAQ Layout & Search input */
.faq-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 16px 26px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.faq-search-input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Legal pages & custom 404 formatting */
.legal-content {
  max-width: 850px;
  margin: 150px auto 50px auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
  display: block;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem 0;
  background: none;
  -webkit-text-fill-color: initial;
  color: #fff;
  display: block;
  text-shadow: none;
  border-left: 3px solid var(--accent-1);
  padding-left: 12px;
}
.legal-content p, .legal-content ul {
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.legal-content ul {
  margin-left: 24px;
}

/* Custom 404 Glitch Space Theme */
.error-page-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

/* Responsive Overrides & Layout Adjustments */
@media (max-width: 992px) {
  .blog-container-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .blog-toc-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 576px) {
  .contact-form {
    padding: 2rem 1.5rem;
  }
  .pricing-card {
    padding: 2.5rem 1.5rem;
  }
  .stats-number {
    font-size: 2.8rem;
  }
}


@media (max-width: 768px) {
  /* Hide custom cursor on touch devices */
  .cursor-dot, .cursor-outline { display: none; }
  /* Reduce heading sizes for better mobile layout */
  h1.glitch { font-size: 3rem; }
  h2 { font-size: 2rem; }
  .hero { padding-top: 60px; }
  .container { padding: 0 1rem; }
  .action-buttons { flex-direction: column; }
  .nav-container ul { gap: 1rem; }
  header { padding: 10px 0; }
}

