/* Jamil Voss - Quantum Future Cyber Design System */

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

:root {
  /* Color Palette inspired by the User's Images */
  --c-bg-darker: #050209;
  --c-bg-dark: #0d0714;
  --c-bg-card: rgba(18, 10, 28, 0.65);
  --c-border: rgba(188, 60, 242, 0.25);
  --c-border-hover: rgba(0, 229, 255, 0.5);
  
  /* Palette bands 1-7 */
  --c-green: #278524;
  --c-teal: #05a8a4;
  --c-slate-blue: #5a689d;
  --c-lavender: #9a92ab;
  --c-purple: #463d8d;
  --c-mint: #aed6d2;
  --c-terracotta: #b6655c;
  
  /* Neon glow variations */
  --c-glow-green: #39aa35;
  --c-glow-teal: #00e5ff;
  --c-glow-purple: #bc3cf2;
  --c-glow-salmon: #ff7360;
  
  /* Fonts */
  --ff-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono: 'Space Mono', monospace;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--c-bg-darker);
  color: #f1ecf7;
  font-family: var(--ff-sans);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* Background Cyber Grid & Glitch Scanlines */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(18, 10, 28, 0.95), rgba(5, 2, 9, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 30px);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 10, 28, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.45;
}

/* Canvas Container */
#lattice-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Typography & Headers */
h1, h2, h3, h4 {
  font-family: var(--ff-sans);
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #fff;
}

p {
  color: #c9bfd6;
  font-weight: 300;
}

a {
  color: var(--c-glow-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--c-glow-purple);
  text-shadow: 0 0 8px var(--c-glow-purple);
}

.mono {
  font-family: var(--ff-mono);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Glassmorphism Classes */
.glass {
  background: var(--c-bg-card);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(5, 2, 9, 0.4);
  transition: var(--transition);
}

.glass:hover {
  border-color: var(--c-border-hover);
  box-shadow: 0 8px 32px 0 rgba(0, 229, 255, 0.15), inset 0 0 12px rgba(0, 229, 255, 0.05);
}

/* Unique Concentric Angle Border Decor (Inspired by user image 1 & 3) */
.nested-angle-container {
  position: relative;
  padding: 8px;
  border-left: 4px solid var(--c-green);
  border-bottom: 4px solid var(--c-green);
  margin-bottom: 2rem;
}

.nested-angle-container::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-left: 4px solid var(--c-teal);
  border-bottom: 4px solid var(--c-teal);
  pointer-events: none;
}

.nested-angle-container::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-left: 4px solid var(--c-purple);
  border-bottom: 4px solid var(--c-purple);
  pointer-events: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(188, 60, 242, 0.15);
  background: rgba(5, 2, 9, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.logo-symbol {
  width: 20px;
  height: 20px;
  border: 2px solid var(--c-glow-teal);
  transform: rotate(45deg);
  position: relative;
}

.logo-symbol::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--c-glow-purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #c9bfd6;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--c-glow-teal);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Status Indicator */
.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  background: rgba(39, 133, 36, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(39, 133, 36, 0.3);
  color: var(--c-glow-green);
}

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

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-tag {
  color: var(--c-glow-purple);
  text-shadow: 0 0 10px rgba(188, 60, 242, 0.3);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--c-mint) 70%, var(--c-glow-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--c-teal);
  color: #fff;
  border: 1px solid var(--c-glow-teal);
  box-shadow: 0 0 15px rgba(5, 168, 164, 0.2);
}

.btn-primary:hover {
  background: var(--c-glow-teal);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
  color: var(--c-bg-darker);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--c-border);
}

.btn-secondary:hover {
  background: rgba(188, 60, 242, 0.1);
  border-color: var(--c-glow-purple);
  box-shadow: 0 0 15px rgba(188, 60, 242, 0.2);
}

/* Portrait Visual frame */
.profile-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(188, 60, 242, 0.2);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: conic-gradient(
    from 0deg,
    var(--c-green),
    var(--c-teal),
    var(--c-purple),
    var(--c-terracotta),
    var(--c-green)
  );
  animation: rotate 10s linear infinite;
  z-index: 1;
}

.profile-image-container {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background-color: var(--c-bg-darker);
  z-index: 2;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: contrast(1.1) saturate(1.2);
  transition: var(--transition);
}

.profile-card:hover .profile-img {
  transform: scale(1.05);
  opacity: 1;
}

/* Section Common */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  position: relative;
}

.section-tag {
  color: var(--c-glow-teal);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 3px;
  background: var(--c-glow-purple);
  box-shadow: 0 0 8px var(--c-glow-purple);
}

/* Interactive Lattice Core Widget */
.widget-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 992px) {
  .widget-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.canvas-widget-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 2, 9, 0.9);
}

.canvas-widget-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.widget-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  background: rgba(5, 2, 9, 0.85);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--c-border);
  pointer-events: none;
}

.widget-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.btn-mini {
  padding: 6px 12px;
  font-size: 0.7rem;
  border-radius: 4px;
  background: rgba(18, 10, 28, 0.9);
  color: #fff;
  border: 1px solid var(--c-border);
}

.btn-mini:hover {
  border-color: var(--c-glow-teal);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-lang {
  color: var(--c-glow-salmon);
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.project-desc {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.feature-tag {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  background: rgba(0, 229, 255, 0.08);
  color: var(--c-glow-teal);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.15);
}

/* What to Discuss Section */
.discuss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.discuss-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.discuss-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--c-glow-purple);
  box-shadow: 0 0 10px var(--c-glow-purple);
}

.discuss-card.teal::before {
  background: var(--c-glow-teal);
  box-shadow: 0 0 10px var(--c-glow-teal);
}

.discuss-card.green::before {
  background: var(--c-glow-green);
  box-shadow: 0 0 10px var(--c-glow-green);
}

.discuss-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.discuss-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

.contact-value {
  font-size: 1.1rem;
  color: #fff;
}

.contact-form {
  padding: 2.5rem;
}

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

.form-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  color: var(--c-lavender);
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: rgba(5, 2, 9, 0.5);
  border: 1px solid var(--c-border);
  padding: 12px 16px;
  border-radius: 6px;
  color: #fff;
  font-family: var(--ff-sans);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-glow-teal);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

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

.form-status {
  margin-top: 1rem;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
}

.form-status.success {
  color: var(--c-glow-green);
}

/* Footer */
footer {
  border-top: 1px solid rgba(188, 60, 242, 0.15);
  background: #050209;
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-symbol {
  width: 16px;
  height: 16px;
}

.footer p {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--c-lavender);
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(39, 133, 36, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(39, 133, 36, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(39, 133, 36, 0);
  }
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* Scroll reveals (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);
      }
    }

    .projects-grid > *, .discuss-grid > *, .contact-form, .contact-info {
      animation: fade-in-up auto linear forwards;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}
