/* Base Styles */
:root {
    --primary-color: #235a82;
    --primary-dark: #0f2b46;
    --primary-light: #5fb8ff;
    --dark-blue: #0a001c;
    --menu-dark-blue: #235a82;
    --gradient-blue-start: #3281BF;
    --gradient-blue-end: #276196;
    --text-color: #333333;
    --text-light: #ffffff;
    --background-color: #f9f9f9;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #666666;
    --card-bg: #ffffff;
    --card-highlight: #3a9ee4;
    --card-highlight-2: #ff6b6b;
    --card-highlight-3: #ffb347;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    border: none;
    background: none;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(160deg, var(--primary-color) 16%, var(--dark-blue) 82%);
    box-shadow: var(--box-shadow);
    padding: 16px 0;
    min-height: 80px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    height: 100%;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.2rem; 
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
    opacity: 0.9;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    opacity: 1;
    color: var(--text-light);
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link.active {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all var(--transition-speed);
}

/* Main Content Styles */
.main-content {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-color);
}

.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-heading {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    position: relative;
    padding: 0 var(--spacing-md);
    width: 100%;
    max-width: 800px;
    position: relative;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1), 0 0 2px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
    display: inline-block;
}

.cta-heading span {
    background: linear-gradient(160deg, var(--primary-color) 16%, var(--dark-blue) 82%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Enhanced Button Style */
.cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: var(--spacing-md);
    display: inline-block;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
    z-index: -1;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

.cta-button.pulse:hover {
    animation: none;
}

.features-section {
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1100px;
    margin: 0 auto;
}

/* Enhanced Feature Item Styles with Advanced Effects */
.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    background-color: var(--card-bg);
    transition: all var(--transition-speed);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.feature-item:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-highlight);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.feature-item:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-highlight-2);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.feature-item:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-highlight-3);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(245, 245, 245, 0.5), transparent);
    transition: height 0.4s ease;
    z-index: -1;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 0, 0, 0.05);
}

.feature-item:hover::after {
    height: 100%;
}

.feature-icon {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(58, 158, 228, 0.05);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon::before {
    transform: translate(-50%, -50%) scale(1.2);
    background: rgba(58, 158, 228, 0.1);
}

/* Lottie Animation Styles */
.lottie-animation {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: all 0.4s ease;
}

.feature-item:hover .lottie-animation {
    transform: scale(1.1);
}

/* Enhanced Card Heading Style with Advanced Effects */
.feature-item h3 {
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding-bottom: 8px;
    background: linear-gradient(160deg, var(--primary-color) 16%, var(--dark-blue) 82%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.feature-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--dark-blue));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.feature-item:hover h3 {
    transform: scale(1.05);
    letter-spacing: 0.8px;
}

.feature-item:hover h3::after {
    width: 70%;
}

/* Enhanced Card Text Style */
.feature-item p {
    color: var(--gray-dark);
    font-size: 1.05rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    transform: translateZ(0);
}

.feature-item:hover p {
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1), 0 0 2px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
    display: block;
    width: 100%;
}

.section-title span {
    background: linear-gradient(160deg, var(--primary-color) 16%, var(--dark-blue) 82%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.chat-section {
    margin-bottom: var(--spacing-xl);
    background-color: var(--gray-light);
    padding: var(--spacing-xl) 0;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.chat-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--background-color);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 600px;
}

#chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Chat Fallback Styles */
.chat-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #F0F8FF;
}

.chat-fallback-header {
    background-color: #3a9ee4;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.chat-fallback-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chat-fallback-message {
    text-align: center;
    max-width: 80%;
}

.chat-fallback-message p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.chat-fallback-loader {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.chat-fallback-loader span {
    height: 12px;
    width: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    opacity: 0.6;
}

.chat-fallback-loader span:nth-child(1) {
    animation: pulse 1s infinite;
}

.chat-fallback-loader span:nth-child(2) {
    animation: pulse 1s infinite 0.2s;
}

.chat-fallback-loader span:nth-child(3) {
    animation: pulse 1s infinite 0.4s;
}

.footer {
    background: linear-gradient(160deg, var(--primary-color) 16%, var(--dark-blue) 82%);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.footer-logo-container {
    margin-bottom: var(--spacing-lg);
}

.footer-logo-img {
    max-width: 150px;
    filter: brightness(0) invert(1);
}

/* Consistent Footer Navigation */
.footer-nav {
    margin-bottom: var(--spacing-lg);
}

.footer-nav-list {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-nav-link {
    color: var(--text-light);
    opacity: 0.9;
    transition: all var(--transition-speed);
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
}

.footer-nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-nav-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-nav-link:hover::before {
    width: 70%;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-light);
    opacity: 0.8;
    transition: all var(--transition-speed);
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-link:hover::before {
    width: 70%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.scroll-top {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
    overflow: hidden;
    position: relative;
}

.scroll-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.4s ease;
}

.scroll-top:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.scroll-top:hover::before {
    transform: scale(1.5);
    opacity: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 80px; 
        right: -100%;
        width: 70%;
        height: calc(100vh - 80px);
        background-color: var(--menu-dark-blue); 
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-xl) var(--spacing-md);
        transition: right var(--transition-speed);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        color: var(--text-light);
        font-size: 1.3rem; /* Increased font size for mobile */
        padding: var(--spacing-md) var(--spacing-lg);
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .legal-links, .footer-nav-list {
        gap: var(--spacing-md);
    }
    
    .cta-heading {
        font-size: 2.2rem;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .cta-heading {
        font-size: 1.8rem;
    }

    .header {
        padding: 12px 0;
        display: flex;
    }

    .logo img {
        height: 30px;
        vertical-align: middle;
    }
    
    .legal-links, .footer-nav-list {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.pulse {
    animation: pulse 2s infinite;
}

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

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}