* { box-sizing: border-box; }
html, body { height: 100%; 
scroll-behavior: smooth;}
body {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Noto Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: black;
}

header { color: black; }
header a { color: black; text-decoration: none; }
nav {
  height: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2vw;
  font-weight: 400;
  padding: 0 40px;
}
nav a:hover { text-decoration: underline; }
.nav_right { display: flex; gap: 8px; align-items: center; }
.nav_right a { padding: 20px; font-weight: 400; }

nav a.active {
  text-decoration: underline;
  font-weight: 500;
  color: rgb(31, 78, 230);
}

#glenplayer02 {
position:fixed;
top:2.5em;
margin-bottom:20px;
left:1280px;
margin-left:20px;
display:flex;
z-index:99;
text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
}
#glenplayer02 a {text-decoration:none;}
 
#glenplayer02 > div {
align-self:center;
-webkit-align-self:center;
}
 
.music-controls {
user-select:none;
-webkit-user-select:none;
width:13px;
font-size:13px;
cursor:pointer;
}
 
.playy, .pausee {color:#000;} /* color of play & pause buttons */
 
.pausee {display:none;}
 
.sonata {
margin-left:10px;
color:rgb(31, 78, 230); /* color of music note symbol */
}
 
.labeltext {
margin-left:1px;
font-family:courier new;
font-size:9px;
color:#000; /* color of song title */
}


main {
  display: grid;
  grid-template-columns: 1fr 2fr 320px; 
  grid-template-rows: auto;
  grid-template-areas:
    "hero hero hero"
    "title title title"
    "scroll scroll scroll"
    "projects projects projects"
    "about about aside"
    "gallery gallery gallery"
    "contact contact contact";
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: start;
  width: 100%;
  margin: 0 auto;
}


.hero            { grid-area: hero; position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.title-section   { grid-area: title; display: flex; align-items: center; justify-content: center; }
.scroll-section  { grid-area: scroll; display:flex; align-items:center; justify-content:center; }
.projects-section{ grid-area: projects; display:flex; flex-direction:column; align-items:center; }
.about-section   { grid-area: about; display: grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items: start; }
.gallery-section { grid-area: gallery; display:block; }
.contact-section { grid-area: contact; }

.collage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-height: 80vh;
  max-width: 100%;
  bottom: 20px;
  animation-duration: 2s;
  animation-name: rotateIn;
}
@keyframes rotateIn {
  from {
    transform: rotate(-15deg) scale(0.8);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

.title {
  font-size: clamp(200px, 8vw, 240px);
  color: rgb(31, 78, 230);
  font-weight: 700;
  margin: 0;
  letter-spacing: -1px;
  position: absolute;
  top: 60%;
  left: 50%;
    transform: translate(-50%, -50%);
    line-height: 90%;
    animation-duration: 3s;
    animation-name: slideIn;
}
.title p { margin:0; }
@keyframes slideIn{
    from {
    translate: 150vw, 0;
    scale: 0.5;
}
    to {
    translate: 0, 0;
    scale: 1;
}
}

.description{
    font-size: clamp(50px, 8vw, 70px);
    color: rgb(31, 78, 230);
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    top: 100%;
    left: 28%;
    margin: 100px;
    transform: translate(-50%, -50%);
    opacity: 0;
        transform: translateY(30px);
        animation-name: fadeIn;
        animation-duration: 2s;
        animation-fill-mode: both;
        animation-timeline: view();
        animation-range: entry 0% cover 50%;
    }
@keyframes fadeIn {
        to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes bounce { 0%,100%{transform:translateY(0);}50%{transform:translateY(10px);} }
.scroll-prompt { display:flex; 
    flex-direction:column; 
    align-items:center; 
    color:black;
    font-weight:400; 
    letter-spacing:2px; 
    font-size:15px; 
    bottom: 20px;
    position: absolute;
}
.scroll-arrow { font-size: 30px; animation: bounce 2s infinite; }

.projects-preview {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 380px;
}
.swiper-wrapper { flex: 1; max-width: 900px; overflow: hidden; }
.swiper-container { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.project-box { min-width: 100%; height: 380px; background-color: #FFD700; border-radius: 8px; flex-shrink: 0; }


.swiper-arrow {
  background: none;
  border: 1px solid rgb(31, 78, 230);
  font-size: 24px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: rgb(31, 78, 230);
}
.swiper-arrow:hover { background-color: rgb(31, 78, 230); color: white; }
.swiper-arrow.left { order: -1; }


.learn {
  border: 1.6px solid black;
  border-radius: 12px;
  width: 120px;
  height: 60px;
  margin: 60px auto;
  font-weight: 400;
  font-size: 20px;
  padding: 15px;
  a{color: black;
  text-decoration: none; }
}
.learn:hover { 
background-color: black; 
a{color: white;}
 cursor: pointer; text-decoration: none; 
}

.about-section { grid-template-columns: 3fr 320px; align-items: center;}
.about-content { padding: 20px; text-align: center; }
.photo {
    max-height: 600px;  
    align-items: center;
    animation-duration: 2s;
    animation-name: flip;
}
@keyframes flip {
    from {
        transform: rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: rotateY(0);
        opacity: 1;
    }
}
.intro { font-size: 60px; margin: 0 0 20px 0; font-weight: 600; color: rgb(31, 78, 230);}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.gallery-box { background-color: #FFD700; border-radius: 8px; }


.contact h2 { font-size: 40px; text-align: left; font-weight: 300; color: black; margin-bottom: 30px; }
.contact-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  animation-name: shakeX;
    animation-duration: 0.5s;
}
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}
.contact-left { width: 25%; display:flex; flex-direction:column; gap:20px; align-items:flex-start; }
.contact-vertical-box { width: 220px; height: 360px; background: rgb(31, 78, 230); border-radius:8px; }
.instagram { font-size: 20px; margin: 0; font-weight: 300; }
.contact-right { flex:1; display:flex; flex-direction:column; gap:30px; }
.contact-line { height: 60px; background: rgb(31, 78, 230); border-radius:8px; }


footer { color: black; text-transform: uppercase; padding: 30px 20px; font-size: 14px; background: transparent; }
footer a { color: black; }


@media (max-width: 780px) {
  main {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
    "collage collage"
      "hero hero"
      "title title"
      "scroll scroll"
      "projects projects"
      "about about"
      "gallery gallery"
      "contact contact";
    gap: 1.5rem;
    padding: 30px 16px;
  }
  .about-section { grid-template-columns: 1fr; }
  .photo { order: -1; margin-bottom: 1rem; }
  .title { font-size: clamp(40px, 8vw, 80px); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
}


@media (max-width: 520px) {
  main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "title"
      "scroll"
      "projects"
      "about"
      "gallery"
      "contact";
    gap: 1.25rem;
    padding: 20px;
  }
  .title { font-size: 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .project-box { height: 260px; }
  .swiper-wrapper { max-width: 100%; }
  .contact-grid { grid-template-columns: repeat(1, 1fr); grid-auto-rows: 100px;}
}

.projects-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px 100px;
}

.projects-title {
  font-size: clamp(120px, 8vw, 160px);
  color: rgb(31, 78, 230);
  font-weight: 700;
  margin: 80px 0 140px 0;
  letter-spacing: -2px;
  text-align: center;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px;

  width: 100%;
  max-width: 1200px;

  margin: 0 auto 100px auto;
  padding: 0 40px;

  text-align: center;
}
.project-item {
  text-align: center;
}

.project-type {
  font-size: 20px;
  letter-spacing: 2px;
  margin: 0;
  font-weight: 400;
}

.projects-icons {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 200px;
}

.projects-icons img {
  max-width: 260px;
  height: auto;
}

.projects-full {
  width: 100%;
  margin-top: 200px;
  padding: 0 120px;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 220px;
  gap: 100px;
}

.project-row.reverse {
  flex-direction: row-reverse;
}

.project-image-box {
  flex: 1;
  height: 500px;
  background-color: #e6e6e6;
  border: 1px solid #d0d0d0;
}

.project-text-box {
  flex: 1;
  max-width: 550px;
}

.project-label {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #666;
}

.project-heading {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 30px;
}

.project-description {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #444;
}

.project-link {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid rgb(31, 78, 230);
  color: rgb(31, 78, 230);
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.project-link:hover {
  background-color: rgb(31, 78, 230);
  color: white;
}

main.gallery-page {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-areas:
    "gallery-hero gallery-hero gallery-hero"
    "gallery-desc gallery-desc gallery-desc"
    "gallery-grid gallery-grid gallery-grid"
    "contact contact contact";
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.gallery-hero {
  grid-area: gallery-hero;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.gallery-hero h1 {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 6px;
  font-weight: 400;
  margin: 0;
}


.gallery-swiper {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-swiper .swiper-wrapper {
  overflow: hidden;
  flex: 1;
}

.gallery-swiper .swiper-container {
  display: flex;
  transition: transform 0.5s ease;
}


.gallery-slide {
  min-width: 100%;
  height: 240px;
  border-radius: 10px;
  cursor: pointer;
}


.gallery-description {
  grid-area: gallery-desc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.gallery-description .label {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.gallery-description .text {
  font-size: 16px;
  line-height: 1.6;
}


.gallery-grid-section {
  grid-area: gallery-grid;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
  padding: 2rem;
}

.gallery-lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
}

.gallery-lightbox-description {
  color: white;
  font-size: 16px;
  line-height: 1.6;
}


.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}


body.no-scroll {
  overflow: hidden;
}


.gallery-back {
  margin-top: 3rem;
  text-align: left;
}

.gallery-back a {
  font-size: 14px;
  letter-spacing: 2px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}


/* @media (prefers-color-scheme: dark) {
body{background: black;
color: white;
}
} */