/* A1 Media Custom Styles */

/* CSS Variables for Brand Colors */
:root {
    --primary-color: #6C00FF;
    --accent-color: #B400FF;
    --dark-bg: #0F011C;
    --light-text: #ffffff;
    --gray-text: rgba(255, 255, 255, 0.8);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
    --shadow-glow: 0 0 20px rgba(108, 0, 255, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    /* Prevent any horizontal overflow caused by children */
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Navbar Styles */
.navbar {
    /* Changed from transparent to a slightly translucent dark background so navbar is
       always readable on older Android / browsers. Adjust opacity as needed. */
    background: rgba(15, 1, 28, 0.95);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background: rgba(15, 1, 28, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(108, 0, 255, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Always-visible hamburger toggler styling (three-line icon) */
/* Shows a rounded colored background so it's readable on transparent headers */
.navbar .navbar-toggler {
    background: linear-gradient(90deg, rgba(108,0,255,0.95), rgba(180,0,255,0.95));
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(108,0,255,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.navbar .navbar-toggler:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108,0,255,0.24);
}

.navbar .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(108,0,255,0.15);
}

/* Ensure the built-in toggler icon contrasts with the colored background */
.navbar .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%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 20px;
    height: 20px;
}

/* When scrolled or collapse is open, keep a slightly darker background to match navbar-scrolled */
.navbar-scrolled .navbar-toggler,
.navbar .navbar-collapse.show ~ .navbar-toggler,
.navbar .navbar-collapse.show .navbar-toggler,
.navbar .navbar-collapse.show + .navbar-toggler {
    background: rgba(15, 1, 28, 0.9);
}

/* Responsive visibility: show hamburger only on small devices (mobile/tablet) */
@media (max-width: 991.98px) {
    .navbar .navbar-toggler {
        display: inline-flex !important; /* ensure visible on small screens */
    }
}

@media (min-width: 992px) {
    .navbar .navbar-toggler {
        display: none !important; /* hide on md/lg/xl - desktop */
    }
}


/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline-light {
    border: 2px solid var(--light-text);
    color: var(--light-text);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 1, 28, 0.8), rgba(26, 26, 46, 0.8)), url('https://images.unsplash.com/photo-1520975918543-69ae5a0c4c1b?w=1600&q=80');
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed can cause horizontal overflow on some mobile browsers */
    background-attachment: scroll;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 1, 28, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--gray-text);
}

/* Cards */
.card {
    background: var(--gradient-dark);
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 0, 255, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--light-text);
    font-weight: 600;
}

.card-text {
    color: var(--gray-text);
}

/* Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* FAQ Accordion */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(108, 0, 255, 0.3);
}

.accordion-item {
    background: var(--gradient-dark);
    border: 1px solid rgba(108, 0, 255, 0.3);
    margin-bottom: 1rem;
    border-radius: 15px !important;
    overflow: hidden;
}

.accordion-button {
    background: transparent;
    color: var(--light-text);
    font-weight: 600;
    border: none;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: rgba(108, 0, 255, 0.1);
    color: var(--accent-color);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    background: rgba(0, 0, 0, 0.2);
    color: var(--gray-text);
    padding: 1.5rem;
}

/* Contact Form */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 0, 255, 0.25);
    color: var(--light-text);
}

.form-control::placeholder {
    color: var(--gray-text);
}

.form-label {
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Fixed Contact Button */
.fixed-contact-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.fixed-contact-btn .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Section Spacing */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Footer */
footer {
    background: var(--dark-bg) !important;
    border-top: 1px solid rgba(108, 0, 255, 0.2);
}

footer .brand-text {
    font-size: 1.8rem;
}

footer h5, footer h6 {
    color: var(--light-text);
}

footer a:hover {
    color: var(--accent-color) !important;
    transition: all 0.3s ease;
}

/* Ensure any '.text-light-emphasis' class is pure white and takes precedence over variables */
.text-light-emphasis {
    color: #ffffff !important;
    opacity: 1 !important; /* remove any opacity from variable-based rules */
}

.social-links a:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Background Patterns */
.bg-pattern {
    position: relative;
    overflow: hidden;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(108, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(180, 0, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Text Shadows */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glow Effect */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: var(--shadow-glow);
}

/* Stats Counter Animation */
.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* --- Video Gallery Page Styles (appended) --- */
.video-hero { min-height: 60vh; display:flex; align-items:center; }
.video-hero .hero-inner { text-align:center; color:#fff; }
.video-hero h1 { font-size:2.8rem; font-weight:800; text-transform:uppercase; }
.video-hero p { color:#ddd; letter-spacing:.6px; }

.gallery-section { padding:100px 0; background: linear-gradient(180deg,#0d011a 0%, #1b0130 100%); }
.video-card { border-radius:15px; overflow:hidden; position:relative; cursor:pointer; }
.video-card img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .35s ease; }
.video-card:hover img { transform: scale(1.05); }
.video-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 80%); opacity:0; transition: opacity .25s ease; }
.video-card:hover .video-overlay { opacity:1; }
.video-overlay .btn { background: linear-gradient(90deg,#6C00FF,#B400FF); border:none; }

/* Ensure ratio images are positioned correctly */
.ratio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.modal-video .ratio { border-radius:12px; overflow:hidden; }

#backToTop { position:fixed; right:20px; bottom:20px; z-index:9999; background:var(--primary-color); color:#fff; border:none; width:48px; height:48px; border-radius:50%; box-shadow:0 6px 18px rgba(108,0,255,0.2); display:none; align-items:center; justify-content:center; }
#backToTop.show { display:flex; }

/* fade-up animation for video cards */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.no-aos .fade-up { opacity: 1; transform: translateY(0); }
.fade-up.aos-animate { opacity:1; transform: translateY(0); }

/* Make .fade-up children visible when a parent gets AOS animate class */
.aos-animate .fade-up { opacity:1; transform: translateY(0); }


/* Prevent horizontal overflow from media and large elements */
img, picture, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure containers and sections don't cause overflow */
.container, .container-fluid, .section, main, footer, header {
    max-width: 100%;
    overflow-x: hidden;
}

/* Defensive rule: some elements with large negative margins cause overflow on small screens */

@media (max-width: 480px) {
    .hero-section {
        background-attachment: scroll;
        background-position: center top;
    }
}

/* Extra defensive overflow fixes */
html, body, main {
    overflow-x: hidden !important;
}

/* Prevent Bootstrap rows or custom elements from producing horizontal scroll */
.row, .container, .container-fluid {
    overflow-x: hidden;
}

/* Ensure AOS animated elements don't create temporary overflow during transforms */
.aos-init, .aos-animate {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
}

/* Cap any absolutely positioned elements from exceeding viewport */
[class*="-absolute"], [class*="absolute"] {
    max-width: 100vw;
}

/* Fixed contact button tweak for very small screens */
.fixed-contact-btn {
    right: 12px;
    left: auto;
    max-width: calc(100% - 24px);
}

/* Strong override: ensure all text inside pricing cards is fully white and visible */
.pricing-card,
.pricing-card .card-body,
.pricing-card .package-features,
.pricing-card .package-features li,
.pricing-card .package-header,
.pricing-card .package-header *,
.pricing-card .contact-info,
.pricing-card .contact-info a,
.pricing-card .package-features li i {
    color: #ffffff !important;
    opacity: 1 !important;
}
