/* ===== CSS VARIABLES & RESET ===== */
:root {
  --bg-primary: transparent;
  --bg-secondary: transparent;
  --bg-card: rgba(10, 10, 15, 0.95);
  --bg-card-hover: rgba(20, 20, 25, 1);
  --border: rgba(255, 215, 0, 0.15);
  --border-hover: rgba(255, 215, 0, 0.4);
  --gold: #FFD700;
  --gold-light: #FFEA70;
  --purple: #FFD700;
  --purple-light: #FFEA70;
  --cyan: #FFD700;
  --cyan-light: #FFEA70;
  --white: #ffffff;
  --gray-100: #f0f0f0;
  --gray-300: #cccccc;
  --gray-500: #888888;
  --gradient: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-glow: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(255,165,0,0.3));
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-purple: 0 0 40px rgba(255, 215, 0, 0.2);
  --shadow-card: 0 4px 40px rgba(0,0,0,0.8);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background-color: #000;
  color: var(--gray-100);
  overflow-x: hidden;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ===== BACKGROUND GRID ===== */
#tiles {
  --intensity: 0;
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: auto;
}
.tile {
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  opacity: calc(0.1 + var(--intensity) * 0.9);
  color: hsl(51, 100%, calc(50% + var(--intensity) * 50%)); /* Bright Gold Matrix */
  text-shadow: 0 0 calc(var(--intensity) * 15px) hsl(51, 100%, 50%);
  transform: scale(calc(1 + var(--intensity) * 0.2));
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}
.tile.glitch {
  animation: glitch-anim 0.2s ease;
}
@keyframes glitch-anim {
  0% { transform: scale(1); color: #FFD700; }
  50% { transform: scale(1.2); color: #fff; text-shadow: 0 0 10px #fff; }
  100% { transform: scale(1); color: #FFD700; }
}

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; z-index: 1; }
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-tag::before { content: ''; width: 6px; height: 6px; background: var(--purple); border-radius: 50%; display: block; animation: pulse 2s infinite; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}
.section-desc {
  font-size: 1.1rem;
  color: var(--gray-300);
  max-width: 600px;
  margin-bottom: 60px;
}
.text-center { text-align: center; }
.text-center.section-desc { margin-left: auto; margin-right: auto; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 0 30px rgba(168,85,247,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(168,85,247,0.6);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(168,85,247,0.2);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.85)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes glow-pulse { 0%,100%{opacity:0.5} 50%{opacity:1} }
@keyframes spin-slow { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes dash { to{stroke-dashoffset:0} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(5,5,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}
.logo-bracket { color: var(--purple); }
.nav-links { display: flex; gap: 36px; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-cta { font-size: 0.85rem; padding: 10px 22px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
}
.hero-left {
  position: relative;
}
/* ===== CHATBOT WIDGET ===== */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}
.chatbot-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d061c, #3a156e, #000);
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  animation: widgetFloat 3s ease-in-out infinite;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.chatbot-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}
.css-bot-face {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: all 0.3s ease;
}
.css-close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-180deg);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  color: var(--white);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.css-close-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.5;
}
.chatbot-icon.active .css-bot-face {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}
.chatbot-icon.active .css-close-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0);
}
.css-bot-eye {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset -2px -2px 5px rgba(0,0,0,0.5), 0 0 6px rgba(255,255,255,0.7);
  animation: eyeBlink 3.5s infinite;
}
@keyframes eyeBlink {
  0%, 94%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(0.1); }
}
@keyframes widgetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== CHAT POPUP UI ===== */
.chat-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255, 215, 0, 0.2);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0) translate(50px, 50px);
  transform-origin: bottom right;
  border-radius: 50% 50% 100% 50%;
  transition: all 0.6s cubic-bezier(0.68, -0.15, 0.265, 1.35);
}
.chat-popup.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translate(0, 0);
  border-radius: var(--radius-md);
}
.chat-header {
  background: var(--gradient);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-header-img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--white);
}
.chat-header-text h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 2px; }
.chat-header-text p { color: rgba(0,0,0,0.7); font-size: 0.8rem; font-weight: 600; }
.chat-close { background: none; border: none; font-size: 1.8rem; color: var(--white); cursor: pointer; line-height: 1; }

.chat-body {
  flex-grow: 1; padding: 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
  background: rgba(0, 0, 0, 0.4);
}
.chat-message { display: flex; gap: 10px; max-width: 85%; }
.chat-message.bot-message { align-self: flex-start; }
.chat-message.user-message { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--gold); object-fit: cover;
}
.msg-text { padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }
.bot-message .msg-text {
  background: rgba(255, 215, 0, 0.1); color: var(--white);
  border: 1px solid rgba(255, 215, 0, 0.2); border-top-left-radius: 0;
}
.user-message .msg-text {
  background: var(--gold); color: #000; font-weight: 500;
  border-top-right-radius: 0;
}

.chat-footer { padding: 15px; background: var(--bg-card); border-top: 1px solid rgba(255, 215, 0, 0.2); }
.chat-form { display: flex; gap: 10px; }
.chat-form input {
  flex-grow: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 15px; border-radius: 100px; color: var(--white); font-family: var(--font-main);
  outline: none; transition: var(--transition);
}
.chat-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.1); }
.chat-send-btn {
  background: var(--gold); color: #000; border: none; width: 42px; height: 42px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.chat-send-btn:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }

.chatbot-speech {
  background: var(--gold);
  color: #000;
  padding: 12px 20px;
  border-radius: 20px;
  border-bottom-right-radius: 0;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 15px rgba(255,215,0,0.5);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transform-origin: bottom right;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  position: relative;
}
.chatbot-speech.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: speechBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             speechGlow 2s ease-in-out 0.5s infinite;
}
@keyframes speechBounce {
  0%   { transform: translateY(10px) scale(0.8); opacity: 0; }
  60%  { transform: translateY(-6px) scale(1.05); opacity: 1; }
  80%  { transform: translateY(2px) scale(0.98); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes speechGlow {
  0%, 100% { box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 15px rgba(255,215,0,0.4); }
  50%       { box-shadow: 0 5px 25px rgba(0,0,0,0.5), 0 0 30px rgba(255,215,0,0.8); }
}
@keyframes speechWiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-2deg); }
  75%       { transform: rotate(2deg); }
}


@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left {
    height: 350px;
    margin-bottom: 0px;
    overflow: hidden;
  }
  .spline-robot {
    height: 100%;
    clip-path: inset(0 0 45px 0); /* Visually crops out the Spline watermark without breaking bounds */
  }
  .hero-actions {
    justify-content: center;
  }
  .hero {
    min-height: auto;
    padding: 25px 0 20px; /* Reduced huge extra space */
  }
}

.hero-left {
  width: 100%;
  height: 600px; /* Adjust height based on robot model */
  position: relative;
}

.spline-robot {
  width: 100%;
  height: 100%;
  position: absolute;
  top: -20px; left: 0;
  transform: translateY(-40px);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.white-text {
  color: var(--white);
}

.gold-text {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 8px var(--cyan);
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 24px;
  min-height: 50px;
}
.typewriter {
  font-weight: 800;
}
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-300);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-desc strong { color: var(--white); }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  width: fit-content;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }
.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-family: var(--font-mono);
}
.stat-plus {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  vertical-align: top;
  margin-top: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: float 2s ease-in-out infinite;
}

/* ===== ABOUT ===== */
.about { background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-card-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background: var(--gradient);
  opacity: 0.08;
  filter: blur(60px);
  border-radius: 50%;
  animation: glow-pulse 3s ease-in-out infinite;
}
.about-avatar {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 32px;
}
.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 3px;
  animation: spin-slow 10s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent 60%, black 60%);
  mask: radial-gradient(farthest-side, transparent 60%, black 60%);
}
.avatar-inner {
  width: 100%; height: 100%;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  overflow: hidden;
  position: relative;
}
.avatar-inner svg { width: 140px; height: 140px; }
.avatar-badge {
  position: absolute;
  bottom: 8px; right: -12px;
  background: var(--gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(168,85,247,0.4);
}
.floating-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}
.chip-1 { animation: float 3s ease-in-out infinite; }
.chip-2 { animation: float 3s ease-in-out infinite 0.5s; }
.chip-3 { animation: float 3s ease-in-out infinite 1s; }
.chip-4 { animation: float 3s ease-in-out infinite 1.5s; }
.chip-5 { animation: float 3s ease-in-out infinite 0.8s; }
.chip-6 { animation: float 3s ease-in-out infinite 1.3s; }
.chip:hover { border-color: var(--purple); background: rgba(168,85,247,0.08); }
.about-text p { color: var(--gray-300); margin-bottom: 18px; font-size: 1.05rem; }
.about-text p strong { color: var(--white); }
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}
.skill-pill {
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.25);
  color: var(--purple-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 100px;
  transition: var(--transition);
}
.skill-pill:hover {
  background: rgba(168,85,247,0.18);
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg-secondary);
  position: relative;
}
.services-stacked {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  padding-bottom: 60px; /* Allow scrolling past */
}
.service-sticky-card {
  position: sticky;
  top: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
  transition: var(--transition);
}
.service-sticky-card.card-1 { z-index: 10; }
.service-sticky-card.card-2 { z-index: 11; }
.service-sticky-card.card-3 { z-index: 12; }
.service-sticky-card.card-4 { z-index: 13; }
.service-sticky-card.card-5 { z-index: 14; }

.service-sticky-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
}
.service-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.service-header p {
  font-size: 1.1rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 24px;
}
.service-details strong {
  color: var(--gold);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
}
.service-details ul {
  list-style: none;
  padding-left: 20px;
}
.service-details ul li {
  position: relative;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}
.service-details ul li::before {
  content: '▸';
  color: var(--gold);
  position: absolute;
  left: -20px;
  font-size: 0.8rem;
  top: 2px;
}
.best-for {
  font-size: 1.05rem;
  color: var(--gray-100);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg-primary); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-purple);
}
.project-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* ===== PROJECTS PAGE BACK BUTTON ===== */
.projects-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.82rem;
  color: #000;
  background: var(--gradient);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  text-decoration: none;
}
.projects-back-btn svg {
  transition: transform 0.3s ease;
}
.projects-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.55);
}
.projects-back-btn:hover svg {
  transform: translateX(-4px);
}
.loom-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #222 0%, #000 100%);
}
.project-info { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.project-info h3 { font-size: 1.15rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.project-info p { font-size: 0.95rem; color: var(--gray-300); line-height: 1.6; flex-grow: 1; margin-bottom: 24px; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 32px;
}
.service-tags span {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.gold-btn {
  border-color: var(--gold);
  color: var(--gold);
  align-self: flex-start;
}
.gold-btn:hover {
  background: rgba(255,215,0,0.1);
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--bg-secondary);
  position: relative;
}
.testimonials::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}
.testi-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 24px;
  font-size: 5rem;
  color: var(--purple);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.testi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}
.testi-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testi-card p {
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.95rem; color: var(--white); }
.testi-author span { font-size: 0.8rem; color: var(--gray-500); }

/* ===== CONTACT ===== */
.contact { background: var(--bg-primary); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}
.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.contact-info-card > p {
  color: var(--gray-300);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-300);
  transition: var(--transition);
}
.contact-item:hover {
  border-color: var(--purple);
  color: var(--white);
  background: rgba(168,85,247,0.05);
}
.contact-item-icon {
  width: 36px; height: 36px;
  background: rgba(168,85,247,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
}
.contact-item-icon.whatsapp { background: rgba(37,211,102,0.1); color: #25d366; }

/* FORM */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237070a0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
}
.form-group select option { background: var(--bg-card); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  background: rgba(168,85,247,0.05);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
#submit-btn { margin-top: 8px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}
.footer-content { text-align: center; }
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  display: inline-block;
  margin-bottom: 12px;
}
.footer-tagline {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-copy {
  color: var(--gray-500);
  font-size: 0.8rem;
}

/* ===== VIDEO MODAL ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.video-modal.active { opacity: 1; pointer-events: all; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(168,85,247,0.3);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.video-modal.active .modal-content { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--purple); }
#modal-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 400px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .section { padding: 30px 0; }
  .projects-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 15px; }
  .index-page .projects-grid .project-card:nth-child(n+4) { display: none; }
  
  .contact-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 15px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-stats { flex-direction: column; gap: 24px; padding: 24px; }
  .stat-divider { width: 60px; height: 1px; }
  .stat-item { padding: 0; }
  .hero-scroll-indicator { display: none; }
  
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-subtitle { font-size: clamp(1.2rem, 4vw, 1.6rem); }
  .hero-desc { font-size: 1rem; margin-bottom: 24px; }
  .btn-lg { padding: 12px 24px; font-size: 0.95rem; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.2rem); margin-bottom: 48px; }
  .section-desc { margin-bottom: 40px; }
  
  .section.about { padding-top: 20px; }
  
  .chatbot-widget { bottom: 20px; right: 20px; }
  .chatbot-icon { width: 50px; height: 50px; }
  .chatbot-speech { font-size: 0.85rem; padding: 10px 16px; }
  
  .chat-popup {
    width: calc(100vw - 24px);
    height: 70vh;
    bottom: 80px;
    right: 12px;
    left: 12px;
    transform-origin: bottom center;
    transform: scale(0);
    opacity: 0;
  }
  .chat-popup.active {
    transform: scale(1);
    opacity: 1;
  }
  
  .about-grid { gap: 30px; }
  .about-avatar { width: 160px; height: 160px; }
  .about-text { text-align: center; }
  .about-skills { justify-content: center; }
  .section-tag { margin-bottom: 24px; display: inline-flex; }
  .floating-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 8px; position: relative; z-index: 2; margin-top: 15px; }
  .chip { padding: 6px 12px; font-size: 0.75rem; background: rgba(0,0,0,0.8); }
  
  .services-stacked { gap: 36px; margin-top: 36px; }
  .service-header h3 { font-size: 1.3rem; margin-bottom: 8px;}
  .service-header p { font-size: 0.9rem; margin-bottom: 16px;}
  .service-details ul li { font-size: 0.85rem; }
  
  .contact-info-card { padding: 20px; }
  .contact-form { padding: 20px; }
  
  .project-info { padding: 24px; }
  .testi-card { padding: 20px; }
  .testimonials-grid { margin-top: 15px; }
  
  /* Additional fix for featured projects button */
  .see-more-wrapper { margin-top: 30px; display: flex; justify-content: center; width: 100%; display: flex; }
}

.see-more-wrapper { display: none; }
@media (max-width: 768px) {
  .see-more-wrapper { display: flex !important; }
}

/* Hide Spline Viewer Logo natively */
spline-viewer::part(logo) { display: none !important; }

/* ===== CHAT CALENDAR UI ===== */
.chat-calendar-container {
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-300);
  margin-bottom: 4px;
}

.chat-date-input, .chat-time-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition);
}

.chat-date-input:focus, .chat-time-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Fix for dark mode calendar icons in webkit */
::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg);
  cursor: pointer;
}

.chat-confirm-btn {
  background: var(--gradient);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.chat-confirm-btn:hover {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.chat-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
