/* css/style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fafcff;
  color: #1a2c3e;
  scroll-behavior: smooth;
  line-height: 1.5;
}

:root {
  --primary-dark: #0b3b4f;
  --primary: #1e6f5c;
  --primary-light: #289672;
  --accent: #f4a261;
  --gray-bg: #f8fafc;
  --card-white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(0,0,0,0.03), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 20px 30px -12px rgba(0,0,0,0.1);
  --border-light: #e2edf2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}
section:last-of-type { border-bottom: none; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #0b3b4f, #1e6f5c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(30,111,92,0.2);
}
.btn-primary:hover {
  background: #145c4b;
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: white;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* navbar */
nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #eef2f8;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  font-weight: 800;
  font-size: 1.6rem;
  background: linear-gradient(120deg, #0b3b4f, #1e6f5c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #1f3b4c;
  transition: 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* hero */
.hero {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f7fc 100%);
}
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.hero-content { flex: 1.4; }
.hero-badge {
  background: #e0f0ea;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #0a2f3f;
}
.highlight { color: var(--primary); border-bottom: 3px solid var(--accent); }
.hero-desc {
  font-size: 1.05rem;
  color: #2c4b5e;
  max-width: 550px;
  margin: 20px 0 28px;
}
.hero-stats {
  flex: 0.8;
  padding: 0;                 /* optional */
  background: transparent;     /* remove bg */
  border: none;               /* remove border */
  box-shadow: none;           /* remove shadow */
  border-radius: 0;           /* optional */

  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-avatar{
  /* change to responsive sizing */
  width: clamp(180px, 30vw, 260px);
  height: auto;         /* keeps aspect ratio */
  max-width: 100%;
  object-fit: cover;
  border-radius: 24px;  /* optional: nice rounded corners */
  display: block;
}

.stat-item {
  margin-bottom: 18px;
  font-weight: 500;
}
.stat-number { font-weight: 800; font-size: 1.6rem; color: var(--primary); }

/* about */
.about-card {
  background: white;
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}
.about-text { flex: 3; }
.about-text p { font-size: 1.02rem; margin-bottom: 20px; color: #2c3e50; }
.about-details { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; color: #1e6f5c; font-weight: 500; }
.about-avatar img { width: 120px; height: 120px; border-radius: 60px; object-fit: cover; border: 4px solid var(--primary-light); }

/* education & experience */
.edu-item, .exp-item {
  background: var(--card-white);
  padding: 24px;
  border-radius: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary);
}
.exp-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.exp-title { font-weight: 700; font-size: 1.2rem; }
.exp-date { color: #5f6c84; font-size: 0.85rem; font-weight: 500; }
.exp-item ul, .edu-detail { margin-top: 12px; margin-left: 20px; color: #2c4b5e; }
.course-list { margin-top: 8px; font-size: 0.9rem; color: #3a5a6e; }

/* achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 24px;
  margin-top: 20px;
}
.achievement-card {
  background: white;
  padding: 22px 18px;
  border-radius: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}
.achievement-card i { font-size: 2rem; color: #f4a261; margin-bottom: 12px; display: block; }
.achievement-card h3 { font-size: 1.2rem; margin-bottom: 6px; }

/* skills */
.skills-category { margin-bottom: 32px; }
.skills-category h3 { margin-bottom: 18px; font-size: 1.2rem; }
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-tag {
  background: white;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  border: 1px solid #dee9ef;
  transition: 0.2s;
}
.skill-tag:hover { transform: translateY(-2px); border-color: var(--primary); }

/* projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.project-card {
  background: white;
  border-radius: 28px;
  padding: 26px;
  transition: 0.25s;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-icon {
  font-size: 2rem;
  background: #eaf4f0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin-bottom: 20px;
  color: var(--primary);
}
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.project-tech span { background: #eef2fa; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }

/* contact */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.contact-info, .contact-form {
  flex: 1;
  background: white;
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.input-group { margin-bottom: 20px; }
input, textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 28px;
  border: 1px solid #dce5ec;
  font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,111,92,0.1); }
.social-links { display: flex; gap: 16px; margin-top: 28px; }
.social-icon {
  background: #eff3f8;
  width: 44px;
  height: 44px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
  transition: 0.2s;
}
.social-icon:hover { background: var(--primary); color: white; transform: translateY(-3px); }
footer {
  background: #0a2a36;
  color: #cbdbe2;
  text-align: center;
  padding: 32px 0;
  margin-top: 20px;
}
.back2top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  border: none;
  z-index: 99;
}
.back2top.show { opacity: 1; visibility: visible; }

@media (max-width: 780px) {
  .nav-container { flex-direction: column; gap: 12px; }
  .nav-links { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .hero-content h1 { font-size: 2.2rem; }
  section { padding: 50px 0; }
  .hero-grid { flex-direction: column; }
  .hero-stats { width: 100%; }
}
.form-note { font-size: 0.75rem; margin-top: 12px; color: #5c6f87; }
