/* Reset and Base Styles */
* {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body {
  background: #f3f4f6 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Sidebar */
.sidebar {
  width: 250px !important;
  height: 100vh !important;
  background-color: #fff !important;
  padding: 20px !important;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1) !important;
  position: fixed !important;
  z-index: 1000 !important;
}

.logo {
  height: 90px !important;
  width: 200px !important;
  text-align: center !important;
  margin-bottom: 30px !important;
  background-image: url("logo2.png") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.logo-img {
  max-width: 100px !important;
  height: auto !important;
  vertical-align: middle !important;
  margin-right: 10px !important;
  margin-bottom: 10px !important;
}

.port {
  font-size: 1.5em !important;
  color: #333 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.nav-menu ul {
  list-style: none !important;
  padding: 0 !important;
}

.nav-menu ul li {
  margin: 15px 0 !important;
}

.nav-menu ul li a {
  text-decoration: none !important;
  color: #666 !important;
  font-size: 1.1em !important;
}

.nav-menu ul li a:hover {
  color: #3b82f6 !important;
}

/* Main Content */
.main-content {
  margin-left: 250px !important;
  padding: 20px !important;
  flex: 1 !important;
}

/* Header */
header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}

.top-nav a {
  text-decoration: none !important;
  color: #666 !important;
  margin-right: 20px !important;
  font-size: 1em !important;
}

.top-nav a:hover {
  color: #1e40af !important;
}

.contact-btn {
  background-color: #1e40af !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  max-width: 120px !important;
}

.contact-btn:hover {
  background-color: #1e3a8a !important;
}

/* Profile Section */
.profile-section {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
  background-color: #1a202c !important;
  color: #fff !important;
  padding: 20px !important;
  border-radius: 10px !important;
  background-image: url("profile3.jpg") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  height: 250px !important;
}

.profile-img img, .hero-img img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}

.profile-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 8px !important;
}

.profile-info h2 {
  font-size: 1.5em !important;
  margin-bottom: 10px !important;
}

.profile-info p {
  font-size: 1em !important;
  margin-bottom: 10px !important;
}

/* Projects Section */
.projects-section {
  margin-bottom: 20px !important;
}

.projects-section h2 {
  font-size: 2.5rem !important;
  margin-bottom: 40px !important;
  color: #333 !important;
}

.projects-hero {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  color: #fff !important;
  padding: 40px !important;
  border-radius: 15px !important;
  text-align: center !important;
  margin-bottom: 40px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.projects-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 30px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 10px !important;
}

.project-card {
  background: #ffffff !important;
  padding: 20px !important;
  border-radius: 15px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
  text-align: center !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
}

.project-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}

.project-card img {
  width: 100% !important;
  height: 190px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  margin-bottom: 15px !important;
}

.project-card h3 {
  font-size: 1.25rem !important;
  color: #222 !important;
  margin: 15px 0 10px !important;
}

.project-card p {
  font-size: 0.95rem !important;
  color: #666 !important;
  line-height: 1.4 !important;
  margin-bottom: 10px !important;
}

.project-card .project-meta {
  font-size: 0.9em !important;
  color: #718096 !important;
  margin-bottom: 15px !important;
}

.project-card-link {
  display: block !important;
  color: inherit !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease !important;
}

.view-project, .view-details {
  position: absolute !important;
  bottom: 15px !important;
  right: 20px !important;
  background-color: #0077cc !important;
  color: #fff !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease !important;
}

.view-project:hover, .view-details:hover {
  background-color: #005fa3 !important;
}

/* Single Project */
.single-project {
  max-width: 1200px !important;
  margin: 40px auto !important;
  padding: 30px !important;
  background: #ffffff !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.project-header {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  color: #fff !important;
  padding: 20px !important;
  border-radius: 15px 15px 0 0 !important;
  text-align: center !important;
}

.project-header h1 {
  font-size: 2.5em !important;
  margin: 0 !important;
}

.project-header img {
  max-width: 100% !important;
  height: auto !important;
  border: 5px solid #fff !important;
  border-radius: 10px !important;
  margin-top: 15px !important;
}

.project-sections {
  padding: 20px !important;
}

.project-sections h2 {
  color: #1a202c !important;
  margin-top: 20px !important;
  margin-bottom: 15px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding-bottom: 5px !important;
}

/* Project Gallery */
.project-gallery {
  margin: 20px 0 !important;
  padding: 15px !important;
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.project-gallery h2 {
  font-size: 1.5em !important;
  font-weight: bold !important;
  color: #1a202c !important;
  margin-bottom: 15px !important;
  text-align: left !important;
}

.project-gallery .gallery-images {
  display: flex !important;
  gap: 15px !important;
  overflow-x: auto !important;
  padding-bottom: 10px !important;
}

.project-gallery a {
  display: inline-block !important;
  text-decoration: none !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 5px !important;
  overflow: hidden !important;
  transition: border-color 0.3s ease !important;
}

.project-gallery a:hover {
  border-color: #3b82f6 !important;
}

.project-gallery img {
  width: 200px !important;
  height: 150px !important;
  object-fit: contain !important;
  display: block !important;
  background-color: #f9fafb !important;
}

/* Project Meta and Links */
.project-meta, .project-links, .project-evaluation {
  background: #f9fafb !important;
  padding: 15px !important;
  border-radius: 10px !important;
  margin-bottom: 20px !important;
}

.project-links a {
  color: #3b82f6 !important;
  text-decoration: none !important;
  margin-right: 15px !important;
}

.project-links a:hover {
  text-decoration: underline !important;
}

.back-link {
  color: #ef4444 !important;
  text-decoration: none !important;
  font-weight: bold !important;
  display: inline-block !important;
  margin-top: 20px !important;
  padding: 10px 20px !important;
  border: 2px solid #ef4444 !important;
  border-radius: 8px !important;
}

.back-link:hover {
  background: #ef4444 !important;
  color: #fff !important;
}

/* Skills Section */
.skills-section {
  margin-bottom: 20px !important;
}

.skills-section h2 {
  font-size: 1.5em !important;
  margin-bottom: 20px !important;
}

.skills-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

.skill-card {
  background-color: #fff !important;
  padding: 15px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  text-align: center !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
}

.skill-card img {
  width: 100% !important;
  max-height: 190px !important;
  object-fit: contain !important;
  border-radius: 5px !important;
}

.skill-card h3 {
  font-size: 1.2em !important;
  margin: 10px 0 !important;
}

.skill-card p {
  color: #666 !important;
  margin-bottom: 10px !important;
}

/* Login Container */
.login-container {
  max-width: 400px !important;
  margin: 100px auto !important;
  padding: 20px !important;
  background-color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  text-align: center !important;
}

.login-container h2 {
  font-size: 1.8em !important;
  margin-bottom: 20px !important;
  color: #1a202c !important;
}

/* General Link Styles */
a {
  text-decoration: none !important;
}

/* Responsive Design */

/* 1024px Breakpoint */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px !important;
    padding: 1.5rem !important;
  }
  .main-content {
    margin-left: 200px !important;
    width: calc(100% - 200px) !important;
    padding: 1.5rem !important;
  }
  .projects-grid, .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
  }
  .profile-section {
    grid-template-columns: 1fr !important;
    height: auto !important;
    padding: 1.5rem !important;
  }
  .profile-info {
    text-align: center !important;
    align-items: center !important;
  }
  .profile-info h2 {
    font-size: 2rem !important;
  }
  .project-card img, .skill-card img {
    height: 180px !important;
  }
  .top-nav a {
    margin-right: 1rem !important;
    font-size: 0.9rem !important;
  }
  .contact-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
  .projects-hero {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .single-project {
    margin: 1.5rem !important;
    padding: 1.5rem !important;
  }
  .project-header h1 {
    font-size: 2rem !important;
  }
  .project-gallery img {
    width: 180px !important;
    height: 135px !important;
  }
  .project-sections h2 {
    font-size: 1.8rem !important;
  }
}

/* 768px Breakpoint */
@media (max-width: 768px) {
  .sidebar {
    position: fixed !important;
    width: 250px !important;
    height: 100% !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    z-index: 1000 !important;
    padding: 1rem !important;
          background-color: #fff !important;
  }
  .sidebar.active {
    transform: translateX(0) !important;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem !important;
  }
  .menu-toggle {
    display: block !important;
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 1100 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
  }
  .menu-toggle span {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background: #333 !important;
    margin: 5px 0 !important;
    transition: all 0.3s ease !important;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px) !important;
  }
  header {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0.5rem 0 !important;
  }
  .top-nav {
    margin-bottom: 1rem !important;
  }
  .top-nav a {
    display: block !important;
    margin: 0.5rem 0 !important;
  }
  .profile-section {
    padding: 2rem 0 !important;
    text-align: center !important;
    grid-template-columns: none !important;
  }
  .profile-info h2 {
    font-size: 1.8rem !important;
  }
  .profile-info p {
    font-size: 0.9rem !important;
  }
  .projects-section h2, .skills-section h2 {
    font-size: 1.8rem !important;
  }
  .projects-grid, .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
  }
  .project-card {
    padding: 1rem !important;
  }
  .project-card img {
    height: 150px !important;
  }
  .project-card h3 {
    font-size: 1.3rem !important;
  }
  .single-project {
    margin: 1rem !important;
    padding: 1rem !important;
  }
  .project-header {
    padding: 1rem !important;
  }
  .project-header h1 {
    font-size: 1.8rem !important;
  }
  .project-gallery .gallery-images {
    flex-direction: column !important;
  }
  .project-gallery img {
    width: 100% !important;
    height: 150px !important;
  }
  .project-meta, .project-links, .project-evaluation {
    padding: 1rem !important;
    font-size: 0.9rem !important;
  }
}

/* 480px Breakpoint */
@media (max-width: 480px) {
  .sidebar {
    width: 60% !important;
    padding: 0.75rem !important;
          background-color: #fff !important;
  }
  .nav-menu ul li {
    margin-bottom: 0.5rem !important;
  }
  .nav-menu ul li a {
    font-size: 0.85rem !important;
  }
  .main-content {
    padding: 0.75rem !important;
  }
  .top-nav {
    display: none !important;
  }
  header {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  .contact-btn {
    margin-left: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
  .profile-section {
    padding: 1rem !important;
  }
  .profile-info h2 {
    font-size: 1.5rem !important;
  }
  .profile-info p {
    font-size: 0.85rem !important;
  }
  .projects-section h2, .skills-section h2 {
    font-size: 1.5rem !important;
  }
  .projects-grid, .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .project-card, .skill-card {
    padding: 0.75rem !important;
  }
  .project-card img, .skill-card img {
    height: 150px !important;
  }
  .project-card h3, .skill-card h3 {
    font-size: 1.1rem !important;
    padding: 0.75rem !important;
  }
  .project-card p, .skill-card p {
    font-size: 0.85rem !important;
    padding: 0 0.75rem 0.75rem !important;
  }
  .view-project, .view-details {
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
  }
  .projects-hero {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .projects-hero h1 {
    font-size: 1.5rem !important;
  }
  .projects-hero p {
    font-size: 0.85rem !important;
  }
  .single-project {
    margin: 0.75rem !important;
    padding: 0.75rem !important;
  }
  .project-header {
    padding: 0.75rem !important;
  }
  .project-header h1 {
    font-size: 1.5rem !important;
  }
  .project-header img {
    border-width: 2px !important;
  }
  .project-gallery img {
    width: 100% !important;
    height: 120px !important;
  }
  .project-sections h2 {
    font-size: 1.5rem !important;
  }
  .project-meta, .project-links, .project-evaluation {
    padding: 0.75rem !important;
    font-size: 0.85rem !important;
  }
  .back-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
}