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

html, body {
  height: 100%;
}

/* ---------- AUDIO ---------- */
#song {
  position: relative;
  z-index: 2;
}

/* ---------- HOME SECTION ---------- */
.home-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.home-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.home-content {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  text-align: left;
}

.home-content h1 {
  font-size: 175px;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 90%;
}

/* ---------- SECTION TWO (still on homepage) ---------- */
.section-two {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.second-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- SECTION THREE (still on homepage) ---------- */
.section-three {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.third-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- NAV BAR ---------- */
.nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.menu-toggle {
  display: none;
}

.hamburger {
  font-size: 2rem;
  cursor: pointer;
  color: white;
  user-select: none;
  display: block;
}

.menu {
  list-style: none;
  position: fixed;
  top: 60px;
  bottom: 60px;
  right: 20px;
  display: none;
  text-align: right;
}

.menu li {
  margin: 12px 0;
}

.menu a {
  color: white;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav a:hover {
  color: #a4a1a1;
  transition: color 0.2s ease;
}

.menu-toggle:checked ~ .menu {
  display: block;
}

/* ---------- changes in desktop-mobile ---------- */
@media (min-width: 800px) {
  .hamburger {
    display: none;
  }

  .menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: fixed;
    top: 30px;
    bottom: 30px;
    right: 30px;
    padding: 30px 0;
  }

  .menu a {
    font-size: 1.5rem;
    letter-spacing: 2px;
    transform: rotate(90deg);
    transform-origin: right center;
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .home-content h1 {
    font-size: 50px;
  }
}


/* ---------- ABOUT page styling ---------- */

.sub-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.sub-hero img {
  position: sticky;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(100%);
}

.sub-title {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 2;
}

.sub-title h1 {
  font-size: 140px;
  color: white;
  letter-spacing: 4px;
  line-height: 90%;
}


.content-block {
  min-height: 100vh;
  background: black;
  position: sticky;
  color: white;
  padding: 120px 15vw;
  font-size: 1.4rem;
  line-height: 1.8;
}

/* ---------- GRIDS for AI skills and Human skills---------- */

.skills-grid {
  min-height: 100vh;
  background: black;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 100px 10vw;
  gap: 30px;
}

.skill-card {
  border: 1px solid white;
  color: white;
  padding: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  font-size: 1.2rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.05);
}

/* ---------- RESPONSIVE for subpages from dekstop-mobile ---------- */

@media (max-width: 600px) {
  .sub-title h1 {
    font-size: 50px;
  }
}
.title-row {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 40px;
  max-width: 80%;
}

.title-row h1 {
  font-size: 140px;
  color: white;
  line-height: 90%;
  margin: 0;
}

.title-row p {
  color: white;
  font-size: 1.1rem;
  max-width: 400px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ---------- 3 BOXES ---------- */

.skills-grid.three-box {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .title-row h1 {
    font-size: 60px;
  }

  .skills-grid.three-box {
    grid-template-columns: 1fr;
  }
}
/* ---------- put images in the background *ai generated images*---------- */

.skill-card {
  position: relative;
  height: 400px;
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,0.3);
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.skill-card h2,
.skill-card p {
  position: relative;
  z-index: 2;
}

.skill-card h2 {
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* ---------- HUMAN SKILLS BACKGROUNDS IMAGES---------- */

.bg-comm {
  background: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f") center/cover no-repeat;
}

.bg-lead {
  background: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d") center/cover no-repeat;
}

.bg-adapt {
  background: url("https://images.unsplash.com/photo-1507537297725-24a1c029d3ca") center/cover no-repeat;
}

/* ---------- AI SKILLS BACKGROUNDS IMAGES---------- */

.bg-prompt {
  background: url("https://images.unsplash.com/photo-1677442136019-21780ecad995") center/cover no-repeat;
}

.bg-auto {
  background: url("https://images.unsplash.com/photo-1518770660439-4636190af475") center/cover no-repeat;
}

.bg-data {
  background: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71") center/cover no-repeat;
}

/* ---------- Links to social media ---------- */

.social-links {
  margin-top: 60px;
  display: flex;
  gap: 40px;
}

.social-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 2px;
  border-bottom: 1px solid white;
  padding-bottom: 4px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}
