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

:root {
  /* Colors */
  --bg-obsidian: #08090b;
  --bg-darker: #050607;
  --bg-card: rgba(13, 17, 23, 0.7);
  --bg-card-hover: rgba(22, 28, 38, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 240, 255, 0.15);
  --border-glow-hover: rgba(0, 240, 255, 0.35);
  
  --accent-cyan: #00f0ff;
  --accent-cyan-dim: rgba(0, 240, 255, 0.1);
  --accent-green: #10b981;
  --accent-green-dim: rgba(16, 185, 129, 0.15);
  --accent-purple: #8b5cf6;
  --accent-purple-dim: rgba(139, 92, 246, 0.15);
  
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  /* Layout */
  --container-max-width: 1100px;
  --header-height: 72px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  position: relative;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px var(--accent-cyan);
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: inline-block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(8, 9, 11, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 64px;
  background: rgba(5, 6, 7, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-cyan);
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  width: 100%;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: var(--accent-green-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-glow 2s infinite;
}

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

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(var(--header-height) + 2rem);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 750px;
}

.terminal-prompt {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.terminal-prompt span {
  color: var(--accent-cyan);
}

.hero h1 {
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-darker);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  text-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Glass Cards Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 2.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 240, 255, 0.05);
}

.glass-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.glass-card:nth-child(even) .card-icon {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.2);
}

.glass-card h3 {
  margin-bottom: 1rem;
}

.glass-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Vertical Timeline (About) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 1px;
  background: var(--border-color);
  top: 0;
  bottom: 0;
  left: 32px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 24px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-cyan);
  transform: scale(1.2);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  border-color: var(--accent-cyan);
}

.timeline-content h3 {
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  font-size: 0.9rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}

/* Callout Box / Philosophy */
.philosophy-quote {
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.8) 0%, rgba(8, 9, 11, 0.9) 100%);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 12px 12px 0;
  padding: 2.5rem;
  margin-top: 4rem;
  position: relative;
}

.philosophy-quote::after {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 7rem;
  font-family: serif;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

.philosophy-quote p {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1rem;
}

.philosophy-quote span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* Badge List (Expertise Adjacent) */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.badge:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  transform: translateY(-2px);
}

/* Numbered Steps List (Approach) */
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--accent-cyan);
}

.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.02);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  transition: var(--transition-smooth);
}

.step-card:hover .step-number {
  color: var(--accent-cyan-dim);
}

.step-card h3 {
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

/* Grid layout with list elements side-by-side */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.feature-split-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-split-panel h3 {
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}

/* Credential Badge Displays */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cert-card {
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.6) 0%, rgba(20, 24, 33, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 240, 255, 0.1);
}

.cert-badge-glow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  transition: var(--transition-smooth);
}

.cert-card:hover .cert-badge-glow {
  box-shadow: 0 0 25px var(--accent-cyan);
  transform: scale(1.05);
}

.cert-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Contact Specific Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-details h4 {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-details a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(5, 6, 7, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  margin-top: auto;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-copy span {
  color: var(--accent-cyan);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  font-size: 1.25rem;
  color: var(--text-dim);
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--accent-cyan);
}

/* Modern CSS Scroll Reveal (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-in-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .scroll-reveal {
      animation: fade-in-up auto linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }
}

/* Non-scroll reveal styling when supported natively or fallback is in play */
.scroll-reveal.fallback-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.fallback-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px var(--accent-green);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--accent-green);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px var(--accent-green);
  }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .menu-toggle {
    display: block;
    z-index: 1100;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(5, 6, 7, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    z-index: 1050;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .feature-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-dot {
    left: 12px;
  }
  
  .philosophy-quote {
    padding: 1.5rem;
  }
}
