/* index.css */
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&family=Workbench:BLED,SCAN@0..100,-53..100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Tomorrow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import './flicker.css';
@import './scroll-indicator.css';

/* Base styles */
html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #EFE;
}

html, body, main {
  height: 100%;
  width: 100%;
}

body {
  position: relative;
  line-height: 1.6;
}

/* Links styling */
a {
  color: #5F5;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
  transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
  color: #AFA;
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.7);
}

a:visited {
  color: #F5F;
  text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

a:visited:hover {
  color: #FAF;
  text-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
}

main {
  background: #666;
  overflow: scroll;
  position: absolute;
}

main > header {
  position: absolute;
  top: 0;
  transition: background 0.5s, height 0.5s;
  width: 100%;
}

main .placeholder {
  background-image: url("phantomaton.png");
  background-position: center;
  background-size: cover;
  height: 100vh;
  transition: height 0.5s;
}

.scrolled main .placeholder {
  height: 50vh;
}

/* Section styling */
main section {
  background: rgba(0,0,0,0.5);
  border: 1px black solid;
  border-radius: 1rem;
  color: #CCC; /* Lighter gray for content text */
  margin: 1rem;
  min-height: 50vh;
  padding: 1rem;
  position: relative;
}

/* Section headers and content separation */
main section .content {
  font-family: "Lexend", sans-serif;
  padding: 3.5rem 1rem 1rem; /* Add padding at top for the headers */
}

section:nth-of-type(3) .content,
section:nth-of-type(4) .content {
  padding: 1rem 1rem 3.5rem; /* Add padding at bottom for the headers */
}

/* Strong elements in sections should be brighter */
main section strong {
  color: #EFE;
}

.unscrolled main > header {
  background: rgba(0,0,0,0.6);
  height: 100%;
}

.scrolled main > header {
  background: rgba(0,0,0,0.9);
  height: 4.5rem;
  padding-left: 1rem;
  position: fixed;
  z-index: 1000;
}

/* Main h1 styling */
main header h1 {
  color: #0F0;
  font-family: 'Workbench', sans-serif;
  font-size: calc(min(6rem, 10vw));
  font-style: normal;
  line-height: 1.25;
  text-shadow: 0rem 0rem 1rem black;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  transition: left 0.25s, font-size 0.25s, transform 0.25s, color 0.25s;
}

.scrolled main header h1 {
  font-size: 2rem;
  left: 1rem;
  transform: translate(0%, -100%);
  transition: left 0.5s, font-size 0.5s, transform 0.5s, color 0.5s;
}

/* Headers within content */
main section .content h1 {
  font-family: 'Tomorrow', sans-serif;
  letter-spacing: 0.05em;
  font-size: 2rem;
  color: #0F0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

main section .content h2 {
  font-family: 'Tomorrow', sans-serif;
  letter-spacing: 0.1em;
  font-size: 1.4rem;
  color: #0FF;
  margin-top: 2rem;
}

/* Section position headers */
section header h2 {
  font-family: 'Major Mono Display', sans-serif;
  padding: 1rem 2rem;
  margin: 0;
  color: #FFF;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

section {
  position: relative;
}

section header {
  position: absolute;
  z-index: 10;
}

section:nth-of-type(4n+1) header {
  left: 0;
  top: 0;
}
section:nth-of-type(4n+2) header {
  right: 0;
  top: 0;
}
section:nth-of-type(4n+3) header {
  right: 0;
  bottom: 0;
}
section:nth-of-type(4n+4) header {
  left: 0;
  bottom: 0;
}

/* Footer styling */
footer {
  background: #000;
  color: #AAA;
  height: auto;
  min-height: 9rem;
  padding: 2rem 0.5rem;
  text-align: center;
}

footer h1 {
  color: #B0D;
  font-family: 'Workbench', sans-serif;
  font-variation-settings: "BLED" 0, "SCAN" -20;
  text-shadow: 0rem 0rem 1.25rem #80A;
  margin-bottom: 1rem;
}

footer p {
  font-family: 'Major Mono Display', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #888;
  opacity: 0.8;
}

/* List styling */
main section ul, main section ol {
  padding-left: 1.5rem;
}

main section li {
  margin-bottom: 0.5rem;
}

/* Project cards styling for future horizontal scroll */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.project-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}

.project-card:hover {
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  transform: translateY(-5px);
}

.project-card h2 {
  color: #0F0;
  margin-top: 0;
}