/* Custom CSS for DXScanner Website */

/* Color variables based on app gradient - Dark Theme */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #ec4899 100%);
    --gradient-light: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(124, 58, 237, 0.2) 50%, rgba(236, 72, 153, 0.2) 100%);
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
    --text-accent: #e2e8f0;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --border-dark: rgba(255, 255, 255, 0.1);
}

/* Dark theme base styles */
body {
    background: var(--bg-gradient-dark);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
}

p {
    color: var(--text-muted);
}

.lead {
    color: var(--text-accent);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Override Bootstrap primary color */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Text gradient */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-accent) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border-color: var(--border-dark);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28248, 250, 252, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero section */
.hero-section {
    background: var(--bg-gradient-dark);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../references/gradient.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-light);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-image {
    position: relative;
    z-index: 3;
}

.hero-screenshot {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.hero-screenshot:hover {
    transform: scale(1.05);
}

/* Features section */
#features {
    background: var(--bg-darker);
}

.feature-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-dark);
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.4);
    border: 1px solid rgba(124, 58, 237, 0.5);
    background: rgba(30, 41, 59, 0.9);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Screenshots section */
.py-5:not(#features):not(.bg-primary) {
    background: var(--bg-gradient-dark);
}

.screenshot-container {
    text-align: center;
}

.screenshot-container img {
    max-width: 400px;
    height: auto;
    transition: transform 0.3s ease;
}

.screenshot-container img:hover {
    transform: scale(1.02);
}

/* Download section */
.bg-primary {
    background: var(--gradient-primary) !important;
    position: relative;
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../references/gradient.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.bg-primary > .container {
    position: relative;
    z-index: 2;
}

.download-buttons .btn {
    margin: 0.5rem;
    min-width: 200px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    z-index: 1;
}

footer > .container {
    position: relative;
    z-index: 2;
}

footer .btn-outline-light:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

.btn-outline-light {
    border-color: var(--text-accent);
    color: var(--text-accent);
}

.btn-light {
    background: var(--text-light);
    border-color: var(--text-light);
    color: var(--bg-dark);
    font-weight: 600;
}

.btn-light:hover {
    background: var(--text-accent);
    border-color: var(--text-accent);
    color: var(--bg-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        text-align: center;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .download-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .feature-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 2rem;
    }

    .hero-screenshot {
        max-width: 250px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

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

/* Loading animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Privacy Policy styles */
.privacy-content h2 {
    color: var(--text-light);
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.privacy-content h3 {
    color: var(--text-light);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-content ul {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-content ul li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.privacy-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}