/* Global Reset for Mobile */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--primary-text-color);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.section-title {
  font-size: 2.5rem; /* Reduced font size for the title */
  margin-bottom:2rem;
}

/* Header Styles */
nav {
  padding: 1rem; /* Reduced padding for smaller screens */
}

nav .logo {
  font-size: 2rem; /* Reduce logo size for mobile */
}

nav .nav-links {
  display: none; /* Hide default links, show hamburger instead */
}

.hamburger {
  display: flex; /* Make hamburger visible on mobile */
}

.hamburger .bar {
  background-color: var(--primary-text-color);
  width: 25px;
  height: 3px;
}

/* Hero Section */
#hero {
  height: 60vh; /* Reduced height for hero section on mobile */
  padding: 0 1rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem; /* Reduce font size for h1 */
}

.hero-content .subtitle {
  font-size: 1.1rem; /* Adjust subtitle font size */
}

/* About Section */
#about {
  padding: 3rem 1rem; /* Less padding for mobile devices */
  text-align: center;
}

.about-content {
  flex-direction: column; /* Stack items vertically for mobile */
  gap: 2rem; /* Adjust gap between items */
}

.text {
  padding-right: 0; /* Remove extra padding */
}

.text h2 {
  font-size: 2.5rem; /* Reduced heading size for mobile */
}

.text p {
  font-size: 1rem; /* Adjust text size for better readability on smaller screens */
}

/* Metro UI-Inspired Tech Stack Section - Mobile */
@media (max-width: 768px) {
  #tech-stack {
    padding: 3rem 1rem;
  }

  #tech-stack .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .tech-grid {
    gap: 0.5rem; /* Smaller gap for mobile */
  }

  .tech-item {
    width: 100px; /* Smaller tiles for mobile */
    height: 100px;
    padding: 0.5rem;
  }

  .tech-item i {
    font-size: 2rem; /* Smaller icons */
  }

  .tech-item p {
    font-size: 0.9rem; /* Smaller text */
  }

  /* Disable hover effects on mobile */
  .tech-item:hover {
    transform: none;
    box-shadow: none;
  }

  .tech-item:hover i,
  .tech-item:hover p {
    color: var(--primary-text-color);
  }

  /* Simplify the background color transition for mobile */
  .tech-item::before {
    display: none; /* Disable dynamic background color on mobile */
  }
}

/* Experience Section */
.experience-container {
  width: 90%;
  margin: auto;
}

.experience-item {
  flex-direction: column; /* Stack icon and text vertically */
  align-items: center;
}

.experience-icon {
  display: none; /* We do not want the icons displayed on small screens */
}

.experience-details {
  text-align: center; /* Center-align text for mobile */
}

/* Mobile specific modifications for experience section */
.organization {
  margin-top:1rem;
  display: flex;
  flex-direction: column;
}

.organization > .organization-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.organization-sub-items {
  margin: 1.2rem auto;
  text-align: center;
}

/* Consolidate job details styles */
.company-name,
.job-dates,
.job-description,
.job-title {
  font-size: 1rem; /* Adjust font size */
  text-align: center; /* Align text to center */
  margin-bottom: 8px;
}

.job-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.job-description {
  margin: 1rem auto;
}

/* Projects Section */
#projects {
  padding: 3rem 1rem; /* Reduced padding */
}

.projects-container {
  grid-template-columns: 1fr; /* Stacked project cards for mobile */
  gap: 1.5rem;
}

.project-card {
  padding: 1rem; /* Reduced padding for mobile */
}

.project-card h3 {
  font-size: 1.5rem; /* Reduced heading size */
}

.project-card p {
  font-size: 0.9rem; /* Adjust text size */
}

/* Footer */
footer {
  padding: 1.5rem;
  text-align: center;
}

.social-links {
  gap: 1.21rem;
}

.social-links a {
  width: 40px; /* Reduced icon size */
  height: 40px;
}

.social-links a i {
  font-size: 20px; /* Smaller icon size */
}
