/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e2e8f0;
  line-height: 1.6;
}

/* HEADER */
header {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);

  z-index: 1000;
}

header h1 {
  color: #38bdf8;
  font-size: 22px;
}

/* NAV */
nav a {
  color: #cbd5f5;
  margin-left: 20px;
  text-decoration: none;
  position: relative;
  transition: 0.3s;
  font-size: 15px;
}

/* underline animation */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  transition: 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: #38bdf8;
}

/* SECTIONS (FIXED GAP HERE) */
section {
  padding: 70px 40px;   /* reduced from 100px */
}

/* remove huge full-screen height */
.home {
  min-height: 80vh;  /* instead of 100vh */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* TEXT */
.home h2 {
  font-size: 42px;
  font-weight: 600;
}

.home span {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home p {
  margin-top: 10px;
  color: #94a3b8;
}

/* CONTAINER WIDTH */
.about, .education, .projects, .certifications {
  max-width: 1100px;
  margin: auto;
}

/* HEADINGS */
h2 {
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #38bdf8;
  font-size: 24px;
}

/* CARD STYLE (use this everywhere for better UI) */
.card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 10px;
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

/* PROJECTS */
.project-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project {
  width: 48%;
}

.project img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* CERTIFICATIONS */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.cert-grid img {
  width: 100%;
  border-radius: 8px;
  transition: 0.3s;
}

.cert-grid img:hover {
  transform: scale(1.05);
}

/* SMALL SCREENS */
@media(max-width: 768px) {
  section {
    padding: 60px 20px;
  }

  .project {
    width: 100%;
  }

  nav a {
    margin-left: 12px;
    font-size: 14px;
  }

  .home h2 {
    font-size: 32px;
  }
}

/* EDUCATION CARDS */
.edu-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.edu-card {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 12px;
  padding: 20px;

  border: 1px solid rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(10px);

  transition: 0.3s;
}

.edu-card:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.edu-card h3 {
  color: #38bdf8;
  margin-bottom: 8px;
}

.edu-card p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 10px;
}

.edu-card ul {
  padding-left: 18px;
}

.edu-card li {
  margin-bottom: 6px;
  font-size: 14px;
}