/* Modular Vegas Template Layout Stylesheet */

/* ---------------------------------------------------- */
/* GLOBAL VARIABLES & CONFIGURATION                     */
/* ---------------------------------------------------- */
:root {
    --primary-color: #dfb479; /* Primary Accent Color (Gold/Beige) */
}

/* ---------------------------------------------------- */
/* HTML & BODY RESET (PROPORTIONAL SCALING ENGINE)      */
/* ---------------------------------------------------- */
html {
    font-size: 14px; /* ROOT BASE FONT SIZE - Modify this single value to scale the entire project proportionally */
    background-color: #070707;
}

*, *::before, *::after {
    font-family: 'Fira Sans', sans-serif !important;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: transparent;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------- */
/* VEGAS DOT GRID OVERLAY                               */
/* ---------------------------------------------------- */
.vegas-custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Sit directly above background slideshow, below text overlays */
    pointer-events: none;
    background-image: radial-gradient(rgba(0, 0, 0, 0.22) 1.1px, transparent 1.1px);
    background-size: 3.5px 3.5px;
    background-color: rgba(0, 0, 0, 0.08); /* Subtle dark grid lens */
    transition: opacity 0.4s ease;
}

/* ---------------------------------------------------- */
/* FIXED TEMPLATE LAYOUT ENGINE (DESKTOP)               */
/* ---------------------------------------------------- */

/* Top Area: Logo & Navigation */
.template-top {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;
}

/* Left Area: Ads / Extra Widgets */
.template-left {
    position: fixed;
    bottom: 30px; /* Aligns container symmetric with template-right */
    left: 60px;   /* Aligns container symmetric with template-right */
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Custom QR Code stamp styling */
.qr-container {
    background-color: #ffffff; /* High contrast white for maximum scanner compatibility */
    border: 3px solid #000000;
    padding: 6px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
}

.qr-container:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.qr-image {
    width: 90px;
    height: 90px;
    display: block;
}

/* Right Area: Main Headings, description, buttons */
.template-right {
    position: fixed;
    bottom: 30px; /* Aligns container nicely to the bottom corner */
    right: 60px;
    z-index: 90;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    box-sizing: border-box;
}

/* Standard consistent margin spacing engine for main column children */
.template-right > * {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.template-right > *:last-child {
    margin-bottom: 0 !important;
}

/* Bottom Area: Footer & Copyright (Kept for layout compatibility) */
.template-bottom {
    display: none;
}

/* ---------------------------------------------------- */
/* COMPONENT STYLES                                     */
/* ---------------------------------------------------- */

/* Header Box */
.jay-header {
    height: 44px;
    background-color: #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

/* Hamburger button */
.jay-btn {
    background: none;
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border-right: 1px solid #1c1c1c;
    opacity: 0.95;
}

/* Profile / Logo link */
.jay-profile-link {
    display: flex;
    align-items: center;
    padding: 0 15px;
    text-decoration: none;
    border-right: 1px solid #1c1c1c;
    height: 100%;
    transition: background-color 0.2s ease;
}

.jay-profile-link:hover {
    background-color: #111111;
}

.jay-name {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.jay-name .text-muted {
    color: #7f7f7f !important;
}

.online-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.8);
}

/* Social icons */
.jay-socials {
    display: flex;
    align-items: center;
    height: 100%;
}

.jay-social-icon {
    color: #7f7f7f;
    min-width: 44px;
    height: 44px;
    padding: 0 16px; /* Dynamically scale spacing for text strings like GitHub or Email */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-right: 1px solid #1c1c1c;
    transition: all 0.2s ease;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.jay-social-icon:hover {
    color: #ffffff;
    background-color: #111111;
}

.jay-social-icon:last-child {
    border-right: none;
}

/* Standard SVG Feather Icon Sizing */
svg.feather {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

.jay-btn svg.feather {
    width: 20px;
    height: 20px;
}

.modal-close-btn svg.feather {
    width: 18px;
    height: 18px;
    stroke-width: 3; /* Slightly bolder close symbol */
}

/* Logo Header Style */
.vegas-logo-container {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
}

.vegas-title-logo {
    font-size: 7.0rem; /* Lowered from 8.5rem for root proportionality */
    font-weight: 900;
    letter-spacing: -5px;
    color: #ffffff;
    margin: 0;
    line-height: 0.8;
}

/* Sub-description Paragraph styling */
.sub-description-text {
    font-size: 0.95rem; /* Lowered from 1.05rem */
    line-height: 1.6;
    color: #cccccc;
    max-width: 480px;
    margin-left: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    padding: 12px 18px;
    text-align: right;
}

/* Outlined black block title */
.vegas-subtitle-text {
    line-height: 1.25;
}

.bg-black-outlined {
    background-color: #000000;
    color: #ffffff;
    font-size: 2.0rem; /* Lowered from 2.5rem */
    font-weight: 900;
    letter-spacing: 3px;
    padding: 6px 16px;
    margin-top: 4px;
    display: inline-block;
}

/* Meta Bar */
.info-bar-box {
    display: inline-block;
    background-color: #000000;
    color: #7f7f7f;
    font-size: 0.65rem; /* Lowered from 0.72rem */
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 12px;
    border: 1px solid #1c1c1c;
}

/* Stacked CTA Buttons */
.cta-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    width: 100%;
}

.cta-block-btn {
    display: table; /* Shrinks the element width to exactly wrap the text contents */
    background-color: #000000;
    color: #ffffff;
    font-size: 1.45rem; /* Lowered from 1.82rem */
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 10px 18px;
    text-decoration: none;
    border: 2px solid #000000;
    transition: all 0.15s ease-in-out;
}

.cta-block-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Color Highlight text beige/gold */
.highlight-text {
    color: var(--primary-color);
    transition: color 0.15s ease-in-out;
}

.cta-block-btn:hover .highlight-text {
    color: #000000; /* Invert highlight text to black on hover */
}

/* Info bands at bottom */
.info-mini-bands {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Spacing between footer lines */
    align-items: flex-end;
}

.mini-bar {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.45); /* Same translucent background as description text */
    backdrop-filter: blur(4px);
    color: #cccccc; /* Same color as description text */
    font-size: 0.95rem; /* Matches description font size perfectly */
    font-weight: 400; /* Same weight as description text */
    padding: 12px 18px; /* Same padding as description text for exact visual standardization */
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------- */
/* CUSTOM AGENCY OFFCANVAS DRAWER STYLING               */
/* ---------------------------------------------------- */
.custom-agency-offcanvas {
    --bs-offcanvas-bg: rgba(10, 10, 10, 0.98) !important;
    --bs-offcanvas-color: #ffffff !important;
    background-color: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border-left: 3px solid var(--primary-color) !important; /* Gold top-border accent shifts to the left side edge */
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9) !important;
    width: 500px !important; /* Generous editorial reading layout */
    z-index: 1050 !important;
}

.custom-agency-offcanvas .offcanvas-header {
    padding: 24px 25px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

/* Modal Title Badge - exactly like slogan block badge */
.modal-title-badge {
    background-color: #000000;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 6px 16px;
    display: inline-block;
    border: 2px solid #000000;
}

/* Custom modal close button */
.modal-close-btn {
    background-color: #000000;
    border: 1px solid #222222;
    color: #ffffff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.modal-close-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.custom-agency-offcanvas .offcanvas-body {
    padding: 25px;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Outlined dark cards inside modal */
.modal-info-card {
    background-color: #000000;
    border: 1px solid #222222;
    padding: 20px 24px;
    margin-bottom: 20px;
    transition: all 0.22s ease-in-out;
}

.modal-info-card:hover {
    border-color: var(--primary-color); /* Gold accent on hover */
    box-shadow: 0 4px 20px rgba(223, 180, 121, 0.06);
}

.card-meta {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.card-number {
    color: var(--primary-color);
}

.card-badge {
    background-color: #111111;
    border: 1px solid #222222;
    color: #888888;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 900;
    margin-top: 6px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-desc {
    font-size: 0.85rem;
    color: #b5b5b5 !important;
    line-height: 1.6;
}

.card-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background-color: #050505;
    border: 1px solid #1a1a1a;
    color: var(--primary-color);
    padding: 3px 8px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.form-input-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 6px;
    display: block;
}

.custom-agency-offcanvas h6 {
    font-size: 1.0rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Brighten all text, muted classes and list items for visual harmony & high readability */
.custom-agency-offcanvas p,
.custom-agency-offcanvas .text-muted,
.custom-agency-offcanvas ul,
.custom-agency-offcanvas ol,
.custom-agency-offcanvas li {
    color: #d1d1d1 !important;
    font-weight: 400;
}

.custom-agency-offcanvas li strong {
    color: #ffffff !important;
}

/* Custom form fields inside modals */
.custom-modal-input {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #444444 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 12px 15px !important;
    font-family: 'Fira Sans', sans-serif !important;
    font-size: 0.85rem !important;
}

.custom-modal-input::placeholder {
    color: #888888 !important;
}

.custom-modal-input:focus {
    background-color: #050505 !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

/* Standardized modal submit button matching .cta-block-btn */
.custom-modal-submit {
    display: block; /* Full width */
    background-color: #000000;
    color: #ffffff;
    font-size: 1.45rem; /* Matches .cta-block-btn */
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 10px 18px;
    text-decoration: none;
    border: 2px solid #000000;
    transition: all 0.15s ease-in-out;
    width: 100%;
    text-align: center;
    border-radius: 0 !important;
}

.custom-modal-submit:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* ---------------------------------------------------- */
/* RESPONSIVENESS AND MOBILE ADAPTATION                 */
/* ---------------------------------------------------- */

@media (max-width: 767.98px) {
    
    /* Scale down the entire project's font layout dynamically! */
    html {
        font-size: 11px; /* Proportional scaling down for mobile viewports */
    }
    
    /* Header stretching 100% and aligned top 0 on mobile */
    .template-top {
        top: 0;
        left: 0;
        width: 100%;
        height: 44px;
    }
    
    .jay-header {
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }
    
    .jay-profile-link {
        padding: 0 10px;
        flex: 1;
    }

    /* Left Area (Widget box position adjustment) */
    .template-left {
        position: fixed;
        bottom: 15px;
        left: 15px;
        top: auto;
        width: auto;
        z-index: 90;
    }
    
    .qr-container {
        padding: 4px;
    }
    
    .qr-image {
        width: 65px;
        height: 65px;
    }
    
    /* Align elements to the bottom-right on mobile viewports */
    .template-right {
        position: fixed;
        bottom: 50px;
        right: 15px;
        left: 15px;
        width: calc(100% - 30px);
        align-items: flex-end;
        justify-content: flex-end;
    }
    
    .template-bottom {
        position: fixed;
        bottom: 10px;
        right: 15px;
        left: 15px;
        width: calc(100% - 30px);
    }
    
    .vegas-title-logo {
        font-size: 5.0rem; /* Proportional adjustment */
        letter-spacing: -3px;
        line-height: 0.85;
    }
    
    .bg-black-outlined {
        font-size: 1.3rem;
        letter-spacing: 2px;
        padding: 4px 10px;
    }
    
    .info-bar-box {
        margin-bottom: 12px !important;
    }
    
    .sub-description-text {
        max-width: 100%;
        padding: 8px 12px;
        margin-bottom: 12px;
    }
    
    .cta-buttons-stack {
        gap: 3px;
        margin-bottom: 12px !important;
    }
    
    .cta-block-btn {
        padding: 7px 12px;
        border-width: 1.5px;
    }
    
    .mini-bar {
        padding: 3px 8px;
    }
}
