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

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #f4f4f9;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

/* Navigation Bar */
.navbar {
  background-color: #4e4376;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: center; /* Center nav-links horizontally */
  align-items: center;
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center; /* Center links */
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  user-select: none;
}

/* Override visited link color everywhere (important) */
a:visited {
  color: inherit !important; /* inherit color of parent */
}

/* For nav specifically, keep links white even visited */
.nav-links li a:visited {
  color: white !important;
}

.nav-links a:hover {
  color: #ffd700;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #2b5876, #4e4376);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 80px; /* To offset fixed navbar */
}

.subtitle {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.quote {
  font-style: italic;
  margin: 1rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  background-color: #4e4376;
  color: #4e4376;
  border: 2px solid #4e4376;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.btn:hover {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-alt {
  background-color: white;
  color: #4e4376 !important;
  border: 2px solid #4e4376;
}

.btn-alt:hover {
  background-color: #4e4376;
  color: white;
  border: 2px solid #4e4376;
}

/* Sections */
section {
  margin-top: 4rem;
}

h2 {
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  font-weight: 700;
}

h2 i {
  color: #4e4376;
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

/* Timeline */
.timeline-item {
  margin-bottom: 1.5rem;
}

/* Project Cards */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.project-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  flex: 1 1 250px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-card h4 {
  margin-bottom: 0.5rem;
}

/* View Project link styling */
.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #4e4376;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

/* Prevent purple color after click */
.project-card a:visited {
  color: white !important;
}

/* Hover style */
.project-card a:hover {
  background-color: #6f5fa3;
  color: white;
  text-decoration: none;
}

.more-projects {
  text-align: center;
  margin-top: 2rem;
}

.more-projects a {
  color: #4e4376;
  font-weight: bold;
  text-decoration: none;
}

.more-projects a:hover {
  text-decoration: underline;
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1rem;
}

.skill-category h3 {
  color: #4e4376;
  margin-bottom: 0.5rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-list span {
  background: #e0e0e0;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Certifications */
.cert-list {
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
}

.cert-list li {
  margin-bottom: 0.5rem;
  background: #f0f0f0;
  padding: 0.75rem;
  border-left: 4px solid #4e4376;
}

/* Footer */
footer {
  background: #2b5876;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer a {
  color: white;
  text-decoration: underline;
}

footer a:hover {
  color: #ffd700;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #4e4376;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 0.75rem 0;
  }

  .buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .project-grid {
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    background: none !important;
    padding: 0 !important;
  }

  .menu-toggle {
    display: none !important;
  }
}
a.btn {
  color: white !important;
}
