@font-face {
    font-family: "Montserrat";
    src: url("../assets/fonts/Montserrat-VariableFont_wght.ttf");
}

@font-face {
    font-family: "EricaOne";
    src: url('../assets/fonts/EricaOne-Regular.ttf');
}

html {
    scroll-behavior: smooth;
  }

body {
    margin: 0;
    font-family: Epilogue, sans-serif;
    color: #2D2D2D;
}


/* GENERAL CONTAINER */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 24px;

}

/* SECTIONS */

section {
    padding: 80px 0;
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {
    
    .project-hero {
        flex-direction: column;
    }
    
    .project-hero h1 {
        font-size: 36px;
    }
    
}

.button {
    background: #2D2D2D;
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
}

/* NAV SECTION */
.navItems {
    font-family: Epilogue, sans-serif;
    color: #2D2D2D;
}

.logo{
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: x-large;
    color: black;
    border: 2px solid #2D2D2D;
    border-radius: 4px;
    padding: 8px;
}

a {
    text-decoration: none;
    padding-top: 2%;
    padding-bottom: 2%;
    color: #2D2D2D;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
  font-family: Montserrat, sans-serif;
}

/* HEADER SECTION */

.headerSection {
    width: 100%;
    background: white;
  }
  
  .header-container {
    width: 100%;
    padding: 42px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 68px;
  }
  
  /* LEFT SIDE */
  
  .header-text {
    flex: 1 1 0;
    max-width: 620px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 48px;
  }
  
  .header-text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .header-tagline {
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    color: #2D2D2D;
    font-family: Montserrat, sans-serif;
  }
  
  .header-name {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 600;
    color: #2D2D2D;
    font-family: Montserrat, sans-serif;
    margin: 0;
  }

  .header-description {
    font-size: 18px;
    line-height: 27px;
    color: #2D2D2D;
    font-family: Epilogue, sans-serif;
  }
  
  /* BUTTONS */
  
  .header-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .contact-button {
    padding: 24px 64px;
    background: #2D2D2D;
    color: white;
    font-size: 20px;
    font-weight: 600;
    font-family: Epilogue, sans-serif;
    cursor: pointer;
    transition: 0.2s ease;
  }
  
  .contact-button:hover {
    opacity: 0.85;
  }
  
  .cv-link {
    font-size: 17px;
    font-family: Epilogue, sans-serif;
    color: #2D2D2D;
    text-decoration: none;
    border-bottom: 1px solid #2D2D2D;
    padding-bottom: 2px;
  }
  
  .cv-link:hover {
    opacity: 0.7;
  }
  
  /* RIGHT SIDE IMAGE */
  
  .header-image {
    flex: 1 1 0;
    max-width: 480px;
    min-width: 320px;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

/* ABOUT ME SECTION*/
  .about-me {
    width: 80%;
    padding-top: 5%;
    border-top: 1px solid #a5a5a5;
    border-radius: 1px;
    font-size: large;
  }

  .about-me p{
    display: inline-block;
    align-items: flex-start;
  }

/* WORK SECTION */
.work {
    display: flex;
    padding: 42px 24px;
    flex-direction: column;
    align-items: center;
    gap: 42px;
    align-self: stretch;
}

.work{
    justify-content: flex-end; 
    align-items: flex-start; 
    gap: 24px; 
    display: flex
}

.latestWork {
    width: 100%; 
    height: 100%; 
    padding-left: 24px; 
    padding-right: 24px; 
    padding-top: 42px; 
    padding-bottom: 42px; 
    background: white; 
    overflow: hidden; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    gap: 42px; 
    display: inline-flex;
}

.latestWorkTitle {
    text-align: center; 
    color: #2D2D2D; 
    font-size: 32px; 
    font-family: Montserrat, sans-serif;
    font-weight: 600; 
    line-height: 42px; 
    word-wrap: break-word;
}

.workContainer {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.workClickable {
  min-width: 300px;   
  max-width: 300px;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 12px;
  border: 1px solid #2D2D2D;
  border-radius: 4px;
  background: white;

  overflow-x: auto;
  transition: transform 0.2s ease;
  scroll-snap-align: start;
}

.workClickable:hover {
  transform: translateY(-5px);
  border: 2px solid #525252;
}

.workClickableTextContainer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.workClickableText {
    align-self: stretch; 
    color: #2D2D2D; 
    font-size: 20px; 
    font-family: Epilogue, sans-serif; 
    font-weight: 600; 
    line-height: 30px; 
    word-wrap: break-word;
}

.workClickableBottomText {
    align-self: stretch; 
    color: #2D2D2D; 
    font-size: 17px; 
    font-family: Epilogue, sans-serif; 
    font-weight: 400; 
    line-height: 27px; 
    word-wrap: break-word;
}

.workImage {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.workLink {
    text-decoration: none;
    color: inherit;
    display: block;
}

.workLink:hover {
    cursor: pointer;
}

.workContainer::-webkit-scrollbar {
  height: 6px;
}

.workContainer::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* CONTACT SECTION */

.contact {
    width: 100%;
    background: #2D2D2D;
  }
  
  .contact-container {
    padding: 42px 24px 86px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .contact-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 42px;
    color: #ececec;
    font-family: Montserrat, sans-serif;
  }
  
  .contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 142px;
  }
  
  /* LEFT SIDE */
  
  .contact-info {
    flex: 1 1 0;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 42px;
  }
  
  .contact-text p {
    font-size: 17px;
    line-height: 27px;
    color: #ececec;
    font-family: Epilogue, sans-serif;
  }

  .contact-text a {
    font-size: 17px;
    line-height: 27px;
    font-weight: 800;
    color: #ececec;
    font-family: Epilogue, sans-serif;
  }
  
  .social-icons {
    display: flex;
    gap: 24px;
  }
  
  .icon {
    width: 36px;
    height: 36px;
    background: black;
  }

  /* PROJECT HERO */

.project-hero {
    display: flex;
    gap: 60px;
    padding: 80px 24px;
    flex-wrap: wrap;
    align-items: center;
}

.project-hero-content {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
}

.project-hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.project-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    margin-bottom: 20px;
}

.project-description {
    margin-bottom: 24px;
}

.project-links a {
    margin-right: 16px;
    text-decoration: none;
    font-weight: 600;
}

.project-hero-image {
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
}

/* PROJECT GALLERY */

.project-gallery {
    padding: 80px 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 24px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
}

/* PROJECT DETAILS */

.project-details {
    padding: 80px 24px;
    max-width: 900px;
    margin: auto;
}

.detail-block {
    margin-bottom: 40px;
}

.detail-block h3 {
    margin-bottom: 10px;
}

.semester-hero {
  padding: 80px 24px;
}

.semester-hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.semester-hero p {
  font-size: 18px;
  max-width: 600px;
}

.semester-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}


/* PROJECT BLOCK */

.project-block {
  border-bottom: 1px solid #eee;
  padding-bottom: 60px;
}

.project-block:last-child {
  border-bottom: none;
}

.project-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.project-image img {
  width: 100%;
  border-radius: 8px;
}

.project-tags {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.project-tags span {
  background: #f3f3f3;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 20px;
}

.project-links a {
  margin-right: 16px;
  font-weight: 600;
  color: #2D2D2D;
  border-bottom: 1px solid #2D2D2D;
  padding-bottom: 2px;
}

.project-links a:hover {
  opacity: 0.7;
}

.project-image {
  flex: 1;
  display: flex;
  min-width: 300px;
  gap: 16px;
  overflow-x: auto;
  padding-top: 5%;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

/* images inside */
.project-image img {
  height: 300px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.project-image img:hover {
  transform: scale(1.01);
}

/* ALTERNATING LAYOUT */

.project-block:nth-child(even) {
  flex-direction: row-reverse;
}