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

html, body {
    height: 100%;
    font-family: "sniglet", sans-serif;
    font-weight: 900;
    font-style: normal;
    color: #333;
    /* background-color: #ede8d0; */
    /* background-color: #F2F9FF; */
    background-color: #FFF6E3;
    max-width: 100%;
    overflow-x: hidden;
}

header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 20px 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 1.8em;
    background-color: #FFF6E3;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    font-size: 110%;
    background-color: #FFF6E3;
}

nav ul li a:hover {
    color: #DA498D;
}

#container {
    width: 100%;
    height: 10%;
    position: relative;
    margin-top: -50px;
    margin-bottom: 25px;
}

main {
    margin: 0;
    padding: 40px 20px 20px;
}

.scroll {
    display: flex;
    align-items: center;
    width: fit-content;
    white-space: nowrap;
    animation: loop 30s linear infinite;
    position: absolute;
}

.scroll#scroll-two {
    transform: translateX(210%);
    animation-delay: 15s;
}

.image-item {
    height: 100%;
    width: 50%;
    margin: 0 0.5rem;
    border-radius: 0.4rem;
    overflow: hidden;
    padding-top: 4%;
}

.image-item img {
    width: 80%;
    height: 80%;
    object-fit: cover;
}

#works .works-container {
    columns: 4;
    column-gap: 20px;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
}

.work-box {
    break-inside: avoid;
    padding: 8px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 100%;
}

.work-box:hover {
    transform: scale(1.05);
}

.work-box img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}


@media screen and (max-width: 1200px) {
    #works .works-container {
        columns: 3;
    }
}

@media screen and (max-width: 900px) {
    #works .works-container {
        columns: 2;
    }
}

@media screen and (max-width: 600px) {
    #works .works-container {
        columns: 1;
    }
}



 @keyframes loop {
   0% { transform: translateX(-100%); }
   100% { transform: translateX(100%); }
 }



.popup-images {
    columns: 2;
    column-gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.popup-images img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 8px;
    object-fit: cover;
}


@media screen and (max-width: 600px) {
    .popup-images {
        columns: 1;
    }
}

.popup-content .close {
    position: sticky;
    top: 0;
    float: right;
    font-size: 1.5em;
    cursor: pointer;
    background-color: white;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 10px 0 0;
}

.popup-content {
    position: relative;
    background-color: #fff;
    padding: 0 20px 20px 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
}

.popup-images video {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 8px;
}

.popup-content h2 {
    margin-bottom: 0.5em;      /* Adds space after headings */
    margin-top: 0.5em;       /* Adds space before headings */
}

#popup-details {
    margin-top: 10px;
}


/* About and Contact Sections */
/* #about, #contact {
    margin-top: 40px;
    background-color: #FEF6F5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 100%;
} */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    /* margin: 0; */

}

.popup-content p{
      font-family: "hanken-grotesk", sans-serif;
      font-weight: 800;
      font-style: normal;
      line-height: 1.2;
      /* margin-bottom: 1.2em; */
      /* max-width: 70ch; */
      color: #333;
  }


  /* .popup-content p .highlight {
    font-family: "hanken-grotesk", sans-serif;
    color: #ff5733;    
    font-weight: 900;   
    font-style: italic; 
  } */
  


  .popup-content p .highlight {
    font-weight: 900;
    background: linear-gradient(
      270deg, 
      #ff00cc, 
      #3333ff, 
      #00ffcc, 
      #ff9900, 
      #ff00cc
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;  /* required for Chrome/Safari */
    background-clip: text;          /* fallback/standards */
    -webkit-text-fill-color: transparent; /* makes text show the gradient */
    animation: glowGradient 6s ease infinite;
    text-shadow: 0 0 8px rgba(255,255,255,0.2);
  }
  
  @keyframes glowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  
  


.popup-content::-webkit-scrollbar {
    width: 8px;
}
.popup-content::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 4px;
}
.popup-content::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}

footer {
    background-color: #E6DCC6;
    color: #333;
    padding: 20px;
    margin-top: auto;
}

      .footer-content {
          max-width: 1200px;
          margin: 0 auto;
          display: flex;
          justify-content: space-between;
          align-items: center;
          flex-wrap: wrap;
          gap: 15px;
      }




        .contact-info {
            font-family: "hanken-grotesk", sans-serif;
        }

        .contact-info a {
            color: #333;
            text-decoration: none;
        }

        .contact-info a:hover {
            color: #DA498D;
        }

        .social-links {
            display: flex;
            gap: 20px;
        }

        .social-links a {
            color: #333;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: color 0.3s ease;
        }

        .social-links a:hover {
            color: #DA498D;
        }

        .social-links svg {
            width: 24px;
            height: 24px;
        }

        @media (max-width: 768px) {
            .intro-section {
                flex-direction: column;
            }

            .profile-image, .about-text {
                width: 100%;
            }

            .footer-content {
                flex-direction: column;
                text-align: center;
            }

            .social-links {
                justify-content: center;
            }
        }



/* Traditional Subtitle Styling for Popup: Italic and Slightly Bolder */
.popup-content .popup-subtitle {
    /* Use the standard body font for elegance */
    font-family: "hanken-grotesk", sans-serif;
    
    /* Make the text italic as requested */
    font-style: italic; 
    
    /* Slightly bolder than default text (400 or 500) but not as bold as the title (900) */
    font-weight: 700; 
    
    /* Set color to the dark grey (#333) for high contrast */
    color: #333; 
    
    /* Keep it slightly smaller than the title but readable */
    font-size: 1.1em;
    
    /* Clean up any residual border/background styles */
    border-bottom: none;
    background-color: transparent;
    
    /* Add clean spacing: 10px below the title, 20px above the description */
    margin: 3px 0 10px 0;
    
    /* Ensure it behaves like a standard heading */
    display: block;
}