
:root {
    --primary-color: #bc2738;
    --secondary-color: #2a4365;
    --accent-color: #f6ad55;
    --light-gray: #f5f7fa;
    --dark-gray: #4a5568;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #8e1d2b;
    text-decoration: none;
}

/* Hero Section Enhancements */
.mobile-savings-hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}

.mobile-savings-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(188,39,56,0.1) 0%, rgba(188,39,56,0) 70%);
    z-index: 0;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(188,39,56,0.2);
    z-index: -1;
    transform-origin: left;
    transition: transform 0.3s ease;
}

.highlight:hover::after {
    transform: scaleX(0);
}

/* Animated Mobile Device */
.mobile-illustration {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: float 6000s ease-in-out ;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

.mobile-frame {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2),
    inset 0 0 0 10px #f1f1f1,
    inset 0 0 0 12px #ddd;
    overflow: hidden;
    transform: rotateY(-15deg);
    transition: transform 0.9s ease;
}

.mobile-frame:hover {
    transform: rotateY(0deg);
}

.mobile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.balance-display {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    width: 80%;
}

.balance-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.balance-label {
    font-size: 14px;
    color: #666;
}

.transfer-button {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(188,39,56,0.3);
    transition: all 0.3s ease;
}

.transfer-button:hover {
    background: #9e1d2b;
    transform: translateX(-50%) scale(1.05);
}

/* Features Section */
.feature-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

/* How It Works */
.step-card {
    padding: 30px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.step-image {
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.step-card:hover .step-image {
    transform: scale(1.1) rotate(-5deg);
}

/* Rates Section */
.rate-card {
    border-radius: 15px;
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.rate-tier {
    text-align: center;
    padding: 30px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.rate-tier:hover {
    background: rgba(245, 245, 245, 0.7);
}

.rate-tier.featured {
    background: rgba(188,39,56,0.05);
    border-radius: 10px;
}

.rate-percent {
    font-size: 42px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.rate-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.rate-limit {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Testimonials */
.testimonial-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* App Download Buttons */
.app-download-btn {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 15px 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.app-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.app-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.app-download-btn:hover::before {
    left: 100%;
}

/* Savings Calculator */
#savings-calculator {
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
}

#results-container {
    background: rgba(245,245,245,0.8);
    border-radius: 0 0 15px 15px;
}

/* Goals Section */
.goal-card {
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.goal-card .uk-progress {
    height: 8px;
    background-color: #edf2f7;
}

/* FAQ Section */
.uk-accordion-title {
    font-weight: 600;
    padding: 15px;
    background: #f8fafc;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.uk-accordion-title:hover {
    background: #edf2f7;
}

.uk-accordion-content {
    padding: 20px;
    background: white;
    border-radius: 0 0 5px 5px;
}

/* Animated Background Elements */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float-shape 15s infinite linear;
}

.shape.circle {
    border-radius: 50%;
    background: var(--primary-color);
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid var(--accent-color);
}

@keyframes float-shape {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-1000px) rotate(720deg); }
}

/* Typography Enhancements */
.uk-heading-primary {
    font-weight: 800;
    line-height: 1.2;
}

.uk-text-lead {
    font-size: 1.25rem;
    color: var(--dark-gray);
}

/* Button Styles */
.uk-button-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.uk-button-primary:hover {
    background-color: #9e1d2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(188,39,56,0.3);
}

/* Table Styles */
.uk-table {
    border-collapse: separate;
    border-spacing: 0;
}

.uk-table th {
    background: #f8fafc;
    font-weight: 600;
}

.uk-table td {
    border-top: 1px solid #edf2f7;
}

/* Responsive Adjustments */
@media (max-width: 960px) {
    .mobile-frame {
        width: 250px;
        height: 500px;
    }

    .balance-amount {
        font-size: 22px;
    }

    .transfer-button {
        padding: 12px 25px;
        font-size: 14px;
    }

    .uk-heading-primary {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .mobile-illustration {
        margin-top: 40px;
    }

    .rate-tier {
        padding: 20px 10px;
    }

    .rate-percent {
        font-size: 32px;
    }

    .uk-heading-primary {
        font-size: 2rem;
    }

    .uk-text-lead {
        font-size: 1.1rem;
    }

    .app-download-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .mobile-savings-hero,
    .uk-section-primary,
    .uk-section-secondary {
        background: white !important;
        color: black !important;
    }

    .uk-button,
    .mobile-frame,
    .floating-shapes {
        display: none !important;
    }

}
/* Mobile Navigation Bar */
.mobile-nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    padding: 10px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(188, 39, 56, 0.1);
}

.nav-item .nav-label {
    font-size: 10px;
    margin-top: 5px;
    font-weight: 500;
}

.nav-item:hover:not(.active) {
    background: rgba(0,0,0,0.05);
}

/* Adjust transfer button position to account for nav bar */
.transfer-button {
    bottom: 25%; /* Changed from 20% to account for nav bar */
}
