:root{
  --bg:#070809;
  --fg:#e9ecef;
  --muted:#a9b0b7;
  --line:rgba(255,255,255,0.10);
  --shadow:rgba(0,0,0,0.55);
  --radius:18px;
  --max:1200px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

h1,h2,h3{
  font-family:"Playfair Display", serif;
  letter-spacing:1px;
}

section{
  width:100%;
}

/* HERO */

.hero{
  position:relative;
  height:100vh;
  min-height:700px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center 40%;
  opacity:0;
  transform:scale(1);
  animation:heroFade 12s infinite;
}

.hero-bg:nth-of-type(1){
  animation-delay:0s;
}

.hero-bg:nth-of-type(2){
  animation-delay:4s;
}

.hero-bg:nth-of-type(3){
  animation-delay:8s;
}
@keyframes heroFade{

0%{
opacity:0;
transform:scale(1);
}

6%{
opacity:1;
transform:scale(1.005);
}

32%{
opacity:1;
transform:scale(1.01);
}

38%{
opacity:0;
transform:scale(1.015);
}

100%{
opacity:0;
transform:scale(1.015);
}

}

.overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:900px;
  padding:0 20px;
}

.hero-content h1{
  font-size:4rem;
  margin:0 0 16px;
  letter-spacing:1px;
  text-shadow:0 4px 18px rgba(0,0,0,0.6);
}

.hero-content p{
  font-size:1.2rem;
  letter-spacing:2px;
  margin:0 0 28px;
}

.btn{
  display:inline-block;
  padding:12px 28px;
  border:1px solid #fff;
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  transition:.3s ease;
}

.btn:hover{
  background:#fff;
  color:#000;
}

/* PORTFOLIO */

#portfolio{
  padding:80px 20px;
  text-align:center;
}

#portfolio h2{
  margin:0 0 24px;
  font-size:2.3rem;
}

.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:18px;
  max-width:1200px;
  margin:40px auto 0;
  padding:0 20px;
}

.portfolio-grid a{
  display:block;
  overflow:hidden;
  border-radius:12px;
}

.portfolio-grid img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:12px;
  display:block;
  transition:transform .35s ease;
}

.portfolio-grid img:hover{
  transform:scale(1.03);
}

/* CONTACT / FOOTER */

.section.contact{
  max-width:900px;
  margin:0 auto;
  padding:90px 20px 40px;
  text-align:center;
}

.section.contact h2{
  margin-bottom:12px;
  font-size:2rem;
}

.section.contact p{
  color:var(--muted);
  line-height:1.7;
  margin:8px 0;
}

footer{
  padding:30px 20px 50px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  border-top:1px solid var(--line);
  max-width:var(--max);
  margin:0 auto;
}

/* LIGHTBOX */

.lightbox{
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background:rgba(0,0,0,0.96);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  overflow:hidden;
  padding:2vw;
}

.lightbox img{
  display:block;
  width:auto;
  height:auto;
  max-width:calc(100vw - 4vw);
  max-height:calc(100vh - 4vh);
  object-fit:contain;
}

/* RESPONSIVE */

@media (max-width: 900px){
  .hero-content h1{
    font-size:3rem;
  }

  .hero-content p{
    font-size:1rem;
    letter-spacing:1.5px;
  }

  .portfolio-grid{
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:14px;
    padding:0 12px;
  }

  .portfolio-grid img{
    height:220px;
  }
}

@media (max-width: 640px){
  .hero{
    min-height:620px;
  }

  .hero-content h1{
    font-size:2.4rem;
  }

  .hero-content p{
    font-size:.95rem;
  }

  #portfolio{
    padding:60px 14px;
  }

  .portfolio-grid{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .portfolio-grid img{
    height:180px;
  }

  .lightbox{
    padding:3vw;
  }

  .lightbox img{
    max-width:calc(100vw - 6vw);
    max-height:calc(100vh - 6vh);
  }
}
.lightbox-prev,
.lightbox-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:60px;
  color:white;
  cursor:pointer;
  user-select:none;
  padding:20px;
}

.lightbox-prev{
  left:20px;
}

.lightbox-next{
  right:20px;
}
.lightbox img{
  transition:opacity .18s ease;
}

.lightbox-image-active{
  opacity:1;
}

.lightbox-image-fade{
  opacity:.15;
}

@media (max-width: 768px){
  .lightbox-prev,
  .lightbox-next{
    font-size:44px;
    padding:14px;
  }

  .lightbox-prev{
    left:8px;
  }

  .lightbox-next{
    right:8px;
  }
}
.lightbox img{
  display:block;
  width:auto;
  height:auto;
  max-width:calc(100vw - 4vw);
  max-height:calc(100vh - 4vh);
  object-fit:contain;
  transition:opacity .22s ease;
}

.lightbox-image-active{
  opacity:1;
}

.lightbox-image-fade{
  opacity:.55;
}
