:root {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

body {
    background-color: #030406;
    color: #f1f5f9;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Fixed Canvas Grid Background */
#blueprint-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
}

/* Ambient Glow Gradients */
.ambient-glow-top {
    position: fixed;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 950px;
    height: 520px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.13) 0%, rgba(3, 4, 6, 0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: pulse-slow 8s infinite alternate ease-in-out;
}

@keyframes pulse-slow {
    0% { opacity: 0.7; transform: translateX(-50%) scale(0.96); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

/* Glass Cards with Dynamic Mouse Glow & 3D Depth */
.glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(14, 19, 29, 0.88) 0%, rgba(7, 9, 14, 0.94) 100%);
    border: 1px solid rgba(212, 175, 55, 0.16);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(650px circle at var(--mouse-x) var(--mouse-y), rgba(212, 175, 55, 0.25), transparent 60%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.58);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.92), 0 0 35px rgba(212, 175, 55, 0.15);
}

.glass-card > * {
    position: relative;
    z-index: 2;
}

/* Laser Sheen Button Effect */
.btn-laser {
    position: relative;
    overflow: hidden;
}
.btn-laser::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 70%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: rotate(25deg);
    transition: none;
}
.btn-laser:hover::after {
    left: 200%;
    transition: left 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Architectural Grid Overlay Texture */
.blueprint-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Transitions */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    transform: scale(0.92) translateY(25px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: #030406;
}
::-webkit-scrollbar-thumb {
    background: #1a2436;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* Shimmering Gold Text */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer-gold {
    background: linear-gradient(90deg, #d4af37 0%, #fff7d6 50%, #d4af37 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    animation: shimmer 5.5s linear infinite;
}

/* Accordion transition */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    opacity: 1;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #d4af37;
}
