/* ===== Base Reset ===== */

@font-face {
  font-family: 'Quicksand';
  src: url('/portfolio/fonts/Quicksand-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Directo';
  src: url('/portfolio/fonts/Directo-Medium.woff2') format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.6;
  padding-top: 80px;
  max-width: 1100px;
  margin: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}



/* ===== Navigation Bar ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #111;
  background-color: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  padding: 1rem 3rem;
  z-index: 1000;
}

.nav a:last-of-type {
  margin-left: 1rem;
}

.nav a {
  color: #4ecdc4;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #eee;
}



.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  width: 28px;
  height: 28px;
}

.logo span {
  color: #4ecdc4;
  font-weight: bold;
  font-size: 1.1rem;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0rem;
  margin-left: 1rem;
}

.social-icons a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optical alignment fixes */

.social-icons a:nth-child(2) img {
  /* Dribbble */
  margin-left: 15px;
}


.social-icons img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transform: translateY(0.5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  filter: brightness(0) saturate(100%) invert(68%) sepia(78%) saturate(420%) hue-rotate(123deg);
  /* similar to #4ecdc4 */
}

.social-icons a:hover img {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(1.1);
}

@media (max-width: 768px) {


  body {
    padding-top: 0px;
  }

  .nav {
    border-radius: 10px;
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    margin-top: 2px;
    flex-direction: column;
    align-items: center;
    position: sticky;
    gap: 2px;
  }

  .nav-button {
    flex-direction: column;
    align-items: center;
    /* margin-top: 8px; */
    margin-right: 100%;
    gap: 10rem;
  }

  .nav a:last-of-type {
    margin-left: 0;
  }

  .social-icons a:nth-child(1) img {
    /* Dribbble */
    margin-right: 50px;
  }

  .social-icons a:nth-child(2) img {
    /* Dribbble */
    margin-left: 0px;
  }

  .social-icons a:nth-child(3) img {
    /* Dribbble */
    margin-left: 50px;
  }


  .logo {
    position: static;
    /* cancel absolute centering */
    transform: none;
    margin-bottom: 1px;
    /* creates its own row */
  }

  .nav a,
  .social-icons {
    justify-content: center;
    margin-left: 0;
  }

  .logo img {
    width: 24px;
    height: 24px;
  }

  .logo span {
    font-size: 1rem;
  }

}


/* ===== Header ===== */
header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: #4ecdc4;
}

#about {
  /* max-width: 500px; */
  justify-content: center;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.about-content {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.about-image img {
  width: 220px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .about-image img {
    /* width: 60%; */
    /* max-width: 300px; */
  }
}

/* ===== Contact Section ===== */
#contact {
  text-align: left;
  margin-top: 1.5rem;
}

.socials {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials a {
  background: #222;
  color: #eee;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.socials a:hover {
  background: #333;
}

/* ===== Gallery Section ===== */
.gallery {
  max-width: 100vw;
  /* still 80% of screen */
  margin-left: auto;
  /* center it */
  margin-right: auto;
  padding: 2rem 0;
}


.gallery-grid {
  display: grid;
  gap: 2rem;
}


.art-group {
  display: grid;
  gap: 1.5rem;
}

.square-group,
.vertical-group {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Image styling */
.gallery-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.15);
}

/* === VIDEO PLAYER STYLE === */
.video-section {
  max-width: 100%;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

#player {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

#player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  display: block;
}

@media (max-width: 768px) {
  .video-section {
    padding: 0 0.5rem;
  }

  #player {
    max-width: 100%;
  }
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}

.controls button {
  background: #1b1b1b;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.controls button:hover {
  background: #333;
}

.counter {
  opacity: .6;
}

.thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: .5;
  transition: .2s;
}

.thumbs img:hover {
  opacity: 1;
}

.thumbs img.active {
  outline: 2px solid white;
  opacity: 1;
}

/* ===== Scroll Indicator (Modern Chevron) ===== */

.scroll-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 40px;
  border-radius: 10px;
  background: #111;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  pointer-events: none;
  animation: floatChevron 1.8s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scroll-indicator polyline {
  fill: none;
  stroke: #4ecdc4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Vertical float only */
@keyframes floatChevron {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }

  100% {
    transform: translateY(0);
  }

}
