/* ========== DESIGN SYSTEM ========== */
:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-card: rgba(18, 18, 22, 0.8);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(204, 255, 0, 0.25);
  --accent: #ccff00;       /* Electric Lime */
  --accent-purple: #b000ff;
  --accent-blue: #00e5ff;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --shadow-neon: 0 0 30px rgba(204, 255, 0, 0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: var(--accent);
  color: #000;
}

a, button {
  cursor: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 10px;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  z-index: 10000;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 10px;
}

/* ========== CURSOR ========== */
.cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-outline {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* ========== PRELOADER ========== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-ring svg {
  width: 80px;
  height: 80px;
}
.preloader-text {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 4px;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, .section-title {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.3em;
}
.section-title .accent-text {
  color: var(--accent);
  display: inline-block;
}
.section-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ========== LAYOUT ========== */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}
.section-padding {
  padding: 8rem 0;
}
.section-header {
  margin-bottom: 4rem;
}

/* ========== GLASS CARD ========== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--border-glow);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite alternate ease-in-out;
}
.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: -20%;
  left: -10%;
  animation-duration: 23s;
}
.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  bottom: -15%;
  right: -5%;
  animation-duration: 18s;
  animation-delay: -2s;
}
.shape-3 {
  width: 350px;
  height: 350px;
  background: var(--accent);
  top: 50%;
  left: 60%;
  animation-duration: 25s;
  animation-delay: -1s;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero-tagline {
  font-family: var(--font-mono);
  letter-spacing: 6px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .accent-text {
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-secondary);
}
.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-size: 1rem;
  transition: all var(--transition);
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(204,255,0,0.5);
}
.btn-primary:hover {
  box-shadow: 0 0 40px var(--accent);
  transform: translateY(-2px);
}
.btn-glass {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent);
  color: var(--accent);
  backdrop-filter: blur(4px);
}
.btn-glass:hover {
  background: rgba(204,255,0,0.1);
}
.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
}
.btn-copy {
  background: transparent;
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}
.btn-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  display: flex;
  justify-content: center;
}
.about-avatar svg {
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 0 20px var(--accent));
}
.about-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-avatar svg {
    max-width: 200px;
  }
}

/* ========== EXPERTISE ========== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.expertise-card {
  padding: 2.5rem 2rem;
  text-align: center;
}
.card-icon {
  margin-bottom: 1.5rem;
}
.expertise-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.expertise-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========== SERVICES MARQUEE ========== */
.services-marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  gap: 0;
  mask-image: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  margin-top: 2rem;
}
.marquee-track {
  display: flex;
  animation: marquee 20s linear infinite;
  gap: 2rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.marquee-track .separator {
  color: var(--text-secondary);
  margin: 0 0.5rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.timeline-content {
  padding: 1.5rem 2rem;
  margin-left: 2rem;
}
.timeline-date {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
}
.timeline-content h3 {
  margin: 0.3rem 0;
}
.timeline-company {
  font-weight: 600;
  color: var(--text-primary);
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-image {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.project-placeholder svg {
  width: 100%;
  height: 100%;
}
.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent-blue);
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}
.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.project-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.project-tech span {
  background: rgba(255,255,255,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* ========== TECH STACK ========== */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.tech-item {
  padding: 0.8rem 1.5rem;
  border: 1.5px solid var(--border-light);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  background: rgba(255,255,255,0.03);
}
.tech-item:hover {
  border-color: var(--accent);
  background: rgba(204,255,0,0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px var(--accent);
}

/* ========== METRICS ========== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.metric-card {
  padding: 2rem;
  text-align: center;
}
.metric-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.metric-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

/* ========== TESTIMONIALS ========== */
.testimonial-slider {
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  min-width: 300px;
  padding: 2rem;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  padding: 1.2rem 1.5rem;
}
.faq-item summary {
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin-top: 1rem;
  color: var(--text-secondary);
}

/* ========== CONTACT ========== */
.contact-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ========== FOOTER ========== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: 4rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.footer-tagline {
  color: var(--text-secondary);
}
.footer-nav {
  display: flex;
  gap: 2rem;
}
.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-social a {
  color: var(--text-secondary);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
}
.footer-copy {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s, transform 0.6s var(--ease-out-expo);
}
.reveal-text.revealed .word {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger each word via inline style set by JS */

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .btn-large { padding: 0.8rem 1.5rem; font-size: 1rem; }
}

/* Accessibility & focus */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}