/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Root colors */
:root {
  --bg: #e0e0e5;
  --gradient-start: #d1d1e0;
  --gradient-end: #a88fcf;
  --section-bg: #1b3b2f;
  --fg: #e0e0e0;
  --accent: #8fc1a9;
  --muted: #c0c0c0;
  --card-shadow: rgba(0, 0, 0, 0.2);
}

/* Global styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: url('IMG_2798.jpeg') no-repeat center top fixed;
  background-size: cover;
  color: var(--fg);
  line-height: 1.7;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.2rem;
  box-sizing: border-box;
}

/* Header */
header {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(23,36,71,0.82), rgba(27,59,47,0.82)), url('bioinfo-background.webp');
  background-size: cover;
  background-position: center;
  z-index: 1000;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0.5rem; /* closer buttons */
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile-pic {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 40%;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.13);
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
}

.header-text h1 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

.header-text .tagline {
  color: #ffffff; /* white text */
  font-size: 0.92rem;
  line-height: 1.25;
  margin-top: 0.1rem;
  max-height: 3.6em; /* allow up to 3 lines */
  overflow: hidden;
}

/* Navigation */
nav#main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 1;
}

nav a, .resume-btn {
  color: #fff;
  font-size: 0.95rem;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s;
}

nav a:hover, nav a.is-active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.resume-btn {
  background: linear-gradient(90deg, var(--accent) 60%, #a88fcf 100%);
  color: #fff;
  font-weight: 600;
  border: 1.2px solid var(--accent);
  padding: 0.25rem 0.8rem;
}

/* Hamburger menu for mobile */
#hamburger-btn {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Mobile nav */
@media (max-width: 700px) {
  nav#main-nav {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    background: rgba(27,59,47,0.95);
    position: absolute;
    top: 100%;
    right: 0;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
  nav#main-nav.active {
    display: flex;
  }
  #hamburger-btn {
    display: block;
  }
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  width: 100%;
  overflow-x: auto;
  background: #164731;
  border-radius: 14px;
  padding: 1rem 0.5rem;
}

.skill {
  background: #164731;
  padding: 1.2rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  color: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-size: 1.1rem;
  min-width: 120px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.skill:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 24px #0002;
  background: #1b3b2f;
}

/* Sections */
.section {
  padding: 2.5rem 2rem;
  background: var(--section-bg);
  color: var(--fg);
  border-radius: 16px;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 24px var(--card-shadow), 0 0 0 2px #1b3b2f;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--card-shadow), 0 0 0 2px #1b3b2f;
}

/* Education & Experience */
.edu-item, .exp-item {
  margin-bottom: 2rem;
}

.edu-item h3, .exp-item h3 {
  color: var(--muted);
  margin: 0.2rem 0 0 0;
  font-weight: 400;
  font-size: 1rem;
}

/* Courses & Projects */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.course-item, .undergrad-school {
  background: #164731;
  padding: 1.5rem;
  border-radius: 14px;
  text-align: center;
  color: var(--fg);
  box-shadow: 0 2px 6px var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.course-item:hover, .undergrad-school:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--card-shadow);
}

.course-item h4, .undergrad-school h3 {
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-card {
  background: #007bff5c;
  padding: 1.5rem 1.2rem;
  border-radius: 16px;
  color: var(--fg);
  box-shadow: 0 2px 10px var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2.2rem;
}

.project-info h4 {
  color: var(--accent);
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
}

.project-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  padding: 0.38rem 1.1rem;
  background: rgba(0,0,0,0.13);
  box-shadow: 0 1px 4px var(--card-shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-left: 1.2rem;
}

.project-link a:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 16px var(--card-shadow);
}

/* Contact */
#contact a {
  color: var(--accent);
  text-decoration: none;
}

#contact a:hover {
  color: var(--fg);
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  nav a, .resume-btn { font-size: 0.95rem; padding: 0.28rem 0.7rem; }
  .header-container { flex-direction: column; gap: 1rem; padding: 0.5rem 1rem; }
}

@media (max-width: 700px) {
  nav a, .resume-btn { font-size: 0.9rem; padding: 0.22rem 0.6rem; }
  .profile-pic { width: 60px; height: 60px; }
  .header-container { padding: 0.5rem 0.5rem; }
}

@media (max-width: 560px) {
  nav a, .resume-btn { font-size: 0.82rem; padding: 0.2rem 0.5rem; }
  .header-text h1 { font-size: 1.15rem; }
  .header-text .tagline { font-size: 0.86rem; }
  .header-container { padding: 0.3rem 0.2rem; }
}


