:root {
  --bg-color: #030303;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(15, 15, 15, 0.4);
  --accent-blue: #38bdf8;
  --accent-purple: #818cf8;
  --accent-indigo: #c084fc;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --glow-color: rgba(56, 189, 248, 0.15);
}

@keyframes meshFlow {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 5%) scale(1.1); }
  66% { transform: translate(-5%, 10%) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.bg-mesh {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 75% 25%, rgba(56, 189, 248, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(129, 140, 248, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.02) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  animation: meshFlow 20s ease-in-out infinite alternate;
  filter: blur(80px);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  font-size: clamp(0.9rem, 0.4vw + 0.8rem, 1rem);
  transition: opacity 0.6s ease-in-out;
}

body.loading { opacity: 0; }
body.loaded { opacity: 1; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Custom Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* Background effects */
.bg-mesh {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.15), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.12), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.1), transparent 40%);
  filter: blur(60px);
  animation: mesh-move 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes mesh-move {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(5%, 5%); }
  100% { transform: scale(1) translate(-5%, -5%); }
}

.bg-lines {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -3;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 5%; 
  position: relative; 
  width: 100%; 
  box-sizing: border-box;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 3, 3, 0.7);
  backdrop-filter: blur(24px);
  transition: all 0.3s ease;
  min-height: 70px;
}

.logo { 
  font-family: var(--font-heading);
  font-weight: 700; 
  font-size: 1.4rem; 
  display: flex; 
  align-items: center; 
  gap: 0.6rem;
}

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* Dropdown */
.dropdown { position: relative; display: flex; align-items: center; height: 100%; }
.dropdown-trigger { 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: 0.4rem; 
  color: var(--text-secondary); 
  font-size: 0.875rem; 
  font-weight: 500; 
  height: 100%;
  padding: 0 0.5rem;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0a0a0a;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1001;
}

/* Hover Bridge to prevent menu from closing when moving mouse */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}
.dropdown:hover .dropdown-menu {
  display: flex;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  width: 100%;
}
.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.dropdown-menu i { width: 16px; height: 16px; opacity: 0.7; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  color: #000; border: none;
}

.btn-outline {
  background: transparent; color: var(--text-primary); border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

/* Hero */
.hero { text-align: center; padding: 12rem 0 8rem; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw + 1rem, 6.5rem); 
  font-weight: 800; 
  line-height: 1.05; 
  margin-bottom: 2rem;
  background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero p { 
  color: var(--text-secondary); 
  font-size: clamp(1rem, 2vw + 0.5rem, 1.35rem); 
  max-width: 700px; 
  margin: 0 auto 3.5rem;
}

.hero-buttons { display: flex; justify-content: center; gap: 1.25rem; }

/* Stats */
.stats {
  display: flex; justify-content: center; gap: 5rem; padding: 4rem 0;
  border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
  margin-bottom: 8rem;
}
.stat-item { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.stat-label { color: var(--text-secondary); font-size: 0.875rem; text-transform: uppercase; }

/* Feature Section */
.feature-section { display: flex; align-items: center; gap: 5rem; margin-bottom: 10rem; }
.feature-section.reverse { flex-direction: row-reverse; }
.feature-content { flex: 1; }
.feature-title { font-size: 2.75rem; font-weight: 700; margin-bottom: 1.5rem; }
.feature-desc { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: 2rem; }
.feature-image { flex: 1.2; background: rgba(20,20,20,0.5); border: 1px solid var(--border-color); border-radius: 16px; padding: 0.75rem; }
.feature-image img { width: 100%; height: auto; border-radius: 10px; }

/* Skills Pillars */
.grid-section { text-align: center; margin-bottom: 10rem; }
.grid-section h2 { font-size: 3.5rem; font-weight: 700; margin-bottom: 4rem; }

.skills-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}

.skill-pillar {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(20px);
}

.pillar-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.75rem; color: #fff; }
.pillar-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.pillar-list li { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); }

/* Download / Contact */
.download-section {
  display: flex; gap: 5rem; margin-bottom: 10rem; background: var(--card-bg);
  border: 1px solid var(--border-color); border-radius: 24px; padding: 5rem;
}
.dl-left { flex: 1; }
.dl-left h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.dl-input-group { display: flex; gap: 0.5rem; }
.dl-input-group input { flex: 1; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; color: #fff; }

.dl-right { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }
.dl-item { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border: 1px solid var(--border-color); border-radius: 12px; }

/* Testimonials */
.testimonials-section { padding: 4rem 0; margin-bottom: 6rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); }
.testimonial-stars { color: #fbbf24; display: flex; gap: 0.25rem; margin-bottom: 1.5rem; }
.testimonial-stars i { width: 16px; height: 16px; fill: currentColor; }
.testimonial-text { font-style: italic; color: var(--text-primary); margin-bottom: 2rem; line-height: 1.8; font-size: 1.1rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-name { font-weight: 700; color: #fff; }
.author-role { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.2rem; }

/* Intro Section */
.intro-section { padding: 8rem 0; margin-bottom: 8rem; }
.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-text { text-align: left; }
.feature-label {
  color: var(--accent-blue);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}
.feature-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; }
.feature-desc { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: 2rem; max-width: 600px; }

.intro-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.tag {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.intro-quote {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 32px;
  position: relative;
  backdrop-filter: blur(20px);
}
.quote-icon { position: absolute; top: -1.5rem; left: 2rem; background: var(--bg-color); padding: 0.5rem; color: var(--accent-blue); }
.intro-quote p { font-size: 1.25rem; font-style: italic; color: #fff; line-height: 1.6; }

/* Process Section */
.process-section { margin-bottom: 10rem; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.process-step {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 24px;
  position: relative;
  transition: transform 0.3s ease;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Children Reveal */
.reveal.active > * {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.reveal.active > *:nth-child(1) { animation-delay: 0.1s; }
.reveal.active > *:nth-child(2) { animation-delay: 0.2s; }
.reveal.active > *:nth-child(3) { animation-delay: 0.3s; }
.reveal.active > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.floating-icon { animation: float 4s ease-in-out infinite; }

/* Pulse Glow */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.2); }
  70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.tag:hover, .btn:active { animation: pulseGlow 1.5s infinite; }

/* Touch Optimization */
@media (hover: none) {
  .btn:active, .skill-pillar:active, .bento-card:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.05);
  }
}
.process-step:hover { transform: translateY(-10px); }
.process-number {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 3rem;
  font-weight: 900;
  opacity: 0.05;
  color: #fff;
}
.process-icon {
  width: 50px; height: 50px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.process-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
.process-desc { color: var(--text-secondary); font-size: 0.95rem; }

/* Pillar Icons */
.pillar-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent-blue);
}

/* Footer Improvements */
footer { padding: 6rem 0 3rem; border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-title { font-weight: 700; margin-bottom: 1.5rem; color: #fff; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.875rem; }

/* Media Queries (Responsive) */
@media (max-width: 992px) {
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro-text { text-align: center; }
  .intro-tags { justify-content: center; }
  .intro-quote { padding: 2rem; }
  .feature-desc { margin-left: auto; margin-right: auto; }
  .feature-section, .feature-section.reverse { flex-direction: column; gap: 3rem; text-align: center; }
  .feature-list { display: inline-block; text-align: left; }
  .download-section { flex-direction: column; padding: 3rem 1.5rem; }
  .hero { padding: 8rem 0 4rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  header { padding: 0 1.25rem; min-height: 60px; }
  .logo { font-size: 1.15rem; }
  .mobile-toggle { display: block; }
  
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: #030303;
    flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    transition: 0.4s ease-in-out; z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.25rem; }
  header .btn-primary { display: none; }
  
  /* Mobile Dropdown */
  .dropdown { flex-direction: column; gap: 1rem; width: 100%; }
  .dropdown-trigger { font-size: 1.25rem; }
  .dropdown-menu {
    position: static;
    display: flex;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: unset;
    margin-top: 0.5rem;
    align-items: center;
    gap: 0.5rem;
  }
  .dropdown-menu a { font-size: 1rem; justify-content: center; }
  
  .hero { padding: 6rem 0 3rem; }
  .hero h1 { line-height: 1.1; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 100%; margin: 0 auto; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  
  .stats { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; 
    margin-bottom: 4rem; 
    padding: 3rem 1rem;
  }
  
  .grid-section h2 { font-size: clamp(2rem, 8vw, 3.5rem); }
  
  .dl-left h2 { font-size: 2.25rem; text-align: center; }
  .dl-input-group { flex-direction: column; }
  .footer-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  
  .feature-image { width: 100%; order: -1; } /* Image first on mobile */
  .skill-pillar { padding: 2.5rem 1.5rem; border-radius: 24px; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
}
