/* PMTM Scam Agencies Website - Black & White Theme */

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary-black);
    line-height: 1.7;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Typography */
h1 {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', 'Arial Narrow', 'Helvetica Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.875rem; /* 30px - bigger than default h3 (1.75rem) but smaller than h2 (2rem) */
}

.display-3, .display-4, .display-5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Navigation */
.navbar {
    background-color: var(--primary-black) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Dropdown Menu Styling */
.dropdown-toggle::after {
    margin-left: 0.5em;
}

.dropdown-menu-dark {
    background-color: var(--primary-black);
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    gap: 0;
}

.dropdown-menu-dark li {
    margin: 0.25rem 0;
}

.dropdown-menu-dark .dropdown-item {
    color: var(--primary-white);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    margin: 0;
    border: none;
    border-radius: 0;
}

.dropdown-menu-dark .dropdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
}

.dropdown-menu-dark .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--primary-white);
    font-weight: 600;
}

.nav-link.dropdown-toggle.active {
    color: var(--primary-white);
}

/* Hero Section */
.hero-section {
    color: var(--primary-white);
    padding: 8rem 0 4rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(52, 58, 64, 0.8) 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(52, 58, 64, 0.7) 100%);
    z-index: 1;
}

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

.hero-section h1 {
    color: var(--primary-white);
}

/* Specific hero backgrounds */
.hero-scams {
    background-image: url('../img/hero2.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-scams::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(52, 58, 64, 0.7) 100%);
}

.hero-industry-scam {
    background-image: url('../img/hero1.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-industry-scam::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(52, 58, 64, 0.7) 100%);
}

.hero-training {
    background-image: url('../img/hero3.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-training::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(52, 58, 64, 0.7) 100%);
}

.hero-real-agency {
    background-image: url('../img/hero4.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-real-agency::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(52, 58, 64, 0.7) 100%);
}

.hero-freelancing {
    background-image: url('../img/hero5.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-freelancing::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(52, 58, 64, 0.7) 100%);
}

.hero-pmtm-facts {
    background-image: url('../img/hero6.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-pmtm-facts::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(52, 58, 64, 0.7) 100%);
}

.hero-faq {
    background-image: url('../img/hero7.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-faq::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(52, 58, 64, 0.7) 100%);
}

/* Content Blocks */
.content-block {
    padding: 2rem 0;
}

.content-block h2 {
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.topic-card {
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.topic-card:hover .card-title {
    color: var(--gray-dark);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Ensure animations complete and stay visible */
.fade-in-up,
.fade-in {
    will-change: opacity, transform;
}

/* Force visibility after animation completes */
.fade-in-up.animated,
.fade-in.animated {
    opacity: 1 !important;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

/* Scroll Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Prevent content from disappearing - ensure elements without animation classes are visible */
section > .container > .row > div:not(.fade-in):not(.fade-in-up):not(.fade-in-on-scroll),
article:not(.fade-in):not(.fade-in-up):not(.fade-in-on-scroll),
.content-block:not(.fade-in):not(.fade-in-up):not(.fade-in-on-scroll) {
    opacity: 1 !important;
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--gray-light) !important;
}

.bg-white {
    background-color: var(--primary-white) !important;
}

.bg-black {
    background-color: var(--primary-black) !important;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Article Content */
article {
    max-width: 800px;
    margin: 0 auto;
}

article h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-black);
}

article h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

article h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--primary-black);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-dark);
}

/* Tables */
.table {
    margin: 2rem 0;
}

.table thead {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

/* Footer */
footer {
    background-color: var(--primary-black) !important;
    color: var(--primary-white);
}

.footer-nav a {
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--gray-medium) !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Sidebar Navigation */
.sidebar-nav {
    background-color: var(--gray-light);
    border-right: 1px solid #dee2e6;
}

.sidebar-sticky {
    top: 76px;
    padding-top: 4rem;
    padding-bottom: 2rem;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
}

.sub-nav {
    padding: 0;
}

.sub-nav h5 {
    color: var(--primary-black);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.sub-nav .nav-link {
    color: var(--gray-dark);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sub-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-black);
    border-left-color: var(--gray-medium);
}

.sub-nav .nav-link.active {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-black);
    border-left-color: var(--primary-black);
    font-weight: 600;
}

.sub-nav-related {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.sub-nav-related h5 {
    color: var(--primary-black);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.sub-nav-related .related-link {
    color: var(--gray-dark);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sub-nav-related .related-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-black);
    border-left-color: var(--primary-black);
}

.sub-nav-related .related-link i {
    font-size: 0.8rem;
}

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 100px;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .sidebar-nav {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary-black);
    outline-offset: 2px;
}

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

/* Section Spacing */
section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* Alert/Info Boxes */
.alert-box {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-black);
    background-color: var(--gray-light);
    margin: 2rem 0;
    border-radius: 4px;
}

.alert-box.warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

.alert-box.info {
    border-left-color: var(--gray-medium);
    background-color: var(--gray-light);
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-normal {
    background-color: var(--gray-light);
    color: var(--primary-black);
}

.badge-red-flag {
    background-color: var(--primary-black);
    color: var(--primary-white);
}
