/* =========================
   Base shared styles
   ========================= */

body { /* overriding base styles for all pages */
  margin: 0;
  min-height: 100vh;
  text-align: center;
  background-color: #000;
  color: #FFFFFF;
}

/* =========================
   Centered page content
   ========================= */

.page-center { /* utility class for centering content */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

p {
  font-size: 1.25rem;
}

/* Force the top section (Masthead) to be a full screen */
  header.masthead {
      min-height: 100vh !important;
      display: flex !important;
      flex-direction: column;
      justify-content: center; /* Centers the Cyber/Gallery buttons vertically */
  }

  /* Force the About section to be its own full screen */
  .about-section {
      min-height: 100vh !important;
      display: flex !important;
      flex-direction: column;
      justify-content: center; /* Centers the About text vertically */
      padding-top: 0 !important; /* Removes any useless spacing */
      padding-bottom: 0 !important;
  }

/* ===========================================
   Navbar overrides on default/large screens
   =========================================== */

/* Navbar link base color */
#mainNav .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

/* Hover AND Active State */
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  color: rgba(255, 255, 255, 0.95) !important;
}
   

/* Make the teal underline/border on the active link white */
#mainNav.navbar-shrink .nav-link.active {
border-bottom: 0.25rem solid rgba(255,255,255,0.85) !important;
}

/* fixed button size */
.btn-fixed {
  min-width: 160px;   
}


/* Override masthead background */
.masthead {
  background: none !important;
  background-color: #000; /* or #fff */
}


/* Frosted white glass navbar */
#mainNav.navbar-shrink {
  background-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* Override name color in navbar */
#mainNav .navbar-brand,
#mainNav .navbar-brand:hover,
#mainNav .navbar-brand:focus {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Reduce the overall height of the navbar */
#mainNav {
    padding-top: 0.5rem !important;    
    padding-bottom: 0.5rem !important;
}

/* Make my name smaller */
#mainNav .navbar-brand {
    font-size: 1rem !important;        
}

/* Make the links smaller */
#mainNav .nav-link {
    font-size: 0.8rem !important;      /* Smaller font for a cleaner look */
    padding: 0.5rem 1rem !important;   /* Reduces space between links */
}

/* =========================
   For less than large screens
   ========================= */

/* Mobile Navbar: Translucent Background */
@media (max-width: 991.98px) { /* Responsive design: this applies only for screens under 992px. 992 is the official large (lg) breakpoint for Bootstrap */
    
    #mainNav {
        background-color: rgba(0, 0, 0, 0.8) !important; /* Translucent black */
        backdrop-filter: blur(12px); /* Adds a modern 'glass' effect */
    }
    
    /* Change the 'Menu' button border and text color. Menu button only shows up on smaller screens */
    #mainNav .navbar-toggler {
        color: #ffffff !important; /* Changes 'Menu' text to white */
        border-color: rgba(255, 255, 255, 0.5) !important; /* Changes border to faded white */
        font-size: 0.8rem; /* Adjust hambugga button size */
    }

    #mainNav .navbar-toggler-icon {
    /* Overrides the default teal hambergur icon with a white version */
        filter: invert(1) grayscale(100%) brightness(200%);
    }
    

    /* Keep the dropdown menu transparent as well */
    #mainNav .navbar-collapse {
        background-color: transparent !important;
        border: none !important;
    }

    /* Change link colors to white so they show up on the dark background */
    #mainNav .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 1rem 0; /* Adds a bit of vertical space for thumb-tapping */
    }

    /* Show translucent background when the menu is toggled open */
    #mainNav:has(.navbar-collapse.show),
    #mainNav:has(.navbar-toggler:not(.collapsed)) {
        background-color: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(12px);
    }

    /* Frosted white glass navbar */
    #mainNav.navbar-shrink {
        background-color: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    /* remove the underline/border on the active link for mobile */
    #mainNav.navbar-shrink .nav-link.active {
        border-bottom: none !important;
    }
    
}


/* =========================
   About Me Section
   ========================= */

/* Reduce font size for body text in about section */
.about-section p {
    width: 85%;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

/* Reduce font size for title text in about section */
.about-section h2 {
    font-size: 1.2rem !important; 
}

/* =========================
   Footer button links and copyright
   ========================= */
.contact-section .social a {
    height: 2rem !important;      /* Reduced from 3rem */
    width: 2rem !important;       /* Reduced from 3rem */
    line-height: 2rem !important; /* Matches height to keep icon centered */
    font-size: 0.8rem !important;  /* Shrinks the actual logo inside */
}

footer.footer {
    font-size: 0.7rem !important; /* Smaller footprint for the copyright notice */
    padding-top: 1rem !important;  /* Optional: reduces vertical empty space */
    padding-bottom: 1rem !important;
}

/* =========================
   Cyber page styles
   ========================= */


/* =========================
   Photography page styles
   ========================= */

body.photography {
  background-color: #FFFFFF; /* Light background for photography page */
}

/* photography-specific overrides if needed */
body.photography .masonry-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  cursor: pointer; /* Changes mouse to a hand icon */
  transition: transform 0.3s ease, filter 0.3s ease; /* Smooth transition */
}

/* Effects when hovering over the image */
body.photography .masonry-item img:hover {
    transform: scale(1.02); /* Slight zoom in */
    filter: brightness(1.1); /* Makes the photo pop slightly */
}

/* The Background overlay */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999; /* Sit on top of all */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: default;
}

/* The image inside the modal */
.modal-content{

  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  cursor: zoom-in;

  transition: transform 0.1s ease-out;
  display: block;
}

/* Toggled with JavaScript */
.modal-content.is-zoomed {
    transform: scale(3); /* Zoom in */
    cursor: zoom-out;      
}

/* X Close button */
.close-button {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* ======================
   Masonry grid layout
   ====================== */

body.photography .wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* Centers the wrapper */
    padding: 2rem 0;
}

body.photography .masonry-grid {
    column-count: 4; /* Number of columns on desktop */
    column-gap: 1.1rem; /* Space between columns */
}

body.photography .masonry-item {
    display: inline-block; /* Essential to prevent items from splitting across columns */
    width: 100%;
    margin-bottom: 1.1rem; /* Space between rows */
}

body.photography .masonry-item img {
    width: 100%;
    height: auto;
    border-radius: 3px; /* smooth corners (0 for sharp) */
    display: block;
}

/* Responsive adjustment for Mobile */
@media (max-width: 1024px) {
    body.photography .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 820px) {
    body.photography .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    body.photography .masonry-grid {
        column-count: 1; 
    }
}

