/* ===== RaMTech — Main Styles ===== */

/* --- Base & Reset --- */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: #020617;
}

.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.2);
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.9) 100%);
    z-index: -1;
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hover:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
}

/* --- Quiz --- */
.quiz-option.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* --- Hero Logo Float --- */
.hero-logo-float {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 500px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-55%) translateX(-10px);
    }
}

/* --- Chat Animation --- */
.chat-msg {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Language Buttons --- */
.lang-btn.active {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

.fade-out { opacity: 0; }
.fade-in { opacity: 1; }

/* ===== Flex Cards Cases ===== */
.flex-options {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 520px;
}

.flex-option {
    position: relative;
    overflow: hidden;
    min-width: 80px;
    margin: 0 10px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.05, 0.61, 0.41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
}

.flex-option.active {
    flex-grow: 10;
    margin: 0;
    border-color: rgba(59, 130, 246, 0.4);
    background-size: cover;
}

.flex-option:not(.active) {
    flex-grow: 1;
}

.flex-option .shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, transparent 100%);
    transition: opacity 0.5s;
}

.flex-option .label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s;
    opacity: 0;
    transform: translateY(20px);
}

.flex-option.active .label {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .flex-options {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }

    .flex-option {
        min-height: 120px;
        width: 100%;
        margin: 0;
    }

    .flex-option.active {
        min-height: 400px;
    }
}

/* --- Utilities --- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* --- Skip to content (A11y) --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: 8px 16px;
    background: #3b82f6;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}
