/* ========================
   Faster Fade-in Animation Override
   ======================== */
.fade-in-up {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    transform: translateY(30px);
}

/* ========================
   Hero Section
   ======================== */
.hero {
    position: relative;
    min-height: 35vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px !important;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    padding: 40px 20px !important;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
    color: white !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
}

/* ========================
   Buttons
   ======================== */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
    border: none !important;
    white-space: nowrap !important;
    min-height: 50px !important;
}

.btn-white {
    background: white !important;
    color: var(--primary-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.btn-white:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.btn-outline-white {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.btn-outline-white:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px) !important;
}

/* ========================
   Features Section
   ======================== */
.bg-gradient-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.bg-gradient-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.feature-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: white;
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.feature-icon-box i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.feature-list li i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-highlight-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 50px 40px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.feature-highlight-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.feature-highlight-title i {
    color: var(--secondary-color);
    font-size: 2.2rem;
}

.feature-highlight-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 35px;
}

.feature-highlight-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================
   Modal Styles
   ======================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 30px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-phone {
    width: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-phone-notch {
    display: none;
}

.modal-phone-screen {
    background: white;
    min-height: 600px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
}

.modal-phone-screen::-webkit-scrollbar {
    width: 6px;
}

.modal-phone-screen::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-phone-screen::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.modal-screen-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.modal-screen-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.modal-screen-icon i {
    font-size: 2.5rem;
    color: white;
}

.modal-screen-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-screen-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.modal-screen-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.modal-screen-body {
    padding: 25px 20px;
}

.modal-feature-section {
    margin-bottom: 25px;
}

.modal-feature-section h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-feature-section h3 i {
    color: var(--primary-color);
}

.modal-feature-section p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-feature-list {
    list-style: none;
    padding: 0;
}

.modal-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.modal-feature-list li i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}

.modal-cta-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition);
}

.modal-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 768px) {
    .hero {
        min-height: 30vh !important;
    }

    .hero-content {
        padding: 30px 20px !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .feature-highlight-title {
        font-size: 1.5rem;
        flex-direction: column;
    }

    .feature-highlight-description {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0 !important;
    }

    .feature-highlight-buttons {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    /* Modal fixes for mobile */
    .modal-overlay {
        padding: 10px !important;
    }

    .modal-content {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 85vh !important;
        margin: auto !important;
    }

    .modal-phone-screen {
        min-height: 500px;
        max-height: 70vh !important;
    }

    .modal-close {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.2rem !important;
        top: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .modal-screen-title {
        font-size: 1.3rem;
    }

    .modal-screen-image {
        height: 200px;
        font-size: 3rem;
    }
}
