/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Color Palette */
:root {
  --primary-color: #2c3e50; /* Dark navy for headers and accents */
  --secondary-color: #3498db; /* Soft blue for highlights and buttons */
  --background-color: #f8f9fa; /* Light gray background */
  --card-bg: #ffffff; /* White for cards */
  --text-color: #333; /* Dark gray for text */
  --accent-color: #ecf0f1; /* Light accent for hover effects */
  --highlight-color: #e74c3c; /* Red for highlighted elements */
}

/* Header Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero .highlight {
  color: var(--highlight-color);
}

.hero .subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: var(--secondary-color);
  color: #fff;
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid #fff;
}

.btn.secondary:hover {
  background-color: #fff;
  color: var(--primary-color);
}

.Resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: var(--highlight-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.Resume-btn:hover {
  background-color: var(--primary-color);
}

.sticky-nav {
  background-color: var(--primary-color);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px; /* Adjusted for a more compact look */
  flex-wrap: wrap; 
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--highlight-color);
}

/* Section Styles */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

/* Projects Section */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.project-card p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 15px;
}

.project-writeup-summary {
  font-style: italic;
  color: #666;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.tech-tag {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.project-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  margin-right: 10px;
}

.project-links a:hover {
  color: var(--highlight-color);
}

.link-separator {
  color: var(--text-color);
  margin: 0 10px;
}

/* About Section */
.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.about-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 600px;
}

/* Experience Section */
.experience-timeline-new {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.experience-card-new {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-dot-new {
  background-color: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.card-content-new h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.job-company {
  font-size: 1.2rem;
  color: var(--highlight-color);
}

.job-dates {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}

.card-content-new ul {
  list-style: disc;
  margin-left: 20px;
}

.card-content-new li {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 8px;
}

/* Education Section */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.education-item {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
}

.education-details {
  font-size: 1.1rem;
  color: var(--text-color);
}

.education-dates {
  font-size: 1rem;
  color: #666;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 5px; /* Adjusted for a more compact look */
  justify-content: center;
}

.skill {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 5px 10px; /* Adjusted for a more compact look */
  border-radius: 20px;
  font-size: 0.9rem; /* Adjusted for a more compact look */
  font-weight: 600;
}

#contact {
  background-color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.contact-form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
}

.contact-form .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  background-color: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.btn.send-message-btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.btn.send-message-btn:hover {
  background-color: #0056b3;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  margin: 0 10px;
  color: #333;
  font-size: 24px;
}

.social-icons a:hover {
  color: #007bff;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: var(--primary-color);
  color: #fff;
}

/* Back to Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

#backToTopBtn:hover {
  background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-img {
    width: 200px;
    height: 200px;
  }

  .experience-card-new {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-dot-new {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .project-card h3 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 2rem;
  }
}
