/**
 * kassel.agency - Multi-Level B2B Advertising Marketplace
 *
 * File: assets/css/main.css
 * Purpose: Main stylesheet for the application
 * Version: 2.1.0
 * Created: 2026-01-26
 * Last Modified: 2026-01-26
 *
 * @package kassel-agency
 * @author Development Team
 * @copyright 2026 kassel.agency
 * @license Proprietary
 */

/* ============================================================================
   CSS Variables
   ============================================================================ */

:root {
    /* Colors */
    --primary-color: #0066CC;
    --primary-dark: #0052A3;
    --primary-light: #3385D6;
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --info-color: #17A2B8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-danger: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Spacing */
    --spacer: 1rem;

    /* Borders */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-base: all 0.3s ease;
}

/* ============================================================================
   Base Styles
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: #212529;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.min-vh-75 {
    min-height: 75vh;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,0,0,0.02)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.trust-signals {
    font-size: 0.875rem;
}

/* ============================================================================
   Statistics Bar
   ============================================================================ */

.stats-section {
    background: var(--gradient-primary);
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    opacity: 0.9;
}

/* ============================================================================
   How It Works Section
   ============================================================================ */

.how-it-works-section .step-card {
    transition: var(--transition-base);
    position: relative;
}

.how-it-works-section .step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.how-it-works-section .step-number {
    position: relative;
}

/* Add connector lines between steps (desktop only) */
@media (min-width: 768px) {
    .how-it-works-section .col-md-4:not(:last-child) .step-card::after {
        content: '';
        position: absolute;
        top: 50px;
        right: -20%;
        width: 40%;
        height: 2px;
        background: linear-gradient(to right, var(--primary-color), transparent);
        z-index: -1;
    }
}

/* ============================================================================
   Agency Cards
   ============================================================================ */

.agency-card {
    transition: var(--transition-base);
}

.agency-card:hover {
    box-shadow: var(--shadow-lg);
}

.agency-logo img {
    border: 2px solid #f8f9fa;
    transition: var(--transition-base);
}

.agency-card:hover .agency-logo img {
    border-color: var(--primary-color);
}

.stars i {
    font-size: 0.875rem;
}

.specialties .badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
}

/* ============================================================================
   Specialty Cards
   ============================================================================ */

.specialty-card {
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.specialty-card:hover::before {
    opacity: 0.05;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.specialty-icon {
    transition: transform 0.3s ease;
}

.specialty-card:hover .specialty-icon {
    transform: scale(1.1);
}

/* ============================================================================
   Project Cards
   ============================================================================ */

.project-card {
    transition: var(--transition-base);
    border-left: 4px solid transparent;
}

.project-card:hover {
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.project-budget .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.project-specialties .badge {
    font-weight: 500;
}

/* ============================================================================
   News Cards
   ============================================================================ */

.news-card {
    transition: var(--transition-base);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    color: #6c757d;
}

/* ============================================================================
   CTA Section
   ============================================================================ */

.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* ============================================================================
   FAQ Section
   ============================================================================ */

.faq-section .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-section .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
    border: none;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.faq-section .accordion-body {
    padding: 1.5rem;
    background-color: white;
    line-height: 1.8;
}

/* ============================================================================
   Navbar Enhancements
   ============================================================================ */

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

/* ============================================================================
   Cards
   ============================================================================ */

.card {
    border-radius: var(--border-radius-lg);
    border: none;
}

.card-img-top {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* ============================================================================
   Badges
   ============================================================================ */

.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: var(--border-radius-sm);
}

/* ============================================================================
   Footer Enhancements
   ============================================================================ */

footer a {
    transition: var(--transition-base);
}

footer a:hover {
    color: white !important;
    padding-left: 5px;
}

.social-links .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links .btn:hover {
    transform: translateY(-3px);
}

/* ============================================================================
   Loading Spinner
   ============================================================================ */

.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 991px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stats-section .row {
        text-align: center;
    }

    .stat-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .step-card {
        margin-bottom: 2rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section .lead {
        font-size: 1rem;
    }
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
    .navbar,
    .cta-section,
    footer {
        display: none;
    }
}

/* ============================================================================
   Accessibility
   ============================================================================ */

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }

    .card {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}