/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family:
      "Source Sans Pro",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    line-height: 1.5;
    background-color: #07262E;
  }

  /* Styling for the menu button */
  .menu-btn {
    position: fixed;
    top: 235px;
    left: 20%;
    width: 50px;
    height: 50px;
    background-color: #21c0e8; /* Blue color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Icon inside the button */
.menu-btn::before {
    /* content: "☰";  */
    font-size: 24px;
    color: #07262E;
    font-weight: bold;
}

/* Dropdown menu styles */
.dropdown-menu {
    position: fixed;
    top: 295px; /* Below the button */
    left: 10%;
    width: 180px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

/* Menu links */
.dropdown-menu a {
    display: block;
    padding: 12px;
    color: black;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Remove border from last item */
.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Hover effect */
.dropdown-menu a:hover {
    background-color: #21c0e8;
}
.menu-open .menu-btn::before {
  content: "✕"; /* Unicode for X symbol */
}

.menu-open .dropdown-menu {
  display: flex; /* Show the dropdown */
}

/* *************************************************** */
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  /* Main container */
  .event-portfolio {
    background-color: #07262E;
    display: flex;
    padding: 40px 0px;
    flex-direction: column;
    overflow: hidden;
    align-items: center;
    color: #fff;
    width: 50%;
    margin: auto;
  }
  
  @media (max-width: 991px) {
    .event-portfolio {
      padding: 40px 20px;
    }
  }
  

  header {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    width: 100%;
    position: relative;
    z-index: 100;
  }
  
  .logo {
    font-family: 'DM Serif Text';
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    z-index: 101;
  }
  
  nav {
    width: 60%;
    max-width: 800px;
    height: 95px;
    position: absolute;
    text-align: center;
    right: 50%;
    top: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(52, 52, 52, 0.2) 100%);
    border-radius: 47.5px;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(25px);
    z-index: 100;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 15%;
    padding: 0;
    margin: 0;
    width: 80%;
    justify-content: center;
  }
  
  nav ul li a {
    color: white;
    text-decoration: none;
    font-family: "Mulish", sans-serif;
    font-weight: 400;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
  }
  
  nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .portfolio-text {
    font-family: 'DM Serif Text';
    font-size: 18px;
    font-weight: 400;
    margin-left: auto;
    color: #fff;
  }
  
  /* Project intro */
  .project-intro {
    width: 100%;
  }

  .project-title {
    color: #fff;
    font-size: 32px;
    font-family:
      "DM Serif Text",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 400;
    align-self: start;
    margin-top: 56px;
    margin-left: 0px;
  }
  
  @media (max-width: 991px) {
    .project-title {
      max-width: 100%;
      margin-top: 40px;
      margin-left: 0;
    }
  }
  
  .project-description {
    color: #fff;
    font-size: 16px;
    font-family:
      "Source Sans Pro",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 300;
    margin-top: 20px;
    width: 100%;
  }
  
  @media (max-width: 991px) {
    .project-description {
      max-width: 100%;
    }
  }
  
  /* Project overview */
  .project-overview {
    margin-top: 33px;
    width: 100%;
    max-width: 100%;
  }
  
  .overview-container {
    gap: 20px;
    display: flex;
  }
  
  @media (max-width: 991px) {
    .overview-container {
      flex-direction: column;
      align-items: stretch;
      gap: 0px;
    }
  }
  
  .overview-image-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    line-height: normal;
    width: 77%;
    margin-left: 0px;
  }
  
  @media (max-width: 991px) {
    .overview-image-column {
      width: 100%;
    }
  }
  
  .overview-image {
    aspect-ratio: 1.58;
    object-fit: cover;
    object-position: center;
    width: 100%;
    border-radius: 20px;
    flex-grow: 1;
  }
  
  @media (max-width: 991px) {
    .overview-image {
      max-width: 100%;
      margin-top: 37px;
    }
  }
  
  .overview-details-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    line-height: 0.9;
    width: 23%;
    margin-left: 20px;
  }
  
  @media (max-width: 991px) {
    .overview-details-column {
      width: 100%;
    }
  }
  
  .project-details {
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
    flex-direction: column;
    align-self: stretch;
    align-items: start;
    font-family:
      "Source Sans Pro",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-size: 15px;
    color: #fff;
    font-weight: 300;
  }
  
  @media (max-width: 991px) {
    .project-details {
      margin-top: 40px;
    }
  }
  
  .details-label {
    color: #21c0e8;
    font-family:
      "DM Serif Text",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 15px;
  }
  
  .details-value {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 49px;
  }
  
  @media (max-width: 991px) {
    .details-value {
      margin-bottom: 40px;
    }
  }
  
  .jump-button {
    align-self: contain;
    border-radius: 9px;
    background-color: #21c0e8;
    padding: 15px;
    font-size: 16px;
    color: #000;
    font-weight: 600;
    display: inline-block;
  }
  
  .jump-note {
    font-size: 10px;
    align-self: stretch;
    margin-top: 15px;
    line-height: 1.3;
  }
  
  /* Challenge section */
  .challenge-section{
    width: 100%;
    max-width: 100%;
    margin: auto;
  }
  .section-title {
    color: #aeaeae;
    font-size: 18px;
    font-family:
      "DM Serif Text",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 400;
    align-self: start;
    margin-top: 100px;
    margin-left: 0px;
  }
  
  @media (max-width: 991px) {
    .section-title {
      margin-left: 10px;
      margin-top: 40px;
    }
  }
  
  .challenge-description {
    color: #fff;
    font-size: 20px;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 300;
    margin-top: 20px;
    width: 100%;
  }
  
  @media (max-width: 991px) {
    .challenge-description {
      max-width: 100%;
    }
  }
  
  /* Research section */

  .research-section {
    width: 100%;
  }
  .research-figure {
    margin: 0;
    padding-bottom: 70px;
  }

  .research-figure-1 {
    margin: 0;
    padding-bottom: 35px;
  }
  
  .research-image {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
  }

  .research-image-2 {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
  }
  
  .research-image:first-of-type {
    aspect-ratio: 4.12;
    margin-top: 14px;
  }
  
  .research-image:nth-of-type(2) {
    aspect-ratio: 2.87;
    margin-top: 70px;
  }
  
  .research-image:nth-of-type(3) {
    aspect-ratio: 6.06;
    width: 855px;
    margin-top: 70px;
  }
  
  @media (max-width: 991px) {
    .research-image:nth-of-type(2),
    .research-image:nth-of-type(3) {
      margin-top: 40px;
    }
  }
  
  /* Primary research section */

  .primary-research-section{
    width: 100%;
    line-height: 1;
  }
  .research-description {
    color: #fff;
    font-size: 20px;
    font-family:
      "Source Sans Pro",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 300;
    margin-top: 20px;
  }
  
  @media (max-width: 991px) {
    .research-description {
      max-width: 100%;
    }
  }
  
  .research-link {
    color: #21c0e8;
    font-size: 15px;
    font-family:
      "Source Sans Pro",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 300;
    text-decoration: underline;
    align-self: start;
    margin-top: 15px;
    display: inline-block;
  }
  
  @media (max-width: 991px) {
    .research-link {
      margin-left: 10px;
    }
  }
  
  /* Design process section */

  .design-process-section {
    width: 100%;
  }
  .process-image {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    margin-top: 20px;
  }
  
  /* .process-image:first-of-type {
    aspect-ratio: 2;
    margin-top: 20px;
  } */
  
  
  @media (max-width: 991px) {
    .process-image:nth-of-type(2),
    .process-image:nth-of-type(3),
    .process-image:nth-of-type(4) {
      margin-top: 40px;
    }
  }
  
  /* Solution section */

  .solution-section {
    width: 100%;
  }
  .solution-description {
    color: #fff;
    font-size: 20px;
    font-family:
      "Source Sans Pro",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 300;
    margin-top: 20px;
    width: 100%;
  }
  
  @media (max-width: 991px) {
    .solution-description {
      max-width: 100%;
    }
  }
  
  .solution-link {
    color: #21c0e8;
    font-size: 15px;
    font-family:
      "Source Sans Pro",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 300;
    text-decoration: underline;
    align-self: start;
    margin-top: 20px;
    display: inline-block;
  }
  
  @media (max-width: 991px) {
    .solution-link {
      margin-left: 10px;
    }
  }
  
  .solution-image {
    aspect-ratio: 0.34;
    object-fit: contain;
    object-position: center;
    width: 100%;
    margin-top: 50px;
    max-width: 100%;
  }
  
  @media (max-width: 991px) {
    .solution-image {
      margin-top: 40px;
    }
  }
  
  /* Documentation section */

  .documentation-section {
    width: 100%;
  }
  .documentation-button {
    align-self: start;
    border-radius: 9px;
    background-color: #21c0e8;
    margin-top: 101px;
    padding: 15px;
    font-family:
      "Source Sans Pro",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-size: 16px;
    color: #000;
    font-weight: 600;
    display: inline-block;
  }
  
  @media (max-width: 991px) {
    .documentation-button {
      margin-left: 10px;
      margin-top: 40px;
    }
  }
  
  .documentation-note {
    color: #fff;
    font-size: 10px;
    font-family:
      "Source Sans Pro",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 300;
    margin-top: 18px;
  }
  
  @media (max-width: 991px) {
    .documentation-note {
      margin-left: 10px;
    }
  }
  
  /* Contact form */
  .contact-section {
    margin-top: 100px;
    width: 100%;
  }
  
  .contact-form {
    background-color: #0A3541;
    border-radius: 35px;
    padding: 2rem;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .form-input {
    color: var(--secondary-text);
    font-family: "Source Sans Pro", sans-serif;
    font-size: 14px;
    border-radius: 10px;
    background: #0D4655;
    padding: 1rem;
    border: none;
    width: 100%;
  }
  
  .form-textarea {
    color: var(--secondary-text);
    font-family: "Source Sans Pro", sans-serif;
    font-size: 14px;
    margin-top: 2rem;
    border-radius: 10px;
    background: #0D4755;
    padding: 1rem;
    height: 109px;
    width: 100%;
    border: none;
    resize: none;
  }
  
  .form-submit {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
  }
  
  .submit-button {
    width: 120px;
    height: 40px;
    border-radius: 10px;
    background-color: #21C0E8;
    color: #07262E;
    text-align: center;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
  }
  
  /* Footer */
  .main-footer {
    display: flex;
    margin-top: 100px;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  @media (max-width: 991px) {
    .main-footer {
      margin-top: 40px;
    }
  }
  
  .footer-email {
    align-self: stretch;
    border-radius: 100px;
    border: 1px solid #21c0e8;
    padding: 15px 19px;
    font-family:
      "Mulish",
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-size: 15px;
    color: #fff;
    font-weight: 300;
  }
  
  .social-links {
    display: flex;
    align-items: stretch;
    gap: 30px;
  }
  
  .social-icon {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 41px;
    flex-shrink: 0;
  }
  
  .social-icon:last-child {
    border-radius: 6px;
  }
  
  /* Utility classes */
  .highlight {
    color: #21c0e8;
  }
  
  .bold {
    font-weight: 600;
  }
  
  .italic {
    font-style: italic;
  }
  
  .underline {
    text-decoration: underline;
  }

  #scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1000;
    background-image: url('images/scroll/blue.png'); /* Replace with your image path */
    background-size: cover; /* Ensures the image covers the entire button */
    background-position: center; /* Centers the image */
  }
  
  #scroll-to-top:hover {
    opacity: 0.8; /* Slight opacity change on hover */
  }
  
  /* Media Queries */
/* Large devices (desktops) */
@media (max-width: 1200px) {
  nav {
    width: 70%;
  }
  
  nav ul {
    width: 90%;
    gap: 4%;
  }
  
  nav ul li a {
    padding: 8px 12px;
    font-size: 17px;
  }
  
  .hero h1 {
    font-size: 60px;
  }

  .project-card {
    max-width: 90%;
  }

  .cards-container {
    width: 90%;
  }
}

/* Medium devices (tablets) */
@media (max-width: 991px) {
  header {
    padding: 25px 4%;
  }
  
  nav {
    width: 85%;
    height: 80px;
    top: 0;
  }
  
  nav ul {
    width: 95%;
    gap: 3%;
  }
  
  nav ul li a {
    font-size: 16px;
    padding: 8px 10px;
  }
  
  .hero h1 {
    font-size: 50px;
  }
  
  .project-content {
    flex-direction: column;
  }
  
  .project-column {
    width: 100%;
  }
  
  .project-column.project-details {
    width: 100%;
    margin-top: 20px;
  }
  
  .project-image {
    height: auto;
    max-height: 202px;
  }
  
  .project-info {
    height: auto;
  }

  .skills-grid {
    width: 90%;
  }

  .about-text {
    width: 90%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer {
    width: 90%;
  }
}

/* Small devices (mobile) */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    padding: 15px 4%;
  }
  
  .logo, .portfolio-text {
    margin: 0;
  }
  
  nav {
    position: relative;
    width: 95%;
    height: auto;
    min-height: 60px;
    top: 0;
    right: 0;
    transform: none;
    margin: 15px auto;
    padding: 10px 0;
  }
  
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
  }
  
  nav ul li {
    margin: 5px 0;
  }
  
  nav ul li a {
    font-size: 15px;
    padding: 7px 10px;
  }
  
  .hero {
    margin-top: 60px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .btn {
    margin-top: 30px;
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .about-container {
    margin-top: 80px;
  }
  
  .about-text {
    padding: 10px 20px;
  }
  
  .about-text h3 {
    font-size: 1.5rem;
  }
  
  .about-text p {
    font-size: 16px;
  }
  
  .divider-image {
    width: 80%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-heading {
    margin-top: 100px;
    font-size: 28px;
  }
  
  .project-title {
    font-size: 24px;
  }
  
  .project-tags {
    top: 25px;
    right: 25px;
  }

  .project-description {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }
  
  .contact-section {
    margin-top: 100px;
    width: 90%;
  }

  .contact-form {
    padding: 1.5rem;
  }
  
  .skill-card {
    width: 45%;
  }
  
  .footer {
    flex-direction: column;
    gap: 30px;
    padding: 80px 20px 40px;
  }
  
  .social-links {
    width: 100%;
    justify-content: center;
  }

  .social-icon {
    width: 35px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .logo, .portfolio-text {
    font-size: 17px;
  }
  
  nav {
    border-radius: 25px;
    min-height: 50px;
  }
  
  nav ul {
    gap: 10px;
  }
  
  nav ul li a {
    font-size: 14px;
    padding: 6px 8px;
  }
  
  .hero h1 {
    font-size: 28px;
  }

  .skill-card {
    width: 100%;
  }
  
  .project-cards {
    height: 180px;
  }
  
  .overlay-text {
    font-size: 24px;
  }

  .project-card {
    padding: 15px;
  }

  .project-tags {
    top: 15px;
    right: 15px;
  }

  .tag-icon {
    width: 20px;
  }

  .tag-icon-single {
    width: 20px;
  }

  .project-category {
    font-size: 12px;
  }

  .project-title {
    font-size: 20px;
  }
  
  .footer-email {
    width: 100%;
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
  }

  .form-input, .form-textarea {
    font-size: 13px;
  }

  .submit-button {
    width: 100px;
    font-size: 16px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}

/* Portrait phones */
@media (max-width: 375px) {
  header {
    padding: 15px 3%;
  }

  .logo, .portfolio-text {
    font-size: 15px;
  }

  nav {
    width: 97%;
    padding: 8px 0;
    margin: 10px auto;
    min-height: 45px;
  }

  nav ul {
    gap: 8px;
  }

  nav ul li a {
    font-size: 13px;
    padding: 5px 6px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .section-heading {
    font-size: 24px;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .project-description {
    -webkit-line-clamp: 3;
  }

  .social-icon {
    width: 30px;
  }
}