/* Marketing Riot - Modern Dark Mode Design */

/* Fonts are now loaded from design-system.css */

/* Dark Mode CSS Variables */
:root {
    /* Marketing Riot Brand Colors from PDF */
    --primary-color: #fe3432;      /* Red - Primary brand color */
    --secondary-color: #ae034f;    /* Pink - Secondary */
    --accent-color: #14021e;       /* Dark Purple - Accent */
    --dark-bg: #0a0a0a;           /* Deep Black Background */
    --card-bg: #1a1a1a;           /* Card Background */
    --text-primary: #ffffff;       /* White Text */
    --text-secondary: #b0b0b0;     /* Light Gray Text */
    --text-muted: #808080;         /* Muted Text */
    --border-color: #333333;       /* Border Color */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #fe3432 0%, #ae034f 100%);
    --gradient-secondary: linear-gradient(135deg, #14021e 0%, #ae034f 100%);
    --gradient-accent: linear-gradient(135deg, #fe3432 0%, #ff6b35 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    /* --shadow-glow: 0 0 20px rgba(254, 52, 50, 0.3); Removed glow effect */
    
    /* Typography */
    --heading-font: 'Nexa', 'Montserrat', sans-serif;
    --body-font: 'Nexa', 'Nunito Sans', sans-serif;
}

/* Override existing variables for dark mode */
:root {
    --white: 255 255 255;
    --light: 176 176 176;
    --black: 10 10 10;
    --heading-color: var(--text-primary);
    --body-color: var(--text-secondary);
    --section-bg: var(--dark-bg);
    --base: 254 52 50; /* Red */
    --secondary: 174 3 79; /* Pink */
}

/* Global Dark Mode Styles */
body {
    background-color: var(--dark-bg) !important;
    color: var(--text-primary) !important;
    font-family: var(--body-font) !important;
}

/* Override Bootstrap and existing styles */
.container, .container-fluid {
    background-color: transparent !important;
}

.row {
    background-color: transparent !important;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    background-color: transparent !important;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

h1 {
    font-weight: 900 !important;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

h2 {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

p {
    color: var(--text-secondary) !important;
}

/* Header Dark Mode */
.header {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.navbar-brand img {
    filter: brightness(1.2) !important;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(254, 52, 50, 0.5) !important;
}

/* Banner Section Dark Mode */
.banner-section, .banner-section.pb-120.pt-60 {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #14021e 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    color: var(--text-primary) !important;
}

/* Hero Visual Elements */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    position: relative;
}

.social-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 300px;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.social-icon:hover {
    transform: translateY(-10px);
    /* box-shadow: var(--shadow-glow); Removed glow effect */
    border-color: var(--primary-color);
}

.social-icon i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.social-icon span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.social-icon.instagram i { color: #E4405F; }
.social-icon.facebook i { color: #1877F2; }
.social-icon.twitter i { color: #1DA1F2; }
.social-icon.youtube i { color: #FF0000; }
.social-icon.tiktok i { color: #000000; }
.social-icon.linkedin i { color: #0077B5; }

.growth-chart {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 120px;
    width: 200px;
    position: relative;
}

.chart-bar {
    width: 20px;
    background: var(--gradient-primary);
    border-radius: 10px 10px 0 0;
    animation: growUp 2s ease-out forwards;
    transform: scaleY(0);
    transform-origin: bottom;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes growUp {
    to { transform: scaleY(1); }
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(254, 52, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(174, 3, 79, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23fe3432" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content__title {
    font-size: 4rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 0 30px rgba(254, 52, 50, 0.3) !important;
}

.banner-content__subtitle {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    text-shadow: 0 0 10px rgba(254, 52, 50, 0.5) !important;
}

.banner-content__desc {
    font-size: 1.3rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 2rem !important;
    line-height: 1.6 !important;
}

/* Button Overrides for Dark Mode - Only target old button classes */
.btn--base:not(.mr-btn):not([class*="mr-btn"]) {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    font-family: var(--heading-font) !important;
    border-radius: 50px !important;
    padding: 15px 30px !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-md) !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn--base:not(.mr-btn):not([class*="mr-btn"])::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: left 0.5s;
}

.btn--base:not(.mr-btn):not([class*="mr-btn"]):hover::before {
    left: 100%;
}

.btn--base:not(.mr-btn):not([class*="mr-btn"]):hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-lg) !important;
    color: white !important;
}

.btn-outline:not(.mr-btn):not([class*="mr-btn"]) {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 50px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.btn-outline:not(.mr-btn):not([class*="mr-btn"]):hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Service Cards Dark Mode */
.service-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease !important;
    padding: 2.5rem !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

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

.service-card h3 {
    color: var(--text-primary) !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
}

.service-card p {
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
}

/* Stats Section Dark Mode */
.stats-section, .stats-section.py-60 {
    background: var(--gradient-primary) !important;
    position: relative !important;
    overflow: hidden !important;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(254, 52, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(174, 3, 79, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.stat-item {
    position: relative;
    z-index: 2;
}

.stat-item h3 {
    color: white !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
}

/* Override any blue text in stats */
.py-60 h3, .py-60 p, .py-60 span, .py-60 div {
    color: white !important;
}

/* Footer Dark Mode */
.footer {
    background: var(--accent-color) !important;
    color: var(--text-primary) !important;
    position: relative !important;
    overflow: hidden !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(254, 52, 50, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(174, 3, 79, 0.05) 0%, transparent 50%);
    z-index: 1;
}

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

.footer h3, .footer h6 {
    color: var(--text-primary) !important;
}

.footer p, .footer a {
    color: var(--text-secondary) !important;
}

.footer a:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(254, 52, 50, 0.5) !important;
}

/* Form Elements Dark Mode */
.form-control {
    background: var(--card-bg) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    font-family: var(--body-font) !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 52, 50, 0.25) !important;
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

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

/* Testimonial Cards Dark Mode */
.testimonial-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 2rem !important;
    transition: all 0.3s ease !important;
}

.testimonial-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

/* Action Section Dark Mode */
.action-section {
    background: var(--gradient-primary) !important;
    position: relative !important;
    overflow: hidden !important;
}

.action-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.action-content {
    position: relative;
    z-index: 2;
}

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

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

/* Glow animation removed */

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content__title {
        font-size: 2.5rem !important;
    }
    
    .banner-content__desc {
        font-size: 1.1rem !important;
    }
    
    .service-card {
        padding: 2rem !important;
    }
    
    .stat-item h3 {
        font-size: 2rem !important;
    }
}

/* Scrollbar Styling */
::-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(--primary-color);
}

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

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Force Dark Mode Override - Highest Priority */
html, body {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
}


/* Specific section overrides */
section, .section, .py-60, .py-120, .pt-60, .pb-120 {
    color: #ffffff !important;
}

/* Card and container overrides */
.card, .accordion-item, .modal-content {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

/* Text color overrides - Removed problematic global override that was breaking button text visibility */

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Button overrides - Only target old button classes, not design system buttons */
.btn:not(.mr-btn):not([class*="mr-btn"]), 
.btn--base:not(.mr-btn):not([class*="mr-btn"]) {
    background: linear-gradient(135deg, #fe3432 0%, #ae034f 100%) !important;
    color: white !important;
    border: none !important;
}

/* ====================================
   LOADER STYLES
   ==================================== */

/* Loader Styles - Marketing Riot Brand Colors */
.preloader {
    background-color: var(--mr-dark) !important;
}

.loader-p:before,
.loader-p:after {
    border: 1em solid var(--mr-primary) !important;
}

@keyframes loader {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Purple Color Override - Remove all purple colors */
* {
    --purple-h: 269;
    --purple-s: 98%;
    --purple-l: 83%;
    --purple: var(--mr-primary);
    --purple-d-100: var(--mr-primary);
    --purple-d-200: var(--mr-primary);
    --purple-d-300: var(--mr-primary);
    --purple-d-400: var(--mr-primary);
    --purple-d-500: var(--mr-primary);
    --purple-l-100: var(--mr-primary);
    --purple-l-200: var(--mr-primary);
    --purple-l-300: var(--mr-primary);
    --purple-l-400: var(--mr-primary);
    --purple-l-500: var(--mr-primary);
    --purple-l-600: var(--mr-primary);
}

/* Override any purple borders or backgrounds */
[style*="purple"], 
[style*="hsl(var(--purple)"],
.border-purple,
.bg-purple {
    border-color: var(--mr-primary) !important;
    background-color: var(--mr-primary) !important;
    color: var(--mr-white) !important;
}

/* Override any yellow highlighting that breaks dark theme */
[style*="yellow"],
[style*="#ffff"],
[style*="#ffeb"],
[style*="#ffc"],
[style*="#FFFF00"],
[style*="#ffff00"],
.table tbody tr[style*="background"],
tr[style*="background"] {
    background-color: transparent !important;
    color: var(--mr-text-primary) !important;
}

.table tbody tr:hover {
    background-color: rgba(254, 52, 50, 0.1) !important;
    color: var(--mr-text-primary) !important;
}

/* Specific overrides for spectrum.css yellow color */
[style*="background-color: #FFFF00"],
[style*="background-color: #ffff00"],
[style*="background: #FFFF00"],
[style*="background: #ffff00"],
[style*="background-color: yellow"],
[style*="background: yellow"] {
    background-color: transparent !important;
    background: transparent !important;
}
/* Dark Mode Icon Improvements for Service Section */

.template-card__icon .icon {
  filter: brightness(0.9) contrast(1.2) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid rgba(254, 52, 50, 0.1) !important;
}

/* Dark mode icon hover styling */
.template-card__icon .icon:hover {
  filter: brightness(1.1) contrast(1.3) !important;
  transform: scale(1.05) !important;
  border-color: rgba(254, 52, 50, 0.3) !important;
  box-shadow: 0 6px 20px rgba(254, 52, 50, 0.2) !important;
}

/* Ensure icons are visible in dark backgrounds */
.custom-card .template-card__icon .icon {
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid rgba(254, 52, 50, 0.1) !important;
}

.custom-card .template-card__icon .icon:hover {
  background: #ffffff !important;
  border-color: rgba(254, 52, 50, 0.3) !important;
  box-shadow: 0 6px 20px rgba(254, 52, 50, 0.2) !important;
}