/* Modern Layer7 Networks Styles */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-light: #f8fafc;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Global Improvements */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Modern Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

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

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

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

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

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    color: var(--text-dark);
    position: relative;
}

.hero-section .container {
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.75rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Modern Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Modern Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: scale(1.01);
}

/* Modern Pills & Tabs */
.nav-pills .nav-link {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: var(--shadow-md);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-light);
}

/* Alert Improvements */
.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow-md);
}

.alert-success a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

/* Box Improvements */
.box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.box:hover {
    box-shadow: var(--shadow-lg);
}

.box h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.box ul {
    list-style: none;
    padding-left: 0;
}

.box ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Footer */
.page-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.page-footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

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

.page-footer a:hover {
    color: white;
    padding-left: 5px;
}

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

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

.block-heading h1,
.block-heading h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-info {
    color: var(--primary-color) !important;
}

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

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease;
}

/* Outline Light Button */
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    border-radius: 8px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: white;
}

/* Button Size */
.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Gap Utility */
.gap-3 {
    gap: 1rem;
}

/* Lead Text */
.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Text Muted */
.text-muted {
    color: var(--text-light) !important;
}

/* Background Success */
.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 50px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .nav-pills .nav-link {
        margin-bottom: 0.5rem;
    }

    section {
        padding: 3rem 0;
    }

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

    .btn-lg {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* Icon Improvements */
.bs-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-md);
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Divider */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 3rem 0;
}

/* Modern Spacing */
.section-padding {
    padding: 5rem 0;
}

/* Clean Block Improvements */
.clean-block {
    background: var(--bg-light);
}

.features-boxed {
    background: var(--bg-light);
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.5s ease;
}

/* Badge */
.badge {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Additional Improvements */
.page {
    padding-top: 70px;
}

/* Links */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Improved Feature Box List Items */
.features-boxed .box ul li {
    transition: all 0.2s ease;
}

.features-boxed .box ul li:hover {
    padding-left: 2rem;
}

/* Smooth Page Transitions */
main {
    animation: fadeIn 0.5s ease;
}

/* Card Hover Effects */
.item .box {
    transition: all 0.3s ease;
}

.item .box:hover {
    transform: translateY(-5px);
}

/* Improved Header Spacing */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Better Focus States */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improved Table Striping */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(37, 99, 235, 0.03);
}

/* Better Image Handling */
img {
    max-width: 100%;
    height: auto;
}

/* Enhanced Shadow on Scroll */
.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

/* Pricing Highlight */
.pricing-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid var(--primary-color);
}

/* Feature Badge */
.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem;
}

/* Container Max Width */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Improved Navigation Active State */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Better Spacing for Sections */
.clean-block.features {
    padding: 2rem 0;
}

/* Improved Block Heading */
.block-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.block-heading h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Card Body Improvements */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

/* Reduce spacing between pricing buttons */
.features .col hr {
    margin: 1rem 0;
    opacity: 0.2;
}

.features-boxed hr {
    margin: 1rem 0;
    opacity: 0.2;
}

/* Remove border from block heading */
.block-heading {
    border-bottom: none !important;
}

.clean-block.features {
    border-bottom: none !important;
}

/* Remove gap after main section on cloud-server page */
main.landing-page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.clean-block.features .block-heading {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.clean-block.features .block-heading h1 {
    margin-bottom: 0 !important;
}

.features-boxed {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Prevent color change on hover for nav-pills location tabs */
.nav-pills .nav-link:hover {
    color: inherit !important;
}
