.footer-logo img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}
/* Responsive project links for projects section */
.projects-links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.projects-links {
  background: linear-gradient(135deg, var(--primary) 0%, var(--background) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s, background 0.18s, color 0.18s;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.projects-links:hover {
  background: linear-gradient(135deg, var(--primary) 60%, #6a11cb 100%);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12);
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
  /* Add a subtle animated underline on hover */

.projects-links::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #fff 0%, var(--primary) 100%);
  transition: width 0.3s cubic-bezier(.4,2,.6,1), left 0.3s cubic-bezier(.4,2,.6,1);
  z-index: 2;
}
.projects-links:hover::after {
  width: 80%;
  left: 10%;
}

@media (max-width: 700px) {
  .projects-links-container {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .projects-links {
    width: 100%;
    text-align: left;
  }
}
@media (max-width: 768px) {
  .main-container {
    padding: 8px;
  }
  .hero {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-image,
  .hero-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}

img,
.ongoma,
.ONGOMA {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* RESET */
header {
    padding-top: 32px;
    padding-bottom: 8px;
    background-color: var(--background);
  }
  
  /* navbar */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 16px;
    padding-bottom: 16px;
    background-color: var(--background);
  }
  
  @media (max-width: 1024px) {
    .header {
      padding: 0;
      margin: 0;
    }
    .navbar {
      padding: 16px;
      padding-bottom: 0;
      flex-direction: column;
      align-items: center;
    }
  }
  
  .logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .logo-img {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    animation: rotateUpDown 4s infinite;
    box-shadow: 0 0 10px #b81616, 0 0 20px #ff8a00, 0 0 30px #ff8a00;
  }
  
  .logo {
    margin: 0;
    font-size: 40px;
    display: inline-block;
    color: var(--white);
    text-shadow: 0 0 10px #b81616, 0 0 20px #ff8a00, 0 0 30px #ff8a00;
    animation: rotateUpDown 4s infinite;
    font-weight: 700;
  }
  
  
  @keyframes rotateUpDown {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
  }
  
  .nav-list {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
  }
  
  .burger-icon {
    display: none;
  }
  
  @media (max-width: 480px) {
    .nav-list {
      display: none;
    }
    .burger-icon {
      display: block;
    }
  }
  
  .nav-link {
    color: grey;
    text-decoration: none;
    transition: color 0.5s ease;
  }
  
  .nav-link:hover {
    color: var(--white);
  }
  
  .nav-link[href="index.html"] {
    color: var(--white);
  }
  
  .nav-link::before {
    content: "#";
    color: var(--primary);
    margin-right: 1px;
  }
  
  .dropdown-link::before {
    content: "#";
    color: var(--primary);
    margin-right: 1px;
  }
  
  .nav-list.show {
    display: flex;
    flex-direction: column;
  }
  
  /* Styles for dropdown menu */
  .nav-item.dropdown {
    position: relative;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background);
    border: 1px solid var(--gray);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
  }
  
  .dropdown-menu li {
    border-bottom: 1px solid var(--gray);
  }
  
  .dropdown-menu li:last-child {
    border-bottom: none;
  }
  
  .dropdown-link {
    display: block;
    padding: 8px 16px;
    color: grey;
    text-decoration: none;
  }
  
  .dropdown-link:hover {
    background-color: var(--background);
    color: var(--white);
  }
  
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }
  
  .nav-link i {
    margin-left: 5px;
  }
  
  /* Main */
  .hero-image {
    position: relative;
    z-index: 1;
  }
  
  .main-container {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 112px;
  }
  
  .hero {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 18px;
    margin-top: 62px;
  }
  
  @media (max-width: 1024px) {
    .main-container {
      padding: 16px;
    }
    .hero {
      flex-direction: column;
      margin-top: 34px;
    }
  }
  
  .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .hero-content h2 {
    font-size: 32px;
    font-weight: 700;
  }
  
  .hero-content span {
    color: var(--primary);
    font-weight: 700;
  }
  
  .ongoma {
    width: 250px;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .ongoma:hover {
    opacity: 0.6;
    cursor: pointer;
    animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);

  }
  
  .hero-content p {
    margin-bottom: 24px;
  }
  
  .hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: upAndDownAnimation 4s ease-in-out infinite;
  }
  
  .purple-square {
    width: 16px;
    height: 16px;
    background-color: var(--primary);
  }
  
  .portfolio-note-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--gray);
    padding: 8px;
    width: 402px;
  }
  
  @media (max-width: 480px) {
    .hero-image {
      padding: 0 22px;
    }
    .hero-image img,
    .portfolio-note-wrapper {
      width: 100%;
    }
  }
  
  .portfolio-note {
    font-size: 16px;
    margin: 0;
  }
  
  .portfolio-note span {
    color: var(--white);
    font-weight: bold;
  }
  
  /* quote section */
  
  .quote {
    text-align: center;
    border-top: 1px solid var(--gray);
    padding: 40px 0 24px 0;
    margin-top: 120px;
    background: linear-gradient(120deg, var(--background) 60%, var(--primary) 100%);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 0 32px 0 rgba(0,0,0,0.10);
    position: relative;
  }
  
  .quote blockquote {
    color: var(--white);
    font-size: 24px;
    padding: 0 24px;
    margin: 0;
  }
.quote figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background-image: linear-gradient(var(--background), var(--background));
  background-repeat: no-repeat;
  padding: 0 24px;
  margin: 0;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: 1px;
  font-weight: 700;
}
  .quote blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 3px;
    color: var(--gray);
    font-style: italic;
    font-size: 56px;
    font-weight: bold;
    background-image: linear-gradient(var(--background), var(--background));
    background-repeat: no-repeat;
  }
  .quote blockquote::after {
    content: '"';
    position: absolute;
    top: 73px;
    right: 10px;
    color: var(--gray);
    font-style: italic;
    font-size: 56px;
    font-weight: bold;
    background-image: linear-gradient(var(--background), var(--background));
    background-repeat: no-repeat;
  }
  
@media (max-width: 1024px) {
  .main-container {
    padding: 16px;
  }
  .hero {
    flex-direction: column;
    margin-top: 34px;
  }
  .skills-content img {
    display: none;
  }
  .about-content img {
    max-width: 250px;
  }
  .footer-container {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 8px;
  }
  .hero {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-image,
  .hero-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
  }
  .footer-logo-wrapper {
    gap: 10px;
  }
  .footer-logo h4 {
    font-size: 18px;
  }
  .footer-info p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-image {
    padding: 0 22px;
  }
  .hero-image img,
  .portfolio-note-wrapper {
    width: 100%;
  }
  .quote blockquote {
    font-size: 18px;
    padding: 24px;
  }
  .quote figcaption {
    font-size: 18px;
  }
  .about-content {
    flex-direction: column;
  }
  .about-content img {
    display: none;
  }
  .skills {
    gap: 36px;
  }
  .skills-content,
  .skill-cards {
    flex-direction: column;
  }
  .skills-content img {
    display: none;
  }
  .project-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .contacts-contents {
    flex-direction: column;
  }
  footer {
    margin-top: 45px;
    padding: 16px 0;
  }
  .footer-content {
    flex-direction: column;
    gap: 16px;
  }
  .footer-container {
    padding: 16px;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--background);
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 1000;
  }
  .nav-list.show {
    display: flex;
  }
  .burger-icon {
    display: block;
    cursor: pointer;
  }
}
  @media (max-width: 480px) {
    .quote blockquote {
      font-size: 18px;
      padding: 24px;
    }
    .quote figcaption {
      font-size: 18px;
    }
  }
  
  /* social-links sidebar */
  .social-links {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    left: 17px;
    top: 0;
    gap: 8px;
  }
  
  @media (max-width: 1024px) {
    .social-links {
      display: none;
    }
  }
  
  .social-links-line {
    width: 1px;
    height: 191px;
    background-color: var(--green);
  }
  
  .social-links ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* projects section */
  .projects {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 120px;
    padding: 0 16px;
  }
  
  .section-header h2 {
    position: relative;
  }
  
  .section-header h2::before {
    content: "#";
    color: var(--primary);
  }
  
  .section-header h2::after {
    content: "";
    background-color: var(--primary);
    width: 500px;
    height: 1px;
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translate(100%, -50%);
  }
  
  @media (max-width: 1024px) {
    .section-header h2::after {
      display: none;
    }
  }
  
  .section-header a {
    color: var(--white);
    text-decoration: underline;
  }
  
  .project-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
  }
  
  .project-card {
    background: linear-gradient(135deg, var(--background) 0%, var(--primary) 100%);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s, background 0.22s;
    position: relative;
    border: none;
  }
  
  .project-card:hover {
    background: linear-gradient(135deg, var(--primary) 60%, #6a11cb 100%);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12);
    z-index: 2;
  }
  
  @media (max-width: 480px) {
    .project-cards {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
  }
  
  .project-card,
  .project-card img {
    border-radius: 10px 10px 0 0;
    border: none;
  }
  
  .project-card img {
    width: 100%;
    object-fit: cover;
    box-sizing: border-box;
    transition: opacity 0.3s ease, box-shadow 0.22s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  
  .project-card img:hover {
    opacity: 0.7;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
  }
  
  .project-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray);
    border-bottom: 1px solid var(--gray);
    margin: 0;
    padding: 8px;
  }
  
  .project-info {
    padding: 18px 20px 16px 20px;
    gap: 16px;
    flex-direction: column;
    gap: 16px;
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
  }
  
  .project-info {
    font-size: 20px;
    margin: 0;
  }
  
  .project-info p {
    margin: 0;
    color: var(--gray);
}
.project-card::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff 0%, var(--primary) 100%);
    transition: width 0.3s cubic-bezier(.4,2,.6,1), left 0.3s cubic-bezier(.4,2,.6,1);
    z-index: 2;
}
.project-card:hover::after {
    width: 80%;
    left: 10%;
}
  
  /* Skills-section */
  
  .skills {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 120px;
    padding: 32px 0;
    border-top: 1px solid var(--gray);
    background-color: var(--background);
  }
  
  .skills-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .skill-cards {
    display: flex;
    gap: 15px;
  }
  
  @media (max-width: 480px) {
    .skills {
      gap: 36px;
    }
    .skills-content,
    .skill-cards {
      flex-direction: column;
    }
    .skills-content img {
      display: none;
    }
  }
  
  @media (max-width: 1024px) {
    .skills-content img {
      display: none;
    }
  }
  
  .skill-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .skill-category {
    border: 1px solid var(--gray);
  }
  
  .skill-category h4 {
    padding: 8px;
    border-bottom: 1px solid var(--gray);
    margin: 0;
  }
  
  .skill-category ul {
    padding: 8px;
    display: flex;
    gap: 8px;
    color: var(--gray);
    margin: 0;
    flex-wrap: wrap;
  }
  
  /* About section */
  
  .about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .about-text {
    max-width: 515px;
  }
  
  .about-text p {
    margin-bottom: 27px;
  }
  
  .about-content img {
    max-width: 500px;
    animation: upAndDownAnimation 4s ease-in-out infinite;
    transition: opacity 0.4s ease;
  }
  
  .about-content img:hover {
    opacity: 0.5;
    cursor: pointer;
    animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
    animation-duration: 0.6s;

  }
  
  @media (max-width: 480px) {
    .about-content {
      flex-direction: column;
    }
    .about-content img {
      display: none;
    }
  }
  
  @media (max-width: 1024px) {
    .about-content img {
      max-width: 250px;
    }
  }
  
  @keyframes upAndDownAnimation {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px);
    }
  }
  
  /* contacts section */
  
  .contacts-contents {
    display: flex;
    justify-content: space-between;
    margin-top: 45px;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;

  }
  
  .contacts-contents p {
    max-width: 505px;
    margin-top: 0;
    color: var(--gray);

  }
  
  @media (max-width: 480px) {
    .contacts-contents {
      flex-direction: column;
      align-items: center;
      gap: 16px;

    }
  }
  
  .contacts-card {
    border: 1px solid var(--gray);
    padding: 16px;
    max-width: 400px;
    background-color: var(--background);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    

  }
  
  .contacts-card h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--white);

  }
  
  .contact {
    color: var(--gray);
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 8px;

  }
  
  .contact a{
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  /* Experience Section */
  
  .experience-content,
  .education-content {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  
  .experience-item,
  .education-item {
    max-width: 800px;
    border: 1px solid var(--gray);
    padding: 16px;
    text-align: left;
    background-color: var(--background);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
  }
  
  .experience-item h3,
  .education-item h3 {
    margin: 0;
    font-size: 24px;
    color: var(--white);
    font-weight: 600;
  }
  
  .experience-item p,
  .education-item p {
    margin: 8px 0;
    color: var(--gray);
  }
  
  /* Education Section */
  
  .experience {
    background-color: var(--background);
    padding: 32px 0;
    border-top: 1px solid var(--gray);
    margin-top: 120px;

  }
  
  /* footer section */
  
  footer {
    border-top: 1px solid var(--gray);
    padding: 32px 0;
    margin-top: 145px;
  }
  
  .footer-container {
    max-width: 1024px;
    margin: 0 auto;
  }
  
  @media (max-width: 480px) {
    footer {
      margin-top: 45px;
      padding: 16px 0;

    }
    .footer-content {
      flex-direction: column;
      gap: 16px;
      align-items: flex-start;
      text-align: left;

    }
    .footer-container {
      padding: 16px;
      padding-bottom: 0;
    }
  }
  
  @media (max-width: 1024px) {
    .footer-container {
      padding: 16px;
      padding-bottom: 0;

    }
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  
  .footer-logo h4 {
    margin: 0;
  }
  
  .footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;

  }
  
  .footer-logo-wrapper a {
    color: var(--gray);
    transition: color 0.5s ease;

  }
  
  .footer-logo-wrapper a:hover {
    color: var(--white);

  }
  
  .footer-info p {
    color: var(--white);
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 16px;
  }
  
  .footer-media h3 {
    margin-bottom: 12px;
    margin-top: 0;
    font-size: 24px;
    font-weight: 500;

  }
  
  .copyright {
    text-align: center;
    margin-top: 48px;
    margin-bottom: 32px;
    color: var(--gray);

  }
  
  @media (max-width: 480px) {
    .nav-list {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: var(--background);
      position: absolute;
      top: 80px;
      left: 0;
      z-index: 1000;

    }
    .nav-list.show {
      display: flex;

    }
    .burger-icon {
      display: block;
      cursor: pointer;

    }
  }