/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ===== BODY (LIGHT BACKGROUND) ===== */
body {
  background: linear-gradient(180deg, #f4f7fb, #eef2f9);
  color: #1a1a1a;
}

/* ===== SECTION SPACING (GAPS FIXED) ===== */
section {
  padding: 35px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 18px;
  color: #4b5cff;
}

/* ===== HERO SECTION (GAP FIXED) ===== */
.hero {
  padding: 60px 20px 40px;
}

.hero-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 520px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

.hero-content h3 {
  color: #4b5cff;
  margin: 10px 0;
}

.about-text {
  margin: 18px 0 25px;
  line-height: 1.7;
  color: #333;
}

.about-text span {
  color: #4b5cff;
  font-weight: 500;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #6dd5fa, #c77dff);
  color: #000;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(109, 213, 250, 0.8);
}

/* ===== PROFILE PHOTO (OVAL) ===== */
.profile-wrapper {
  width: 260px;
  height: 340px;
  padding: 6px;
  border-radius: 50% / 40%;
  background: linear-gradient(145deg, #6dd5fa, #c77dff);
  box-shadow: 0 0 25px rgba(109, 213, 250, 0.6);
}

.profile-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% / 40%;
}

/* ===== EDUCATION SECTION ===== */
.education {
  padding: 50px 20px;
}

/* Table Container */
.education-table-container {
  overflow-x: auto; /* mobile safety */
}

/* Main Table */
.education-table {
  width: 95%;
  max-width: 1100px;
  margin: auto;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  font-size: 0.95rem;
}

/* Header */
.education-table thead {
  background: linear-gradient(135deg, #6dd5fa, #c77dff);
}

.education-table th {
  padding: 16px 14px;
  color: #000;
  font-weight: 600;
  text-align: center;
  white-space: nowrap; /* keep text in one line */
}

/* Body Cells */
.education-table td {
  padding: 14px;
  text-align: center;
  color: #333;
  border-bottom: 1px solid #e6e6e6;
  white-space: nowrap; /* prevents wrapping like 2023-2027 */
}

/* Column Width Control */
.education-table th:nth-child(3),
.education-table td:nth-child(3) {
  width: 130px; /* Year column */
}

.education-table th:nth-child(5),
.education-table td:nth-child(5) {
  width: 110px; /* Proof column */
}

/* Proof Link Styling */
.education-table a {
  text-decoration: none;
  color: #4b5cff;
  font-weight: 600;
}

.education-table a:hover {
  text-decoration: underline;
}

/* Row Hover Effect */
.education-table tbody tr:hover {
  background-color: #f4f7fb;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .education-table {
    font-size: 0.9rem;
  }
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: auto;
}

.skill-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 22px rgba(0,0,0,0.15);
}

/* ===== PROJECTS (HOVER BOOMING BACK) ===== */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: auto;
}

.project-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 26px rgba(0,0,0,0.15);
}

.project-btn {
  display: inline-block;
  margin-top: 10px;
  color: #4b5cff;
  text-decoration: none;
  font-weight: 500;
}

/* ===== HOBBIES (COMPACT TAGS) ===== */
.hobbies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hobby-card {
  padding: 8px 16px;
  background: #e6ecf5;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  transition: transform 0.25s ease;
}

.hobby-card:hover {
  transform: scale(1.08);
}

/* ===== CERTIFICATIONS ===== */
.cert-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cert-card {
  background: #ffffff;
  padding: 14px 22px;
  border-radius: 22px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 5px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ===== CONTACT ===== */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.08);
}

.contact-item a {
  text-decoration: none;
  color: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
}
