/* ===== BASE STYLES ===== */
:root {
    --primary: #0f4c75;
    --primary-light: #3282b8;
    --dark: #1b262c;
    --light: #ffffff;
    --gray: #f5f7fa;
    --gray-dark: #e1e5eb;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 10px 30px rgba(15, 76, 117, 0.1);
    --shadow-light: 0 5px 15px rgba(15, 76, 117, 0.05);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.highlight {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(15, 76, 117, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(15, 76, 117, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 140px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 247, 255, 1) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    margin-bottom: 20px;
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dashboard-preview {
    position: relative;
}

.dashboard-frame {
    background: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.dashboard-frame:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.dashboard-nav {
    background-color: var(--dark);
    padding: 15px;
    display: flex;
    gap: 10px;
}

.dashboard-nav span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light);
    opacity: 0.7;
}

.dashboard-content {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-widget {
    background-color: var(--gray);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
}

.widget-header {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray-dark);
    padding-bottom: 10px;
}

.widget-header h4 {
    font-size: 1.2rem;
    color: var(--dark);
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.donation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--gray-dark);
}

.donor {
    font-weight: 500;
}

.amount {
    font-weight: 700;
    color: var(--primary);
}

/* ===== FEATURES SECTION ===== */
.features {
    background-color: var(--gray);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(15, 76, 117, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.feature-title {
    margin-bottom: 15px;
}

.feature-description {
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===== COMPARISON SECTION ===== */
.comparison {
    background-color: var(--light);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

thead {
    background-color: var(--dark);
    color: var(--light);
}

th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid var(--gray-dark);
    transition: var(--transition);
}

tbody tr:hover {
    background-color: rgba(15, 76, 117, 0.05);
}

td {
    padding: 20px;
}

td i.fa-check-circle {
    color: #28a745;
}

td i.fa-check {
    color: #17a2b8;
}

td i.fa-times {
    color: #dc3545;
}

td strong {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ===== PRICING SECTION ===== */
.pricing {
    background-color: var(--gray);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--light);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-dark);
}

.plan-name {
    margin-bottom: 15px;
    color: var(--dark);
}

.plan-price {
    margin-bottom: 10px;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark);
}

.plan-price .period {
    color: var(--text-light);
    font-size: 1rem;
}

.plan-description {
    color: var(--text-light);
}

.pricing-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--gray-dark);
    display: flex;
    align-items: center;
}

.pricing-features li i {
    margin-right: 10px;
    width: 20px;
}

.pricing-features li i.fa-check {
    color: #28a745;
}

.pricing-features li i.fa-times {
    color: #dc3545;
}

.pricing-action {
    margin-top: auto;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--light);
    text-align: center;
}

.cta-title {
    color: var(--light);
    margin-bottom: 20px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta .btn-primary {
    background-color: var(--light);
    color: var(--primary);
    border-color: var(--light);
}

.cta .btn-primary:hover {
    background-color: transparent;
    color: var(--light);
    border-color: var(--light);
}

.cta .btn-outline {
    background-color: transparent;
    color: var(--light);
    border-color: var(--light);
}

.cta .btn-outline:hover {
    background-color: var(--light);
    color: var(--primary);
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--light);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 30px;
}

.signup-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.2);
}

.form-note {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-light);
}

.form-note a {
    color: var(--primary);
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* ===== ANIMATION CLASSES ===== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeLeft 0.8s ease forwards;
}

.animate-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* == */
/* Additional styles for new features */
        .logo-strip-container {
            overflow: hidden;
            background: linear-gradient(90deg, #0f4c75 0%, #1b262c 100%);
            padding: 20px 0;
            margin-top: 40px;
            border-radius: var(--radius);
            position: relative;
        }
        
        .logo-strip {
            display: flex;
            animation: scrollLogos 40s linear infinite;
            width: max-content;
        }
        
        .logo-strip:hover {
            animation-play-state: paused;
        }
        
        .logo-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0 40px;
            min-width: 120px;
        }
        
        .logo-item img {
            width: 60px;
            height: 60px;
            object-fit: contain;
            margin-bottom: 10px;
            filter: brightness(0) invert(1);
            opacity: 0.8;
            transition: var(--transition);
        }
        
        .logo-item:hover img {
            opacity: 1;
            transform: scale(1.1);
        }
        
        .logo-item span {
            color: white;
            font-size: 0.9rem;
            text-align: center;
            opacity: 0.9;
        }
        
        @keyframes scrollLogos {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }
        
        /* Testimonials Styles */
        .testimonials {
            background: linear-gradient(135deg, #f8fafc 0%, #e8f4ff 100%);
        }
        
        .testimonial-slider {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            overflow: hidden;
        }
        
        .testimonial-track {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .testimonial-card {
            min-width: 100%;
            padding: 40px;
            background: white;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            position: relative;
            opacity: 0;
            transform: translateY(30px) scale(0.9);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .testimonial-card.active {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        
        .testimonial-rating {
            color: #FFD700;
            font-size: 1.5rem;
            margin-bottom: 20px;
        }
        
        .testimonial-text {
            font-size: 1.2rem;
            font-style: italic;
            margin-bottom: 30px;
            position: relative;
            padding-left: 30px;
        }
        
        .testimonial-text::before {
            content: '"';
            position: absolute;
            left: 0;
            top: -20px;
            font-size: 4rem;
            color: var(--primary);
            opacity: 0.3;
            font-family: Georgia, serif;
        }
        
        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .testimonial-photo {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--primary);
        }
        
        .testimonial-info h4 {
            margin-bottom: 5px;
            color: var(--dark);
        }
        
        .testimonial-info p {
            color: var(--text-light);
            margin-bottom: 5px;
        }
        
        .church-info {
            display: flex;
            gap: 15px;
            font-size: 0.9rem;
            color: var(--primary);
        }
        
        .testimonial-nav {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 40px;
        }
        
        .testimonial-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--gray-dark);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .testimonial-dot.active {
            background: var(--primary);
            transform: scale(1.2);
        }
        
        .testimonial-nav-buttons {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            pointer-events: none;
        }
        
        .testimonial-nav-buttons button {
            background: var(--primary);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            pointer-events: all;
            transition: var(--transition);
            opacity: 0.8;
        }
        
        .testimonial-nav-buttons button:hover {
            opacity: 1;
            transform: scale(1.1);
        }
        
        /* FAQ Styles */
        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .faq-item {
            background: white;
            border-radius: var(--radius);
            margin-bottom: 15px;
            overflow: hidden;
            box-shadow: var(--shadow-light);
            transition: var(--transition);
        }
        
        .faq-question {
            padding: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            background: linear-gradient(90deg, rgba(15, 76, 117, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
        }
        
        .faq-question h3 {
            margin: 0;
            font-size: 1.2rem;
            color: var(--dark);
        }
        
        .faq-icon {
            font-size: 1.5rem;
            color: var(--primary);
            transition: transform 0.3s ease;
        }
        
        .faq-item.active .faq-icon {
            transform: rotate(45deg);
        }
        
        .faq-answer {
            padding: 0 25px;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .faq-item.active .faq-answer {
            padding: 0 25px 25px;
            max-height: 500px;
        }
        
        /* Calculator Styles */
 /* ===== COMPACT CALCULATOR SECTION ===== */
.calculator-section {
    background: linear-gradient(135deg, #0f4c75 0%, #1b262c 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.calculator-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Left Column */
.calculator-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Updated 3D Card - with Zion CHMS color palette */
.calculator-card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    height: 200px;
}

.bank-card {
    background: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 15px 35px rgba(15, 76, 117, 0.3);
    transform: rotateY(-5deg) rotateX(3deg);
    transition: transform 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: shine 3s infinite linear;
}

.bank-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.chip {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.chip::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 15px 0;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cardholder {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-valid {
    font-size: 0.8rem;
    opacity: 0.8;
}

.card-valid span {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 2px;
    opacity: 0.6;
}

.card-type {
    color: rgba(255, 255, 255, 0.8);
}

/* Hover effect for the card */
.bank-card:hover {
    transform: rotateY(-3deg) rotateX(2deg) translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 76, 117, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calculator-card-3d {
        height: 160px;
    }
    
    .bank-card {
        padding: 15px;
    }
    
    .chip {
        width: 40px;
        height: 30px;
    }
    
    .card-number {
        font-size: 1rem;
        margin: 10px 0;
    }
    
    .cardholder {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
}
/* Slider Controls */
.slider-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.slider-header span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.member-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4CAF50;
}

.range-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    margin: 15px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    border: 3px solid #4CAF50;
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.7);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

/* Price Calculation */
.price-calculation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    color: rgba(255, 255, 255, 0.7);
}

.price-value {
    font-weight: 600;
    color: white;
}

.price-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.total-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.total-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4CAF50;
}

/* Right Column - Selected Package */
.calculator-right {
    height: 100%;
}

.selected-package {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #4CAF50;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    animation: packageGlow 2s infinite alternate;
}

@keyframes packageGlow {
    from {
        box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
        border-color: #4CAF50;
    }
    to {
        box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
        border-color: #66BB6A;
    }
}

.selected-package-header {
    margin-bottom: 25px;
    text-align: center;
}

.selected-package-name {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 8px;
}

.selected-package-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 5px;
}

.selected-package-price {
    text-align: center;
    margin: 25px 0;
}

.selected-price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.selected-price-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.selected-package-features {
    list-style: none;
    flex: 1;
    margin-bottom: 25px;
}

.selected-package-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.selected-package-features li:last-child {
    border-bottom: none;
}

.selected-package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.selected-package-action {
    margin-top: auto;
}

/* Package Strip */
.package-strip-container {
    margin-top: 50px;
}

.package-strip-header {
    text-align: center;
    margin-bottom: 30px;
}

.package-strip-header h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.package-strip-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.package-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 rgba(255, 255, 255, 0.1);
}

.package-strip::-webkit-scrollbar {
    height: 8px;
}

.package-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.package-strip::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

.package-card-strip {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.package-card-strip:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
}

.package-card-strip.recommended {
    border: 2px solid #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.strip-package-name {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 15px;
}

.strip-package-price {
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 20px;
}

.strip-package-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 5px;
}

.strip-package-features {
    list-style: none;
    margin-bottom: 20px;
}

.strip-package-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.strip-package-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4CAF50;
}

.strip-package-limit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.package-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 15px;
    animation: bounceHint 2s infinite;
}

@keyframes bounceHint {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* CTA */
.calculator-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-cta .btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.cta-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .calculator-compact {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-left {
        order: 2;
    }
    
    .calculator-right {
        order: 1;
        height: auto;
    }
    
    .calculator-card-3d {
        height: 180px;
    }
    
    .bank-card {
        padding: 20px;
    }
    
    .card-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 40px 0;
    }
    
    .calculator-card-3d {
        height: 160px;
    }
    
    .bank-card {
        padding: 15px;
    }
    
    .card-number {
        font-size: 1rem;
    }
    
    .total-value {
        font-size: 1.5rem;
    }
    
    .package-card-strip {
        flex: 0 0 250px;
    }
}

@media (max-width: 576px) {
    .calculator-compact {
        gap: 25px;
    }
    
    .slider-controls,
    .price-calculation {
        padding: 20px;
    }
    
    .selected-package {
        padding: 25px;
    }
    
    .selected-price-amount {
        font-size: 2.5rem;
    }
    
    .package-card-strip {
        flex: 0 0 220px;
        padding: 20px;
    }
}
        
        @keyframes floatCard {
            0%, 100% { transform: translateY(0) rotateY(0deg); }
            50% { transform: translateY(-20px) rotateY(5deg); }
        }
        
        .bank-card {
            background: linear-gradient(135deg, #667eea 0%, #0f4c75 100%);
            border-radius: 20px;
            padding: 40px;
            color: white;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            transform: rotateY(-10deg) rotateX(5deg);
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .bank-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
            animation: shine 3s infinite linear;
        }
        
        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }
        
        .chip {
            width: 60px;
            height: 45px;
            background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
            border-radius: 8px;
            position: relative;
            margin-bottom: 30px;
        }
        
        .card-number {
            font-family: 'Courier New', monospace;
            font-size: 1.8rem;
            letter-spacing: 2px;
            margin: 20px 0;
        }
        
        .card-details {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }
        
        .cardholder {
            font-size: 1.2rem;
        }
        
        .card-valid {
            text-align: right;
        }
        
        .card-valid span {
            font-size: 0.8rem;
            opacity: 0.8;
        }
        
        .calculator-controls {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: var(--radius-lg);
            padding: 40px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .slider-container {
            margin: 40px 0;
        }
        
        .range-slider {
            width: 100%;
            height: 10px;
            -webkit-appearance: none;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 5px;
            outline: none;
        }
        
        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        }
        
        .member-count {
            font-size: 3rem;
            font-weight: 700;
            color: white;
            text-align: center;
            margin: 20px 0;
        }
        
        .member-count span {
            font-size: 1.5rem;
            opacity: 0.8;
        }
        
        .package-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }
        
        .package-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius);
            padding: 25px;
            transform: translateX(-100px);
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
        }
        
        .package-card.visible {
            transform: translateX(0);
            opacity: 1;
        }
        
        .package-name {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: white;
        }
        
        .package-price {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            color: white;
        }
        
        .package-features {
            list-style: none;
        }
        
        .package-features li {
            padding: 8px 0;
            padding-left: 25px;
            position: relative;
            opacity: 0;
            transform: translateX(-20px);
            transition: all 0.3s ease;
        }
        
        .package-card.visible .package-features li {
            opacity: 1;
            transform: translateX(0);
        }
        
        .package-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #4CAF50;
        }
        
        /* Feature Grid Styles */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            grid-auto-flow: dense;
        }
        
        .feature-card-grid {
            background: white;
            border-radius: var(--radius);
            padding: 30px;
            box-shadow: var(--shadow-light);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            grid-column: span 1;
            grid-row: span 1;
            transform-style: preserve-3d;
            perspective: 1000px;
        }
        
        .feature-card-grid.large {
            grid-column: span 2;
            grid-row: span 2;
        }
        
        .feature-card-grid:hover {
            transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
            box-shadow: var(--shadow);
            z-index: 10;
        }
        
        .feature-card-grid.active {
            transform: scale(1.05) rotateY(360deg);
            box-shadow: 0 30px 60px rgba(15, 76, 117, 0.3);
            z-index: 100;
        }
        
        .feature-card-grid .card-front {
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .feature-card-grid.active .card-front {
            opacity: 0;
            transform: rotateY(180deg);
        }
        
        .feature-card-grid .card-back {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding: 30px;
            opacity: 0;
            transform: rotateY(-180deg);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            background: white;
            overflow-y: auto;
        }
        
        .feature-card-grid.active .card-back {
            opacity: 1;
            transform: rotateY(0);
        }
        
        .feature-icon-grid {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: white;
            font-size: 1.8rem;
        }
        
        .feature-title-grid {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: var(--dark);
        }
        
        .feature-description-grid {
            color: var(--text-light);
            line-height: 1.6;
        }
        
        .close-details {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--primary);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: none;
        }
        
        .feature-card-grid.active .close-details {
            display: block;
        }

/* ======================LOGO STRIP=============================== */
/* Trusted By Section */
.trusted-by {
    margin-top: 60px;
    text-align: center;
}

.trusted-label {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.trusted-label::before,
.trusted-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light));
}

.trusted-label::before {
    right: 110%;
}

.trusted-label::after {
    left: 110%;
    background: linear-gradient(90deg, var(--primary-light), transparent);
}

.organizations-strip {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.organizations-track {
    display: flex;
    animation: scrollOrganizations 40s linear infinite;
    gap: 50px;
    padding: 0 20px;
}

.organizations-track:hover {
    animation-play-state: paused;
}

.org-logo {
    flex: 0 0 auto;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.org-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.org-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(15, 76, 117, 0.15);
}

.org-logo:hover::before {
    transform: scaleX(1);
}

.org-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.org-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.org-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

@keyframes scrollOrganizations {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .organizations-track {
        gap: 30px;
    }
    
    .org-logo {
        width: 100px;
        height: 60px;
        padding: 10px;
    }
    
    .trusted-label::before,
    .trusted-label::after {
        width: 40px;
    }
}

/* ==============================HERO  SLIDE SHOW=========================== */
/* Enhanced Floating Images with Depth */
.floating-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    perspective: 1000px;
}

.floating-image {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Size variations */
.floating-image[data-size="small"] {
    width: 140px;
    height: 100px;
}

.floating-image[data-size="medium"] {
    width: 180px;
    height: 130px;
}

.floating-image[data-size="large"] {
    width: 220px;
    height: 160px;
}

/* Position variations */
.floating-image-1 {
    top: -90px;
    right: -90px;
    animation: floatIn1 0.8s 0.3s forwards, float1 8s 1.1s infinite;
    transform-origin: center center;
}

.floating-image-2 {
    bottom: -25px;
    left: -80px;
    animation: floatIn2 0.8s 0.4s forwards, float2 9s 1.2s infinite;
    transform-origin: left bottom;
}

.floating-image-3 {
    top: 60%;
    right: -35px;
    transform: translateY(-50%);
    animation: floatIn3 0.8s 0.5s forwards, float3 10s 1.3s infinite;
    transform-origin: center right;
}

.floating-image-4 {
    top: 20%;
    left: -25px;
    animation: floatIn4 0.8s 0.6s forwards, float4 7s 1.4s infinite;
    transform-origin: left top;
}

.floating-image-5 {
    bottom: 40%;
    right: 10%;
    animation: floatIn5 0.8s 0.7s forwards, float5 11s 1.5s infinite;
    transform-origin: bottom right;
    
}

/* Layer-specific styles */
.floating-image[data-layer="front"] {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    
}

.floating-image[data-layer="middle"] {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    filter: brightness(0.95);
}

.floating-image[data-layer="back"] {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    filter: brightness(0.85) blur(1px);
    opacity: 0.9;
}

/* Image container */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    transform-style: preserve-3d;
}

.floating-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.image-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: glowSweep 3s infinite;
    pointer-events: none;
}

.image-layer-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 76, 117, 0.9);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.floating-image:hover .image-layer-indicator {
    opacity: 1;
}

.image-shadow {
    position: absolute;
    bottom: -10px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 0.4) 0%,
        transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: -1;
}

/* Entrance Animations */
@keyframes floatIn1 {
    0% {
        opacity: 0;
        transform: translate(100px, -50px) rotate(30deg) scale(0.3) translateZ(-100px);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(-5deg) scale(1) translateZ(0);
    }
}

@keyframes floatIn2 {
    0% {
        opacity: 0;
        transform: translate(-80px, 60px) rotate(-25deg) scale(0.3) translateZ(50px);
    }
    100% {
        opacity: 0.9;
        transform: translate(0, 0) rotate(8deg) scale(1) translateZ(-50px);
    }
}

@keyframes floatIn3 {
    0% {
        opacity: 0;
        transform: translate(120px, 0) rotate(45deg) scale(0.3) translateZ(100px);
    }
    100% {
        opacity: 0.9;
        transform: translate(0, -50%) rotate(-12deg) scale(1) translateZ(-100px);
    }
}

@keyframes floatIn4 {
    0% {
        opacity: 0;
        transform: translate(-60px, -40px) rotate(-15deg) scale(0.3) translateZ(-150px);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(15deg) scale(1) translateZ(50px);
    }
}

@keyframes floatIn5 {
    0% {
        opacity: 0;
        transform: translate(40px, 80px) rotate(20deg) scale(0.3) translateZ(-50px);
    }
    100% {
        opacity: 0.95;
        transform: translate(0, 0) rotate(-10deg) scale(1) translateZ(0);
    }
}

/* Floating Animations */
@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(-5deg) translateZ(0);
    }
    25% {
        transform: translate(-15px, -20px) rotate(-2deg) translateZ(10px);
    }
    50% {
        transform: translate(10px, -10px) rotate(-8deg) translateZ(0);
    }
    75% {
        transform: translate(-5px, -15px) rotate(-3deg) translateZ(-10px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(8deg) translateZ(-50px);
    }
    25% {
        transform: translate(20px, 15px) rotate(10deg) translateZ(-40px);
    }
    50% {
        transform: translate(-10px, 20px) rotate(6deg) translateZ(-60px);
    }
    75% {
        transform: translate(15px, 10px) rotate(9deg) translateZ(-45px);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(-50%) rotate(-12deg) translateZ(-100px);
    }
    25% {
        transform: translateY(-55%) translateX(20px) rotate(-10deg) translateZ(-90px);
    }
    50% {
        transform: translateY(-45%) translateX(-15px) rotate(-14deg) translateZ(-110px);
    }
    75% {
        transform: translateY(-52%) translateX(10px) rotate(-11deg) translateZ(-95px);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0) rotate(15deg) translateZ(50px);
    }
    25% {
        transform: translate(-10px, -15px) rotate(17deg) translateZ(60px);
    }
    50% {
        transform: translate(15px, -5px) rotate(13deg) translateZ(40px);
    }
    75% {
        transform: translate(-5px, -10px) rotate(16deg) translateZ(55px);
    }
}

@keyframes float5 {
    0%, 100% {
        transform: translate(0, 0) rotate(-10deg) translateZ(0);
    }
    25% {
        transform: translate(20px, 10px) rotate(-8deg) translateZ(20px);
    }
    50% {
        transform: translate(-15px, 5px) rotate(-12deg) translateZ(-20px);
    }
    75% {
        transform: translate(10px, 15px) rotate(-9deg) translateZ(10px);
    }
}

@keyframes glowSweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Hover Effects */
.floating-image:hover {
    animation-play-state: paused;
    pointer-events: auto;
    cursor: pointer;
}

.floating-image:hover img {
    transform: scale(1.15) translateZ(20px);
    filter: brightness(1.1);
}

.floating-image:hover .image-shadow {
    transform: scale(1.3);
    opacity: 0.3;
}

.floating-image:hover .image-glow {
    animation: none;
    transform: translateX(200%);
}

/* Make dashboard have proper z-index */
.dashboard-frame {
    position: relative;
    z-index: 3;
    background: white;
    transform-style: preserve-3d;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .floating-image[data-size="small"] {
        width: 100px;
        height: 70px;
    }
    
    .floating-image[data-size="medium"] {
        width: 130px;
        height: 95px;
    }
    
    .floating-image[data-size="large"] {
        width: 160px;
        height: 120px;
    }
    
    .floating-image-1 {
        top: -15px;
        right: -10px;
    }
    
    .floating-image-2 {
        bottom: -10px;
        left: -5px;
    }
    
    .floating-image-3 {
        right: -20px;
    }
    
    .floating-image-4 {
        left: -15px;
    }
    
    .floating-image-5 {
        right: 5%;
    }
}

@media (max-width: 768px) {
    /* Keep only front layer images on mobile */
    .floating-image[data-layer="back"],
    .floating-image[data-layer="middle"] {
        display: none;
    }
    
    .floating-image[data-layer="front"] {
        display: block;
        width: 100px;
        height: 75px;
    }
}

/* ===== PEEK INSIDE SECTION ===== */
.peek-inside {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.peek-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
}

.peek-track {
    height: 100%;
    position: relative;
}

.peek-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.peek-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.peek-image {
    flex: 1;
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    border-radius: 20px;
    transform-style: preserve-3d;
}

.peek-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(15, 76, 117, 0.2));
    transition: transform 0.5s ease;
}

.peek-slide:hover .peek-image img {
    transform: scale(1.05);
}

.peek-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%);
    animation: peekShine 8s infinite linear;
    pointer-events: none;
}

@keyframes peekShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.peek-content {
    flex: 1;
    padding: 40px;
}

.peek-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.peek-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.peek-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.peek-features {
    list-style: none;
    margin-bottom: 40px;
}

.peek-features li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text);
    border-bottom: 1px dashed rgba(15, 76, 117, 0.1);
}

.peek-features li:last-child {
    border-bottom: none;
}

.peek-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 1.2rem;
}

.peek-slide:nth-child(even) .peek-image {
    order: 2;
}

.peek-slide:nth-child(even) .peek-content {
    order: 1;
    text-align: right;
}

.peek-slide:nth-child(even) .peek-content h3::after {
    left: auto;
    right: 0;
}

.peek-slide:nth-child(even) .peek-features li {
    padding-left: 0;
    padding-right: 35px;
}

.peek-slide:nth-child(even) .peek-features li::before {
    left: auto;
    right: 0;
}

.peek-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.peek-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(15, 76, 117, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.peek-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.peek-dot.active {
    transform: scale(1.2);
}

.peek-dot.active::before {
    transform: scale(1);
}

.peek-nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
    z-index: 5;
}

.peek-nav-buttons button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 76, 117, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.peek-nav-buttons button:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 76, 117, 0.3);
}

.peek-slide-indicator {
    position: absolute;
    top: 40px;
    right: 40px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(15, 76, 117, 0.3);
    z-index: 2;
}

/* ===== SUPPORT SECTION ===== */
.support-section {
    background: var(--dark);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(50, 130, 184, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.support-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 76, 117, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.support-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.support-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    height: 500px;
}

.support-image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.support-image-item:nth-child(1) {
    animation: floatImage1 6s ease-in-out infinite;
    grid-row: span 2;
}

.support-image-item:nth-child(2) {
    animation: floatImage2 7s ease-in-out infinite;
}

.support-image-item:nth-child(3) {
    animation: floatImage3 8s ease-in-out infinite;
}

.support-image-item:nth-child(4) {
    animation: floatImage4 9s ease-in-out infinite;
    grid-column: span 2;
    height: 150px;
}

.support-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.support-image-item:hover img {
    transform: scale(1.1);
}

.support-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(15, 76, 117, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.support-image-item:hover .support-image-overlay {
    opacity: 1;
}

.support-image-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes floatImage1 {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes floatImage2 {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(15px) rotate(-1deg);
    }
}

@keyframes floatImage3 {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

@keyframes floatImage4 {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(10px) rotate(-0.5deg);
    }
}

.support-content {
    padding: 40px 0;
}

.support-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.support-content h2 span {
    color: #4CAF50;
}

.support-intro {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.support-contact-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #4CAF50;
    font-size: 1.5rem;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: white;
    font-size: 1.1rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.support-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group select option {
    background: var(--dark);
    color: white;
}

.support-form .btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    margin-top: 10px;
}

.support-form .btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .peek-slider {
        height: auto;
    }
    
    .peek-slide {
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;
    }
    
    .peek-image {
        min-height: 400px;
    }
    
    .peek-slide:nth-child(even) .peek-image,
    .peek-slide:nth-child(even) .peek-content {
        order: 0;
    }
    
    .peek-slide:nth-child(even) .peek-content {
        text-align: left;
    }
    
    .peek-slide:nth-child(even) .peek-content h3::after {
        left: 0;
        right: auto;
    }
    
    .peek-slide:nth-child(even) .peek-features li {
        padding-right: 0;
        padding-left: 35px;
    }
    
    .peek-slide:nth-child(even) .peek-features li::before {
        left: 0;
        right: auto;
    }
    
    .support-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .support-image-grid {
        height: 400px;
    }
    
    .support-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-polygon{
        display:none;
    }
    .peek-slider {
        height: auto;
    }


    
    .peek-image {
        min-height: 300px;
    }
    
    .peek-content {
        padding: 20px;
    }
    
    .peek-content h3 {
        font-size: 2rem;
    }
    
    .peek-nav-buttons button {
        width: 50px;
        height: 50px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .support-image-grid {
        height: 350px;
    }
}

/* Fix for peek slider content overlap */
.peek-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
}

.peek-track {
    height: 100%;
    position: relative;
}

.peek-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden; /* Add this to hide completely */
    z-index: 1; /* Add z-index */
}

.peek-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    visibility: visible; /* Add this to show */
    z-index: 2; /* Higher z-index for active slide */
}

/* Add these styles for slide transitions */
.peek-slide:not(.active) {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.8s; /* Delay visibility change */
}

.peek-slide.active {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s; /* Immediate visibility */
}

/* //////////////////////////////////////////////////////////////////////////////////////////// */
/* ===== RESPONSIVE STYLES FOR MOBILE (Android & iOS) ===== */

/* Base Mobile Optimizations */
@media (max-width: 768px) {
    /* Typography adjustments */
    html {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }

    h1 {
        font-size: 2.2rem !important;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 50px 0;
    }

    /* Touch-friendly button sizes */
    .btn {
        padding: 12px 24px !important;
        font-size: 1rem !important;
        min-height: 44px; /* iOS minimum touch target */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .btn-large {
        padding: 14px 28px !important;
        font-size: 1.1rem !important;
    }

    /* Fix for iOS tap highlight */
    a, button, .nav-link, .feature-card-grid, .faq-question {
        -webkit-tap-highlight-color: rgba(15, 76, 117, 0.3);
    }
}

/* ===== NAVBAR MOBILE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .mobile-toggle {
        display: block;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        background: var(--primary);
        color: white;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(15, 76, 117, 0.3);
        transition: all 0.3s ease;
    }

    .mobile-toggle:active {
        transform: scale(0.95);
        background: var(--primary-light);
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-radius: 0 0 20px 20px;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.98);
        pointer-events: none;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        padding: 15px 0 !important;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(15, 76, 117, 0.1);
        display: block;
        text-align: center;
    }

    .nav-link:active {
        background: rgba(15, 76, 117, 0.05);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        color: var(--primary);
        font-weight: 600;
    }

    .nav-actions {
        display: none;
    }

    .nav-menu.active + .nav-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    /* iOS safe area fixes */
    @supports (padding-top: constant(safe-area-inset-top)) {
        .nav-menu {
            top: calc(80px + constant(safe-area-inset-top));
        }
    }

    @supports (padding-top: env(safe-area-inset-top)) {
        .nav-menu {
            top: calc(80px + env(safe-area-inset-top));
        }
    }
}

/* ===== HERO SECTION MOBILE ===== */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Polygon adjustments for mobile */
    .polygon-container {
        height: 400px;
        margin: 0 auto;
        max-width: 350px;
    }

    .polygon-1 {
        width: 260px;
        height: 340px;
        left: 10%;
        bottom: 10px;
    }

    .polygon-2 {
        width: 210px;
        height: 280px;
        left: 20%;
        top: 30px;
    }

    .polygon-3 {
        width: 160px;
        height: 220px;
        left: 30%;
        bottom: 40px;
    }

    .polygon:hover {
        transform: scale(1.02) rotate(var(--rotate, 0deg));
    }
}

@media (max-width: 480px) {
    .polygon-container {
        height: 350px;
        max-width: 300px;
    }

    .polygon-1 {
        width: 220px;
        height: 300px;
        left: 5%;
    }

    .polygon-2 {
        width: 180px;
        height: 240px;
        left: 15%;
    }

    .polygon-3 {
        width: 140px;
        height: 200px;
        left: 25%;
    }
}

/* ===== TRUSTED BY SECTION MOBILE ===== */
@media (max-width: 768px) {
    .trusted-by {
        margin-top: 40px;
    }

    .trusted-label {
        font-size: 0.95rem;
    }

    .trusted-label::before,
    .trusted-label::after {
        width: 30px;
    }

    .organizations-track {
        animation-duration: 30s;
        gap: 20px;
    }

    .org-logo {
        width: 90px;
        height: 50px;
        padding: 8px;
    }

    .org-fallback {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== FEATURES SECTION MOBILE ===== */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .feature-card-grid {
        padding: 25px;
        min-height: auto;
    }

    .feature-card-grid.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .feature-card-grid:hover {
        transform: translateY(-5px);
    }

    .feature-card-grid.active {
        transform: scale(1.02);
    }

    .feature-icon-grid {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .feature-title-grid {
        font-size: 1.2rem;
    }

    .feature-description-grid {
        font-size: 0.95rem;
    }

    .card-back {
        padding: 20px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .close-details {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .feature-list li {
        font-size: 0.9rem;
        padding: 8px 0 8px 25px;
    }
}

/* ===== PEEK INSIDE SECTION MOBILE ===== */
@media (max-width: 768px) {
    .peek-inside {
        padding: 50px 0;
    }

    .peek-slider {
        height: auto;
        overflow: hidden;
    }

    .peek-slide {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
        position: relative;
        height: auto;
        visibility: visible;
        opacity: 1;
        transform: none;
        display: none;
    }

    .peek-slide.active {
        display: flex;
    }

    .peek-image {
        min-height: 250px;
        width: 100%;
        border-radius: 15px;
    }

    .peek-image img {
        object-fit: cover;
        max-height: 250px;
    }

    .peek-content {
        padding: 0;
        width: 100%;
    }

    .peek-content h3 {
        font-size: 1.6rem !important;
        margin-bottom: 15px;
    }

    .peek-content h3::after {
        width: 60px;
        height: 3px;
    }

    .peek-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .peek-features li {
        font-size: 0.95rem;
        padding: 10px 0 10px 30px;
    }

    .peek-nav {
        bottom: 20px;
        gap: 12px;
    }

    .peek-dot {
        width: 12px;
        height: 12px;
    }

    .peek-nav-buttons {
        position: relative;
        top: auto;
        transform: none;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
        padding: 0;
    }

    .peek-nav-buttons button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        position: static;
    }

    .peek-slide-indicator {
        top: 20px;
        right: 20px;
        padding: 5px 15px;
        font-size: 0.8rem;
    }
}

/* ===== COMPARISON TABLE MOBILE ===== */
@media (max-width: 768px) {
    .comparison {
        padding: 50px 0;
    }

    .table-wrapper {
        margin: 0 -15px;
        width: calc(100% + 30px);
        padding: 0 15px;
    }

    table {
        min-width: 600px;
        font-size: 0.9rem;
    }

    th, td {
        padding: 12px 10px;
    }

    td i {
        margin-right: 3px;
    }

    td strong {
        font-size: 1rem;
    }
}

/* ===== CALCULATOR SECTION MOBILE ===== */
@media (max-width: 768px) {
    .calculator-section {
        padding: 50px 0;
    }

    .calculator-compact {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .calculator-left {
        order: 2;
    }

    .calculator-right {
        order: 1;
    }

    .calculator-card-3d {
        height: 160px;
        margin-bottom: 10px;
    }

    .bank-card {
        padding: 15px;
        transform: rotateY(-3deg) rotateX(2deg);
    }

    .chip {
        width: 40px;
        height: 30px;
        margin-bottom: 15px;
    }

    .card-number {
        font-size: 1rem;
        margin: 10px 0;
    }

    .cardholder {
        font-size: 0.85rem;
    }

    .card-details {
        margin-top: 15px;
    }

    .card-valid {
        font-size: 0.7rem;
    }

    .slider-controls,
    .price-calculation {
        padding: 20px;
    }

    .slider-header span {
        font-size: 0.9rem;
    }

    .member-count {
        font-size: 1rem;
    }

    .range-slider {
        height: 6px;
    }

    .range-slider::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }

    .slider-labels {
        font-size: 0.75rem;
    }

    .price-item {
        font-size: 0.95rem;
    }

    .total-value {
        font-size: 1.6rem;
    }

    .selected-package {
        padding: 25px;
    }

    .selected-package-name {
        font-size: 1.5rem;
    }

    .selected-price-amount {
        font-size: 2.5rem;
    }

    .selected-package-features li {
        font-size: 0.9rem;
        padding: 8px 0 8px 25px;
    }

    .package-strip {
        gap: 15px;
        padding: 15px 5px;
    }

    .package-card-strip {
        flex: 0 0 240px;
        padding: 20px;
    }

    .strip-package-name {
        font-size: 1.2rem;
    }

    .strip-package-price {
        font-size: 1.8rem;
    }

    .package-scroll-hint {
        font-size: 0.85rem;
        margin-top: 10px;
    }

    .calculator-cta {
        margin-top: 30px;
        padding-top: 30px;
    }

    .calculator-cta .btn-large {
        width: 90%;
        max-width: 300px;
    }

    .cta-note {
        font-size: 0.85rem;
        padding: 0 15px;
    }
}

/* ===== TESTIMONIALS SECTION MOBILE ===== */
@media (max-width: 768px) {
    .testimonials {
        padding: 50px 0;
    }

    .testimonial-slider {
        margin: 0 15px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .testimonial-rating {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .testimonial-text {
        font-size: 1rem;
        padding-left: 20px;
        margin-bottom: 20px;
    }

    .testimonial-text::before {
        font-size: 3rem;
        top: -15px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .testimonial-photo {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .church-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 0.85rem;
    }

    .testimonial-nav-buttons {
        position: relative;
        top: auto;
        transform: none;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }

    .testimonial-nav-buttons button {
        width: 45px;
        height: 45px;
        position: static;
    }

    .testimonial-nav {
        margin-top: 30px;
    }

    .testimonial-dot {
        width: 10px;
        height: 10px;
    }
}

/* ===== FAQ SECTION MOBILE ===== */
@media (max-width: 768px) {
    .faq {
        padding: 50px 0;
    }

    .faq-container {
        padding: 0 15px;
    }

    .faq-item {
        margin-bottom: 12px;
    }

    .faq-question {
        padding: 18px;
    }

    .faq-question h3 {
        font-size: 1rem;
        padding-right: 30px;
    }

    .faq-icon {
        font-size: 1.2rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 18px;
    }

    .faq-answer p {
        margin-bottom: 0;
    }
}

/* ===== SUPPORT SECTION MOBILE ===== */
@media (max-width: 768px) {
    .support-section {
        padding: 50px 0;
    }

    .support-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }

    .support-image-grid {
        height: 300px;
        gap: 15px;
    }

    .support-image-item:nth-child(4) {
        height: 120px;
    }

    .support-content h2 {
        font-size: 2rem !important;
        text-align: center;
    }

    .support-intro {
        font-size: 1rem;
        text-align: center;
    }

    .support-contact-info {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .contact-icon {
        margin: 0 0 15px 0;
    }

    .contact-details h4 {
        font-size: 1rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .support-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 0.95rem;
        min-height: 44px; /* iOS touch target */
    }

    .form-group textarea {
        min-height: 100px;
    }

    .support-form .btn {
        padding: 15px;
        font-size: 1rem;
    }
}

/* ===== CTA SECTION MOBILE ===== */
@media (max-width: 768px) {
    .cta {
        padding: 50px 0;
    }

    .cta-content {
        padding: 0 15px;
    }

    .cta-title {
        font-size: 1.8rem !important;
    }

    .cta-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .cta-note {
        font-size: 0.85rem;
    }
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo img {
        height: 35px;
    }

    .footer-description {
        max-width: 300px;
        margin: 0 auto 20px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-title {
        text-align: center;
        padding-bottom: 8px;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-bottom-links a {
        font-size: 0.9rem;
    }
}

/* ===== MODAL MOBILE ===== */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: 85vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 20px;
    }

    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .form-note {
        font-size: 0.85rem;
    }
}

/* ===== TOUCH-SPECIFIC OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card-grid:hover,
    .pricing-card:hover,
    .testimonial-card:hover,
    .btn:hover,
    .nav-link:hover,
    .footer-links a:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Add active states for touch feedback */
    .btn:active,
    .feature-card-grid:active,
    .faq-question:active,
    .nav-link:active {
        opacity: 0.8;
        transform: scale(0.98);
        transition: all 0.1s ease;
    }

    /* Improve scroll performance */
    .features-grid,
    .pricing-cards,
    .testimonial-track,
    .package-strip {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== ANDROID SPECIFIC FIXES ===== */
@media (max-width: 768px) {
    /* Fix for Android browser issues */
    input, textarea, select, button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0;
    }

    /* Fix for Android input shadows */
    input:focus, textarea:focus, select:focus {
        -webkit-tap-highlight-color: transparent;
    }

    /* Fix for Android button rendering */
    button {
        -webkit-appearance: none;
        background: none;
    }
}

/* ===== iOS SPECIFIC FIXES ===== */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* Fix for iOS momentum scrolling */
        .nav-menu.active,
        .card-back,
        .package-strip,
        .features-grid {
            -webkit-overflow-scrolling: touch;
        }

        /* Fix for iOS input styling */
        input, textarea, select {
            -webkit-appearance: none;
            -webkit-border-radius: 0;
            font-size: 16px !important; /* Prevents zoom on focus */
        }

        /* Fix for iOS button styling */
        .btn {
            -webkit-appearance: none;
        }

        /* Fix for iOS safe area insets */
        .navbar {
            padding-top: max(15px, constant(safe-area-inset-top));
            padding-top: max(15px, env(safe-area-inset-top));
        }

        .footer {
            padding-bottom: max(20px, constant(safe-area-inset-bottom));
            padding-bottom: max(20px, env(safe-area-inset-bottom));
        }
    }
}

/* ===== EXTRA SMALL DEVICES (below 375px) ===== */
@media (max-width: 375px) {
    html {
        font-size: 12px;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .container {
        padding: 0 12px;
    }

    .polygon-1 {
        width: 200px;
        height: 260px;
    }

    .polygon-2 {
        width: 160px;
        height: 220px;
    }

    .polygon-3 {
        width: 120px;
        height: 180px;
    }

    .feature-card-grid {
        padding: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .selected-package {
        padding: 20px;
    }

    .selected-price-amount {
        font-size: 2rem;
    }

    .package-card-strip {
        flex: 0 0 200px;
        padding: 15px;
    }
}

/* ===== LANDSCAPE ORIENTATION FIXES ===== */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .hero-image {
        order: 2;
    }

    .polygon-container {
        height: 300px;
    }

    .polygon-1 {
        width: 200px;
        height: 260px;
    }

    .polygon-2 {
        width: 160px;
        height: 220px;
    }

    .polygon-3 {
        width: 120px;
        height: 180px;
    }

    .nav-menu.active {
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content {
        max-height: 80vh;
        margin: 40px auto;
    }

    /* Adjust calculator for landscape */
    .calculator-compact {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .calculator-card-3d {
        height: 140px;
    }
}

/* ===== LOADING STATES AND PERFORMANCE ===== */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .floating-image,
    .polygon,
    .bank-card,
    .feature-card-grid {
        animation-duration: 6s !important;
    }

    /* Optimize images */
    img {
        loading: lazy;
    }

    /* Reduce shadow complexity */
    .polygon,
    .feature-card-grid,
    .pricing-card {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* Simplify hover effects */
    .polygon:hover {
        transform: scale(1.02) rotate(var(--rotate, 0deg));
    }
}

/* ===== PRINT STYLES (for completeness) ===== */
@media print {
    .navbar,
    .hero-buttons,
    .btn,
    .footer,
    .modal,
    .peek-nav-buttons,
    .testimonial-nav-buttons,
    .calculator-cta {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}