/* General Styles */
:root {
  --primary-color: #1abc9c;
  --secondary-color: #2c3e50;
  --background-light: #f4f4f9;
  --background-dark: #1a1a1a;
  --text-light: #333;
  --text-dark: #f4f4f9;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary-color), #3498db);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body {
  background-color: var(--background-light);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

body.dark-mode {
  background-color: var(--background-dark);
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Styles */
header {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: nowrap; /* Prevent wrapping */
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  align-items: center;
  overflow-x: auto; /* Enable horizontal scrolling */
  white-space: nowrap; /* Prevent wrapping of links */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 10px 0; /* Add some padding */
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.button-container {
  display: flex;
  gap: 10px;
}

.button-container button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-container button:hover {
  transform: scale(1.1);
}

.whatsapp {
  background-color: #25d366;
  color: #fff;
}

.whatsapp:hover {
  background-color: #128c7e;
}

.gmail {
  background-color: #db4437;
  color: #fff;
}

.gmail:hover {
  background-color: #c1351d;
}

/* Work Section */
.work {
  padding: 100px 20px;
  text-align: center;
  background-color: var(--background-light);
}

body.dark-mode .work {
  background-color: var(--background-dark);
}

.work h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-details h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.project-details p {
  font-size: 1rem;
  color: var(--text-light);
}

body.dark-mode .project-details p {
  color: var(--text-dark);
}

.drive-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.drive-link:hover {
  background-color: #16a085;
  transform: scale(1.05);
}

/* Footer Styles */
.main-foot {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.foot {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.foot img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.foot img:hover {
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .head {
    flex-direction: row; /* Keep navbar in a single line */
    align-items: center;
    gap: 10px;
  }

  .navbar {
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
  }

  .nav-links {
    gap: 15px; /* Reduce gap for smaller screens */
  }

  .work h1 {
    font-size: 2rem;
  }

  .project-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .head {
    flex-direction: row; /* Ensure navbar stays in a single line */
    align-items: center;
    gap: 10px;
  }

  .navbar {
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
  }

  .nav-links {
    gap: 10px; /* Further reduce gap for very small screens */
  }

  .work h1 {
    font-size: 1.5rem;
  }
}
