/* ===================================
   Popular Marketing - Modern Design
   =================================== */

:root {
    --primary: #E4002B;
    --primary-dark: #B80023;
    --primary-light: #FF1744;
    --secondary: #1a1a1a;
    --accent: #E4002B;
    --success: #10B981;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===================================
   Global Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

.lead {
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Custom spacing utilities */
.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.dropdown-item.active {
    background-color: var(--primary);
    color: white;
}

.dropdown-item.active:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-dark {
    border: 2px solid var(--gray-800);
    color: var(--gray-800);
}

.btn-outline-dark:hover {
    background: var(--gray-800);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f0f9ff 100%);
    overflow: hidden;
    padding-top: 90px;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(228, 0, 43, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge .badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.bg-primary-soft {
    background-color: rgba(228, 0, 43, 0.1) !important;
    color: var(--primary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.25rem;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-visual img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

.floating-card {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.floating-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.floating-card p {
    color: var(--gray-600);
    margin: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===================================
   Trusted By Section
   =================================== */

.trusted-by-section {
    background: var(--gray-50);
}

.client-logo {
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
    mix-blend-mode: normal;
}

/* ===================================
   Services Overview
   =================================== */

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(228, 0, 43, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link i {
    transition: transform 0.2s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ===================================
   Dark Sections - Global Fix
   =================================== */

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark p,
.bg-dark .lead,
.bg-dark .stat-label {
    color: white !important;
}

/* ===================================
   Why Choose Us Section
   =================================== */

.why-choose-section {
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.why-choose-section h2,
.why-choose-section h3,
.why-choose-section h4,
.why-choose-section p,
.why-choose-section .lead {
    color: white !important;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(228, 0, 43, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.feature-item {
    padding: 1.5rem;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-light);
}

.feature-item:hover .feature-icon-wrapper {
    background: rgba(228, 0, 43, 0.2);
    transform: scale(1.1);
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===================================
   How It Works Section
   =================================== */

.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.process-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    box-shadow: 0 0 0 10px rgba(228, 0, 43, 0.1);
}

.process-icon {
    width: 100px;
    height: 100px;
    background: var(--gray-100);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 1.5rem;
    transition: all 0.3s ease;
}

.process-icon i {
    font-size: 3rem;
    color: var(--primary);
}

.process-step:hover .process-icon {
    background: var(--primary);
    transform: scale(1.05);
}

.process-step:hover .process-icon i {
    color: white;
}

.process-step h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--gray-600);
    margin: 0;
}

/* ===================================
   CTA Section
   =================================== */

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-section .btn-light {
    background: white;
    color: var(--primary);
}

.cta-section .btn-light:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--gray-900);
}

.footer h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-contact a:hover {
    color: white;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.25rem;
}

/* ===================================
   Page-Specific Styles
   =================================== */

/* Inner Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 0 5rem;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

/* About Page Team Cards */
.team-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-card img {
    width: 100%;
    height: auto;
}

.team-card-body {
    padding: 2rem;
}

.team-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-card .position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 90px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .floating-card {
        margin-top: 3rem;
        padding: 2rem;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .page-hero {
        padding: 6rem 0 3rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-muted {
    color: var(--gray-600) !important;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.border-white-50 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   Accessibility
   =================================== */

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Selection color */
::selection {
    background-color: var(--primary);
    color: white;
}

/* ===================================
   Loading Animation
   =================================== */

body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Improve button spacing on mobile */
@media (max-width: 575.98px) {
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }
}