/* ==============================================
   VigoServices - Modern & Distinctive Styles
   ============================================== */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors - Vibrant Blue with depth */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    
    /* Accent Colors */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    
    /* Neutral Colors */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --light: #f1f5f9;
    --white: #ffffff;
    
    /* Semantic Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem 0;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================================
   Base Styles
   ============================================== */

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ==============================================
   Navbar
   ============================================== */

#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    transition: var(--transition);
}

.logo-text {
    color: var(--dark);
}

.logo-accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 15px;
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    min-width: 220px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-weight: 500;
    color: var(--dark);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-item:active {
    background: var(--primary);
    color: white;
}

.dropdown-item i {
    width: 20px;
    display: inline-block;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.2;
}

.dropdown-toggle::after {
    margin-left: 0.5em;
}

.btn-cta {
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    background: var(--primary-gradient);
    border: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==============================================
   Hero Section
   ============================================== */

.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    top: 50%;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    bottom: -100px;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Search Bar */
.hero-search {
    margin-bottom: 3rem;
}

.search-container {
    position: relative;
    background: var(--white);
    border-radius: 60px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.search-container:focus-within {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.search-icon {
    padding-left: 1.5rem;
    color: var(--gray);
    font-size: 1.25rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.75rem 0;
    font-family: var(--font-body);
}

.search-button {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-light);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card span {
    font-weight: 600;
    color: var(--dark);
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 100px;
    right: 100px;
    animation-delay: -2s;
}

.card-3 {
    bottom: 150px;
    left: 100px;
    animation-delay: -4s;
}

.card-4 {
    bottom: 50px;
    right: 50px;
    animation-delay: -3s;
}

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

/* ==============================================
   Sections
   ============================================== */

section {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
}

/* ==============================================
   Category Cards
   ============================================== */

.categories-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.category-card {
    display: block;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.category-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.category-count {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.category-arrow {
    color: var(--primary);
    font-size: 1.25rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* ==============================================
   Ad Cards
   ============================================== */

.featured-section {
    background: var(--white);
}

.ad-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ad-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.ad-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ad-image-placeholder {
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.ad-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--light);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.ad-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.ad-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex: 1;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.ad-location {
    color: var(--gray);
    font-size: 0.875rem;
}

.ad-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.ad-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ==============================================
   How It Works
   ============================================== */

.how-it-works-section {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.step-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    right: 2rem;
    font-size: 6rem;
    font-weight: 900;
    color: var(--light);
    font-family: var(--font-display);
    line-height: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.step-icon i {
    font-size: 2rem;
    color: var(--white);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--gray);
    line-height: 1.7;
}

/* ==============================================
   Why Publish Section (New SEO Section)
   ============================================== */

.why-publish-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.why-publish-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-publish-content .lead {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.6;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.benefit-text {
    color: var(--gray);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Stats Cards in Why Publish Section */
.why-publish-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card-primary {
    border-left: 4px solid var(--primary);
}

.stat-card-success {
    border-left: 4px solid var(--success);
}

.stat-card-warning {
    border-left: 4px solid var(--warning);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--primary);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: var(--success);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: var(--warning);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

/* Testimonial Card */
.testimonial-card {
    grid-column: 1 / -1;
    background: var(--primary-gradient);
    padding: 2.5rem;
    border-radius: 20px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.testimonial-quote {
    font-size: 3rem;
    opacity: 0.2;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    font-size: 1rem;
    font-weight: 700;
}

.testimonial-author span {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ==============================================
   CTA Section
   ============================================== */

.cta-section {
    padding: 4rem 0;
}

.cta-card {
    background: var(--primary-gradient);
    padding: 4rem 3rem;
    border-radius: 30px;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.cta-card .btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cta-card .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ==============================================
   Footer
   ============================================== */

.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 4rem 0 2rem;
}

.footer p {
    color: var(--gray-light);
}

.footer .text-muted {
    color: var(--gray-light) !important;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand .logo-accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--dark-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==============================================
   Messages & Alerts
   ============================================== */

.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 40px);
}

.message-alert {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.5s ease;
    margin-bottom: 1rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-alert.fade.show {
    opacity: 1;
}

.message-alert.fade:not(.show) {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   Utilities
   ============================================== */

.min-vh-80 {
    min-height: 80vh;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==============================================
   Responsive
   ============================================== */

@media (max-width: 991px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .cta-card {
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .why-publish-stats {
        margin-top: 3rem;
    }
    
    .benefit-item {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .search-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .why-publish-stats {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin: 0 auto;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .messages-container {
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .message-alert {
        font-size: 0.875rem;
    }
}
