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

body {
  font-family: 'Inter', sans-serif;
  background: #0f0f0f;
  color: #f5f5f5;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.6s ease;
}

body.loading {
  opacity: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  z-index: 1000;
}

.brand {
  position: absolute;
  left: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav a {
  color: #f5f5f5;
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* SECTIONS */
section {
  min-height: 100vh;
  padding: 6rem 10vw;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

/* ABOUT */
#about {
  display: flex;
  align-items: center;
  gap: 4rem;
}

#about img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

#about .text {
  max-width: 500px;
}

#about h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#about p {
  line-height: 1.7;
  color: #cccccc;
}

/* GALLERY */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-item img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* PORTFOLIO */
#portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #181818;
  padding: 1.5rem;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

/* CONTACT */
#contact h2 {
  margin-bottom: 1.5rem;
}

.socials.horizontal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials a,
.socials button {
  background: #181818;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.socials a:hover,
.socials button:hover {
  background: #222;
  transform: translateY(-2px);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #181818;
  padding: 2rem;
  border-radius: 16px;
  min-width: 280px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal h3 {
  margin-bottom: 0.5rem;
}

.modal p {
  color: #cccccc;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  #about {
    flex-direction: column;
    text-align: center;
  }

  #about img {
    width: 250px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  section {
    min-height: auto;
    padding: 6rem 6vw 3rem;
  }
}


@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .brand {
    position: static;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  nav a:not(:last-child)::after {
    display: none;
  }

  nav-links {
    display: flex;
  }
}



@media (max-width: 768px) {
  .about-side {
    display: block;
    width: 200px;
    height: 260px;
    margin-top: 1.5rem;
    opacity: 0.85;
  }
}


.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gallery-item .caption {
  font-size: 0.8rem;
  color: #aaaaaa;
  text-align: center;
  letter-spacing: 0.3px;
}

.portfolio-intro {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.portfolio-intro p {
  max-width: 800px;
  text-align: center;
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.6;
}

.about-side {
  width: 280px;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.9;
}
