/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.6;
  background: #000;
  color: #fff;
}

/* Typography */
h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow:
    0 0 4px #cc0000,
    0 0 8px #ff0033,
    0 0 12px #800000;
}

h2, h3, h4, h5, h6 {
  font-family: 'Audiowide', cursive;
  font-weight: normal;
  letter-spacing: 0.5px;
  color: #cce8ff;
  text-shadow:
    0 0 4px #0066cc,
    0 0 8px #0055aa,
    0 0 12px #004080;
}

p {
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

/* Shared Section Styles */
.about-me,
.projects-preview {
  background-color: #000;
  padding: 3rem 1rem;
}

/* About Me Section */
.about-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.about-text p {
  font-size: 1.5rem;
  margin: 0 auto 1rem auto;
}

.about-photo img {
  max-width: 250px;
  max-height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px #5a0000;
}

/* Projects Section */
.projects-preview h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-shadow: 0 0 4px #0066cc, 0 0 8px #0055aa, 0 0 12px #004080;
  color: white;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  width: 100%;
}

/* Project Container */
.project {
  position: relative;
  padding: 2rem 2rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: 12px;
  border: 2px solid #5a0000;
  box-shadow:
    0 0 8px #a10000,
    0 0 16px #5a0000;
  z-index: 1;
  overflow: visible;
}

/* Project Content */
.project-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.project-info h1 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  text-align: left;
}

.project-info h2 {
  text-align: left;
  margin-bottom: -1rem;
}

.project-meta h3 {
  margin: 0.3rem 0;
  font-size: 1.3rem;
  color: #ccc;
}

.project-description {
  font-size: 1.2rem;
  color: #eee;
}

.project-description p {
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  order: 3;
}

.project-media video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
}

/* Small to medium screens (mobile, tablet, small laptop): stack layout */
@media (max-width: 1024px) {
  .project {
    flex-direction: column;
  }

  .project-info {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .project-media {
    order: 2;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .project-links {
    order: 3;
    margin-top: 0;
    justify-content: space-evenly;
  }
}

/* Large screens: side-by-side left/right layout */
@media (min-width: 1025px) {
  .project {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .left-layout .project-media {
    order: 0;
  }

  .left-layout .project-info {
    order: 1;
    padding-left: 2rem;
  }

  .right-layout .project-info {
    padding-right: 2rem;
  }

  .project-media,
  .project-info {
    flex: 1 1 50%;
  }
}

/* Buttons & Links */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: transparent;
  color: #fff;
  border: 2px solid #a10000;
  border-radius: 25px;
  font-family: 'Audiowide', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 0 5px #a10000;
  box-shadow: 0 0 8px #a10000, 0 0 16px #5a0000;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #a10000;
  color: #000;
  box-shadow: 0 0 15px #a10000, 0 0 25px #5a0000;
}

/* Footer */
footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: #000;
  color: #fff;
  margin-top: 2rem;
  font-size: 0.95rem;
  text-align: center;
}

/* Responsive Adjustments */
@media (min-width: 375px) {
  .projects-preview {
    padding: 0.5rem;
  }
}

@media (min-width: 425px) {
  .projects-preview {
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .about-me {
    flex-direction: row;
    justify-content: space-evenly;
    text-align: left;
    gap: 3rem;
    padding: 4rem 3rem;
  }

  .about-text,
  .about-photo {
    flex: 1 1 40%;
    max-width: 40%;
    padding: 0 2rem;
  }

  .about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .about-text h1 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
  }

  .about-photo img {
    max-width: 300px;
    max-height: 300px;
  }

  footer {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    padding: 2rem 4rem;
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .about-me {
    padding: 5rem 6rem;
  }

  .about-text h1 {
    font-size: 3rem;
  }

  .about-text p {
    font-size: 1.3rem;
  }

  .about-photo img {
    max-width: 350px;
    max-height: 350px;
  }
}
