/* =========================
   GLOBAL
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8f1f7 100%);
  color: #2c3e50;
  min-height: 100vh;
}

a {
  color: #0077b6;
  text-decoration: none;
}

a:hover {
  color: #0096c7;
  text-decoration: underline;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  background-color: #ffffff;
  padding: 1.2em 2em;
  border-bottom: 2px solid #d4e8f7;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  font-size: 1.3em;
  font-weight: bold;
  color: #0077b6;
  transition: color 0.3s;
}

.nav-brand a:hover {
  color: #0096c7;
}

.nav-links {
  display: flex;
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #2c3e50;
  font-weight: normal;
  font-size: 0.95em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #0077b6;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  max-width: 1200px;
  margin: 3em auto;
  padding: 0 2em;
}

.hero-content {
  display: flex;
  gap: 3em;
  align-items: center;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5em;
  margin: 0 0 0.3em 0;
  color: #0077b6;
  font-weight: bold;
}

.subtitle {
  font-size: 1em;
  color: #5a7a96;
  margin: 0 0 1.5em 0;
  font-weight: normal;
}

.bio-text {
  font-size: 0.95em;
  color: #3a5a7a;
  margin: 0 0 1.5em 0;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  gap: 1em;
}

.link-btn {
  padding: 0.7em 1.5em;
  border: 2px solid #0077b6;
  color: #0077b6;
  background: white;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s;
  border-radius: 4px;
}

.link-btn:hover {
  background: #0077b6;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: 100%;
  max-height:fit-content;
  border-radius: 8px;
  border: 2px solid #d4e8f7;
}

/* =========================
   SECTION HEADERS
========================= */
.section-header {
  margin-bottom: 2.5em;
}

.section-header h2 {
  font-size: 1.8em;
  margin: 0 0 0.5em 0;
  color: #0077b6;
  font-weight: bold;
}

.section-header p {
  color: #5a7a96;
  margin: 0;
  font-size: 0.95em;
}

/* =========================
   PROJECTS SECTION
========================= */
.projects {
  max-width: 1200px;
  margin: 3em auto;
  padding: 0 2em;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}

.project-card {
  background: white;
  border: 1px solid #d4e8f7;
  display: flex;
  gap: 2em;
  padding: 2em;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.06);
  transition: box-shadow 0.3s;
}

.project-card:hover {
  box-shadow: 0 4px 16px rgba(0, 119, 182, 0.12);
}

.project-preview {
  flex: 1;
  min-height: 280px;
  background: #f7fbff;
  border-radius: 4px;
  border: 1px solid #e0eff7;
}

.project-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-info h3 {
  font-size: 1.3em;
  margin: 0 0 0.7em 0;
  color: #0077b6;
  font-weight: bold;
}

.project-info p {
  color: #3a5a7a;
  margin: 0 0 1.2em 0;
  font-size: 0.95em;
  line-height: 1.7;
}

.project-skills {
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
}

.skill-tag {
  padding: 0.4em 0.8em;
  background: #d4e8f7;
  color: #0077b6;
  font-size: 0.8em;
  font-weight: bold;
  border: 1px solid #b8d9f0;
  border-radius: 3px;
}

.skill-tag a {
  color: #0077b6;
  transition: color 0.3s;
}

.skill-tag a:hover {
  color: #0096c7;
  text-decoration: underline;
}

/* =========================
   SKILLS SECTION
========================= */
.skills {
  max-width: 1200px;
  margin: 3em auto;
  padding: 0 2em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5em;
}

.skill-item {
  background: white;
  padding: 1.5em;
  border: 1px solid #d4e8f7;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.06);
  transition: box-shadow 0.3s;
}

.skill-item:hover {
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.12);
}

.skill-item h4 {
  font-size: 0.95em;
  margin: 0 0 0.7em 0;
  color: #0077b6;
  font-weight: bold;
}

.skill-item p {
  margin: 0;
  color: #5a7a96;
  font-size: 0.9em;
  line-height: 1.6;
}

/* =========================
   CONTACT SECTION
========================= */
.contact {
  max-width: 1200px;
  margin: 3em auto;
  padding: 0 2em;
}

.contact-content {
  background: white;
  padding: 2.5em;
  border: 1px solid #d4e8f7;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.06);
}

.contact-content p {
  margin: 0 0 1.5em 0;
  font-size: 0.95em;
  color: #3a5a7a;
}

.email-link {
  color: #0077b6;
  font-weight: bold;
  transition: color 0.3s;
}

.email-link:hover {
  color: #0096c7;
  text-decoration: underline;
}

.contact-links {
  display: flex;
  gap: 1em;
  justify-content: center;
}

.contact-links a {
  padding: 0.7em 1.5em;
  border: 2px solid #0077b6;
  color: #0077b6;
  background: white;
  font-weight: bold;
  transition: all 0.3s;
  border-radius: 4px;
}

.contact-links a:hover {
  background: #0077b6;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: white;
  padding: 1.5em;
  text-align: center;
  border-top: 2px solid #d4e8f7;
  margin-top: 3em;
  color: #5a7a96;
  font-size: 0.85em;
}

.footer p {
  margin: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
  }

  .project-card {
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: 2em;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 1em;
  }

  .nav-container {
    flex-direction: column;
    gap: 1em;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 1em;
  }

  .hero {
    padding: 0 1em;
  }

  .hero-text h1 {
    font-size: 1.5em;
  }

  .hero-links {
    flex-direction: column;
  }

  .link-btn {
    width: 100%;
    text-align: center;
  }

  .projects {
    padding: 0 1em;
  }

  .project-card {
    padding: 1.5em;
    gap: 1em;
  }

  .skills {
    padding: 0 1em;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 0 1em;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-links a {
    width: 100%;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.4em;
  }
}