body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #c2d9d2;
  color: #333;
  scroll-behavior: smooth;
}

a { text-decoration: none; }

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Sidebar */
header {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100%;
  background: linear-gradient(180deg, #4f46e5, #6366f1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 10px;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 60px;
}

.navlist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.navlist a {
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}

.navlist a:hover {
  background: rgba(255,255,255,0.2);
}

/* Sections */
.hero, .about, .skills, .projects, .contact {
  margin-left: 220px;
  padding: 100px 60px;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn {
  padding: 12px 30px;
  background: #fff;
  color: #4f46e5;
  font-weight: 600;
  border-radius: 12px;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Section Titles */
h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1e293b;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #4f46e5;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

/* About */
.about-card {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.about-card img {
  width: 160px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid rgba(255,255,255,0.4);
}

.skill-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.skill-card {
  width: 140px;
  text-align: center;
  font-weight: 600;
  padding: 20px 15px;
}

/* ===== SKILLS ===== */
.skill-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

.skill-card {
  background: rgba(4, 1, 155, 0.1);
  backdrop-filter: blur(15px);
  padding: 1em 2em;
  border-radius: 15px;
  font-weight: 600;
  transition: 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ===== PROJECTS ===== */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
}

.project-card {
  position: relative;
  background: rgba(207, 53, 53, 0.1);
  backdrop-filter: blur(15px);
  padding: 1.5em;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.project-card h3 {
  margin-bottom: 0.5em;
}

.project-card p {
  font-size: 0.95em;
  line-height: 1.4;
}

/* GitHub Button Hidden Initially */
.project-card .btn {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  padding: 0.5em 1.2em;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Reveal GitHub Button on Hover/Touch */
.project-card:hover .btn,
.project-card:active .btn {
  bottom: 20px;
  opacity: 1;
}

.project-card .btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ===== CONTACT ===== */
.contact-card {
  max-width: 500px;
  margin: auto;
  background: rgba(189, 33, 33, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  text-align: center;
  padding: 2em;
}

.contact-card p {
  margin: 0.5em 0;
}

.contact-card .social-links {
  margin-top: 1em;
}

.contact-card .social-links a {
  margin: 0 0.5em;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.contact-card .social-links a:hover {
  color: #ffd700;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
  header {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 1em;
  }

  section {
    margin-left: 0;
    padding: 2em 1em;
  }

  .skill-cards, .project-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
