/*html, body {
  overflow-x: hidden;
}*/

/* ACTIVE NAV LINK */
nav a.active {
  color: #4cc9f0;
  border-bottom: 2px solid #4cc9f0;
}

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

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background: #0a0a0a;
  color: white;
  /*overflow-x: hidden;*/
}

/* NAVBAR 
header {
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
  background: rgba(0,0,0,0.8);
  position: fixed;
  width: 100%;
  z-index: 1000;
  align-items: center;
}*/

header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 50px;

  background: rgba(0,0,0,0.8);

  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  box-sizing: border-box;

  z-index: 1000;
}

header h1 {
  font-size: 1.5rem;

}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

nav a:hover {
  color: #4cc9f0;
}

/* HERO */
.hero {
  height: 100vh;
  background: url('hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text h2 {
  font-size: 3rem;
}

.hero-text h3 {
  margin: 10px 0;
  color: #4cc9f0;
}

.hero-text p {
  margin: 15px 0;
}

.btn {
  padding: 12px 25px;
  background: #4cc9f0;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

/* SECTIONS */
section {
  padding: 80px 50px;
  text-align: center;
}
section h2{
  font-size: 3rem;
}
/* VIDEO GRID */
/* GRID - slightly bigger */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
  justify-content: center;
  gap: 25px;
}

/* CARD */
.video-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

/* IMAGE */
.video-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* PLAY BUTTON */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* TRIANGLE */
.play-button::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* HOVER EFFECT */
.video-card::before {
  content: "View Project";
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: white;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: 0.4s ease;
}
.video-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}
.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0,0,0,0.8);
}
.client-block {
  margin-bottom: 60px;
  padding-bottom: 20px;
  border-bottom: 1px solid #222;
}

.client-block h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.client-block p {
  color: #aaa;
  margin-bottom: 15px;
}

.section-title {
  margin: 60px 0 20px;
  font-size: 1.8rem;
  text-align: left;
}
/* PHOTO GRID */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  justify-items: center; /* centers horizontally */
  align-items: center;   /* centers vertically */
}

.photo-grid img {
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;

  transition: transform 0.4s ease, filter 0.4s ease;
}

.photo-grid img:hover {
  transform: scale(1.08);
  filter: brightness(0.85);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.btn {
  padding: 12px 25px;
  background: #4cc9f0;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.15s ease;
}

/* CLICK EFFECT */
.btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3) inset;
}

html {
  scroll-behavior: smooth;
}
#contact {
  padding: 100px 20px;
  text-align: center;
  background: #0a0a0a;
}

#contact h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-subtext {
  color: #aaa;
  margin-bottom: 40px;
}

/* GRID LAYOUT */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 25px;
}

/* CARD STYLE */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
  padding: 18px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* ICON */
.contact-item i {
  font-size: 20px;
  color: white;
  transition: 0.3s;
}

/* TEXT */
.contact-item a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

/* HOVER EFFECT */
.contact-item:hover {
  transform: translateY(-6px);
  background: #1a1a1a;
  box-shadow: 0 0 20px rgba(255,165,0,0.25);
}

.contact-item:hover i,
.contact-item:hover a {
  color: #4cc9f0;
}
/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

/* HERO TEXT ANIMATION */
.hero-text {
  animation: heroFade 1.5s ease forwards;
  opacity: 0;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAVBAR SLIDE DOWN */
header {
  animation: navDrop 1s ease;
}

@keyframes navDrop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.h3{
  text-align: center;
}
/* VIDEO CARD HOVER ENHANCE */
.video-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.8);
}

/* PHOTO FADE-IN DELAY */
/*.photo-grid img {
  opacity: 0;
  transform: translateY(20px);
  animation: photoFade 0.8s ease forwards;
}*/

.photo-grid img:nth-child(1) { animation-delay: 0.1s; }
.photo-grid img:nth-child(2) { animation-delay: 0.2s; }
.photo-grid img:nth-child(3) { animation-delay: 0.3s; }
.photo-grid img:nth-child(4) { animation-delay: 0.4s; }

/* MODAL BACKGROUND */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* IMAGE */
.modal-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  animation: zoomIn 0.7s ease;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
/* ABOUT LAYOUT */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
}

/* IMAGE */
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transform: scale(0.88);
}

/* TEXT */
.about-text {
  max-width: 600px;
  text-align: left;
}

.about-text p {
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.7;
}
/* PREMIUM ABOUT SECTION */
.about-premium {
  display: flex;
  justify-content: center;
  padding: 100px 20px;
}

/* GLASS CARD */
.about-card {
  display: flex;
  align-items: center;
  gap: 60px;
  background: rgba(255, 255, 255, 0.03);
  padding: 50px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  max-width: 1100px;
  width: 100%;

  transition: 0.4s ease;
}

/* HOVER LIFT */
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* IMAGE */
.about-image img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #4cc9f0;
  transition: 0.4s ease;
}

/* IMAGE HOVER GLOW */
.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255,165,0,0.4);
}

/* TEXT */
.about-text {
  max-width: 600px;
  text-align: left;
}

/* TITLE */
.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

/* HIGHLIGHT LINE */
.about-highlight {
  color: #4cc9f0;
  font-weight: 500;
  margin-bottom: 20px;
}

/* PARAGRAPHS */
.about-text p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 15px;
}
/* NAV BUTTONS */
.nav {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.prev { left: 30px; }
.next { right: 30px; }
/* ONLY PERSONAL WORK FIX */
/* MASONRY STYLE GRID */
.personal-grid {
  column-count: 3;
  column-gap: 15px;
}

.personal-grid img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 10px;
  display: block;

  transition: transform 0.4s ease, filter 0.4s ease;
}
.personal-grid img:hover {
  transform: scale(1.07);
  filter: brightness(0.85);
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}
@media (max-width: 768px) {

  /* HEADER */
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
  }

  /* SHOW HAMBURGER */
  .menu-toggle {
    display: block;
  }

  /* NAV HIDDEN */
  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(0,0,0,0.95);
    width: 100%;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 20px 0;
  }

  /* NAV ACTIVE */
  nav.active {
    display: flex;
  }

  nav a {
    margin: 10px 0;
    font-size: 16px;
  }

  /* HERO */
  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-text h3 {
    font-size: 1rem;
  }

  .hero-text p {
    font-size: 14px;
  }

  /* SECTIONS */
  section {
    padding: 60px 20px;
  }

  section h2 {
    font-size: 2rem;
  }

  /* VIDEO GRID */
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card img {
    height: 220px;
  }

  /* PHOTO GRID */
  .photo-grid {
    grid-template-columns: 1fr;
  }

  /* PERSONAL GRID */
  .personal-grid {
    column-count: 1;
  }

  /* ABOUT */
  .about-card {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 30px;
  }

  .about-text {
    text-align: center;
  }

  /* CONTACT */
  .contact-container {
    grid-template-columns: 1fr;
  }
nav {
  transition: all 0.3s ease;
}
}
/* ANIMATION */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes photoFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE 
@media(max-width: 768px){
  header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    margin-top: 10px;
  }
}
*/

.site-title {
  text-decoration: none;
  color: white;

  font-size: 2rem;
  font-weight: bold;

  cursor: pointer;

  transition: opacity 0.3s ease;
}

/* NO PURPLE/BLUE LINK COLORS */
.site-title:visited,
.site-title:hover,
.site-title:active {
  color: white;
  text-decoration: none;
}

/* subtle premium hover */
.site-title:hover {
  opacity: 0.8;
}

.modal-img {
  touch-action: pan-y;

}

/* MODAL IMAGE ANIMATION */
.modal-img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* SLIDE ANIMATIONS */
.slide-left {
  animation: slideLeft 0.3s ease;
}

.slide-right {
  animation: slideRight 0.3s ease;
}

@keyframes slideLeft {
  from {
    transform: translateX(60px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-60px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
