@import url("basics.css");

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

/* Base */
html {
  height: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background-image: url("../img/wallpapers/v996-009.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  background-attachment: fixed;
  padding-bottom: 135px;
  font-family: "Times New Roman", Times, serif;
}

/* Navbar bar */
.border {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3.2rem;
  width: 100%;
  background-color: white;
  opacity: 0.92;
  z-index: 1000;
}

.site-name {
  position: absolute;
  top: 12px;
  left: 12px;
  color: black;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 1.1rem;
}

/* Nav */
.navbar {
  position: absolute;
  top: 6px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 4px 0;
  font-size: 1rem;
}

.navbar ul {
  list-style: none;
  margin-right: 10px;
}

.navbar ul li {
  display: inline-block;
  margin: 0 18px;
  position: relative;
}

.navbar ul li a {
  text-decoration: none;
  color: black;
  text-transform: uppercase;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.navbar ul li::after {
  content: "";
  height: 2px;
  width: 0;
  background: black;
  position: absolute;
  left: 50%;
  bottom: -8px;
  transition: 0.35s;
  transform: translateX(-50%);
}

.navbar ul li:hover::after {
  width: 100%;
}

/* Layout containers */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 40px auto;
  padding: 15px;
  width: 100%;
  max-width: 1100px;
}

/* Shared section surface for readability over background */
.section-surface {
  margin-top: 5rem; /* keeps content below fixed navbar */
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.18);
}

/* Banner */
.am_banner {
  margin-top: 0;
  min-height: 90vh;
  max-width: 100%;
  background-image: url("../img/wallpapers/shade.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 4rem; /* pushes under navbar */
  border-radius: 0;
  box-shadow: none;
}

.text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 250px;
  justify-content: center;
  color: aliceblue;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.name-heading {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-size: 3rem;
  color: wheat;
}

.am_banner .name-heading {
  font-size: 3.25rem;
  margin-top: 8rem;
}

.about-me {
  font-size: 1.1rem;
  max-width: 70ch;
}

.role-line {
  font-size: 1.15rem;
  opacity: 0.95;
}

.contact-line {
  color: white;
}

/* Dark text variant inside white surfaces */
.dark-text {
  color: #101418;
}

.dark-title {
  color: #0e2236;
}

/* Links */
.email-link {
  text-decoration: none;
  color: wheat;
}

.email-link:hover {
  text-decoration: underline;
}

.dark-link {
  color: #0e2236;
  text-decoration: none;
}

.dark-link:hover {
  text-decoration: underline;
}

/* Social icons */
.my_links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.my_links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 1rem;
  text-decoration: none;
}

.my_links img {
  width: 90px;
  height: 85px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.my_links img:hover {
  transform: scale(1.06);
}

/* Buttons */
.project-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: wheat;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.project-btn:hover {
  background-color: gold;
  transform: translateY(-1px);
}

.project-btn.ghost {
  background: transparent;
  color: wheat;
  border: 2px solid wheat;
}

.project-btn.ghost:hover {
  background: rgba(245, 222, 179, 0.18);
}

.quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Projects */
.projects-grid {
  width: 100%;
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  margin-top: 10px;
}

.project-card {
  background: #193857;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: white;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 10px 26px rgba(0, 0, 0, 0.28);
}

.project-card h2 {
  color: wheat;
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

/* Image area inside each project */
.project-media {
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  position: relative;
  background: rgba(255, 255, 255, 0.08);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.media-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.project-media.media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media.media-fallback .media-label {
  position: static;
  background: rgba(0, 0, 0, 0.45);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 10px 0 12px;
}

.tags span {
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Lists */
.feature-list {
  margin: 10px 0 0 18px;
  display: grid;
  gap: 6px;
}

.clean-list {
  margin-left: 18px;
  display: grid;
  gap: 8px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 12px;
}

.skill-card {
  background: rgba(14, 34, 54, 0.06);
  border: 2px solid rgba(14, 34, 54, 0.12);
  border-radius: 16px;
  padding: 16px;
}

.skill-card h2 {
  color: #0e2236;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 34, 54, 0.1);
  border: 1px solid rgba(14, 34, 54, 0.18);
  font-size: 0.9rem;
}

/* Resume */
.resume-content-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  padding: 18px 0;
  width: 100%;
}

.resume-content-card {
  background: rgba(14, 34, 54, 0.06);
  border: 2px solid rgba(14, 34, 54, 0.12);
  border-radius: 16px;
  padding: 16px;
  color: #101418;
}

.resume-preview {
  display: flex;
  justify-content: center;
}

.resume-box {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 520px;
  border: 2px solid rgba(14, 34, 54, 0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resume-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.resume-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.resume-box:hover .overlay {
  opacity: 1;
}

/* Improve Resume Section Spacing */

.resume-content-card {
  line-height: 1.6;
  padding: 22px;                 /* more breathing room */
}

.resume-content-card p {
  margin-bottom: 12px;
}

.resume-content-card h2 {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Space out bullet lists */
.resume-content-card ul {
  margin-top: 6px;
  margin-bottom: 16px;
}

/* More vertical separation between list items */
.resume-content-card li {
  margin-bottom: 6px;
}

/* Slightly constrain width so text isn't edge-to-edge */
.resume-content-card-wrapper {
  max-width: 950px;
  margin: 0 auto;
}

/* Mobile friendly */
@media (max-width: 768px) {
  .resume-content-card {
    padding: 18px;
  }
}


.download-button {
  margin-top: 0.8rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 12px;
  width: 100%;
}

.contact-card {
  background: rgba(14, 34, 54, 0.06);
  border: 2px solid rgba(14, 34, 54, 0.12);
  border-radius: 16px;
  padding: 16px;
  color: #101418;
}

.contact-card h2 {
  color: #0e2236;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.contact-note {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(14, 34, 54, 0.06);
  border: 1px solid rgba(14, 34, 54, 0.12);
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}



.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid rgba(14, 34, 54, 0.14);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(14, 34, 54, 0.35);
}

.small {
  font-size: 0.92rem;
  opacity: 0.92;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .resume-content-card-wrapper {
    grid-template-columns: 1fr;
  }

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

  .navbar ul li {
    margin: 0 10px;
  }
}

@media (max-width: 520px) {
  .site-name {
    font-size: 1rem;
  }

  .am_banner .name-heading {
    font-size: 2.4rem;
  }
}

/* Navbar adjustments for Bulma integration */
.border {
  position: fixed;
  inset: 0 0 auto 0;
  height: auto;
  min-height: 3.2rem;
  width: 100%;
  background-color: white;
  opacity: 0.92;
  z-index: 1000;
}

.navbar {
  background: transparent !important;
  padding: 0.5rem 1rem;
}

.navbar-brand .site-name {
  position: static;
  display: flex;
  align-items: center;
  color: black;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 1.1rem;
  margin: 0;
}

/* Hamburger styling */
.navbar-burger {
  color: black;
  height: 3.25rem;
}

.navbar-burger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Desktop menu items */
.navbar-item {
  text-decoration: none;
  color: black !important;
  text-transform: uppercase;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  position: relative;
  padding: 0.5rem 1.2rem;
}

.navbar-item::after {
  content: "";
  height: 2px;
  width: 0;
  background: black;
  position: absolute;
  left: 50%;
  bottom: 0;
  transition: 0.35s;
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

/* Mobile menu */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .navbar-item {
    padding: 0.75rem 1rem;
  }
  
  .navbar-item::after {
    display: none; /* Remove underline on mobile */
  }
}

/* Remove old navbar styles that conflict */
.navbar ul {
  display: none; /* Hide old <ul> structure */
}