/* Custom CSS for Guest Post Agency Website */

/* Import Google Fonts */
@import url('google-fonts.css');

/* Root Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Typography - Optimized for 100% zoom */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Sectioned h1 elements - explicit styling */
section h1 {
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

article h1 {
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

aside h1 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

nav h1 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Global Section Optimization for 100% Zoom */
section {
    padding: 3rem 0;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-4 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.mb-5 {
    margin-bottom: 2.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Hero Section Optimization */
.hero-section {
    background: linear-gradient(135deg, #e6f3ff 0%, rgba(135, 206, 250, 0.15) 50%, #f0f8ff 100%);
    padding: 3rem 0;
    min-height: 70vh;
}

.hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 0.75rem;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-item small {
    font-size: 0.875rem;
}

/* Card Components Optimization */
.service-card, .feature-card, .testimonial-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.service-card h5, .feature-card h5 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.service-card p, .feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.service-icon, .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Contact Form Optimization */
.contact-form-card {
    padding: 2rem;
}

.form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
}

/* Global overrides for inline styles optimization */
.hero-section .display-4 {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
}

.hero-section .lead {
    font-size: 1.125rem !important;
    margin-bottom: 1.5rem !important;
}

/* Service page specific optimizations */
.service-card, .feature-card, .testimonial-card,
.package-card, .benefit-item, .industry-card,
.contact-info-card, .outreach-feature-box {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.service-icon, .feature-icon, .benefit-icon,
.industry-icon, .contact-icon {
    width: 3rem !important;
    height: 3rem !important;
    font-size: 1.25rem !important;
}

/* Process timeline optimization */
.step-number {
    width: 3rem !important;
    height: 3rem !important;
    font-size: 1.25rem !important;
}

/* Pricing table optimization */
.package-price .amount {
    font-size: 2.25rem !important;
}

.package-price .currency {
    font-size: 1.25rem !important;
}

/* Responsive adjustments for better scaling */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1200px;
    }

    .hero-content h1, .display-4 {
        font-size: 2.5rem !important;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons - Optimized sizing */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Header Styles - Optimized sizing */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0;
}

.navbar-logo {
    height: 55px;
    width: auto;
    max-width: 220px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--secondary-color) !important;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Logo animation for brand recognition */
@keyframes logoGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.navbar-logo:hover {
    animation: logoGlow 2s ease-in-out;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.25rem;
    padding: 0.625rem 1.125rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    min-height: 44px;
    font-size: 0.875rem;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i {
    transform: scale(1.1) rotate(3deg);
}

/* Navbar container improvements */
.navbar-nav {
    align-items: center;
    gap: 0.25rem;
}

.navbar-collapse {
    flex-grow: 0;
}

/* Mobile navbar improvements */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: scale(1.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Colorful Navigation Icons */
.nav-link .fa-home { color: #10b981; }
.nav-link .fa-users { color: #3b82f6; }
.nav-link .fa-cogs { color: #8b5cf6; }
.nav-link .fa-blog { color: #f59e0b; }
.nav-link .fa-pencil-alt { color: #ef4444; }
.nav-link .fa-tools { color: #06b6d4; }
.nav-link .fa-envelope { color: #ec4899; }

/* Service dropdown icons */
.dropdown-item .fa-edit { color: #10b981; }
.dropdown-item .fa-pen { color: #3b82f6; }
.dropdown-item .fa-link { color: #8b5cf6; }
.dropdown-item .fa-search { color: #f59e0b; }
.dropdown-item .fa-list { color: #6b7280; }

/* Tools dropdown icons */
.dropdown-item .fa-key { color: #ef4444; }
.dropdown-item .fa-external-link-alt { color: #10b981; }
.dropdown-item .fa-chart-line { color: #3b82f6; }
.dropdown-item .fa-analytics { color: #8b5cf6; }

/* Enhanced dropdown styling - Optimized */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.07);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
    animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-size: 0.825rem;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05));
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.dropdown-item i {
    margin-right: 1rem;
    width: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Dropdown divider styling */
.dropdown-divider {
    margin: 0.75rem 0;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
    height: 1px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e6f3ff 0%, rgba(135, 206, 250, 0.15) 50%, #f0f8ff 100%);
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    filter: brightness(1.3);
    transform: scale(1.05);
}

.footer h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design - Optimized */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.125rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 2.5rem 0;
        min-height: 60vh;
    }

    .services-section,
    .features-section {
        padding: 2.5rem 0;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .hero-stats {
        margin-top: 2rem;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    /* Mobile navbar improvements */
    .navbar-nav {
        text-align: center;
        padding: 1.5rem 0;
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
        border-radius: 1rem;
        margin: 1rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 1rem 1.5rem !important;
        border-radius: 0.75rem;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .navbar-nav .nav-link:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    }

    .dropdown-menu {
        text-align: center;
        border: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
        border-radius: 1rem;
        margin: 0.5rem 1rem;
        position: static !important;
        transform: none !important;
        width: auto;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-logo {
        height: 45px;
        max-width: 180px;
    }

    .navbar-toggler {
        border-radius: 0.75rem;
        padding: 0.75rem;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 40px;
        max-width: 150px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 2rem 0;
        min-height: 50vh;
    }

    .services-section,
    .features-section {
        padding: 3rem 0;
    }

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

    .service-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Utility Classes */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-card {
        padding: 2.5rem 1.5rem;
    }

    .service-card:hover {
        transform: none;
    }

    .service-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000080;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
}

