body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
}
h1, h2, h3, button {
    font-family: 'Source sans pro', sans-serif;
}
p, ul {
    font-family: 'Source sans pro', sans-serif;
}
.divider-left {
    height: 8px;
    background: linear-gradient(45deg, #BBBDF6, transparent);
    margin: 0px 0;
  }
.divider-right {
    height: 8px;
    background: linear-gradient(-45deg, #BBBDF6, transparent);
    margin: 0px 0;
  }


body {
    line-height: 1.6;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #fafafa;
    border-bottom: 1px solid #0A090C;
    padding-left: 5rem;
    padding-right: 5rem;
}

header .logo a {
    font-size: 1.8rem;
    color: #0A090C;
    text-decoration: none;
    font-weight: bold;
}

/* Burger Menu */
.burger-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #0A090C;
    margin: 3px 0;
    transition: 0.3s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

header nav ul {
    list-style-type: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #0A090C;
    text-decoration: none;
    font-size: 1.25rem;
}

/* Hero section */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    background-color: #fafafa; /* Fallback color */
    background-image: url('assets/y-so-serious-white.png');
    background-repeat: repeat;
    color: #0A090C;
    min-height: 50vh;
}

#hero-left {
    max-width: 50%;
}

#hero-left h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero-left p {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

#hero-left button {
    background-color: #BBBDF6;
    color: #0A090C;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    min-height: auto;
    min-width: 200px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #0A090C;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}
#hero-left button:hover {
    background-color: #5d5eb1;
    transform: scale(1.05);
}


/* About section */
#about {
    padding: 4rem;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#about h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

#about .content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 70%;
}

.about-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-left: 4rem;
    margin-right: 4rem;
    justify-content:center;
}

#about-left{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 1 300px;
    margin-right: 1rem;
    
}
#toggle-btn {
    background-color: #BBBDF6;
    color: #0A090C;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    min-height: auto;
    min-width: 200px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #0A090C;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}
#toggle-btn:hover {
    background-color: #5d5eb1;
    transform: scale(1.05);
}

#about img {
    width: 80%;
    max-width: 300px;
    height: auto;
    border-radius: 35px;
    border: 4px solid #5d5eb1;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

#about p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    align-self: center;
    flex: 1 1 0;;
    width: 100%;
    max-width: 600px;
    min-width: 300px;
    border: 2px solid #5d5eb1;
    border-radius: 10px;
    padding: 20px;
}
#more-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

#more-text.show {
    max-height: 1000px; /* Increased from 500px to accommodate more text */
    opacity: 1;
}

/* Skills section */
#skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #fafafa; /* Fallback color */
    background-image: url('assets/y-so-serious-white.png');
    background-repeat: repeat;
    padding-bottom: 4rem;
    padding-top: 4rem;
}
#boxes {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

#skills h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.box ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.box li {
    margin: 10px 0;
    padding: 10px;
    background-color: #BBBDF6;
    color: #0A090C;
    border-radius: 5px;
    font-size: 1.3rem;
    text-align: center;
    width: 200px; /* Set a fixed width for the boxes */
}

/* Projects section */
#projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-bottom: 4rem;
    padding-top: 4rem;
}
#projects button {
    background-color: #BBBDF6;
    color: #0A090C;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    min-height: auto;
    min-width: 200px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #0A090C;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin: 10px;
}
#projects button:hover {
    background-color: #5d5eb1;
    transform: scale(1.05);
}
#project-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
}

#projects h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}
  
  .project-card {
    display: flex;
    background-color: #f9f9f9;
    padding: 20px;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
  }

  
  .project-image img {
    max-height: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .project-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .project-details h3 {
    margin: 0;
    font-size: 1.4rem;
  }
  
  .project-details p {
    margin: 5px 0;
  }

/* Contact section */
#contact {
    padding: 50px 20px;
    background-color: #fafafa; /* Fallback color */
    background-image: url('assets/y-so-serious-white.png');
    background-repeat: repeat;
    text-align: center;
}

#contact h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333; /* Dark gray color */
}

/* Style for the form inside the #contact section */
#contact #contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#contact label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
    width: 100%;
    color: #333;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fafafa;
    box-sizing: border-box;
}

/* Focus styling for input fields inside #contact */
#contact input:focus, 
#contact textarea:focus {
    border-color: #007BFF; /* Blue border when focused */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Style for textarea (Message) inside #contact */
#contact textarea {
    height: 150px;
    resize: vertical; /* Allow vertical resizing only */
}

/* Button Styling for buttons inside the #contact section */
#contact button {
    background-color: #BBBDF6;
    color: #0A090C;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    min-height: auto;
    min-width: 200px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #0A090C;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

/* Button Hover Effect inside #contact */
#contact button:hover {
    background-color: #5d5eb1;
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    #contact #contact-form {
        width: 90%;
        padding: 15px;
    }

    #contact button {
        font-size: 1rem;
    }
}
  

/* Footer */
footer {
    background-color: #fafafa;
    text-align: center;
    padding: 1rem;
}

footer p {
    margin: 0;
}
footer a {
    color: #5d5eb1;
    text-decoration: none;
    font-weight: bold;
}
footer #socials {
    margin-top: 10px;
    font-size: 1.5rem;
}
footer a:hover {
    text-decoration: underline;
}





@media screen and (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .burger-menu {
    display: flex;
  }

  header nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    width: 200px;
    background-color: #fff;
    border: 2px solid #5d5eb1;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
  }

  header nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0;
  }

  header nav ul li {
    margin: 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
  }

  header nav ul li:last-child {
    border-bottom: none;
  }

  header nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 5px;
    margin: 2px 8px;
  }

  header nav ul li a:hover {
    background-color: #BBBDF6;
    color: #0A090C;
  }

  #hero {
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  #hero-left {
    max-width: 100%;
  }

  #hero-left h1 {
    font-size: 2rem;
  }

  #hero-left p {
    font-size: 1.2rem;
  }

  #hero-left button {
    font-size: 1rem;
    min-width: 150px;
  }

  #about {
    padding: 2rem 1rem;
  }

  #about .content,
  .about-wrapper {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }

  #about-left {
    margin-right: 0;
  }

  .about-text {
    max-width: 100%;
    padding: 1rem;
  }
  .about-wrapper {
    flex-direction: column;
    align-items: center;
  }

  #toggle-btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  #skills #boxes {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .box li {
    width: 75px;
    font-size: 1rem;
    margin: 5px;
  }

  .project-card {
    flex-direction: column;
    padding: 1rem;
  }

  .project-image img {
    width: 100%;
    max-height: 200px;
  }

  #project-cards {
    padding: 1rem;
  }

  #projects button,
  #contact button {
    font-size: 1rem;
    min-width: auto;
    width: 100%;
  }

  #contact h2 {
    font-size: 2rem;
  }
}
