* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
  background-color: #fff;
}

/* Navbar layout with spacing */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  gap: 33px; /* gap between name and nav group */
}

.navbar .name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 90px;
  white-space: nowrap;
}

.navbar nav {
  display: flex;
  gap: 30px; /* spacing between nav items */
}

.navbar nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.navbar nav a:hover {
  text-decoration: underline;
}

/* Banner image */
.banner {
  height: 280px;
  background: url('Assets/background.jpg') no-repeat center center;
  background-size: cover;
}

.main-content {
  padding-top: 2rem;
}

/* Layout container */
main {
  padding-bottom: 120px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1000px;
  margin: 2rem auto 0 auto;  /* 👈 adds top margin to separate from banner */
  padding: 0 1.5rem;
  display: flex;
}

/* Sidebar */
.sidebar {
  flex: 0 0 250px;
  padding-right: 2rem;
}

.sidebar .profile-pic {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  margin-left: 1rem; /* 👈 shifts the name slightly left */

}

.sidebar p,
.sidebar a {
  margin-bottom: 0.8rem;
  display: block;
  color: #333;
}

.sidebar .social-links a {
  margin-right: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  color: #0066cc;
}

.sidebar .social-links a:hover {
  text-decoration: underline;
}

/* Main content */
.main-content {
  flex: 1;
  padding-left: 2rem;
  padding-top: 1rem;
  padding-bottom: 120px; /* or margin-bottom */
}

.main-content h1 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.main-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-card {
  border-left: 4px solid #444;
  padding-left: 1rem;
  margin-bottom: 2rem;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.project-card h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #222;
}

.project-date {
  font-style: italic;
  color: #666;
  margin-bottom: 0.5rem;
}

.in-progress {
  font-size: 0.9rem;
  color: #c0392b;
  font-weight: 600;
}

.project-card ul {
  padding-left: 1.2rem;
  list-style-type: disc;
  margin-top: 0.5rem;
}


.project-tags {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.project-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}

.project-link:hover {
  text-decoration: underline;
}

.download-btn {
  background-color: #0077cc;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.download-btn:hover {
  background-color: #005fa3;
}

.navbar nav a.active {
  font-weight: bold;
  color: #0077cc;
}


.edu-card {
  border-left: 4px solid #2c3e50;
  background-color: #f9f9f9;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.edu-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: #2c3e50;
}

.edu-card .project-date {
  font-style: italic;
  color: #666;
  margin-bottom: 0.2rem;
}

.edu-detail {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.edu-card ul {
  padding-left: 1.2rem;
  list-style-type: disc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.skill-block {
  margin-bottom: 2rem;
}

.skill-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background-color: #eaf3ff;
  color: #0077cc;
  padding: 6px 12px;
  font-size: 0.9rem;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.contact-card {
  background-color: #f9f9f9;
  border-left: 4px solid #0077cc;
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-card a {
  color: #0077cc;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form {
  margin-top: 2rem;
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-form h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #2c3e50;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  background-color: #0077cc;
  color: #fff;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #005fa3;
}

.intro {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cv-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.cv-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

/* Make layout stack vertically on small screens */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 1rem;
  }

  .sidebar {
    width: 100%;
    padding: 0;
    margin-bottom: 2rem;
  }

  .main-content {
    padding: 0;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .navbar .name {
    margin-right: 0;
  }

  .navbar nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .banner {
    height: 180px;
    background-position: center center;
    background-size: cover;
  }

  iframe {
    height: 400px; /* scale PDF on mobile */
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .main-content h1 {
    font-size: 1.4rem;
  }

  .sidebar h2 {
    font-size: 1.1rem;
  }
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .sidebar .profile-pic {
    width: 60%;
    margin: 0 auto 1rem auto;
    display: block;
  }
}

/* Mobile navbar styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .navbar nav.nav-open {
    display: flex;
  }

  .navbar nav a {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
  }
}
/* Hide hamburger menu by default (desktop) */
.menu-toggle {
  display: none;
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    margin-left: auto;
  }
}


