/*
Theme Name: Hjorhoy Theme
Author: You
Version: 1.0
*/

/* Base Styles */

html, body {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

section {
  scroll-snap-align: start;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: url('assets/images/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  scroll-snap-type: y proximity;
  overflow-y: scroll;
  height: 100vh;
}

/* HERO SECTION: Drop Animation */
.hero-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  scroll-snap-align: start;
}

.drop-container {
  display: flex;
  gap: 0.2em;
  position: relative;
  z-index: 2;
}

.drop-container span {
  font-size: 6em;
  font-weight: bold;
  color: #fff;
  opacity: 0;
  animation: drop 0.4s ease-out forwards;
}

/* Keyframe for letter drop */
@keyframes drop {
  0% {
    transform: translateY(-200px) scaleY(0.9);
    opacity: 0;
  }
  50% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
  65% {
    transform: translateY(-17px) scaleY(0.9);
  }
  75% {
    transform: translateY(-22px) scaleY(0.9);
  }
  100% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
}

/* INTRO SECTION: Hvem er jeg? */
.intro-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  scroll-snap-align: start;
}

.intro-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.intro-section p {
  max-width: 600px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
}

/* Optional: Responsive Tweak */
@media screen and (max-width: 768px) {
  .drop-container span {
    font-size: 3em;
  }

  .intro-section h2 {
    font-size: 2rem;
  }

  .intro-section p {
    font-size: 1rem;
  }
}

.intro-section,
.projects-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  color: #fff;
  scroll-snap-align: start;
}

/* ----------------------------------------------------------------------------------- */
/* -------------------------------------- PROJECT SECTION ---------------------------- */
/* ----------------------------------------------------------------------------------- */

.project-section {
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-media {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.project-media img,
.project-media video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.tech-stack-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.tech-stack-icons img {
  width: 32px;
  height: 32px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.tech-stack-icons img:hover {
  filter: none;
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .project-card {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
