/* ========================================
   Impact Digital Holdings - Custom Styles
   Dark/Modern Theme with Bootstrap 5.3
   ======================================== */

:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #ffffff;
    --text-muted: #a0a0b0;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --border-color: #2a2a3a;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Navigation */
.navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom-color: var(--border-color);
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero with background image */
.hero-section.hero-bg {
    background:
        linear-gradient(to bottom, rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.95)),
        url('https://images.unsplash.com/photo-1429962714451-bb934ecdc4ec?q=80&w=2670&auto=format&fit=crop') center center / cover no-repeat;
}

.hero-section.hero-bg::before {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
}

/* Page Header */
.page-header {
    padding: 150px 0 80px;
    background: var(--bg-dark);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Page header with cinema background */
.page-header.header-bg-cinema {
    background:
        linear-gradient(to bottom, rgba(10, 10, 15, 0.7), rgba(10, 10, 15, 0.85)),
        url('https://images.pexels.com/photos/7991318/pexels-photo-7991318.jpeg') center 30% / cover no-repeat;
}

/* Page header with production background */
.page-header.header-bg-production {
    background:
        linear-gradient(to bottom, rgba(10, 10, 15, 0.7), rgba(10, 10, 15, 0.88)),
        url('https://images.pexels.com/photos/7991404/pexels-photo-7991404.jpeg') center 40% / cover no-repeat;
}

/* Buttons */
.btn-accent {
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Info Card */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.info-card .table {
    margin-bottom: 0;
}

.info-card .table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-card .table tr:last-child td {
    border-bottom: none;
}

/* Value Icons */
.value-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    color: var(--accent-primary);
}

/* CTA Section */
.cta-section {
    background: var(--bg-card);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* CTA with background image */
.cta-section.cta-bg {
    background:
        linear-gradient(to right, rgba(10, 10, 15, 0.92), rgba(18, 18, 26, 0.95)),
        url('https://images.unsplash.com/photo-1429962714451-bb934ecdc4ec?q=80&w=2670&auto=format&fit=crop') center center / cover no-repeat;
}

/* Section with subtle cinema bg */
.section-bg-subtle {
    position: relative;
    background:
        linear-gradient(to bottom, rgba(5, 5, 8, 0.82), rgba(5, 5, 8, 0.88)),
        url('https://images.pexels.com/photos/7991404/pexels-photo-7991404.jpeg') center 60% / cover no-repeat;
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.form-control {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--bg-darker);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Contact Info */
.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

/* Legal Content */
.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
}

.legal-content ul {
    padding-left: 1.5rem;
}

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

.legal-content address {
    font-style: normal;
    margin-top: 1rem;
}

/* Background Darker */
.bg-darker {
    background: var(--bg-darker);
}

/* Ventures Page */
.bg-accent-subtle {
    background: rgba(99, 102, 241, 0.15);
}

.blockquote-custom {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 12px 12px 0;
}

.blockquote-custom p {
    color: var(--text-primary);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* Form Response Messages */
.alert-success-custom {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    border-radius: 8px;
    padding: 1rem;
}

.alert-error-custom {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 8px;
    padding: 1rem;
}

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

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .legal-content {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .container > .row {
    animation: fadeInUp 0.8s ease-out;
}

/* Film flicker effect */
.film-flicker {
    position: relative;
    overflow: hidden;
}

.film-flicker::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: transparent;
    opacity: 0;
    z-index: 1;
}

@keyframes flicker {
    0%, 100% { opacity: 0; }
    5% { opacity: 0.03; background: rgba(255, 250, 240, 0.04); }
    6% { opacity: 0; }
    15% { opacity: 0.025; background: rgba(255, 245, 230, 0.03); }
    16% { opacity: 0; }
    55% { opacity: 0; }
    56% { opacity: 0.03; background: rgba(255, 250, 235, 0.035); }
    57% { opacity: 0; }
    85% { opacity: 0; }
    86% { opacity: 0.02; background: rgba(255, 248, 230, 0.03); }
    87% { opacity: 0; }
}

.film-flicker.active::after {
    animation: flicker 5s infinite;
}

/* Dust particle canvas container */
.dust-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

/* Subtle vignette for cinematic feel */
.film-vignette::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

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