/* =====================================================
   Global Foundation
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-family: 'Orbitron', sans-serif;
  --primary-bg: #0D0D0D;
  --secondary-bg: #111111;
  --text-color: #0F0;
  --accent-color: #FF4081;
  --hover-glow: #0FF;
  --max-width: 1200px;
  --radius: 4px;
  --transition: 0.3s ease;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

ul {
  list-style: none;
  padding-left: 0;
}

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

a:hover {
  color: var(--hover-glow);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.container > * + * {
  margin-top: 40px;
}

/* =====================================================
   Header & Navigation
===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 999;
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-list {
  display: flex;
  gap: 20px;
}

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

/* =====================================================
   Hero Sections
===================================================== */
.hero,
.about-hero,
.projects-hero,
.skills-hero,
.contact-hero {
  position: relative;
  z-index: 1;
  padding-top: 160px;
  padding-bottom: 100px;
  text-align: center;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1,
.about-hero h1,
.projects-hero h1,
.skills-hero h1,
.contact-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 0 0 10px var(--text-color);
}

.hero p,
.about-hero p,
.projects-hero p,
.skills-hero p,
.contact-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* =====================================================
   Buttons
===================================================== */
.btn {
  display: inline-block;
  background-color: var(--text-color);
  color: var(--primary-bg);
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background var(--transition);
  font-weight: bold;
}

.btn:hover {
  background-color: var(--hover-glow);
}

/* =====================================================
   Section Specific Styling
===================================================== */
.preview-grid,
.skills-list ul,
.timeline-items,
.contact-list {
  margin-top: 40px;
}

.preview-tile,
.project-card,
.value,
.contact-list li {
  background: var(--secondary-bg);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.preview-tile:hover,
.project-card:hover,
.value:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--hover-glow);
}

.skills-quote {
  text-align: center;
  padding: 60px 20px;
  background: var(--secondary-bg);
}

.skills-quote .quote {
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.9;
}

.profile-pic,
.profile-pic-large {
  border-radius: 50%;
  max-width: 140px;
  margin-bottom: 20px;
}

.profile-pic-large {
  max-width: 200px;
}

/* =====================================================
   Footer
===================================================== */
.footer {
  padding: 60px 20px;
  background-color: #000;
  color: var(--text-color);
  text-align: center;
}

.footer a {
  color: var(--text-color);
  font-weight: 500;
}

/* =====================================================
   Responsive Polish
===================================================== */
@media (max-width: 1024px) {
  .hero h1,
  .about-hero h1,
  .projects-hero h1,
  .skills-hero h1,
  .contact-hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    padding: 20px;
  }

  .nav-list.active {
    display: flex;
  }

  #burger-toggle {
    display: block;
  }

  .container {
    padding: 0 16px;
  }

  .project-card,
  .preview-tile,
  .value,
  .contact-list li {
    padding: 15px;
  }

  .profile-pic-large {
    max-width: 140px;
  }

  .hero h1,
  .about-hero h1,
  .projects-hero h1,
  .skills-hero h1,
  .contact-hero h1 {
    font-size: 1.9rem;
  }

  .hero p,
  .about-hero p,
  .projects-hero p,
  .skills-hero p,
  .contact-hero p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1,
  .about-hero h1,
  .projects-hero h1,
  .skills-hero h1,
  .contact-hero h1 {
    font-size: 1.6rem;
  }

  .footer {
    font-size: 0.85rem;
  }

  .btn {
    padding: 10px;
  }
}
