* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #ffe9ec; 
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 11%),
                    radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 11%);
  background-position: 0 0, 25px 25px; 
  background-size: 50px 50px;
  color: #1f2933;
  line-height: 1.6;
}

/* Header */
.hero { text-align: center; }
.hero h1 { font-size: 2.5rem; }
.hero p, .contact-section p, .about-section p {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #555;
  line-height: 1.6;
}
.subtitle { margin-bottom: 0.6rem; }

/* Images Design */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-direction: row-reverse;
}

.hero-text { flex: 1; }

/* Links and Buttons */
.linkedin-link, .github-link, .contact-link {
  font-size: 0.9rem;
  color: #1f2933b7;
  background: #eef1f5;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.12)
}

.linkedin-link:hover, .github-link:hover, .contact-link:hover {
  background: #f5f7fa;
  transform: translateY(-2px);
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.12)
}

/* Sections */
section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

section + section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 2rem;
  margin-top: 2rem;
}

.about-section {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, #fdfafc7d, #faf7f87d);
  border-radius: 18px;
  max-width: 900px;
  margin: 3rem auto;
  box-shadow: 8px 8px 20px rgba(0,0,0,0.05);
  border: 2px solid #eef1f5; 
}

h2, .about-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Skills */
.skills ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skills li {
  background: linear-gradient(145deg, #eef1f5, #f5f7fa);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.12)
}

/* Projects */
.projects { display: grid; gap: 1.5rem; }

.project-card {
  background: linear-gradient(145deg, #eef1f5, #f5f7fa);
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 12px 12px 30px rgba(0, 0, 0, 0.12)
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #777;
}

/* Contact Section */
.contact-section {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, #fdfafc, #faf7f8);
  border-radius: 18px;
  max-width: 400px;
  margin: 3rem auto;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.05);
  border: 2px solid #eef1f5;
}
.contact-section h2 { font-size: 1.8rem; margin-bottom: 0.1rem; }
.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* Popup Background Overlay */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dim the background */
  backdrop-filter: blur(4px); /* Blur effect */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Popup Box */
.modal-content {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Close Button (X) */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #777;
}

.close-btn:hover { color: #1f2933; }

/* Popup Buttons */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-link-btn {
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.repo-btn {
  background: #eef1f5;
  color: #1f2933;
}

.live-btn {
  background: #ffe9ec; 
  color: #1f2933;
  border: 1px solid #ffc1cc;
}

.modal-link-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
