/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette */
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --primary-gold: #947336;
    --primary-gold-light: #b8934a;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    --accent-blue: #3498db;
    --gradient-gold: linear-gradient(135deg, #947336 0%, #d4af37 100%);
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --nav-height: 80px;
    --border-light: rgba(255,255,255,0.05);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff; }
p { color: var(--text-muted); }

.gold-text { color: var(--primary-gold); }
.gold-gradient { 
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }

/* =========================================
   2. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s;
    border-bottom: 1px solid var(--border-light);
    background: rgba(15, 15, 15, 0.8); /* Slight tint by default */
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.brand { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 10px; color: #fff; }
.brand .tagline { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); margin-left: 10px; border-left: 1px solid #333; padding-left: 10px; }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: 0.3s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-gold); }

.nav-actions { display: flex; gap: 15px; align-items: center; }

/* New: Gold logo in top-right */
.nav-logo-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-dg-logo {
    height: 54px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.nav-dg-logo:hover {
    filter: brightness(1.15);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* HAMBURGER MENU ICON (Default State) */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Must be above the slide-out menu */
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    display: inline-block;
    cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(148,115,54,0.4); }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-secondary:hover { background: var(--primary-gold); color: #000; }

.btn-large { padding: 14px 32px; font-size: 1.1rem; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-outline:hover { background: var(--primary-gold); color: #000; }

/* =========================================
   4. HERO - Improved Premium Version
   ========================================= */
.hero-enhanced {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10,10,15,0.82), rgba(10,10,15,0.92)),
                url('https://images.unsplash.com/photo-1503387762-592deb58baa4?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    padding-top: calc(var(--nav-height) + 40px); /* Ensures content starts below navbar */
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,15,21,0.78), rgba(20,20,30,0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}

.hero-lead, .hero-sub {
    font-size: 1.35rem;
    margin: 1.6rem 0 2.8rem;
    color: #e5e5e5;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 2.5rem 0 3.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--primary-gold);
    line-height: 1;
    display: block;
}

.stat-item .label {
    font-size: 1.05rem;
    color: #bbb;
    margin-top: 0.5rem;
    display: block;
}

/* =========================================
   5. FLOATING CTA
   ========================================= */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta .btn-primary {
    padding: 14px 34px;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(148,115,54,0.35);
}

/* =========================================
   6. PUSH CONTENT BELOW FIXED NAVBAR (global fix)
   ========================================= */
body > *:first-child:not(.navbar) {
    padding-top: calc(var(--nav-height) + 20px);
}

/* =========================================
   7. GENERAL COMPONENTS (Cards, Grids, Etc)
   ========================================= */
.glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.wide-card { max-width: 1000px; margin: 0 auto; }

.portal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.portal-text h2 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.portal-text h3 { font-size: 1.6rem; color: var(--primary-gold); margin-bottom: 1rem; }

.phone-mockup {
    background: #111;
    border-radius: 40px;
    padding: 10px;
    border: 8px solid #222;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.screen-header {
    background: #222;
    color: #aaa;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 20px 20px 0 0;
}

.screen-body {
    padding: 20px;
    background: #000;
    min-height: 300px;
}

.msg-bubble {
    background: #222;
    color: white;
    padding: 12px 18px;
    border-radius: 20px;
    margin: 10px 0;
    max-width: 80%;
}

.msg-bubble.system {
    background: var(--primary-gold);
    color: #000;
    align-self: flex-start;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary-gold);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.software-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.logo-display {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-align: center;
    opacity: 0.8;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bento-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bento-card.large { grid-column: span 2; }
.bento-card.wide { grid-column: span 2; }

.feature-tag {
    background: var(--primary-gold);
    color: #000;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 1rem;
}

.mini-visual {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    margin-top: 1rem;
}

.app-row {
    background: #222;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    text-align: center;
}

/* Footer */
footer { background: #000; padding-top: 80px; border-top: 1px solid #222; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-col h4 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.creator { color: var(--primary-gold); font-size: 0.9rem; margin-bottom: 15px; font-weight: 600; }
.footer-col h5 { color: #fff; margin-bottom: 20px; font-size: 1rem; }
.footer-col a { display: block; color: #666; text-decoration: none; margin-bottom: 10px; transition: 0.3s; font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary-gold); }
.bottom-bar { text-align: center; padding: 20px; border-top: 1px solid #111; color: #444; font-size: 0.8rem; }

/* =========================================
   8. MOBILE RESPONSIVE & ANIMATIONS
   ========================================= */

@media (max-width: 1024px) {
    .container { width: 95%; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card.wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    /* 1. RESET NAV CONTAINER FOR MOBILE */
    .nav-container {
        position: relative;
    }

    /* 2. SHOW HAMBURGER BUTTON */
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 0;
    }

    /* 3. HIDE DESKTOP ACTIONS/LOGO */
    .nav-actions, .nav-logo-right { 
        display: none; 
    }

    /* 4. MOBILE MENU DRAWER STYLE */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen to the right */
        width: 75%;   /* Width of the drawer */
        height: 100vh;
        background-color: #0f0f0f; /* Solid dark background */
        padding-top: 100px; /* Push links down below close button area */
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.8);
        z-index: 1000;
        gap: 0; /* Reset flex gap */
        border-left: 1px solid var(--primary-gold);
    }

    /* 5. ACTIVE STATE (SLIDE IN) */
    .nav-links.active {
        right: 0;
    }

    /* 6. LINK STYLING */
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    /* 7. ANIMATE HAMBURGER TO 'X' */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* 8. GENERAL LAYOUT ADJUSTMENTS */
    .hero-grid, .portal-content, .software-row { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-visual { display: none; }
    .portal-text { padding-right: 0; margin-bottom: 40px; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.large, .bento-card.wide { grid-column: span 1; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    
    .feature-text, .feature-visual { width: 100%; }
    .feature-row, .feature-row.reverse { flex-direction: column; }
    .feature-visual { height: 300px; margin-top: 30px; }
}
/* =========================================
   FIX: Hide Mobile Login Link on Desktop
   ========================================= */
.mobile-only-link {
    display: none; /* Hidden by default on desktop */
}

@media (max-width: 768px) {
    .mobile-only-link {
        display: block; /* Show only on mobile */
    }
}
/* --- LOGO STYLES (Add this to the bottom of style.css) --- */
.main-logo-img {
    height: 50px;       /* Sets the height (adjust if you want it bigger) */
    width: auto;        /* Keeps the aspect ratio correct */
    vertical-align: middle;
}

/* Mobile Adjustment (Shrinks it slightly for phones) */
@media (max-width: 768px) {
    .main-logo-img {
        height: 40px;
    }
}