/* Main Header */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: radial-gradient(circle at 10% 20%, rgba(108, 93, 211, 0.05) 0%, rgba(255, 255, 255, 0) 40%);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(108, 93, 211, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

/* Hero Slider Styles */
/* Hero Graphic (Restored & Enhanced) */
/* Hero Graphic (Restored & Enhanced) */
.hero-graphic {
    position: relative;
    width: 300px;
    /* Mobile width */
    height: 600px;
    /* Mobile height */
    margin: 0 auto;
    background: linear-gradient(135deg, #F0F3F6 0%, #E6E9EF 100%);
    border-radius: 30px;
    /* More rounded corners for phone look */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Keep slider/images inside */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 8px solid #fff;
    /* Bezel effect */
}

/* Slider inside Graphic */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    /* Don't touch edges */
    height: 80%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

/* Floating Tooltip/Tags */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
    /* Dark, high contrast text */
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    /* Above slider */
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: float 4s ease-in-out infinite;
}

.hero-slider .slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    /* Full width for cover */
    height: 100%;
    /* Full height for cover */
    object-fit: cover;
    /* Center crop */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.floating-card i {
    color: var(--primary-color);
}

.card-1 {
    top: 15%;
    left: 20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: 20px;
    animation-delay: 1.5s;
}

.card-3 {
    top: 40%;
    right: -10px;
    animation-delay: 0.8s;
}

.card-4 {
    bottom: 10%;
    left: 30px;
    animation-delay: 2.2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Calculator Section Tabs */
.calc-tabs {
    margin-bottom: var(--spacing-lg);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}



/* Footer Enhanced */
.main-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    padding-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* About Section Enhancements */
#about {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-card) 100%);
}

#about h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

#about .fa-check {
    background: rgba(74, 217, 145, 0.1);
    /* Success Light */
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}

/* Modal / Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.promo-modal {
    background: var(--bg-card);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .promo-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.promo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(108, 93, 211, 0.3);
}

.promo-features {
    text-align: left;
    margin: 20px 0;
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 12px;
}

.promo-features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Header */
    .nav-menu {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        gap: 10px;
    }

    .mobile-toggle {
        display: block;
        /* Show hamburger on mobile */
    }

    /* Hero Section */
    .hero-section .grid-2 {
        grid-template-columns: 1fr;
        /* Stack vertically */
        text-align: center;
    }

    .hero-content {
        order: 2;
        /* Image first, then text if desired, or default */
        margin-top: 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero Graphic */
    .hero-graphic {
        width: 100%;
        max-width: 300px;
        /* Keep mobile look but ensure it fits */
        height: 550px;
        /* Slightly shorter for mobile screens */
    }

    /* Features & Testimonials Grid */
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}