

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: sans-serif; 
  color: #333; 
  line-height: 1.5; 
}

/* Hero */
.hero { 
  position: relative; 
  height: 65vh; 
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero .bg { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw; 
  height: 100%;
  object-fit: cover; 
  z-index: -1;
}
.hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: rgba(0,0,0,0.4); 
  display: flex; 
  align-items: center; 
  padding: 60px; 
}
.hero-content { 
  max-width: 100%;
}
.hero-content h1 { 
  color: #fff; 
  padding-top: 45vh;
  font-size: 3rem; 
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Intro */
.experience .intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 95%;
  margin: 60px auto;
  padding: 0 40px;
}
.experience .intro .main-icon {
  flex: 1;
  width: 50%;
  border-radius: 8px;
  object-fit: cover;
}
.experience .intro #detail {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}
.experience .intro ul { 
  list-style: disc inside; 
  margin-top: 16px; 
}

/* Gallery */
.gallery { 
  background: #f8f9fa; 
  padding: 60px 40px; 
}
.gallery .grid { 
  display: grid; 
  grid-template-columns: repeat(6, 1fr); 
  gap: 12px; 
  max-width: 1200px; 
  margin: 0 auto; 
}
.gallery .grid img { 
  width: 100%; 
  aspect-ratio: 1;
  object-fit: cover;
  display: block; 
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.gallery .grid img:hover {
  transform: scale(1.05);
}

/* Fullscreen Modal */
.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  cursor: pointer;
}

.fullscreen-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-modal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: opacity 0.3s ease;
}

.fullscreen-close:hover {
  opacity: 0.7;
}

/* Projects */
.projects { background: #f9f9f9; padding: 40px 20px; }
.projects h2 { text-align: center; margin-bottom: 24px; }
.projects .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.projects .card { background: #fff; padding: 16px; border-radius: 8px; text-align: center; }
.projects .card img { width: 100%; border-radius: 4px; margin-bottom: 12px; }
.projects .card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.projects .card p { font-size: 0.9rem; margin-bottom: 12px; }
.projects .card .btn { display: inline-block; padding: 8px 16px; background: #3b4cca; color: #fff; border-radius: 4px; text-decoration: none; }

/* Footer */
.site-footer { background: #fff; padding: 40px 20px; text-align: center; font-size: 0.9rem; color: #666; }
.site-footer .inner img { height: 32px; margin-bottom: 12px; }
.site-footer .inner nav a { color: #666; text-decoration: none; margin: 0 8px; }

/* Responsive */
@media (max-width: 1000px) {
  
  /* Hero responsive */
  .hero {
    height: 50vh;
  }
  .hero-content h1{
    padding-top: 35vh;
  }
  .hero-overlay {
    padding: 30px 20px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  
  /* Intro responsive */
  .experience .intro {
    flex-direction: column;
    margin: 40px auto;
    padding: 0 20px;
  }
  .experience .intro .main-icon {
    width: 90vw;
    height: auto;
    margin: 0 auto 30px auto;
    order: -1; /* Ensures image appears first/on top */
  }
  .experience .intro #detail {
    text-align: left;
  }
  
  /* Gallery responsive */
  .gallery {
    padding: 40px 20px;
  }
  .gallery .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .gallery .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



@media screen and (max-width: 600px) {
  .topnav.fade-out {
    padding-right: 0px !important;
  }
}