:root {
    --neon-gold: #ffeb3b;
    --neon-purple: #a855f7;
    --dark-bg: #050505;
    --glass: rgba(255, 255, 255, 0.05);
}

body { 
    background-color: var(--dark-bg); 
    color: #ffffff; 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    padding: 0;
    overflow-x: hidden;
}

/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    box-sizing: border-box;
    z-index: 1000;
}

.nav-logo {
    color: var(--neon-gold);
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    text-shadow: 0 0 10px var(--neon-gold);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.nav-links { 
    display: flex; 
    gap: 30px; 
    align-items: center;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
}

/* Apply hover effect to popup triggers in the navbar */
.nav-links .popup:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.nav-links a:hover { 
    color: var(--neon-purple); 
    text-shadow: 0 0 10px var(--neon-purple); 
}

/* --- Hero Banner Section --- */
.hero-banner {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(5,5,5,1)), 
                url('../media/RustyByte_webbanner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px 0 20px;
    border-bottom: 2px solid var(--neon-purple);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.logo-glow { 
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--neon-gold); 
    text-shadow: 0 0 30px var(--neon-gold); 
    margin: 0; 
    font-weight: 900;
    letter-spacing: -2px;
}

.h1-glow { 
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--neon-purple); 
    text-shadow: 0 0 15px var(--neon-purple); 
    margin-top: -10px;
    font-weight: 300;
}


/* --- SHARED HOVER LOGIC --- */
.rustybyte-bio, .card, .cta-section {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 15px;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4); 
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out, border-color 0.4s ease-in-out;
}

.rustybyte-bio:hover, .card:hover, .cta-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.7);
    border-color: var(--neon-purple); 
}

/* Bio Styling */
.rustybyte-bio {
    padding: 30px;
    font-style: italic;
    color: #eee;
    line-height: 1.8;
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.rustybyte-bio .highlight {
    color: var(--neon-gold);
    font-weight: normal; 
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
    font-style: italic;
}

/* Main Titles */
.logo-glow, .nav-logo {
    color: var(--neon-gold) !important;
}

/* --- Card Grid --- */
.card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 40px; 
    margin-bottom: 60px;
}

.card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.image-placeholder { 
    height: 300px;
    background-color: #111; 
    background-size: cover; 
    background-position: center; 
}

.card-text { padding: 25px; }

.card-title {
    color: var(--neon-gold); 
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* --- Action Area (CTA Box) --- */
.cta-section {
    background: linear-gradient(rgba(107, 33, 168, 0.8), rgba(0, 0, 0, 0.9)), 
                url('../media/RustyByte_webbanner.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    border-radius: 30px;
    text-align: center;
    box-sizing: border-box;
}

/* --- THE BUY BUTTON --- */
.buy-btn {
    text-decoration: none; /* This removes the underline */
    background: var(--neon-gold);
    color: #000;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px var(--neon-gold);
    max-width: 100%;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    transform: scale(1.1);
    background-color: #ffffff;
    box-shadow: 0 0 40px var(--neon-gold);
    filter: brightness(1.2);
}

/* --- POPUP --- */
.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #ccc; 
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    line-height: normal;
    vertical-align: middle;
}

.popup:hover .buy-btn {
    transform: scale(1.1);
    background-color: #ffffff;
    box-shadow: 0 0 40px var(--neon-gold);
    filter: brightness(1.2);
}

/* The actual popup text (Coming Soon..) */
.popup .popuptext {
    visibility: hidden;
    width: 120px;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    
    /* Default position (below for nav links) */
    top: 150%; 
    left: 50%;
    transform: translateX(-50%);
    
    border: 1px solid var(--neon-purple);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-transform: none; /* Keep text natural case */
}

/* Specialized positioning for the Buy Button Popup */
.cta-section .popup .popuptext {
    top: auto;
    bottom: 130%;
}

/* Toggle visibility */
.popup .popuptext.show {
    visibility: visible;
    opacity: 1;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { gap: 15px; }
    .nav-logo { font-size: 1.2rem; }
    .nav-logo img { height: 35px; }
    .card-grid { gap: 25px; }
    .image-placeholder { height: 250px; }
    .cta-section { padding: 50px 15px; }
}

footer { text-align: center; padding: 50px 0; opacity: 0.3; font-size: 0.8rem; letter-spacing: 2px; }

/* Fix for the CTA section specifically */
.cta-section .popup {
    display: inline-block;
    width: auto;
}

/* Ensure the button scales when the wrapper is hovered */
.popup:hover .buy-btn {
    transform: scale(1.1);
    background-color: #ffffff;
    box-shadow: 0 0 40px var(--neon-gold);
    filter: brightness(1.2);
}

/* Adjust popup position so it doesn't overlap the scaled-up button */
.cta-section .popup .popuptext {
    bottom: 140%; /* Moved slightly higher to clear the scaled button */
    top: auto;
    left: 50%;
    transform: translateX(-50%);
}