@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #06040a;
  --bg-secondary: #0d0914;
  --bg-card: rgba(18, 13, 27, 0.65);
  
  --accent-purple: #ab54ff;
  --accent-purple-bright: #8f20ff;
  --accent-purple-dim: rgba(171, 84, 255, 0.08);
  --accent-purple-glow: rgba(171, 84, 255, 0.18);
  
  --accent-cyan: #00f2fe;
  --accent-cyan-dim: rgba(0, 242, 254, 0.1);
  --accent-cyan-glow: rgba(0, 242, 254, 0.2);
  
  --text-primary: #f6f3fa;
  --text-secondary: #c7bed1;
  --text-muted: #877d94;
  
  --border-color: rgba(171, 84, 255, 0.12);
  --border-hover: rgba(171, 84, 255, 0.4);
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
}

/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) var(--bg-primary);
}

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

/* Coding Matrix Rain Canvas Background */
#code-rain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.05; /* Faint, non-distracting code streams */
}

/* Grid Backdrop Pattern overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(171, 84, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 84, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* Ambient Purple Glow Blob */
body::before {
  content: '';
  position: fixed;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--accent-purple-glow) 0%, transparent 70%);
  top: -15%;
  right: -10%;
  z-index: -3;
  pointer-events: none;
  filter: blur(80px);
}

.glow-bottom {
  position: fixed;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-cyan-dim) 0%, transparent 70%);
  bottom: -10%;
  left: -10%;
  z-index: -3;
  pointer-events: none;
  filter: blur(90px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* --- TYPOGRAPHY & LAYOUTS --- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  margin-bottom: 50px;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--accent-purple);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.purple-glow-text {
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(171, 84, 255, 0.45);
}

/* --- NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 4, 10, 0.65);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: #000;
  padding: 1px;
  image-rendering: pixelated;
}

.logo span {
  color: var(--accent-purple);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-left: 2px;
  background: var(--accent-purple-dim);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-purple);
}

.nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-purple-dim);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-purple);
  margin-bottom: 25px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-purple);
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 25px;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 530px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  box-shadow: 0 4px 15px rgba(171, 84, 255, 0.25);
}

.btn-primary:hover {
  background: var(--accent-purple-bright);
  border-color: var(--accent-purple-bright);
  box-shadow: 0 4px 20px rgba(171, 84, 255, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--accent-purple-dim);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

/* Mock Code Container (Visual) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mock-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-purple-dim);
  transition: var(--transition);
}

.mock-window:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 25px var(--accent-purple-glow);
  transform: translateY(-3px);
}

.window-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.window-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.window-body {
  padding: 24px;
}

.window-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.code-keyword { color: var(--accent-purple); }
.code-string { color: var(--accent-cyan); }
.code-number { color: #f8c555; }
.code-comment { color: var(--text-muted); }

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: flex-start;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.about-highlight {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  border-left: 2px solid var(--accent-purple);
  padding-left: 20px;
  margin: 30px 0;
}

/* Avatar Photo Card */
.avatar-photo-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  padding: 25px;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  margin: 0 auto;
}

.avatar-photo-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 20px 40px rgba(171, 84, 255, 0.12), 0 0 15px var(--accent-purple-dim);
  transform: translateY(-4px);
}

.avatar-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

/* --- SPECIALTIES --- */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.specialty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.specialty-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 10px 25px rgba(171, 84, 255, 0.08);
  transform: translateY(-4px);
}

.specialty-icon-box {
  background: var(--accent-purple-dim);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.specialty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.specialty-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- SERVICES & PRICING --- */
.services-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
  transition: var(--transition);
}

.service-card:hover {
  border-style: solid;
  border-color: var(--accent-purple);
  box-shadow: 0 10px 30px rgba(171, 84, 255, 0.12);
  transform: translateY(-4px);
}

.service-header {
  margin-bottom: 25px;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.service-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 18px;
}

.service-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.service-price span {
  color: var(--text-muted);
}

.service-price strong {
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.service-card:hover .service-price strong {
  color: var(--accent-purple);
}

.service-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.service-btn:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
}

/* --- EXPERIENCE --- */
.experience-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.exp-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 10px 25px rgba(171, 84, 255, 0.08);
  transform: translateY(-4px);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.exp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  padding: 2px;
  background: #000;
}

.exp-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.exp-role {
  font-size: 0.8rem;
  color: var(--accent-purple);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.exp-metrics {
  background: var(--accent-purple-dim);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent-purple);
  font-family: var(--font-mono);
}

.exp-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Full Width Card */
.exp-card-full {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card) 60%, var(--accent-purple-dim) 100%);
}

@media (max-width: 768px) {
  .exp-card-full {
    grid-column: span 1;
  }
}

.exp-card-full .exp-metrics {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

/* --- PHILOSOPHY --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.philosophy-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 35px;
  transition: var(--transition);
}

.philosophy-item:hover {
  border-color: var(--accent-purple);
}

.philosophy-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--accent-purple);
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
  opacity: 0.8;
}

.philosophy-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.philosophy-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- CONTACT --- */
.contact-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.contact-text h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-purple-dim);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-purple);
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-purple);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(171, 84, 255, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(171, 84, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(171, 84, 255, 0); }
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--accent-purple);
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-box {
  color: var(--accent-purple);
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-action-btn:hover {
  color: var(--accent-purple);
  background: var(--accent-purple-dim);
}

/* Tooltip text */
.tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-secondary);
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-action-btn:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.contact-action-btn.copied .tooltip-text {
  visibility: visible;
  opacity: 1;
  background-color: var(--accent-purple);
  color: #fff;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 24px;
  background: rgba(6, 4, 10, 0.85);
  margin-top: 80px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-right {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-right span {
  color: var(--accent-purple);
}

/* --- DYNAMIC SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-desc {
    margin: 0 auto 40px auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}
