/* Modern Template Enhancements */

/* ========== Base Typography ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .cta-title, .plan-name, .service-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ========== Section Header Global Styles ========== */
.section-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    padding-bottom: 1rem;
}

.section-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #0f3460, #533483);
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(15, 52, 96, 0.3);
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1.25rem;
}

.section-header.text-center .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0f3460, #533483);
    border-radius: 2px;
    margin: 1rem auto 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 650px;
    margin: 0.75rem auto 0;
    line-height: 1.8;
    font-weight: 400;
    padding-bottom: 2rem;
}

/* Add AOS (Animate On Scroll) Library */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f3460;
}

/* Button Enhancements */
.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image Hover Effects */
img {
    transition: all 0.3s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* Pulse Animation for Important Elements */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Improved Link Hover */
a {
    transition: all 0.3s ease;
}

/* Particle Background Effect */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

/* Responsive Utilities */
@media (max-width: 991px) {
    .section-title {
        font-size: 2.25rem !important;
    }
    
    .section-subtitle {
        font-size: 1.05rem !important;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.85rem !important;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Print Styles */
@media print {
    .hero-section,
    .cta-section {
        background: #fff !important;
        color: #000 !important;
    }
}

/* 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-width: 0;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0f3460;
    outline-offset: 2px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #1a202c;
    color: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 5px;
}

[data-tooltip]:hover:before {
    opacity: 1;
}

/* Badge Styles */
.badge-modern {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
    border-radius: 50px;
}

/* Notification Dot */
.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

/* Enhanced Form Inputs */
.form-control:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 0.2rem rgba(15, 52, 96, 0.2);
}

/* Progress Bar */
.progress-modern {
    height: 8px;
    border-radius: 50px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-modern-bar {
    height: 100%;
    background: linear-gradient(90deg, #0f3460 0%, #533483 100%);
    border-radius: 50px;
    transition: width 0.3s ease;
}

/* Sticky Header Enhancement */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(15, 52, 96, 0.35);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(15, 52, 96, 0.45);
}
