/* Custom styles for your website */
/* Tailwind handles most styling, add custom overrides here */

:root {
    /* Matching Tailwind config */
    --primary-color: #580816;
    /* Casino Royal Burgundy */
    --secondary-color: #0F0F0F;
    /* Casino Black */
    --accent-color: #FFD700;
    /* Casino Gold */
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes panZoom {
    0% {
        transform: scale(1) translate(0, 0);
    }

    25% {
        transform: scale(1.2) translate(-5%, 5%);
    }

    50% {
        transform: scale(1.3) translate(5%, 10%);
    }

    75% {
        transform: scale(1.1) translate(5%, -5%);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-pan-zoom {
    animation: panZoom 30s ease-in-out infinite alternate;
    will-change: transform;
}

/* Text Gradients */
.text-gradient-gold {
    background: linear-gradient(to bottom, #FFD700, #FDB931);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FFD700;
}

.text-gradient-silver {
    background: linear-gradient(135deg, #E0E0E0 0%, #C0C0C0 50%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #C0C0C0;
}

/* DEVICE FRAMES */

/* Laptop Frame */
.device-laptop {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
}

.laptop-screen {
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    border: 1px solid #333;
    padding: 3%;
    position: relative;
    box-shadow: 0 0 0 2px #555, inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.laptop-content {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.laptop-content img {
    display: block;
    width: 100%;
    height: auto;
}

/* Reflection/Glare */
.laptop-content::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
    z-index: 2;
}

.laptop-base {
    background: #e0e0e0;
    /* Silver base */
    background: linear-gradient(to bottom, #dcdcdc 0%, #a9a9a9 100%);
    height: 14px;
    width: 104%;
    margin-left: -2%;
    border-radius: 0 0 10px 10px;
    /* Smoother corners */
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.laptop-base::before {
    content: "";
    display: block;
    position: absolute;
    top: -6px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: #c0c0c0;
    border-radius: 0 0 4px 4px;
    /* Hinge look */
    background: linear-gradient(to right, #b0b0b0, #f0f0f0, #b0b0b0);
}

/* Tablet Frame (Surface Style) */
.device-tablet {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 450px;
    /* Portrait/Square-ish tablet */
}

.tablet-body {
    background: #222;
    border-radius: 16px;
    padding: 12px 12px 30px 12px;
    /* Bottom padding larger for bezel illusion */
    box-shadow: 0 0 0 2px #444, 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
}

.tablet-content {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #000;
    border: 1px solid #111;
}

.tablet-content img {
    display: block;
    width: 100%;
    height: auto;
}

/* Camera Dot */
.tablet-body::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: #444;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    /* In the top bezel */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}

/* --- LIVING ATMOSPHERE EFFECTS --- */

/* 1. Heavy Dark Vignette */
/* 1. Heavy Dark Vignette */
.vignette-overlay {
    position: absolute;
    inset: 0;
    /* Increased blackness for deeper contrast with red */
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.7) 70%, #000 100%);
    pointer-events: none;
    z-index: 2;
}

/* 2. Swaying Spotlight Effect */
@keyframes swayLight {
    0% {
        transform: translateX(-5%) translateY(-2%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateX(5%) translateY(2%) scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: translateX(-5%) translateY(-2%) scale(1);
        opacity: 0.5;
    }
}

.spotlight-effect {
    position: absolute;
    inset: -50%;
    /* Large overflow to allow movement */
    width: 200%;
    height: 200%;
    /* Warmer, slightly more orange-gold for that vintage lamp feel */
    background: radial-gradient(circle at center, rgba(255, 200, 50, 0.12) 0%, transparent 45%);
    animation: swayLight 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: soft-light;
}

/* 3. Floating Particles */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 4;
}

.particle {
    position: absolute;
    background: rgba(255, 215, 0, 0.6);
    /* Gold dust */
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
    opacity: 0;
    animation: floatUp 8s ease-in infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-20vh) translateX(20px);
        opacity: 0;
    }
}

/* Generate random particle variations via nth-child would be best in CSS preprocessor, 
   but here we rely on inline styles or a few helper classes if needed. 
   For simplicity, we will expect inline styles/classes in HTML for random delays/positions. */