/* Sacred Quantum Alignment - Main Stylesheet */

/* CSS Variables */
:root {
    --bg-black: #000000;
    --bg-dark-gray: #1A1A1A;
    --accent-blue: #00FFFF;
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
    --border-blue: #00FFFF;
    --shadow-blue: rgba(0, 255, 255, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 300;
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Hero title base size */
.hero h1,
.hero h1.hero-title,
.hero .mystical-text.hero-title {
    font-size: 4rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--accent-blue);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Performance optimizations */
    contain: layout style;
    will-change: auto;
}

/* Navbar - toujours au-dessus du hero/vidéo (stacking garanti) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-black);
    padding: 1rem 0;
    z-index: 10000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    isolation: isolate;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    pointer-events: auto !important;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
}

.navbar-brand-text {
    display: inline;
}

.navbar-brand-short {
    display: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-nav a {
    color: var(--text-white);
    font-weight: 400;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-nav a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue);
}

.navbar-nav a.nav-active {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    border-bottom: 2px solid rgba(255, 215, 0, 0.6);
    padding-bottom: 0.3rem;
}

.navbar-btn {
    background: var(--accent-blue) !important;
    color: var(--bg-black) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.navbar-btn:hover {
    background: var(--text-white) !important;
    color: var(--bg-black) !important;
    transform: scale(1.05);
    text-shadow: none !important;
}

/* Hamburger Menu - au-dessus du menu déroulant pour rester cliquable */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 10002;
    position: relative;
    pointer-events: auto;
    touch-action: manipulation;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

/* Hero Section - z-index bas pour rester sous la navbar */
.hero {
    min-height: auto;
    height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 0;
    padding-top: 60px;
    margin-bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%);
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px),
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-sizing: border-box;
}

/* Video and overlay moved to hero section for full width */
.hero-video-full {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 100%;
    height: 400px;
    min-width: 100%;
    z-index: 0;
    object-fit: cover;
    object-position: center center;
}

/* Image fallback - same dimensions as video, behind video */
.hero-image-fallback {
    z-index: -1;
    display: block;
}

#hero-video {
    top: 500px;
    height: 650px;
}

.hero-video-overlay-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.hero-content video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}

.hero-text-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-description {
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
}

.hero h1,
.hero h1.hero-title,
.hero .mystical-text.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--text-white) 0%, var(--accent-blue) 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    /* Animation removed for better performance */
}

.hero p,
.hero .hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background: var(--accent-blue);
    color: var(--bg-black);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background: var(--text-white);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--shadow-blue);
}

/* Sacred Numbers Overlay */
.sacred-numbers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    font-size: 15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    pointer-events: none;
    color: var(--accent-blue);
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    /* Animation removed for better performance */
}

/* Cards */
.card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--border-blue);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* Simplified transition */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(10px);
    /* Performance optimizations */
    contain: layout style paint;
    will-change: auto;
    transform: translateZ(0); /* GPU acceleration */
    backface-visibility: hidden;
}

.card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px var(--shadow-blue), 0 0 60px rgba(0, 255, 255, 0.1);
    /* Transform removed for better performance */
}

.card.with-text {
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 0 20px rgba(255, 215, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 2rem;
    padding-bottom: 3rem; /* Espace pour l'ornement et le bouton */
    text-align: left;
}

.card.with-text::before {
    content: '✦';
    position: absolute;
    top: -15px;
    left: 20px;
    color: #FFD700;
    font-size: 2rem;
    opacity: 0.6;
    /* Animation removed for better performance */
    z-index: 1;
}

.card.with-text::after {
    content: '✦';
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: #FFD700;
    font-size: 1.5rem;
    opacity: 0.4;
    /* Animation removed for better performance */
    z-index: 1;
    pointer-events: none;
}

.card.with-text h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    flex-shrink: 0;
    text-align: center;
    color: var(--text-white);
}

.card.with-text p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.7;
    color: var(--text-gray);
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0;
    margin-top: 0.5rem;
}

.card.with-text ul {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card.with-text .btn {
    margin-top: auto;
    align-self: center;
    width: auto;
    min-width: 200px;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    /* Performance optimizations */
    contain: layout;
    will-change: auto;
}

.card-grid .card {
    display: flex;
    flex-direction: column;
    min-height: auto;
    height: auto;
}

.result-card {
    min-height: auto !important;
    height: auto !important;
    padding: 1.5rem !important;
}

/* Result Card Hover Effect */
.result-card:hover {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 30px var(--shadow-blue), 0 0 60px rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
    background: rgba(0, 255, 255, 0.1) !important;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--shadow-blue);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--bg-black);
}

.btn-primary:hover {
    background: var(--text-white);
    color: var(--bg-black);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--bg-black);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger {
    background: #dc3545;
    color: var(--text-white);
}

.btn-danger:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Sections */
.section {
    padding: 10px 0;
    /* Performance optimizations */
    contain: layout style;
    will-change: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Footer */
.footer {
    background: var(--bg-black);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.social-links a {
    color: var(--text-white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-blue);
    transform: scale(1.2);
}

/* Dashboard */
.dashboard {
    padding-top: 100px;
    min-height: 100vh;
}

.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 250px;
    height: calc(100vh - 80px);
    background: rgba(26, 26, 26, 0.95);
    border-right: 1px solid rgba(0, 255, 255, 0.3);
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.dashboard-sidebar nav {
    list-style: none;
}

.dashboard-sidebar nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-white);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active {
    background: rgba(0, 255, 255, 0.15);
    border-left-color: var(--accent-blue);
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.dashboard-content {
    margin-left: 250px;
    padding: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-gray);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(26, 26, 26, 0.8);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.table th {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-blue);
    font-weight: 600;
}

.table tr:hover {
    background: rgba(0, 255, 255, 0.05);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.alert-info {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    color: var(--accent-blue);
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.oauth-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(26, 26, 26, 0.8);
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.oauth-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 255, 255, 0.1);
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    /* Navbar Mobile - au-dessus du hero/vidéo */
    .navbar {
        z-index: 10000 !important;
    }
    .hamburger {
        display: flex !important;
        z-index: 10002 !important;
        position: relative !important;
        pointer-events: auto !important;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand-text {
        display: none;
    }
    
    .navbar-brand-short {
        display: inline;
    }
    
    .navbar-brand img {
        height: 40px !important;
        width: 40px !important;
    }
    
    .navbar-nav {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: calc(100vh - 70px) !important;
        min-height: 200px !important;
        background: var(--bg-black) !important;
        flex-direction: column !important;
        padding: 2rem 0 !important;
        transition: left 0.25s ease-out, visibility 0.25s, opacity 0.25s !important;
        border-top: 1px solid rgba(0, 255, 255, 0.2) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 10001 !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.8) !important;
        flex-wrap: nowrap !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav.active {
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .navbar-nav li {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10001 !important;
        list-style: none !important;
    }
    
    .navbar-nav a {
        display: block !important;
        padding: 1rem 2rem !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 255, 255, 0.1) !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        color: var(--text-white) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 10001 !important;
        position: relative !important;
    }
    
    .navbar-nav a.navbar-btn {
        margin: 1rem 2rem;
        width: calc(100% - 4rem);
        text-align: center;
    }
    
    /* Hero Section Mobile - image et vidéo pleine zone, vidéo au-dessus de l'image */
    .hero {
        height: auto !important;
        min-height: 70vh;
        padding-top: 80px;
        position: relative;
        overflow: hidden;
    }
    
    .hero .hero-image-fallback {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        z-index: 0 !important;
    }
    
    .hero .hero-video-full {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: none !important;
        z-index: 1 !important;
    }
    
    #hero-video.hero-video-full {
        z-index: 1 !important;
    }
    
    .hero .hero-video-overlay-full {
        height: 100% !important;
        z-index: 2 !important;
    }
    
    .hero h1,
    .hero h1.hero-title,
    .hero .mystical-text.hero-title {
        font-size: 1.8rem !important;
        padding: 0 1rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto 1rem !important;
        text-align: center !important;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
        max-width: 100% !important;
        width: auto !important;
    }
    
    .hero-content {
        height: auto !important;
        padding: 2rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .hero-text-content {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 1rem !important;
    }
    
    .hero-description {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1.05rem !important;
        padding: 0.75rem 1rem !important;
        color: #ffffff !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 1), 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.6) !important;
        background: rgba(0, 0, 0, 0.35) !important;
        border-radius: 8px !important;
        line-height: 1.6 !important;
    }
    
    /* Première section sous le hero : descendre pour ne pas cacher la vidéo */
    .hero + .section {
        margin-top: 4rem !important;
        padding-top: 2rem !important;
    }
    
    /* Cards Mobile */
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .result-card {
        min-height: auto !important;
        height: auto !important;
        padding: 1.2rem !important;
    }
    
    .result-card h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .result-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card.with-text {
        padding: 1.5rem;
        min-height: auto;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 15px;
    }
    
    /* Dashboard Mobile */
    .dashboard {
        padding-top: 80px;
    }
    
    .dashboard-sidebar {
        left: -250px;
        transition: left 0.3s ease;
        width: 200px;
        z-index: 999;
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .dashboard-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    /* Typography Mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .sacred-numbers {
        font-size: 6rem;
        gap: 1rem;
    }
    
    /* Page Header Mobile */
    .page-header-bg {
        min-height: 40vh;
        padding: 2rem 1rem;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    /* Forms Mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons Mobile */
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .navbar-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Tables Mobile */
    .table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
    }
    
    .social-links {
        gap: 1.5rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand-text {
        display: none;
    }
    
    .navbar-brand-short {
        display: inline;
    }
    
    .navbar-brand img {
        height: 35px !important;
        width: 35px !important;
        margin-right: 5px !important;
    }
    
    .hero h1,
    .hero h1.hero-title,
    .hero .mystical-text.hero-title {
        font-size: 1.5rem !important;
        padding: 0 0.5rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card.with-text {
        padding: 1rem;
    }
    
    .result-card {
        min-height: auto !important;
        height: auto !important;
        padding: 1rem !important;
    }
    
    .result-card h4 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .result-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.4rem !important;
    }
    
    .page-header-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade-in animation removed for better performance - elements display immediately */

/* Quantum Geometric Shapes Background - 3D Golden Forms */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotateX(0deg) rotateY(0deg); }
    33% { transform: translate(30px, -30px) rotateX(120deg) rotateY(120deg); }
    66% { transform: translate(-20px, 20px) rotateX(240deg) rotateY(240deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); filter: brightness(1); }
    50% { opacity: 0.4; transform: scale(1.1); filter: brightness(1.3); }
}

@keyframes rotate {
    from { transform: rotateY(0deg) rotateX(0deg); }
    to { transform: rotateY(360deg) rotateX(360deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.2), 0 0 60px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.3), 0 0 90px rgba(255, 215, 0, 0.2); }
}

/* Static background - no animations for better performance */
.quantum-bg-static {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    perspective: 1000px;
    will-change: auto; /* Optimize for static content */
    contain: strict; /* Isolate rendering */
    transform: translateZ(0); /* GPU layer */
    backface-visibility: hidden;
}

/* Complex Mandala Geometric Patterns */
.mandala-pattern {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
    contain: strict;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.mandala-pattern-1 {
    width: 600px;
    height: 600px;
    top: 10%;
    right: 5%;
    border-radius: 50%;
    filter: blur(2px);
    background: 
        radial-gradient(circle at 50% 50%, 
            rgba(255, 215, 0, 0.4) 0%,
            rgba(255, 200, 0, 0.3) 15%,
            rgba(255, 180, 0, 0.25) 30%,
            rgba(255, 160, 0, 0.2) 45%,
            rgba(255, 140, 0, 0.15) 60%,
            transparent 80%),
        repeating-conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg 8deg,
            rgba(255, 215, 0, 0.35) 8deg 12deg,
            transparent 12deg 16deg,
            rgba(255, 200, 0, 0.3) 16deg 20deg),
        repeating-conic-gradient(from 30deg at 50% 50%,
            transparent 0deg 12deg,
            rgba(255, 190, 0, 0.25) 12deg 18deg,
            transparent 18deg 24deg,
            rgba(255, 170, 0, 0.2) 24deg 30deg),
        repeating-conic-gradient(from 60deg at 50% 50%,
            transparent 0deg 20deg,
            rgba(255, 180, 0, 0.2) 20deg 25deg,
            transparent 25deg 40deg);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.mandala-pattern-2 {
    width: 500px;
    height: 500px;
    bottom: 15%;
    left: 8%;
    border-radius: 50%;
    filter: blur(1.5px);
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 220, 100, 0.38) 0%,
            rgba(255, 205, 85, 0.3) 20%,
            rgba(255, 190, 70, 0.22) 40%,
            rgba(255, 175, 55, 0.15) 60%,
            transparent 80%),
        repeating-conic-gradient(from 45deg at 50% 50%,
            transparent 0deg 9deg,
            rgba(255, 215, 0, 0.28) 9deg 15deg,
            transparent 15deg 18deg,
            rgba(255, 195, 0, 0.22) 18deg 24deg),
        repeating-conic-gradient(from 90deg at 50% 50%,
            transparent 0deg 15deg,
            rgba(255, 200, 0, 0.25) 15deg 22deg,
            transparent 22deg 30deg,
            rgba(255, 185, 0, 0.2) 30deg 36deg),
        repeating-conic-gradient(from 135deg at 50% 50%,
            transparent 0deg 36deg,
            rgba(255, 190, 0, 0.18) 36deg 45deg);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.mandala-pattern-3 {
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    border-radius: 50%;
    filter: blur(2.5px);
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 210, 90, 0.32) 0%,
            rgba(255, 195, 75, 0.24) 25%,
            rgba(255, 180, 60, 0.18) 50%,
            rgba(255, 165, 45, 0.12) 70%,
            transparent 90%),
        repeating-conic-gradient(from 60deg at 50% 50%,
            transparent 0deg 6deg,
            rgba(255, 215, 0, 0.22) 6deg 10deg,
            transparent 10deg 14deg,
            rgba(255, 200, 0, 0.18) 14deg 18deg,
            transparent 18deg 24deg),
        repeating-conic-gradient(from 120deg at 50% 50%,
            transparent 0deg 16deg,
            rgba(255, 205, 0, 0.2) 16deg 24deg,
            transparent 24deg 32deg,
            rgba(255, 185, 0, 0.15) 32deg 40deg),
        repeating-conic-gradient(from 180deg at 50% 50%,
            transparent 0deg 40deg,
            rgba(255, 195, 0, 0.16) 40deg 50deg);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.mandala-pattern-4 {
    width: 450px;
    height: 450px;
    top: 25%;
    left: 3%;
    border-radius: 50%;
    filter: blur(1.8px);
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 225, 110, 0.42) 0%,
            rgba(255, 210, 95, 0.32) 18%,
            rgba(255, 195, 80, 0.24) 35%,
            rgba(255, 180, 65, 0.16) 55%,
            transparent 75%),
        repeating-conic-gradient(from 15deg at 50% 50%,
            transparent 0deg 7deg,
            rgba(255, 215, 0, 0.32) 7deg 11deg,
            transparent 11deg 14deg,
            rgba(255, 200, 0, 0.26) 14deg 18deg),
        repeating-conic-gradient(from 75deg at 50% 50%,
            transparent 0deg 18deg,
            rgba(255, 205, 0, 0.28) 18deg 26deg,
            transparent 26deg 35deg,
            rgba(255, 190, 0, 0.22) 35deg 44deg),
        repeating-conic-gradient(from 150deg at 50% 50%,
            transparent 0deg 44deg,
            rgba(255, 195, 0, 0.24) 44deg 55deg);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.mandala-pattern-5 {
    width: 550px;
    height: 550px;
    bottom: 8%;
    right: 12%;
    border-radius: 50%;
    filter: blur(2px);
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 200, 80, 0.38) 0%,
            rgba(255, 185, 65, 0.28) 22%,
            rgba(255, 170, 50, 0.2) 45%,
            rgba(255, 155, 35, 0.12) 65%,
            transparent 85%),
        repeating-conic-gradient(from 90deg at 50% 50%,
            transparent 0deg 9deg,
            rgba(255, 215, 0, 0.3) 9deg 13deg,
            transparent 13deg 17deg,
            rgba(255, 200, 0, 0.24) 17deg 22deg),
        repeating-conic-gradient(from 150deg at 50% 50%,
            transparent 0deg 20deg,
            rgba(255, 205, 0, 0.26) 20deg 28deg,
            transparent 28deg 38deg,
            rgba(255, 190, 0, 0.2) 38deg 50deg),
        repeating-conic-gradient(from 210deg at 50% 50%,
            transparent 0deg 50deg,
            rgba(255, 195, 0, 0.22) 50deg 62deg);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.mandala-pattern-6 {
    width: 650px;
    height: 650px;
    top: 70%;
    right: 20%;
    border-radius: 50%;
    filter: blur(2.2px);
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 215, 100, 0.33) 0%,
            rgba(255, 200, 85, 0.25) 28%,
            rgba(255, 185, 70, 0.18) 55%,
            rgba(255, 170, 55, 0.1) 75%,
            transparent 95%),
        repeating-conic-gradient(from 105deg at 50% 50%,
            transparent 0deg 5deg,
            rgba(255, 215, 0, 0.24) 5deg 9deg,
            transparent 9deg 12deg,
            rgba(255, 200, 0, 0.18) 12deg 16deg,
            transparent 16deg 21deg),
        repeating-conic-gradient(from 180deg at 50% 50%,
            transparent 0deg 24deg,
            rgba(255, 205, 0, 0.2) 24deg 32deg,
            transparent 32deg 40deg,
            rgba(255, 190, 0, 0.16) 40deg 48deg,
            transparent 48deg 56deg),
        repeating-conic-gradient(from 270deg at 50% 50%,
            transparent 0deg 56deg,
            rgba(255, 195, 0, 0.18) 56deg 70deg);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.mandala-pattern-7 {
    width: 480px;
    height: 480px;
    top: 15%;
    right: 25%;
    border-radius: 50%;
    filter: blur(1.6px);
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 230, 120, 0.4) 0%,
            rgba(255, 215, 105, 0.3) 20%,
            rgba(255, 200, 90, 0.22) 40%,
            rgba(255, 185, 75, 0.14) 60%,
            transparent 80%),
        repeating-conic-gradient(from 135deg at 50% 50%,
            transparent 0deg 10deg,
            rgba(255, 215, 0, 0.28) 10deg 15deg,
            transparent 15deg 20deg,
            rgba(255, 200, 0, 0.22) 20deg 26deg),
        repeating-conic-gradient(from 210deg at 50% 50%,
            transparent 0deg 28deg,
            rgba(255, 205, 0, 0.26) 28deg 36deg,
            transparent 36deg 44deg,
            rgba(255, 190, 0, 0.2) 44deg 52deg,
            transparent 52deg 64deg),
        repeating-conic-gradient(from 285deg at 50% 50%,
            transparent 0deg 64deg,
            rgba(255, 195, 0, 0.24) 64deg 80deg);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.mandala-pattern-8 {
    width: 520px;
    height: 520px;
    bottom: 25%;
    left: 15%;
    border-radius: 50%;
    filter: blur(1.9px);
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 205, 85, 0.36) 0%,
            rgba(255, 190, 70, 0.26) 25%,
            rgba(255, 175, 55, 0.18) 50%,
            rgba(255, 160, 40, 0.1) 70%,
            transparent 90%),
        repeating-conic-gradient(from 165deg at 50% 50%,
            transparent 0deg 8deg,
            rgba(255, 215, 0, 0.26) 8deg 12deg,
            transparent 12deg 16deg,
            rgba(255, 200, 0, 0.2) 16deg 20deg),
        repeating-conic-gradient(from 240deg at 50% 50%,
            transparent 0deg 30deg,
            rgba(255, 205, 0, 0.24) 30deg 38deg,
            transparent 38deg 46deg,
            rgba(255, 190, 0, 0.18) 46deg 54deg,
            transparent 54deg 62deg,
            rgba(255, 185, 0, 0.16) 62deg 70deg),
        repeating-conic-gradient(from 315deg at 50% 50%,
            transparent 0deg 70deg,
            rgba(255, 195, 0, 0.22) 70deg 90deg);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

/* Additional geometric accent elements */
.geometric-accent {
    position: absolute;
    pointer-events: none;
    opacity: 0.12;
    z-index: 0;
    contain: strict;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.geometric-accent-1 {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 10%;
    background: conic-gradient(from 0deg,
        rgba(255, 215, 0, 0.3) 0deg,
        rgba(255, 200, 0, 0.2) 90deg,
        rgba(255, 215, 0, 0.3) 180deg,
        rgba(255, 200, 0, 0.2) 270deg,
        rgba(255, 215, 0, 0.3) 360deg);
    border-radius: 50%;
    filter: blur(1px);
}

.geometric-accent-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 8%;
    background: conic-gradient(from 45deg,
        rgba(255, 220, 100, 0.28) 0deg,
        rgba(255, 195, 0, 0.18) 120deg,
        rgba(255, 220, 100, 0.28) 240deg,
        rgba(255, 195, 0, 0.18) 360deg);
    border-radius: 50%;
    filter: blur(1.2px);
}

.geometric-accent-3 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 5%;
    background: conic-gradient(from 90deg,
        rgba(255, 210, 90, 0.25) 0deg,
        rgba(255, 185, 0, 0.15) 150deg,
        rgba(255, 210, 90, 0.25) 300deg,
        rgba(255, 185, 0, 0.15) 450deg);
    border-radius: 50%;
    filter: blur(0.8px);
}

.quantum-shape {
    position: absolute;
    opacity: 0.25;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    /* Performance optimizations */
    contain: strict;
    will-change: auto;
    transform: translateZ(0); /* GPU layer */
    backface-visibility: hidden;
}

/* Static shapes - no animations */
.quantum-bg-static .quantum-shape {
    animation: none !important;
}

/* 3D Cube */
.shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    transform-style: preserve-3d;
    /* All animations removed - completely static */
    position: relative;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), rgba(255, 200, 0, 0.5));
    border: 3px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7), inset 0 0 50px rgba(255, 215, 0, 0.4);
    transform: translate(0, 0) rotateX(15deg) rotateY(15deg);
}

.quantum-bg-static .shape-1 {
    transform: translate(0, 0) rotateX(15deg) rotateY(15deg) !important;
}

.shape-1::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 200, 0, 0.7));
    border: 3px solid rgba(255, 215, 0, 0.9);
    transform: rotateY(0deg) translateZ(60px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), inset 0 0 40px rgba(255, 215, 0, 0.3);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.shape-1::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(225deg, rgba(255, 215, 0, 0.4), rgba(255, 200, 0, 0.6));
    border: 3px solid rgba(255, 215, 0, 0.9);
    transform: rotateY(90deg) translateZ(60px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), inset 0 0 40px rgba(255, 215, 0, 0.3);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

/* 3D Sphere */
.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.6), rgba(255, 200, 0, 0.4), rgba(255, 180, 0, 0.2));
    border: 3px solid rgba(255, 215, 0, 0.8);
    /* All animations removed - completely static */
    transform: translate(0, 0);
    opacity: 0.3;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 80px rgba(255, 215, 0, 0.3),
        inset -20px -20px 40px rgba(255, 215, 0, 0.2);
}

.quantum-bg-static .shape-2 {
    transform: translate(0, 0) !important;
    opacity: 0.3 !important;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 80px rgba(255, 215, 0, 0.3),
        inset -20px -20px 40px rgba(255, 215, 0, 0.2) !important;
}

/* 3D Pyramid */
.shape-3 {
    width: 140px;
    height: 140px;
    bottom: 20%;
    left: 20%;
    transform-style: preserve-3d;
    /* All animations removed - completely static */
    transform: translate(0, 0) rotateX(-10deg) rotateY(-10deg);
}

.quantum-bg-static .shape-3 {
    transform: translate(0, 0) rotateX(-10deg) rotateY(-10deg) !important;
}

.shape-3::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid rgba(255, 215, 0, 0.6);
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.7));
    transform: rotateX(60deg) rotateY(45deg);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
}

.shape-3::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 200, 0, 0.7));
    border: 3px solid rgba(255, 215, 0, 0.9);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotateX(-90deg) translateZ(60px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), inset 0 0 40px rgba(255, 215, 0, 0.3);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

/* 3D Octahedron */
.shape-4 {
    width: 130px;
    height: 130px;
    top: 30%;
    right: 20%;
    transform-style: preserve-3d;
    /* All animations removed - completely static */
    position: relative;
    transform: translate(0, 0) rotateX(20deg) rotateY(20deg);
}

.quantum-bg-static .shape-4 {
    transform: translate(0, 0) rotateX(20deg) rotateY(20deg) !important;
}

.shape-4::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.6), rgba(255, 200, 0, 0.8));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border: 3px solid rgba(255, 215, 0, 0.95);
    transform: rotateX(45deg) rotateY(45deg);
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.7), inset 0 0 45px rgba(255, 215, 0, 0.4);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

.shape-4::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(255, 200, 0, 0.8));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border: 3px solid rgba(255, 215, 0, 0.95);
    transform: rotateX(-45deg) rotateY(-45deg) translateZ(65px);
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.7), inset 0 0 45px rgba(255, 215, 0, 0.4);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

/* 3D Torus/Ring */
.shape-5 {
    width: 100px;
    height: 100px;
    bottom: 40%;
    right: 30%;
    border-radius: 50%;
    border: 10px solid rgba(255, 215, 0, 0.8);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent 70%);
    /* All animations removed - completely static */
    transform: translate(0, 0) rotateX(0deg) rotateY(0deg);
    opacity: 0.25;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 80px rgba(255, 215, 0, 0.3),
        inset 0 0 40px rgba(255, 215, 0, 0.3);
    transform-style: preserve-3d;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

.quantum-bg-static .shape-5 {
    transform: translate(0, 0) rotateX(0deg) rotateY(0deg) !important;
    opacity: 0.25 !important;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 80px rgba(255, 215, 0, 0.3),
        inset 0 0 40px rgba(255, 215, 0, 0.3) !important;
}

.shape-5::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid rgba(255, 215, 0, 0.6);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
    transform: rotateX(90deg) translateZ(25px);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.6);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.7));
}

.shape-5::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid rgba(255, 215, 0, 0.5);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent 70%);
    transform: rotateY(90deg) translateZ(25px);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.6);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.7));
}

/* Golden Ornaments */
.golden-ornament {
    position: relative;
}

.golden-ornament::before,
.golden-ornament::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #FFD700;
    opacity: 0.6;
    /* Animation removed for better performance */
}

.golden-ornament::before {
    top: -10px;
    left: -10px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.golden-ornament::after {
    bottom: -10px;
    right: -10px;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}

.card.golden-border {
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: visible;
}

.card.golden-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    border-radius: 10px;
    z-index: -1;
    /* Animation removed for better performance */
}

/* Mystical Text Effects */
.mystical-text {
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
    letter-spacing: 2px;
}

.mystical-glow {
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

/* Animated Background Header */
.page-header-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
    margin-bottom: 3rem;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px),
        rgba(0, 0, 0, 0.4);
    /* Animation removed for better performance */
    z-index: 0;
}

/* Page-specific background images - 16:9 format, centered */
.page-header-bg.program-bg {
    background-image: url('/static/images/Sacred Quantum Alignment3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-header-bg.about-bg {
    background-image: url('/static/images/Sacred Quantum Alignment4.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-header-bg.results-bg {
    background-image: url('/static/images/Sacred Quantum Alignment5.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-header-bg.contact-bg {
    background-image: url('/static/images/Sacred Quantum Alignment6.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-header-bg.result-detail-bg {
    background-image: url('/static/images/Sacred Quantum Alignment5.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-header-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-blue);
    /* Animation removed for better performance - can be re-enabled if needed */
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Improve touch targets */
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .section {
        padding: 2rem 0;
    }
    
    /* Program page mobile */
    .card-grid[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Page header mobile adjustments */
    .page-header-bg {
        padding-top: 80px;
    }
    
    /* Dashboard mobile menu button */
    .dashboard-sidebar-toggle {
        position: fixed;
        top: 80px;
        left: 10px;
        z-index: 998;
        background: var(--accent-blue);
        color: var(--bg-black);
        border: none;
        padding: 0.75rem;
        border-radius: 5px;
        cursor: pointer;
    }
}

/* Landscape phone optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        z-index: 0 !important;
        overflow: hidden;
    }
    
    .hero .hero-image-fallback,
    .hero .hero-video-full {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: none !important;
    }
    .hero .hero-image-fallback { z-index: 0 !important; left: 50% !important; transform: translateX(-50%) !important; }
    .hero .hero-video-full { z-index: 1 !important; }
    .hero + .section { margin-top: 3rem !important; padding-top: 1.5rem !important; }
    
    .page-header-bg {
        min-height: 30vh;
    }
    
    /* Navbar landscape - toujours visible et cliquable */
    .navbar {
        padding: 0.5rem 0;
        z-index: 10000 !important;
        min-height: 48px;
        display: flex !important;
        align-items: center !important;
    }
    
    .navbar-content {
        padding: 0 10px;
        width: 100%;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .navbar-brand {
        font-size: 0.85rem !important;
        max-width: 120px;
        overflow: hidden;
    }
    
    .navbar-brand-text {
        display: none !important;
    }
    
    .navbar-brand-short {
        display: inline !important;
    }
    
    .navbar-brand img {
        height: 28px !important;
        width: 28px !important;
        margin-right: 4px !important;
    }
    
    /* Hamburger visible et cliquable en paysage */
    .hamburger {
        display: flex !important;
        z-index: 10002 !important;
        pointer-events: auto !important;
        position: relative !important;
    }
    
    .navbar-nav {
        position: fixed !important;
        top: 48px !important;
        left: -100% !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: calc(100vh - 48px) !important;
        min-height: 150px !important;
        background: var(--bg-black) !important;
        flex-direction: column !important;
        padding: 1rem 0 !important;
        gap: 0 !important;
        z-index: 10001 !important;
        transition: left 0.25s ease-out !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
    }
    
    .navbar-nav.active {
        left: 0 !important;
        pointer-events: auto !important;
    }
    
    .navbar-nav a {
        font-size: 0.9rem !important;
        padding: 0.8rem 1.5rem !important;
        white-space: normal !important;
        width: 100% !important;
        display: block !important;
    }
    
    .navbar-nav a.navbar-btn {
        font-size: 0.85rem !important;
        padding: 0.6rem 1rem !important;
        margin: 0.5rem 1.5rem !important;
        width: calc(100% - 3rem) !important;
    }
    
    /* Hero title landscape */
    .hero h1,
    .hero h1.hero-title,
    .hero .mystical-text.hero-title {
        font-size: 1.5rem !important;
        padding: 0 0.5rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
}

/* Tablet and small desktop landscape */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .navbar-nav {
        gap: 1rem;
    }
    
    .navbar-nav a {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}
