body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #333;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  margin: 10px 0;
}

a {
  color: #3f51b5;
  text-decoration: none;
}

.container {
  max-width: 900px;
  padding: 20px 20px;
  margin: auto;
  text-align: center;
}

.hero {
  padding: 60px 20px;
  background: #e8ecf4;
}

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero-left {
  flex: 1;
  min-width: 260px;
  text-align: center;
}

.profile-pic {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 25px;
  border: 5px solid #bbdefb;
  box-shadow: 0 8px 20px rgba(63, 81, 181, 0.15);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-icons {
  display: flex;
  gap: 10px;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #e3f2fd; /* light blue background */
  color: #0d47a1; /* deep blue icon color */
  font-size: 18px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.icon-circle:hover {
  background-color: #bbdefb;
  transform: scale(1.1);
}


.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}


.hero-right {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.hero-right h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

.hero-right h1 span {
  color: #1e88e5;
}

.hero-right h2 {
  font-weight: 500;
  font-size: 1.4rem;
  color: #444;
  margin-bottom: 20px;
}

.typing {
  color: #3f51b5;
  font-weight: 600;
}

.hero-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.06);
  max-width: 500px;
}

.hero-card p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-ghost {
  padding: 10px 20px;
  background: #fff;
  border: 2px solid #3f51b5;
  border-radius: 25px;
  color: #3f51b5;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.15);
  transition: 0.3s ease;
}

.btn-ghost:hover {
  background: #3f51b5;
  color: white;
}

.buttons a {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  border-radius: 20px;
  background: #3f51b5;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.buttons a.outline {
  background: white;
  color: #3f51b5;
  border: 2px solid #3f51b5;
}

.buttons a:hover {
  opacity: 0.9;
}

section {
  padding: 20px 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(100, 149, 237, 0.1); /* soft blue shadow */
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  background: #e3f2fd; /* very light blue */
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.2); /* deeper blue glow */
}

.card h3 {
  color: #1565c0;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: #0d47a1;
}

.card p {
  color: #555;
  transition: color 0.3s ease;
}

.card:hover p {
  color: #222;
}


.card h3 {
  margin-bottom: 10px;
  color: #1e88e5;
}

.card a {
  margin-top: 10px;
  display: inline-block;
  font-size: 0.9em;
  color: #3f51b5;
}

.soft-pink {
  background: #e3f2fd;
}

footer {
  text-align: center;
  padding: 20px;
  background: #e3f2fd;
  font-size: 0.9em;
}

/* Tabs */
.project-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.project-tabs button {
  padding: 10px 25px;
  border-radius: 25px;
  border: none;
  background: #c5cae9;
  color: #1a237e;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.project-tabs button.active {
  background: #3f51b5;
  color: white;
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(63, 81, 181, 0.1);
  transition: 0.3s;
}
.project-card:hover {
  background: #e3f2fd; /* very light blue */
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.2); /* deeper blue glow */
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 15px;
  text-align: left;
}

.project-info h3 {
  color: #1e88e5;
  margin-bottom: 10px;
}

.project-info a {
  display: inline-block;
  margin-top: 10px;
  color: #3f51b5;
  font-weight: 500;
  font-size: 0.9rem;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.certificates-grid img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.certificates-grid img:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.contact-icon {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  transition: color 0.3s ease;
}

.contact-icon i {
  color: #1e88e5;
  font-size: 18px;
}

.contact-icon:hover {
  color: #3f51b5;
}

/* Navbar */
.navbar {
  background: #e8eaf6;
  border-bottom: 1px solid #c5cae9;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(63, 81, 181, 0.1);
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3f51b5;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #3f51b5;
}

/* Hide the menu toggle checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger Icon */
.menu-icon {
  display: none;
  font-size: 26px;
  color: #3f51b5;
  cursor: pointer;
}

/* Responsive Behavior */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #e8eaf6;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}

