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

html, body {
  height: 100%;
  background-color: white;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: black;
  scroll-behavior: smooth;
  overflow: hidden; 

}

.main-wrapper {
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; 
}


/* HERO SECTION */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #fff;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  animation: fadeIn 1.2s ease-in-out;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #000;
}

.accent-line {
  width: 80px;
  height: 3px;
  background-color: #000;
  margin: 0 auto 20px auto;
  border-radius: 0;
}

.hero-intro {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Buttons */
.hero-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;

}

.hero-links a {
  background-color: #000;
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  font-weight: 500;
  border: none;
  transition: 0.3s ease;
  border-radius: 7px;

}

/* Hover Effect */
.hero-links a:hover {
  background-color: #333;
}

/* animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-intro {
    font-size: 1rem;
  }
  .hero-links a {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}



@media (max-width: 600px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero-intro {
        font-size: 1rem;
    }
    .hero-links a {
        margin: 0 0.5rem;
    }
}

/* Sections */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* WORK SECTION */

.work-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  margin-left: 60px;
}

.work-section {

  background: #f5f5f5;
  overflow-x: auto;           
  -ms-overflow-style: none;
  scrollbar-width: none;

}

.work-grid {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-left: 60px;
  padding-right: 60px;
  scroll-snap-type: x mandatory;  
  scroll-behavior: smooth;
  animation: fadeIn 1.2s ease-in-out;
  justify-content: space-around;

}

.work-card {
  position: relative;  
  background: #f5f5f5;
  transition: 0.6s ease;
  overflow: hidden;
  aspect-ratio: 4 / 6;         
  width: 25vw;                 
  min-width: 280px;            
  max-width: 400px;
  max-height: 682px;
  scroll-snap-align: start;   
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;

}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.work-card:hover {
  transform: scale(1.02);
}

.work-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.work-card p {
  color: #555;
}

/* + Button */
.open-modal {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 1.5rem;
  line-height: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border-radius: 5px;
}

.open-modal:hover {
  background: #333;
  transform: scale(1.05);
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  animation: fadeIn 0.4s ease;
}

.modal-content {
  background: #fff;
  padding: 80px;
  width: 95vw;
  position: relative;
  animation: slideUp 0.4s ease;
  text-align: left;
  height: 80vh;
  overflow-y: auto;
  border-radius: 10px;
}

.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #222;
}

.modal-content p{
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
}

.github {
  padding: 15px;
  text-align: right;
}

.github a {
  background-color: #000;
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  font-weight: 500;
  border: none;
  transition: 0.3s ease;
}

/* Close button */
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  transition: transform 0.2s ease;
}

.close-modal:hover {
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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



/* Media */
@media (max-width: 1200px) {
  .work-card {
    flex: 0 0 340px;
    height: 70vh;
  }
  .work-grid {
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .work-card {
    flex: 0 0 300px;
    height: 65vh;
  }
  .work-grid {
    gap: 25px;
    padding: 0 4vw 15px 4vw;
  }
  .work-grid::before,
  .work-grid::after {
    flex: 0 0 4vw;
  }

  .work-section h2 {
    margin-left: 4vw;
  }

  .modal-content {

    height: 70vh;

  }


}

@media (max-width: 600px) {
  .work-card {
    flex: 0 0 90vw;        
    height: 70vh;
  }
  .work-grid {
    margin-left: 10px;
    margin-right: 10px;
    gap: 20px;
    padding: 0 3vw 15px 3vw;
  }
  .work-grid::before,
  .work-grid::after {
    flex: 0 0 3vw;
  }
  .open-modal {
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .modal-content {
    padding: 20px;
    padding-top: 60px;
    height: 70vh;
    width: 95vw;

  }


  .work-section h2 {
    margin-left: 4vw;
  }

}



/* ABOUT SECTION */
.about-section {
  padding: 80px 5vw;

}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Image */
.about-image {
  flex: 1;
  max-width: 400px;

}
.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

/* Text container */
.about-content {
  flex: 2;
}

.about-content h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 40px;
}

.about-subsection {
  margin-bottom: 40px;
}

.about-subsection, .about-content h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #222;
}

/* Education List */
.education-list {
  list-style: none;
  padding-left: 0;
}
.education-list li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #555;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
}

.skill-item {
  background-color: #f5f5f5;
  text-align: center;
  padding: 12px 10px;
  font-size: 0.95rem;
  color: black;
  border-radius: 7px;

  
}



/* Media */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
  }

  .about-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .about-subsection h3 {
    font-size: 1.4rem;
  }

  .about-content p,
  .education-list li {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .about-section {
    padding: 50px 4vw;
  }

  .about-content h2 {
    font-size: 1.6rem;
  }

  .about-subsection h3 {
    font-size: 1.2rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }

  .skill-item {
    font-size: 0.9rem;
    padding: 10px;
  }
}


.footer {
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
  color: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.2);
}
