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

/* ===== GLOBAL ===== */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #111827;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* ===== HEADER / HERO ===== */
header {
  width: 90%;
  margin: 30px auto;
  text-align: center;
  padding: 50px 20px 80px;
  background: linear-gradient(135deg, #aface4, #cae1e5);
  color: white;
  border-radius: 30px;
  box-shadow: 0 4px 8px #d1d5db50;
}

/* Hero Layout */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* Text */
.hero-text h1 {
  font-size: 2.8rem;
}

.name {
  color: #3b82f6;
  font-weight: 700;
}

.typing-text {
  font-size: 1.4rem;
  color: #10b981;
  margin: 10px 0 20px;
}

/* Buttons */
.hero-buttons a {
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 6px;
  margin: 5px;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary {
  background-color: #3b82f6;
  color: #fff;
}

.btn-primary:hover {
  background-color: #10b981;
}

.btn-secondary {
  border: 2px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: #3b82f6;
}

/* Hero Image */
.hero-image {
  position: relative;
  width: 260px;
  height: 350px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  transition: 0.4s;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image:hover {
  transform: scale(1.05);
}

/* ===== NAVBAR ===== */
.navbar {
  margin-top: 30px;
}

.navbar a {
  text-decoration: none;
  color: #3b82f6;
  margin: 0 15px;
  font-weight: 500;
  transition: 0.3s;
}

.navbar a:hover {
  color: #10b981;
}

/* ===== SECTIONS ===== */
.section {
  background-color: #ffffff;
  padding: 70px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px #d1d5db50;
  margin-bottom: 40px;
}

h2 {
  color: #3b82f6;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

/* ===== ABOUT BOX ===== */
.section-box {
  background-color: #f9fafb;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 25px;
  margin: 30px auto;
  max-width: 750px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.section-box h3 {
  color: #3b82f6;
  margin-top: 20px;
  margin-bottom: 10px;
}

.section-box p {
  text-align: justify;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.skill-item {
  border: 2px solid #3b82f6;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: 0.3s;
}

.skill-item:hover {
  background-color: #3b82f6;
  color: #fff;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 60px 20px;
  text-align: center;
}

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

/* ===== PROJECT CARD ===== */
.project-card {
  display: block; /* important for <a> */
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;

  text-decoration: none;   /* remove underline */
  color: #111827;          /* remove blue link */

  position: relative;
  overflow: hidden;
}

/* Text Styling */
.project-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #3b82f6;
}

.project-card p {
  font-size: 14px;
  color: #555;
}

/* Hover Effect */
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Glow Effect */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(59,130,246,0.2), transparent);
  opacity: 0;
  transition: 0.5s;
}

.project-card:hover::before {
  opacity: 1;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

/* Modal Box */
.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  text-align: left;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.close {
  float: right;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
}

/* List Styling */
.modal-content ul {
  margin-top: 10px;
  padding-left: 20px;
}

.modal-content li {
  margin-bottom: 8px;
}

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

/* ===== CONTACT ===== */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-links a {
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 5px;
  text-decoration: none;
  color: #3b82f6;
}

.contact-links a:hover {
  color: #10b981;
}

/* Resume */
.resume-section {
  text-align: center;
  margin-top: 40px;
}

.resume-button {
  background: #3b82f6;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
}

.resume-button:hover {
  background: #10b981;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .hero {
    flex-direction: column;
    gap: 20px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .typing-text {
    font-size: 1.1rem;
  }

  .hero-image {
    width: 180px;
    height: 250px;
  }

  .hero-buttons a {
    display: block;
    margin: 10px auto;
  }

  .navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar a {
    margin: 8px;
    font-size: 14px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-box {
    padding: 15px;
  }
}