/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fafafc;
  color: #1e293b;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* glassmorphism / soft shadows */
.navbar, section, header {
  backdrop-filter: blur(2px);
}

/* NAVBAR - floating pill style */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 25px -8px rgba(0,20,40,0.15);
  border-radius: 60px;
  padding: 0.3rem 0.8rem;
  z-index: 999;
  width: auto;
  display: inline-flex;
}

.nav-container {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

.nav-link {
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  font-weight: 520;
  font-size: 0.95rem;
  color: #1e293b;
  background: transparent;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(20, 80, 150, 0.08);
  color: #0f2b4b;
}

.nav-link:first-child {
  background: rgba(20, 80, 150, 0.05);
  font-weight: 550;
}

/* HEADER */
header {
  margin-top: 0;
  padding: 140px 24px 80px;
  text-align: center;
  background: radial-gradient(circle at 80% 30%, #f0f5fe, #ffffff 70%);
  border-bottom: 1px solid rgba(0,0,0,0.02);
}

header h1 {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #1a2e4b, #1f3a5f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

header p {
  font-size: 1.3rem;
  font-weight: 380;
  color: #475569;
  background: rgba(255,255,255,0.5);
  display: inline-block;
  padding: 0.3rem 2rem;
  border-radius: 60px;
  backdrop-filter: blur(4px);
  margin-top: 0.5rem;
}

/* MAIN WRAPPER - SIMPLIFIED */
.wrapper {
  max-width: 1000px;
  margin: 40px auto 60px; /* Added top margin to create space from header */
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* SECTION CARDS - SIMPLIFIED */
section {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 36px;
  box-shadow: 0 20px 40px -15px rgba(18, 52, 77, 0.08);
  padding: 2.5rem 2.8rem;
  margin: 0; /* No margins */
  width: 100%;
  transition: all 0.25s ease;
}

section:hover {
  box-shadow: 0 25px 45px -12px rgba(18, 52, 77, 0.15);
  background: rgba(255,255,255,0.85);
}

section h2 {
  font-size: 2rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: #0c263b;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid rgba(0, 110, 230, 0.15);
  padding-bottom: 0.6rem;
}

section h2 i {
  color: #2b5f9e;
  font-size: 1.8rem;
}

/* ABOUT SECTION */
.about p {
  font-size: 1.2rem;
  color: #1f3a57;
  line-height: 1.6;
}

.about strong {
  font-weight: 600;
  color: #0f3b6b;
}

/* EDUCATION SECTION */
.education {
  padding: 2.5rem 2.8rem;
}

.edu-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.edu-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.edu-logo {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
}

.edu-details {
  flex: 1;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.edu-header h3 {
  font-size: 1.3rem;
  font-weight: 620;
  color: #0c263b;
  margin: 0;
}

.edu-date {
  font-size: 0.95rem;
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.edu-degree {
  font-size: 1.1rem;
  color: #1f3a57;
  margin-bottom: 0.5rem;
}

.edu-gpa, .edu-courses {
  font-size: 0.98rem;
  color: #475569;
  margin-top: 0.3rem;
  line-height: 1.5;
}

.edu-courses {
  color: #5f6b7a;
}

/* CONTACT SECTION */
.contact ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 0.5rem;
}

.contact li {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact li i {
  width: 1.5rem;
  color: #2b5f9e;
  font-size: 1.3rem;
}

.contact a {
  color: #1f3a57;
  font-weight: 500;
  border-bottom: 1px dotted transparent;
  transition: border 0.2s;
  text-decoration: none;
}

.contact a:hover {
  border-bottom: 1px dotted #2b5f9e;
  color: #0f2b4b;
}

/* RESEARCH PAGE LIST */
.research-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.research-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.12rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.research-list li i {
  font-size: 1.5rem;
  color: #2b5f9e;
  min-width: 2rem;
  margin-top: 0.1rem;
}

.research-list li strong {
  font-weight: 630;
  color: #0c2c44;
}

/* DOWNLOAD BUTTON */
.download-badge {
  background: #ecf3fa;
  border-radius: 40px;
  padding: 0.2rem 1.2rem 0.2rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.download-badge i {
  font-size: 1rem;
}

/* FOOTER */
footer {
  text-align: center;
  font-size: 0.95rem;
  color: #68778d;
  margin-top: 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(0,0,0,0.03);
}

/* RESPONSIVE DESIGN */
@media (max-width: 650px) {
  .navbar {
    top: 16px;
    padding: 0.1rem;
  }
  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  header {
    padding: 120px 20px 60px;
  }
  header h1 {
    font-size: 2.5rem;
  }
  header p {
    font-size: 1rem;
    padding: 0.2rem 1rem;
  }
  
  .wrapper {
    margin: 30px auto 40px;
    padding: 0 16px;
    gap: 20px;
  }
  
  section {
    padding: 1.8rem 1.5rem;
  }
  
  .edu-item {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .edu-logo {
    width: 40px;
    height: 40px;
  }
  
  .edu-logo img {
    width: 35px;
    height: 35px;
  }
  
  .edu-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .edu-date {
    margin-top: 0.2rem;
  }
  
  .contact ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* SELECTION COLOR */
::selection {
  background: #ccdeff;
}