:root {
    --bs-primary: #0ea5e9;
    --bs-primary-rgb: 14, 165, 233;
    --accent-glow: rgba(14, 165, 233, 0.25);
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-dark-glass {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ar-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
}

.btn-primary {
    background-color: #0284c7;
    border-color: #0284c7;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0369a1;
    border-color: #0369a1;
}

.form-control, .form-select {
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.form-control:focus, .form-select:focus {
    background-color: #0f172a;
    border-color: var(--bs-primary);
    color: #f8fafc;
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25);
}

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
}

.hero-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.qr-container {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.qr-container img, .qr-container canvas {
    margin: 0 auto;
    display: block;
}

.project-card-thumb {
    height: 180px;
    object-fit: cover;
    background-color: #090d16;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
}

.project-badge-status {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Brand Logo Styling */
.navbar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.06) rotate(-1deg);
    filter: drop-shadow(0 4px 14px rgba(251, 146, 60, 0.4));
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 40px;
    }
}

.brand-auth-logo {
    height: 96px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(251, 146, 60, 0.25));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-auth-logo:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 12px 28px rgba(251, 146, 60, 0.35));
}

/* Brand Domain Title in Navbar */
.brand-domain-title {
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.navbar-brand:hover .brand-domain-title {
    color: #38bdf8 !important;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

/* 3D Hero Stage Container */
.hero-3d-stage {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.85) 75%), #0b1329;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(14, 165, 233, 0.2);
    overflow: hidden;
    touch-action: none;
}

.hero-3d-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.hero-3d-canvas:active {
    cursor: grabbing;
}

/* 3D Controls Floating Bar */
.hero-3d-controls {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 10;
}

/* AR Scanner Laser Effect */
.ar-scanner-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: 12px;
}

.ar-scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0) 0%, rgba(6, 182, 212, 1) 50%, rgba(6, 182, 212, 0) 100%);
    box-shadow: 0 0 15px #06b6d4, 0 0 30px #06b6d4;
    animation: arLaserSweep 2.6s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 5;
}

@keyframes arLaserSweep {
    0% { top: 3%; opacity: 0.85; }
    50% { opacity: 1; }
    100% { top: 97%; opacity: 0.85; }
}

/* HUD Corner Brackets */
.hud-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #06b6d4;
    border-style: solid;
    pointer-events: none;
    z-index: 6;
}
.hud-corner-tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.hud-corner-tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.hud-corner-bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.hud-corner-br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* Pulse Online Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 3D Depth Card Hover */
.card-3d-hover {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-3d-hover:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(14, 165, 233, 0.2);
    border-color: rgba(56, 189, 248, 0.4) !important;
}
