/* 
    Document Reader - Neo-Glass Theme
    Design by Rui Codex
*/

:root {
    --bg-darker: #0f1218;
    --bg-dark: #161a22;
    --bg-card: #1f242m;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #64748b;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(30, 41, 59, 0.4);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    overflow-x: hidden;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.bg-darker {
    background-color: var(--bg-darker) !important;
}

/* Gradients */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-gradient-hero {
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

/* Glassmorphism */
.glass-nav {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5), 0 0 20px -5px var(--primary-glow);
}

.glass-card:hover::before {
    left: 200%;
}

/* Animations */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px var(--primary-glow) !important;
}

.hover-white {
    transition: color 0.2s ease;
}
.hover-white:hover {
    color: #ffffff !important;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    padding: 12rem 0 8rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Video Frame */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), 0 0 40px -10px var(--primary-glow);
    border: 1px solid var(--glass-border);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Screenshot Mockup Container */
.mockup-container {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

.phone-mockup {
    width: 280px;
    height: 600px;
    background: #000;
    border-radius: 2.5rem;
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
    border: 2px solid #334155;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-mockup:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    overflow: hidden;
    background: #1e293b;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decorative Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.orb-primary {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-danger {
    width: 300px;
    height: 300px;
    background: #e11d48;
    bottom: 20%;
    right: -100px;
}

.orb-success {
    width: 250px;
    height: 250px;
    background: #10b981;
    top: 40%;
    left: 50%;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 8rem 0 4rem 0;
    }
    
    .display-2 {
        font-size: 3rem;
    }

    .mockup-container {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .phone-mockup {
        width: 100%;
        max-width: 300px;
        height: 620px;
        transform: none !important; /* Remove the staggered UI on scrolling */
    }
    
    .phone-mockup:hover {
        transform: scale(1.02) !important;
    }

    /* Mobile Navbar Dropdown styling */
    .glass-nav .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid var(--glass-border);
        border-radius: 1rem;
        padding: 1rem;
        margin-top: 1rem;
        backdrop-filter: blur(20px);
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 6rem 0 3rem 0;
    }

    .display-2 {
        font-size: 2.5rem;
    }
    
    .orb-primary {
        width: 250px;
        height: 250px;
    }
    
    .orb-danger {
        width: 200px;
        height: 200px;
    }
}