/* Clean, Readable Design for Manajev AI Labs */
:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #151b33;
  --bg-footer: #0d1128;
  --text-primary: #e4e6eb;
  --text-secondary: #cfd8dc;
  --text-muted: #a8b8c0;
  --accent-primary: #64b5f6;
  --accent-hover: #90caf9;
  --border-accent: #42a5f5;
  --border-subtle: #2a3f5f;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Header */
header {
  background: linear-gradient(135deg, #1a1f3a 0%, var(--bg-primary) 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

h1 {
  font-size: 2.8rem;
  margin: 0 0 0.8rem 0;
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.15rem;
  color: #b0bec5;
  font-weight: 400;
  line-height: 1.6;
}

/* Sections */
/* Note: Fade-in commented out to avoid hiding content—add JS if you want it back */
section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
  /* opacity: 0; */
  /* transform: translateY(20px); */
  /* transition: opacity 0.6s ease, transform 0.6s ease; */
}

/* section.visible { */
/* opacity: 1; */
/* transform: translateY(0); */
/* } */

h2 {
  color: var(--accent-primary);
  border-bottom: 2px solid #1e3a5f;
  padding-bottom: 0.6rem;
  margin-bottom: 1.8rem;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

li {
  margin: 1rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--bg-secondary);
  border-left: 4px solid var(--border-accent);
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInUp 0.5s ease-out backwards;
}

/* Stagger animation for list items */
li:nth-child(1) {
  animation-delay: 0.1s;
}
li:nth-child(2) {
  animation-delay: 0.2s;
}
li:nth-child(3) {
  animation-delay: 0.3s;
}
li:nth-child(4) {
  animation-delay: 0.4s;
}
li:nth-child(5) {
  animation-delay: 0.5s;
}
li:nth-child(6) {
  animation-delay: 0.6s;
}

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

li:hover,
li:focus-within {
  background: #1a2140;
  border-left-color: var(--accent-primary);
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.15);
}

.project-desc {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Links */
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus {
  color: var(--accent-hover);
  text-decoration: underline;
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--bg-footer);
  font-size: 0.95rem;
  color: #78909c;
  border-top: 1px solid var(--border-subtle);
  margin-top: 5rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--accent-primary);
  margin-left: 1rem;
}

.privacy-notice {
  font-size: 0.85rem;
  color: #78909c;
  margin-top: 1rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  .subtitle {
    font-size: 1.05rem;
  }
  section {
    margin: 2.5rem auto;
    padding: 0 1.5rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  li {
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  header {
    padding: 3rem 1.5rem;
  }
  section {
    padding: 0 1.2rem;
  }
  body {
    font-size: 16px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Selection color */
::selection {
  background: var(--border-accent);
  color: #fff;
}
::-moz-selection {
  background: var(--border-accent);
  color: #fff;
}

/* Wide-screen enhancements for high-res desktops (e.g., your HP) */
@media (min-width: 1200px) {
  section {
    max-width: 1000px; /* Wider canvas—fills more screen without crowding */
    padding: 0 3rem;
  }

  /* Skills as a flexible grid for better scan on big screens */
  #skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
  }

  #skills li {
    margin: 0;
    border-left: 2px solid var(--border-accent); /* Subtle left accent */
    border-top: 4px solid var(--border-accent);
    text-align: left;
    padding-left: 1.2rem;
  }

  /* Projects: Keep stacked but with more horizontal padding */
  #projects ul {
    max-width: 900px;
    margin: 0 auto;
  }

  h1 {
    font-size: 3.2rem; /* Bigger hero on wide—commands the space */
  }

  h2 {
    font-size: 2.1rem;
  }
}

/* Ultra-wide screen enhancements (1920px+) */
@media (min-width: 1920px) {
  section {
    max-width: 1200px; /* Even wider for ultra-wide monitors */
  }

  /* Projects in 2-column grid for better use of horizontal space */
  #projects ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
  }

  #projects li {
    margin: 0;
  }

  /* Skills can go 3 columns on ultra-wide */
  #skills ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  h1 {
    font-size: 3.6rem; /* Even bigger hero for ultra-wide */
  }
}
