/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: url('images/binary_background.jpeg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background: linear-gradient(to right, #000000, #444444);
  padding: 1rem 2rem;
  color: white;
  font-family: 'Roboto Slab', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100vw;
  box-sizing: border-box;
  user-select: none;
  flex-shrink: 0;
}

header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 3.5rem;      /* Match home hero size */
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
  font-family: 'Roboto Slab', serif;  /* ensure same font */
}

h3 a {
  color: #00bfff; /* bright blue */
}

header a,
nav a {
  color: white !important;
}

header a:visited,
nav a:visited {
  color: white !important;
}

/* Navigation menu */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  gap: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: 'Open Sans', sans-serif;
}

nav ul li a {
  color: #00aaff;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a.current {
  color: #00aaff !important;
  font-weight: 700;
}


nav ul li a:hover,
nav ul li a:focus {
  color: #00aaff;
  outline: none;
}

/* Main content wrapper with transparent black background */
.page-wrapper {
  background: rgba(0, 0, 0, 0.75);
  color: white;
  max-width: 1100px;        /* wider to fit resume content */
  margin: 2rem auto 3rem;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-sizing: border-box;
  flex-grow: 1;
  min-height: auto;
}

/* Main element inside wrapper */
.page-wrapper main {
  /* Let content size naturally */
}

/* Headings style */
h2, h4 {
  font-family: 'Roboto Slab', serif;
  color: #ccc;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

/* Paragraph spacing and readability */
p, li {
  line-height: 1.6;
  font-size: 1rem;
}

/* Lists */
ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

/* Footer locked at bottom */
footer {
  background: linear-gradient(to right, #000000, #444444);
  color: white;
  text-align: center;
  padding: 0.8rem 1rem;
  flex-shrink: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  width: 100vw;
  box-sizing: border-box;
  user-select: none;
  position: relative;
  z-index: 10;
}

/* Cover Letter page spacing fixes */
.cover-letter p {
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

/* Button style for Home page */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.btn:hover,
.btn:focus {
  background: rgba(0,0,0,0.85);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  outline: none;
}

.btn,
.btn a {
  color: white;
  text-decoration: none;
}

.btn a:visited {
  color: white;
}



/* Home page wrapper overrides */
.home-wrapper {
  background: none;  /* no black transparent background on home page */
  max-width: 1000px;
  margin: 4rem auto 3rem auto;
  padding: 0 1rem;
  color: black;
  text-align: center;
  flex-grow: 1;
}

/* Hero section styling - no background, black text */
.home-wrapper .hero {
  background: none;
  padding: 0;
  margin: 0 0 3rem 0;
  color: black;
  text-shadow: none;
  max-width: 700px;
}

.home-wrapper .hero h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 3.5rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: black;
  text-shadow: none;
}

.home-wrapper .hero .tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: black;
  text-shadow: none;
}

/* Navigation buttons container - vertical single column */
.home-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 300px;
  margin: 0 auto;
  align-items: center;
}

/* Make buttons bigger */
.home-nav .btn {
  width: 280px;
  height: 70px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.certifications a {
  color: #00aaff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.certifications a:visited {
  color: #00aaff; /* Bright blue after being clicked */
}


a {
  color: #00aaff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:visited {
  color: #00aaff; /* Bright blue after being clicked */
}

.photo-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-photo {
  width: 100%;                /* allow photo to shrink on smaller screens */
  max-width: 360px;           /* don't let it get too large */
  height: auto;
  border-radius: 12px;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
  background-color: rgba(0,0,0,0.3);
  padding: 6px;
  display: inline-block;
}

.kb-embed {
  position: relative;
  width: 100%;
  padding-bottom: 65%; /* Adjust for desired height ratio */
  height: 0;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 16px;
}

.kb-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#github-project {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #ddd;
}

#github-project h2 {
  margin-bottom: 12px;
  color: #222;
}

#github-project p {
  max-width: 600px;
  margin-bottom: 12px;
  line-height: 1.5;
  color: #444;
}

.github-link {
  display: inline-block;
  background-color: #24292e;
  color: #fff;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.github-link:hover {
  background-color: #0366d6;
}

.kb-embed {
  text-align: center;       /* Keep iframe centered horizontally */
  max-width: 100%;
  height: 600px;            /* Set a fixed height to prevent squishing */
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  margin: 20px 0;
}

.kb-embed iframe {
  width: 100%;
  height: 100%;             /* Fill the container height */
  border: none;
  border-radius: 8px;
  display: inline-block;
}

.app-screenshot {
  text-align: left;         /* Align image left */
  margin-top: 20px;
}

.app-screenshot img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  display: block;
}


.button-link {
  display: inline-block;
  background-color: #24292e;
  color: #fff;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin: 12px 0 20px 0;
}

.button-link:hover {
  background-color: #0366d6;
}

/* Contact page container styling */
.contact-form-section {
  max-width: 600px;
  margin: 60px auto 80px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.7); /* black transparent */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.9);
  color: white;  /* default text color inside */
}

/* Labels styled white */
.contact-form-section label {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-weight: 600;
}

/* Inputs and textarea with white backgrounds and dark text */
.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  background-color: #fff;   /* white background */
  color: #222;             /* dark text */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

/* On focus, highlight input border */
.contact-form-section input[type="text"]:focus,
.contact-form-section input[type="email"]:focus,
.contact-form-section textarea:focus {
  outline: none;
  border-color: #00aaff;
}

/* Submit button */
.contact-form-section button[type="submit"] {
  background-color: #00aaff;
  color: white;
  border: none;
  padding: 14px 20px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.contact-form-section button[type="submit"]:hover {
  background-color: #008ecc;
}





@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 1rem; /* space between links vertically */
    align-items: center; /* center links horizontally */
  }
}

/* MOBILE RESPONSIVE FIXES */

@media (max-width: 768px) {
  /* Make main containers full width with padding */
  main, .page-wrapper, .contact-form-section {
    width: 95%;
    margin: 20px auto;
    padding: 15px;
  }


  iframe {
    display: none !important;
  }

  .kb-embed {
    display: none !important;
  }


  /* Make images scale nicely */
  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* center if needed */
  }

  /* Navigation menu stacking */
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li a {
    font-size: 1.1rem;
  }

  /* Form inputs and textarea full width */
  form input, form textarea, form button {
    width: 100% !important;
    font-size: 1rem;
  }

  /* Buttons bigger tap targets */
  button {
    padding: 14px 0;
  }
}





