/* Modern Landing Page Enhancements */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Global modern styles */
:root {
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-green: #10b981;
    --primary-green-light: #34d399;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* Enhanced body styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
}

/* Modern hero section */
.hero-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Enhanced slider text styling */
.hero-txt {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-txt span {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.hero-txt h1 {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
    word-spacing: 0.1em;
}

.hero-txt p {
    font-weight: 400;
    opacity: 0.95;
    text-align: center;
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    opacity: 0.1;
    z-index: 1;
}

/* Additional slider enhancements */
.hero2-carousel .owl-item {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-txt span,
.hero-txt h1,
.hero-txt p {
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved button styling */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.hero-txt p {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Modern button styles */
a.hero-boxed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    background: #007bff !important;
    border: 2px solid #007bff !important;
    border-radius: 50px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
    margin: 0 8px;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
}

a.hero-boxed-btn:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 86, 179, 0.4);
    color: #ffffff !important;
}

a.hero-boxed-btn.primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-color: transparent;
    color: #ffffff;
}

a.hero-boxed-btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.3);
}

/* Modern feature cards */
.hero-features {
    margin-top: 80px;
    position: relative;
    z-index: 100;
}

.single-hero-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.single-hero-feature:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
}

.single-hero-feature .icon-wrapper {
    width: 80px;
    height: 80px;
    background: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.single-hero-feature .icon-wrapper i {
    font-size: 32px;
    color: #007bff !important;
}

.single-hero-feature:hover .icon-wrapper {
    background: #007bff !important;
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.5);
}

.single-hero-feature:hover .icon-wrapper i {
    color: white !important;
}

.single-hero-feature h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.single-hero-feature p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Modern intro section */
.intro-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-txt {
        padding: 60px 0;
    }

    .hero-txt h1 {
        font-size: 48px;
        margin-bottom: 24px;
    }

    .hero-txt p {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
    }

    a.hero-boxed-btn {
        padding: 16px 28px;
        font-size: 14px;
        margin: 0;
        width: auto;
        min-width: 200px;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .single-hero-feature {
        padding: 32px 20px;
        margin-bottom: 20px;
    }

    .single-hero-feature .icon-wrapper {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .single-hero-feature .icon-wrapper i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-txt span {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-txt h1 {
        font-size: 36px;
    }

    .hero-txt p {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-buttons {
        margin-top: 28px;
        gap: 10px;
    }

    a.hero-boxed-btn {
        padding: 14px 24px;
        font-size: 13px;
        min-width: 180px;
        border-radius: 40px;
    }
}

@media (max-width: 375px) {
    .hero-txt span {
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .hero-txt h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-txt p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        margin-top: 24px;
        gap: 8px;
    }

    a.hero-boxed-btn {
        padding: 12px 20px;
        font-size: 12px;
        min-width: 160px;
        letter-spacing: 0.5px;
    }
}

/* Mobile-specific button fixes */
@media (max-width: 768px) {
    /* Override any conflicting styles */
    .hero-buttons a.hero-boxed-btn {
        width: auto !important;
        height: auto !important;
        line-height: normal !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Ensure buttons are clickable */
    .hero-buttons a.hero-boxed-btn {
        pointer-events: auto !important;
        position: relative !important;
        z-index: 1001 !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    /* Fix for very small screens */
    @media (max-width: 320px) {
        .hero-buttons {
            padding: 0 10px;
        }

        a.hero-boxed-btn {
            min-width: 140px;
            padding: 10px 16px;
            font-size: 11px;
        }
    }
}

/* Modern animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-txt span {
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-txt h1 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-txt p {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

a.hero-boxed-btn {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.single-hero-feature {
    animation: fadeInUp 0.8s ease-out both;
}

.single-hero-feature:nth-child(1) { animation-delay: 1s; }
.single-hero-feature:nth-child(2) { animation-delay: 1.2s; }
.single-hero-feature:nth-child(3) { animation-delay: 1.4s; }
.single-hero-feature:nth-child(4) { animation-delay: 1.6s; }

/* Modern section styling */
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-summary {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 24px;
}

.section-summary.large {
    font-size: 56px;
}

/* Modern card styles */
.modern-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Modern button variations */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-modern.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
    color: #ffffff;
}

.btn-modern.btn-secondary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-modern.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
    color: #ffffff;
}

.btn-modern.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-modern.btn-outline:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* Modern navigation enhancements */
.main-menu li a {
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-menu li a:hover {
    color: var(--primary-blue) !important;
}

/* Modern footer */
.footer-section {
    background: linear-gradient(135deg, var(--text-dark) 0%, #111827 100%);
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
}

/* Enhanced spacing */
.py-modern {
    padding-top: 120px;
    padding-bottom: 120px;
}

.py-modern-sm {
    padding-top: 80px;
    padding-bottom: 80px;
}

.py-modern-lg {
    padding-top: 160px;
    padding-bottom: 160px;
}

/* Modern responsive grid */
.modern-grid {
    display: grid;
    gap: 32px;
}

.modern-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modern-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.modern-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Enhanced responsive breakpoints */
@media (max-width: 1200px) {
    .section-summary {
        font-size: 42px;
    }

    .section-summary.large {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .py-modern {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .py-modern-lg {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .modern-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .section-summary {
        font-size: 36px;
    }

    .section-summary.large {
        font-size: 42px;
    }

    .py-modern {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .py-modern-sm {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .modern-card {
        padding: 24px;
    }

    .btn-modern {
        padding: 14px 28px;
        font-size: 14px;
    }
}
