.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  min-height: 100vh;
  text-align: center;
  background-color: #000;
  color: #FFFFFF;
}

h1 {
    font-family: var(--bs-body-font-family);
    font-size: 1px;
    color: transparent;
}

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

.page-center {
  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 */
}

.about-section {
    min-height: 100vh !important;  /* Force the About section to be its own full screen */
    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) !important;
}

/* 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;
}


/* 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 */
}

@media (max-width: 991.98px) { 
    
    #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
   ========================= */

.about-section p {
    width: 85%;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

footer.footer {
    font-size: 0.7rem !important; 
    padding-top: 1rem !important; 
    padding-bottom: 1rem !important;
}


/* ================================================================
   Styles for Photography.html
   ================================================================ */

body.photography {
  background-color: #FFFFFF;
}

body.photography .wrapper {
    min-height: 100vh;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

body.photography .masonry-grid {
    column-count: 4;
    column-gap: 1.1rem;
}

@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;
    }
}

body.photography .masonry-item {
    display: block;
    width: 100%;
    margin-bottom: 1.1rem; 
    break-inside: avoid; 
}

body.photography .masonry-item img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    display: block;
    cursor: pointer; 
    transition: transform 0.3s ease, filter 0.3s ease; 
}

body.photography .masonry-item img:hover {
    transform: scale(1.02); 
    filter: brightness(1.1); 
}

.modal-overlay {
  display: none; 
  position: fixed;
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: default;
}

.modal-content{
  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 80vw;
  max-height: 90vh;
  cursor: zoom-in;

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

.modal-content.is-zoomed {
    transform: scale(3);
    cursor: zoom-out;      
}

.prev-button, .next-button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);

  width: 8vw;

  display: flex;
  justify-content: center;
  align-items: center;

  background: none;
  color: rgba(200, 200, 200, 0.2);
  border: none;

  font-size: clamp(10px, 1.75vw, 60px);

  padding: 1rem;
  cursor: pointer;
  z-index: 10000;
}


.prev-button { left: 1vw; }
.next-button { right: 1vw; }

.prev-button:hover, .next-button:hover {
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .prev-button, .next-button {
    display: none !important;
  }

  .modal-content {
      max-width: 100vw;
  }

  .modal-content.is-zoomed {
        transform: none !important;
        cursor: default;
    }
}

/* ================================================================
   Styles for cyber.html
   ================================================================ */

html.cyber, body.cyber {
    overflow: hidden;
    position: fixed;
}

.desktop-env {
    width: 100vw;
    height: 100vh;    
    background: #212529;
    position: relative;
    overflow: hidden; 
    margin: 0;
    display: block;
}

.desktop-wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    pointer-events: none; 
    user-select: none;  
    padding-bottom: 53px;

    color: rgba(255, 255, 255, 0.07); 
    
    }

.desktop-wallpaper i {
    font-size: 3.9rem; 
    color: rgba(255, 255, 255, 0.3); /* Very faint white/grey */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

.icon-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    grid-gap: 20px;
    z-index: 1; 
    bottom: 70px;
    align-content: start;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.93);
    cursor: pointer;
    width: 100px;
}

.desktop-icon i, .desktop-icon img {
    margin-bottom: 8px;
}

.desktop-icon span {
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(20, 20, 20, 0.9); 
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1000; 
    justify-content: space-between;
}

.taskbar-apps {
    position: absolute; 
    left: 50%;          
    transform: translateX(-50%); 
    display: flex;
    align-items: center;
}

.app-icon-container {
    width: 36px;
    height: 36px;
    border: 1px solid #444; 
    border-radius: 4px;      
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;        
    background: rgba(255, 255, 255, 0.05); 
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-icon {
    max-width: 80%;  /* Keeps the image from touching the border */
    max-height: 80%;
    object-fit: contain; /* Keeps the image from stretching/squishing */
}

.app-icon-container:hover {
    border-color: rgba(255, 255, 255, 0.5); 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.app-icon-container.active{
    background: rgba(255, 255, 255, 0.5) !important;
    border-bottom: none !important;
    position: relative;
}


.window-popup {
    display: none;

    flex-direction: column; /* This stacks header on top of body */
    min-width: 350px;
    position: fixed; /* Fixes it to the screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfectly centers it */
    width: 400px;
    max-width: 90vw;
    background: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 1101;
    backdrop-filter: blur(15px);
    overflow: hidden;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.window-header {
    background: #1a1a1a;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;          
}

.window-header button {
    background: none;
    border: none;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.window-header button:hover {
    color: #ffffff; 
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.header-icon {
    width: 16px; 
    height: 16px;
    object-fit: contain;
}

.window-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 90%;
    margin: 0 auto;
}

.window-body.folder-view {
    justify-content: center;
    flex-direction: row;
}

.file-link,
.file-link:visited, 
.file-link:hover, 
.file-link:active {
    text-decoration: none;
    color: inherit;       
}

.file-wrapper {
    display: flex;
    flex-direction: column; 
    cursor: pointer;
    width: 100px;
}

.file-wrapper i {
    font-size: 3rem;       
}

.file-wrapper span {
    font-size: 0.69rem;
}

.project-preview {
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.cybertwit-preview {
    width: auto;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.project-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;    
    font-size: 0.85rem;
}


.github-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
}

.start-menu-popup {
    position: fixed;
    bottom: 55px; 
    left: 10px;
    width: 300px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
    display: flex; 
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1100; /* Higher than taskbar */
    backdrop-filter: blur(10px); /* Glass effect */
}

.start-menu-links {
    flex-grow: 1;
    padding: 7px;
    font-size: 0.9rem;
}

.menu-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 9px;
    border-radius: 4px;
    transition: background 0.2s;
}

.menu-item i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}



/* ================================================================
   Styles for search-replica.html
   ================================================================ */

body.search-replica {
    background-color: #1f1f1f !important;
    margin: 0;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15vh;   
    box-sizing: border-box;
}

.top-right-header {
    position: absolute;
    top: 20px;
    right: 20px;
}

#profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%; 
}


.search-wrapper {
    position: relative;
    width: 80%;
    max-width: 584px !important;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 27px;
    margin-bottom: 27px;
    min-height: 42px;        
    border: 1px solid #4d5156;
    background-color: #4d5156;
    border-radius: 24px;
    padding: 0 20px;    
    transition: background-color 0.1s;
    position: relative;
    z-index: 2;
}


.search-bar:hover {
    border-color: #5f6368; 
    background-color: #5f6368;
}

.search-wrapper:has(:focus) .search-bar,
.search-wrapper:focus-within .search-bar {
    border-color: #303134; 
    background-color: #303134;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: #53565b !important;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    caret-color: white;
    color: white;
    font-family: var(--bs-body-font-family) !important;
}

.suggestions-list {
    display: none;
    position: absolute;
    visibility: hidden;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #303134;
    border-radius: 0 0 24px 24px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 1;
    overflow: hidden;
}

.suggestions-list li:hover {
    background-color: #3c4043;
}

.suggestions-list li a {
    display: block; 
    padding: 8px 20px; 
    color: #e8eaed;
    text-decoration: none;
    font-size: 16px;
}

.suggestions-list li:hover {
    background-color: #3c4043;
}

.search-wrapper:focus-within .suggestions-list {
    display: block !important;
    visibility: visible;
    opacity: 1;
}
