/* =================================================================ators / Global Setup */
/* Completely eliminate Chrome's mobile tap highlight globally */
html, body, * {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove the default mobile tap highlight flash */
img, 
a, 
.gallery-item {
  -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    
    /* --- Full Coverage Background Image --- */
    background-image: url('../images/bg-img1.webp'); 
    background-size: cover;          /* Stretches image to cover the entire screen */
    background-position: center top;  /* Centers the image horizontally */
    background-repeat: no-repeat;    /* Prevents the image from tiling/repeating */
    background-attachment: fixed;   /* Keeps background static while scrolling */
    
    color: #212529;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    
    /* --- Sticky Footer Flexbox Rules --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}



/* ==========================================================================
   Header & Navigation Menu
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 1000;
}

.logo-link {
    text-decoration: none;
    color: #212529;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.6rem;
}

/* Hamburger Icon Toggle */

body.nav-open {
    overflow: hidden;
    height: 100vh;
}

.hamburger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3000;
    position: relative;
}

.hamburger-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #212529;
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.3s ease, background-color 0.3s ease;    
}

/* Hamburger Animation States */
.hamburger-toggle.active .bar:nth-child(1) { 
    transform: translateY(8.5px) rotate(45deg); 
}
.hamburger-toggle.active .bar:nth-child(2) { 
    opacity: 0; 
}
.hamburger-toggle.active .bar:nth-child(3) { 
    transform: translateY(-8.5px) rotate(-45deg); 
}

/* Fullscreen Nav Overlay */
.nav-menu {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    z-index: 2000;
    background-image: url('../images/bg-img2.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}
.nav-menu {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-menu.active { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

/* Navigation Links Staggered Animation Base */
.nav-menu a {
    text-decoration: none;
    color: #212529;
    font-size: 1.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
    transition-delay: 0s;
}

/* Triggers staggered drop effect using custom property (--i) */
.nav-menu.active a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.08s * var(--i) + 0.1s);
}

.nav-menu a:hover {
    color: #6c757d;
}

nav a.active-link { 
    font-weight: 600; 
    border-bottom: 2px solid #212529; 
}


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    text-align: center;
    padding: 25px 10px 30px 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid #e1e1e1;
}

.hero h1 { 
    font-size: 2.1rem; 
    font-weight: 300; 
    letter-spacing: 1px; 
    margin-bottom: 8px; 
}

.hero p { 
    font-size: 1.1rem; 
    color: #6c757d; 
}


/* ==========================================================================
   Projects & Gallery Grids (Glassmorphic Cards)
   ========================================================================== */
.projects, .gallery-section {
    padding: 30px 6% 6% 6%;
    border-top: 1px solid #e9ecef;
    background-color: rgba(255, 255, 255, 0.12);
}

.project-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
}

.project-card, .gallery-card {
    /* Glassmorphism styling */
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px;
    border: 1px solid rgba(233, 236, 239, 0.6);
    border-radius: 4px;
    overflow: hidden;
}


.project-card h3, .gallery-card-info h3 { 
    font-size: 1.15rem; 
    font-weight: 500; 
    color: #212529; 
    margin-bottom: 5px; 
}

.project-card p, .gallery-card-info p { 
    color: #6c757d; 
    font-size: 0.92rem; 
}

.project-img {
    width: 100%; 
    max-width: 100%; 
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.3);
    display: block;
    margin-bottom: 15px;
    border-radius: 2px;
    cursor: pointer;
}

.project-img {
  outline: none;
  user-select: none;
}

.project-img:focus, 
.project-img:active {
  transform: none !important;
}

.project-img {
  -webkit-user-drag: none;
  user-select: none;
}


/* ==========================================================================
   Modals & Full-Screen Overlays
   ========================================================================== */
.full-screen-modal {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    z-index: 2500;
    background-image: url('../images/bg-img1.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.full-screen-modal.active { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.modal-content { 
    max-width: 850px; 
    width: 100%; 
    margin: auto; 
    color: #212529;
    font-size: 1.27rem;   
}

.modal-close-btn { 
    position: absolute; 
    top: 25px; 
    right: 35px; 
    background: transparent; 
    border: none; 
    font-size: 40px; 
    cursor: pointer; 
}


/* ==========================================================================
   Lightbox Gallery View
   ========================================================================== */
.lightbox {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s ease;
    z-index: 3500;
}

.lightbox.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.lightbox-img { 
    max-width: 90vw; 
    max-height: 80vh; 
    object-fit: contain; 
}

#lightbox-title { 
    color: #ffffff; 
    font-size: 0.95rem; 
    text-align: center; 
    margin-top: 10px; 
}

.lightbox-hint { 
    color: #adb5bd; 
    font-size: 0.8rem; 
    text-align: center; 
    margin-top: 4px; 
}

.close-btn { 
    position: absolute; 
    top: 25px; 
    right: 35px; 
    color: #fff; 
    font-size: 40px; 
    cursor: pointer; 
}

.nav-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #939596; 
    font-size: 40px; 
    cursor: pointer; 
    padding: 20px; 
      -webkit-user-select: none; /* Safari / macOS */
  user-select: none;
}

.prev-btn { left: 30px; } 
.next-btn { right: 30px; }


body.lightbox-open {
    overflow: hidden;
    height: 100vh;
}

/* ==========================================================================
   Footer & Back-To-Top Button
   ========================================================================== */
footer { 
    text-align: center; 
    padding: 25px; 
    color: #6c757d; 
    font-size: 0.8rem; 
    background-color: rgba(255, 255, 255, 0.65); 
}

.back-to-top {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 999;
    background-color: #212529; 
    color: #ffffff; 
    border: none; 
    border-radius: 50%;
    width: 44px; 
    height: 44px; 
    font-size: 20px; 
    cursor: pointer;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.show { 
    opacity: 1; 
    visibility: visible; 
}


/* ==========================================================================
   Standalone Project Pages & Hubs
   ========================================================================== */
.standalone-project-section {
    padding: 40px 8% 8% 8%;
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
}

.standalone-project-container {
    max-width: 900px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 30px;
    border: 1px solid rgba(233, 236, 239, 0.8);
    border-radius: 4px;
}

.standalone-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
    background-color: #ffffff;
    border-radius: 2px;
    overflow: hidden;
}

.standalone-main-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.standalone-text-content h2 {
    font-size: 1.35rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.standalone-text-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #495057;
    margin-bottom: 30px;
}

.project-back-link a {
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #212529;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.project-back-link a:hover {
    color: #6c757d;
    border-color: #6c757d;
}

/* Gallery card wrapping adjustments */
.gallery-card a.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Interactive hover effect for standalone hub cover images */
.standalone-image-wrapper a {
    display: block;
    position: relative;
}

.standalone-image-wrapper a::after {
    content: "View Gallery →";
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(33, 37, 41, 0.85);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.standalone-image-wrapper a:hover::after {
    opacity: 1;
}

.btn-view-gallery {
    text-decoration: none;
    color: #212529;
    font-weight: 600;
    border-bottom: 2px solid #212529;
    padding-bottom: 3px;
}


/* ==========================================================================
   Series & Gallery Overview Boxes
   ========================================================================== */
.series-overview-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1700px; /* Aligned with .gallery-grid width boundary */
    margin: 50px auto 0 auto;
    padding: 0;
}

.series-overview-card {
    width: 100%;
    text-align: left;
    padding: 40px 30px;
    
    /* Signature glassmorphic box styling */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(233, 236, 239, 0.6);
    border-radius: 4px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.series-overview-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #212529;
}

.series-overview-card p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.75;
    color: #495057;
}

/* ==========================================================================
   Series Back Link
   ========================================================================== */
.series-back-link {
    margin-top: 40px;
    text-align: center;
}

.series-back-link a {
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    font-size: 0.95ln; /* Or 0.95rem to match your standard typography */
    font-size: 0.95rem;
    border-bottom: 1px solid #212529;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.series-back-link a:hover {
    color: #6c757d;
    border-color: #6c757d;
}

/* ==========================================================================
   Blog Posts & Content Formatting
   ========================================================================== */
/* Controls size and alignment for images inserted within markdown blog posts */
.post-content img {
    max-width: 600px; 
    width: 100%;       
    height: auto;
    display: block;
    margin: 30px auto; 
    border-radius: 4px;
    border: 1px solid rgba(233, 236, 239, 0.6);
}


/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .modal-content {
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) { 
    .nav-btn { 
        display: none !important; 
    } 
}