/* General Reset for Consistency */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Define Color Palette */
:root {
    --prussian-blue: #012a4aff;
    --indigo-dye: #013a63ff;
    --indigo-dye-2: #01497cff;
    --indigo-dye-3: #014f86ff;
    --ucla-blue: #2a6f97;
    --cerulean: #2c7da0ff;
    --air-force-blue: #468fafff;
    --air-superiority-blue: #61a5c2ff;
    --sky-blue: #89c2d9ff;
    --light-blue: #a9d6e5ff;
}

/* Ensure Full-Height Layout with Flex */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--light-blue);
    color: var(--prussian-blue);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure main fills vertical space between nav and footer */
main {
    flex: 1;
}

/* Navbar Styling with Bootstrap Overrides */
nav {
    background-color: var(--indigo-dye);
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Header Section */
header {
    background-color: var(--ucla-blue);
    color: white;
    padding: 20px;
    text-align: center;
}

/* Section Styling */
section {
    padding: 40px 15px;
}

section#bio {
    background-color: white;
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

/* Footer Styling */
footer {
    background-color: var(--indigo-dye);
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 100;
}

/* Bio Section */
.bio-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.row.mx-auto.mb-5 {
    display: flex;
    align-items: center; /* Vertically align the text and image */
    justify-content: center; /* Horizontally center the entire row */
    flex-wrap: wrap; /* Allows responsiveness for smaller screens */
  }

.bio-photo {
    width: 100%;
    max-width: 66%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.bio-text {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

/* Skills Section */
.skills-banner {
  background-color: white !important;  /* override Bootstrap bg-light */
  padding-top: 40px;
  padding-bottom: 180px;  /* give plenty of room above the footer */
  text-align: center;
  position: relative; /* ensures spacing stacks properly */
  z-index: 1;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.skill-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.skill-icon:hover {
    transform: scale(1.2);
}

#contact a {
  color: var(--indigo-dye);
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

#projects {
    padding: 2rem;
    background-color: #f9f9f9;
}

.project-container {
  display: block;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 900px; /* or whatever width you feel looks good */
  margin: 0 auto; /* this centers it horizontally */
  padding: 0 20px; /* optional: adds a little breathing room on smaller screens */
  flex-wrap: wrap; /* allows stacking on smaller screens */
}

.project-content {
    display: flex;
    align-items: center;
    gap: 20px; /* space between image and text */
    flex-wrap: wrap; /* stacks vertically on small screens */
  }

  .project-title {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .artifact-img {
    max-width: 500px; 
    width: 100%;
    height: auto;
    flex-shrink: 0;
  }
  
  .project-content p {
    flex: 1;
    max-width: 400px;
    margin: 0;
  }
  

.project-text {
    flex: 1;
    min-width: 250px;
}

.project-text h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .project-container {
        flex-direction: column;
        text-align: center;
    }

    .project-text {
        text-align: left;
    }
}

#contact-resume .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem; /* similar to Bootstrap's gap-4 */
  }
  
  .contact-info,
  .resume-preview {
    flex: 1;
    min-width: 300px;
  }
  
  .contact-info {
    max-width: 500px;
  }
  
  .resume-preview {
    max-width: 600px;
    text-align: center;
  }
  
  .resume-image {
    width: 50%;
    max-width: 400px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }  

  .artifact-video {
    width: 100%;
    height: 250px; /* adjust this value as needed */
    flex: 1 1 300px;
  }  