/* Changing default colors */
:root {
    --bs-dark: #0A090C; /*New dark color*/
    --bs-dark-rgb: 10, 9, 12;
    --bs-primary: #07393C; /* New primary color */
    --bs-primary-rgb: 7, 57, 60;
    --bs-secondary: #2C666E; /* New secondary color */
    --bs-secondary-rgb: 44, 102, 110;
    --bs-info: #8CFFF9; /* New info color */
    --bs-info-rgb: 140, 255, 249;
    --bs-light: #F9F5FF; /* New danger color */
    --bs-light-rgb: 249, 245, 255;
    --bs-success: #09BC8A; /* Customize other colors if needed */
    --bs-success-rgb: 9, 188, 138;
    --bs-danger: #8661C1;
    --bs-danger-rgb: 134, 97, 193;
}

/* Specifically changing button default colors because they don't work for some reason*/
.btn-outline-info {
    --bs-btn-color: #8CFFF9; /* Text color */
    --bs-btn-border-color: #8CFFF9; /* Border color */
    --bs-btn-hover-color: #000; /* Text color on hover */
    --bs-btn-hover-bg: #8CFFF9; /* Background color on hover */
    --bs-btn-hover-border-color: #8CFFF9; /* Border color on hover */
    --bs-btn-focus-shadow-rgb: 255, 87, 51; /* Focus shadow color */
    --bs-btn-active-color: #000; /* Text color when active */
    --bs-btn-active-bg: #8CFFF9; /* Background color when active */
    --bs-btn-active-border-color: #8CFFF9; /* Border color when active */
}

/*This ensures the "Resume" button text is black when hovering over it*/
.btn-outline-info:hover {
    background-color: var(--bs-info) !important; /* Ensure solid background color */
    color: #000 !important; /* Ensure white text on hover */
    border-color: var(--bs-info) !important; /* Ensure border is the custom color */
}

/*This ensures that the other links in the navbar turn white smoothly when hovered over*/
.nav-link {
    transition: color 0.3s ease; /* Smooth transition */
}

.nav-link:hover {
    color: #fff !important; /* Change text color to white on hover */
}

/* Specifically changing button default colors for all the project subpages to fit new purple theme*/
.project_subpage .btn-outline-danger {
    --bs-btn-color: #8661C1; /* Text color */
    --bs-btn-border-color: #8661C1; /* Border color */
    --bs-btn-hover-color: #000; /* Text color on hover */
    --bs-btn-hover-bg: #8661C1; /* Background color on hover */
    --bs-btn-hover-border-color: #8661C1; /* Border color on hover */
    --bs-btn-focus-shadow-rgb: 134, 97, 193; /* Focus shadow color */
    --bs-btn-active-color: #000; /* Text color when active */
    --bs-btn-active-bg: #8661C1; /* Background color when active */
    --bs-btn-active-border-color: #8661C1; /* Border color when active */
}

.project_subpage .btn-outline-light:hover {
    background-color: var(--bs-light) !important; /* Ensure white background color */
    color: var(--bs-danger) !important; /* Ensure danger text on hover */
    border-color: var(--bs-light) !important; /* Ensure border is white */
}

.project_subpage .nav-link:hover{
    color: var(--bs-danger) !important;
}

/*Button on the bottom of home page*/
.image-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.image {
    position: absolute;
    width: 80px;
    transition: opacity 0.3s ease;
}

.image-2 {
    opacity: 0; /* Hide the second image initially */
}

.image-container:hover .image-1 {
    opacity: 0; /* Hide the first image on hover */
}

.image-container:hover .image-2 {
    opacity: 1; /* Show the second image on hover */
}

/*Removes underlines from anchor tags*/
a {
    text-decoration: none !important;
  }

/*This section defines the zoom in section upon page reload*/

.zoom-in-section {
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    animation: zoomIn 1.2s ease-out forwards;
    animation-delay: 0.5s; /* Optional: Adds a delay before the animation starts */
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
        visibility: visible;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }
}

/*These set the settings for the different "Sections" of the main page*/

#intro {
    background-color: black;
    height: 100vh;
    width: 100%;
    position: relative;
}

#headshot{
    max-height: 80vh;
    object-fit: contain;
}

@media (max-width: 768px) {
  #headshot {
    max-height: 50vh;
  }
}

#about {
    background-color: var(--bs-primary);
    width: 100%;
    min-height: 100vh;
}

#skills {
    background-color: var(--bs-secondary);
    width: 100%;
    min-height: 80vh;
}

#experience {
    background-color: var(--bs-primary);
    width: 100%;
    min-height: 100vh;
}

#projects {
    background-color: var(--bs-primary);
    width: 100%;
    min-height: 100vh;
}

#liquidRocketEngine {
    background-color: var(--bs-primary);
    width: 100%;
    min-height: 100vh;
}

#drone {
    background-color: var(--bs-primary);
    width: 100%;
    min-height: 100vh;
}

#robotic_arm {
    background-color: var(--bs-primary);
    width: 100%;
    min-height: 100vh;
}

.gallery {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
}

.gallery-item {
    width: 300px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden; /* ensures round corners clip content */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    background: #f8f9fa;
    flex-shrink: 0;
}

.gallery-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .gallery-item {
        width: 100%;
        height: auto;
    }
}