/* =====================
   Qimmat Sanam - Main Styles
   Modern Industrial Theme (Mining & Crushing)
   Target: Youth (Modern/Dark) & Elders (High Contrast/Clear)
   ===================== */

/* CSS Variables */
:root {
    /* Primary Accent: Industrial Amber/Copper (Mining Equipment, Rocks, Raw Material) */
    --gold-400: #f59e0b;
    --gold-500: #d97706;
    --gold-600: #b45309;

    /* Secondary Accent: Stone Silver */
    --silver-400: #e5e7eb;

    /* Backgrounds: Deep Stone/Anthracite */
    --slate-dark: #1f2937;
    /* Lighter gray for cards - better legibility */
    --slate-deeper: #111827;
    /* Dark foundation */

    /* Reading Text - Pure White for max contrast for elders */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--slate-deeper);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.8;
    /* Increased line-height for readability */
}

/* =====================
   High-Fidelity "4K" Background
   Deep Industrial Mesh Gradient
   ===================== */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #030712;
    z-index: 0;
    overflow: hidden;
}

/* Base Gradient Mesh - High Complexity */
.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    width: 140vmax;
    height: 140vmax;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(80px);
    /* Smooth blending */
    opacity: 0.6;
    animation: rotateMesh 45s linear infinite;
}

.animated-bg::before {
    background: radial-gradient(circle at 50% 50%,
            rgba(245, 158, 11, 0.15) 0%,
            rgba(180, 83, 9, 0.1) 30%,
            rgba(31, 41, 55, 0.8) 60%,
            transparent 80%);
    animation-direction: normal;
}

.animated-bg::after {
    width: 100vmax;
    height: 100vmax;
    background: radial-gradient(circle at 50% 50%,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(245, 158, 11, 0.08) 40%,
            transparent 70%);
    animation-duration: 30s;
    animation-direction: reverse;
    mix-blend-mode: overlay;
}

@keyframes rotateMesh {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 4K Grain/Texture Overlay - Ultra Fine */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* High frequency noise for "Sharpness" */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    /* Subtle but makes it look sharp */
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Logo Text Styling - Metallic & Industrial */
.logo-text {
    background: linear-gradient(135deg, #fff 0%, #e5e7eb 50%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

/* Decorative Lines */
.decorative-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    border-radius: 3px;
}

/* Modern Buttons (Youth Appeal: Glow / Elder Appeal: High Contrast) */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    color: #000;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    /* Vibrant glow */
    border-color: #fff;
}

.btn-outline {
    border: 2px solid var(--gold-500);
    color: var(--gold-400);
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
}

.btn-outline:hover {
    background: var(--gold-500);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.4);
}

/* Card Styling - High Readability Glass */
.bento-card {
    background: rgba(31, 41, 55, 0.7);
    /* Lighter dark for contrast */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Top highlight */
    border-radius: 1.5rem;
    padding: 2.5rem;
    /* More space */
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-500);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 60%);
    pointer-events: none;
    border-radius: 1.5rem;
}

/* Typography Overrides for Readability */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

p {
    font-size: 1.05rem;
    /* Slightly larger base text */
}

/* Floating Icon Animation */
.floating-icon {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Footer logic handled in HTML inline styles/utility classes, mainly Layout focused there */