* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #f4f7ff 0%, #e0ecff 100%);
  color: #222;
  line-height: 1.6;
}

.gh-pp {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0ff;
  /* Example border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Example shadow */
  transition: transform 0.3s ease-in-out;
  /* Smooth transition for hover effects */
}

.gh-pp:hover {
  transform: scale(1.05);
  /* Slight zoom on hover */
}

.navbar {
  background-color: #003366;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-weight: bold;
  font-size: 1.4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

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

.nav-links li a:hover {
  text-decoration: underline;
}

#hero {
  text-align: center;
  padding: 100px 20px;
  background: #004080;
  color: white;
}

#hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  background-color: #ffcc00;
  color: #003366;
  padding: 10px 25px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background-color: #e6b800;
}

.section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section h2 {
  text-align: center;
  color: #004080;
  margin-bottom: 25px;
}

.skill-grid,
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.skill-card,
.project-card {
  background: #f0f6ff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.skill-card:hover,
.project-card:hover {
  transform: translateY(-5px);
}

.timeline {
  border-left: 3px solid #004080;
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 20px;
}

/* Social links style */
.project-card a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.project-card a:hover {
  background-color: #f0f0f0;
  color: #0073e6;
  transform: scale(1.05);
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

form button {
  background: #004080;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

form button:hover {
  background: #003366;
}

.site-footer {
  background-color: #00264d;
  color: white;
  text-align: center;
  padding: 25px 20px;
  margin-top: 60px;
}

.site-footer a {
  color: #66ccff;
}

#typing-text::after {
  content: '|';
  animation: blink 1s infinite;
  color: #ffcc00;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }
  
  50% {
    opacity: 0;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  
  #hero h1 {
    font-size: 2rem;
  }
}

#privacyLink {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: #007BFF;
  font-weight: bold;
}

#privacyLink:hover {
  color: #0056b3;
}


/* Base styles for the popup container */
.popup-container {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.6);
  /* Semi-transparent black background */
  backdrop-filter: blur(5px);
  /* Optional: Adds a blur effect */
  -webkit-backdrop-filter: blur(5px);
  /* For Safari */
  justify-content: center;
  align-items: center;
}

/* Styles for the popup content box */
.popup-content {
  background-color: #bebeff;
  margin: auto;
  padding: 25px;
  border-radius: 12px;
  width: 85%;
  max-width: 450px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  transform: scale(0.9);
  opacity: 0;
  animation: fadeInScale 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Keyframe animation for the popup to appear with a bounce effect */
@keyframes fadeInScale {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Style for the close button */
.close-btn {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
  color: #333;
  text-decoration: none;
}

/* Style for the profile picture itself */
.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Styles for text and buttons inside the popup */
.popup-content h2 {
  margin: 0 0 10px;
  color: #333;
  font-size: 1.8em;
}

.popup-content p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
}