/* Media query for phone sizes (max-width: 750px) */
@media screen and (max-width: 750px) {

    /* About section fixes */
    #about {
        padding: 4rem 1rem 2rem;
        height: 10vh;
    }

    .aboutme {
        display: flex;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    #about .content {
        width: 100%;
        padding: 0 1rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .content h1 {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 1.4rem;
        font-weight: 900;
        margin-bottom: 0.5rem;
    }

    .content p {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 1.2rem;
        color: var(--text-secondary);
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;

    }

    .content .cv-btn {
        background: var(--primary);
        color: var(--background);
        border: none;
        padding: 0.8rem 1.5rem;
        border-radius: 9999px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        width: fit-content;
        font-size: 0.8rem;
        margin: 0.5rem auto 1rem;
    }

    .content .cv-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
    }

    .content .cv-btn a {
        text-decoration: none;
        color: var(--surface);
    }




    .about-image {
        visibility: hidden;
        display: none;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }

    #home .subtitle {
        font-size: 1.2rem;
    }

    /* Additional fixes for other sections */
    .section {
        padding: 4rem 1rem 2rem;

    }

    /* Navbar adjustments */
    .navbar {
        top: 1rem;
        padding: 0.4rem 1rem;
    }

    .navbar ul {
        gap: 1rem;
    }



    .subtitle {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 0.75rem 1.5rem;
    }

    .navbar ul {
        gap: 1rem;
    }

    .nav-link span {
        display: none;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline {
        margin-top: 2rem;
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    /* projects page */
   .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #fff;
}

.project-info p {
  margin: 0 0 1rem 0;
  color: #ccc;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tech span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  color: #fff;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.project-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Pagination Styles */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-number {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-number:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-number.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.page-ellipsis {
  color: #fff;
  padding: 0 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .project-card {
    margin: 0 1rem;
  }

  .pagination-controls {
    flex-wrap: wrap;
  }

  .page-numbers {
    order: 2;
    width: 100%;
    justify-content: center;
    margin: 1rem 0;
  }

  .pagination-btn {
    order: 1;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }
  
  .project-info {
    padding: 1rem;
  }
  
  .project-info h3 {
    font-size: 1.1rem;
  }
}
  
}

/* Media query for tablet sizes (1000px) */
@media screen and (min-width: 750px) and (max-width: 1000px) {
    .aboutme {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 0.5rem;
    }

    #about .content {
        width: 100%;
        padding: 0 1rem;
    }

    .about-image {
        visibility: hidden;
    }
}