/* ========================================= */
/* GLOBAL STYLES & VARIABLES (Tech Noir Update) */
/* ========================================= */
:root {
    --primary-color: #8684db; /* Deep Grey/Blue from style012 */
    --secondary-color: #ece91d; /* Grey accent */
    --background-dark: #fcb748; /* Very Dark Background (from style012) */
    --card-bg: #18396be8;     /* Slightly darker card background (from style012) */
    --text-light: #313232;  /* Light Grey Text (from style012) */
    --surface-color: #2f5a87; /* Used for headers/modals - slightly lighter than dark bg */
    --accent-glow: rgba(211, 15, 15, 0.4); /* The specific glow color from style012 */
    --border-radius: 8px;
}

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

body {
    font-family: 'Share Tech Mono', monospace; /* Switched to main font from style012 */
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.0;
    font-size: 1.0em;
    color: #f4ecec;
}


/* ========================================= */
/* LAYOUT FLOW ADJUSTMENTS (For Banner/Nav) */
/* ========================================= */

/* The main content needs padding to start below the fixed banner and nav elements */
main {
    padding: 80px 5%; /* Increased top padding to clear the sticky navbar, banner, and status bar */
}


/* ========================================= */
/* NAVIGATION BAR STYLING (Integrated) */
/* ========================================= */
.navbar {
    display: flex; /* CHANGED FROM 'auto' TO 'flex' */
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(218, 189, 128, 0.281);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0svb;
    height: 10svb;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgb(212, 230, 56);
    flex-direction: row-reverse; 
}


.logo {
    font-size: 1.0em;
    color: #f4ecec;
    display: flex;
    align-items: center;
    gap: 15px;
    /* NEW: Pushes the logo to the far right */
    margin-left: auto; 
}


.logo img { height: 45px; 
list-style: none;
align-items: center;
display: auto;
width: 10svb;
height: 10svb;
gap: 30px;}


.nav-links {
    list-style: none;
    display: flex;
    /* Removed fixed width (80svb) to allow wrapping */
    align-items: center; /* Added for better vertical alignment */
    height: 10svb;
    gap: 30px;
}


.nav-links li {
    padding:  0px;
}

.nav-links a {
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif; /* Use Orbitron for nav links */
    text-decoration: none;
    background: transparent !important;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    display: inline-block;
    padding: 5px 8px;
    border-radius: 40px;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(249, 210, 16, 0.917);
    border: 1px solid var(--primary-color);
    text-shadow: none;
}


/* ========================================= */
/* BANNER STYLING (Enhanced Integration) */
/* ========================================= */
.banner-container {
    width: 100%;
    height: 350px; /* Fixed height for visual impact and consistent flow */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(75, 147, 255, 0); /*#0e1010*/
}

/* Added a subtle dark overlay to integrate the banner with the tech theme */
.banner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Darkening overlay */
}

.gif-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire banner area */
    object-position: center;
    display: block;
    z-index: 1; /* Ensure image is above the overlay */
}


/* ========================================= */
/* GIF VAULT SPECIFIC STYLING (Original Content) */
/* ========================================= */

/* NEW ASSET STATUS BAR */
.asset-status {
    text-align: center;
    padding: 15px 20px;
    background-color: var(--surface-color);
    border-bottom: 3px solid rgb(144, 196, 196);
}

/* ========================================= */
/* MAIN CONTENT & GALLERY LAYOUT (UNTOUCHED) */
/* ========================================= */
main {
    padding: 40px 5%; /* Reduced top padding since the navbar is sticky */
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #ffffff;
    /* Modern underline/accent instead of a thick border */
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block; /* Makes the border only span the text width */
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
}

.gallery-container {
    /* CRITICAL: This section remains unchanged as requested by the user */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* --- GIF Card Styling (UNTOUCHED) --- */
.gif-card {
    background-color: var(--card-bg);
    border-radius: 12px; /* More rounded corners for modern feel */
    overflow: hidden;
    box-shadow: 0 20px 10px rgba(43, 12, 12, 0.397); /* Deeper, softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gif-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 50px 200px rgb(0, 164, 240); /* Enhanced hover effect */
}

/* Image display within the card - CRITICAL FOR FORMAT FLEXIBILITY */
.gif-card img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: contain; /* Keeps entire GIF visible */
}

/* Card info section (bottom) */
.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h4 {
    margin-bottom: 8px;
    font-size: 1.2em;
    color:   #fbfcf8;  /* Color Button Card Description */
    font-weight: 600;
}

.card-info p {
    margin-bottom: 25px;
    opacity: 0.7;
}

/* ========================================= */
/* BUTTONS & INTERACTIVITY (Minor color tweaks) */
/* ========================================= */
button, .download-btn {
    cursor: pointer;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius); /* Use variable for consistency */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s;
    /* Using primary color for consistency */
    background-color: var(--primary-color);
    color: rgb(28, 27, 27);                         /* Color Button Card Click */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Adjusted shadow to match dark theme */
}

button:hover, .download-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* Adjusted shadow */
}

button:active, .download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


/* ========================================= */
/* MODAL STYLING (Lightbox) - UNCHANGED */
/* ========================================= */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95); /* Very dark overlay */
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.modal-content {
    background-color: #1e1e1e; /* Matching card background for consistency */
    margin: auto;
    width: 90%;
    max-width: 1000px;
    padding: 40px;
    border-radius: 15px; /* Highly rounded corners */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8); /* Dramatic shadow */
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    cursor: pointer;
    background: none;
    border: none;
    color: #aaa; /* Subtle close icon color */
}

/* Media Display Area - FLEXIBLE HEIGHT */
.modal-media-container {
    text-align: center;
    margin-bottom: 30px;
    overflow: visible; /* Allows full height display */
}

#modal-image {          /* Full-Screen Size */
    display: block;
    width: 30%;
    height: auto;
    object-fit: contain;
}

/* Info and Download Area */
.modal-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2em;
}

#modal-description {
    margin-bottom: 30px;
    opacity: 0.9;
    padding: 10px;
    border-left: 4px solid var(--secondary-color); /* Modern accent line */
    background-color: rgba(255, 255, 255, 0.05);
}


/* ========================================= */
/* RESPONSIVE ADJUSTMENTS (Minor tweaks) */
/* ========================================= */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
        border-radius: 10px;
    }

    /* Adjusting header size for mobile */
    .logo { font-size: 1.2em; }
    .nav-links a { font-size: 2rem; padding: 10px 20px; background: transparent !important; border: none !important; box-shadow: none !important; color: #ffffff !important; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

    /* Mobile navigation menu styling */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display:none;
        z-index: 1100;
        background: rgba(0, 0, 0, 0.3); /* Very light overlay to let blur shine */
        backdrop-filter: blur(40px) !important;
        -webkit-backdrop-filter: blur(40px) !important;
    }
    .nav-links.open {
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        animation: rollingBackground 6s linear infinite;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(236, 233, 29, 0.3), rgba(255, 255, 255, 0.2));
        background-size: 100% 200%;
    }

    /* Rolling in animation for links */
    .nav-links.open li {
        animation: rollingIn 0.6s ease-out forwards;
        opacity: 0;
    }

    .nav-links.open li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.open li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.open li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.open li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.open li:nth-child(5) { animation-delay: 0.5s; }
    .nav-links.open li:nth-child(6) { animation-delay: 0.6s; }

    @keyframes rollingBackground {
        from { background-position: 0% 50%; }
        to { background-position: 0% -50%; }
    }

    @keyframes rollingIn {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    /* Hide default nav links for desktop; they already show by default in non-mobile */
}