/*
   Ecommerce Redesign CSS
   Brand Colors:
   - Primary: #F28C38 (Warm Orange)
   - Secondary: #E6E8E9 (Silver)
   - Accent: #1E3A8A (Deep Blue)
   - Accent2: #B91C1C (Rich Red)
*/

/* ===== GENERAL STYLES ===== */
:root {
    --primary: #F28C38;
    --primary-light: #F9B775;
    --primary-dark: #E07C28;
    --secondary: #E6E8E9;
    --secondary-dark: #C4C8CA;
    --accent: #1E3A8A;
    --accent-light: #2A4DB3;
    --accent-dark: #152A66;
    --accent2: #B91C1C;
    --white: #FFFFFF;
    --black: #212529;
    --gray: #6C757D;
    --light-gray: #F8F9FA;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--black);
}

p {
    font-size: 1rem;
    color: var(--gray);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto 0;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
    position: relative;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-action {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px;
}

.btn-action:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== HEADER/NAVIGATION ===== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-toggler {
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: var(--black);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

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

.navbar-nav .nav-link.btn-login {
    color: var(--primary);
    border: 2px solid var(--primary);
}

.navbar-nav .nav-link.btn-login:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.navbar-nav .nav-link.btn-register {
    background-color: var(--primary);
    color: var(--white);
}

.navbar-nav .nav-link.btn-register:hover {
    background-color: var(--primary-dark);
}

/* ===== HERO SECTION ===== */
#hero {
    background-color: var(--secondary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f28c38' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--black);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--gray);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.badge-content {
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.action-form {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border-radius: 25px;
    border: 2px solid var(--secondary-dark);
    font-size: 1rem;
    padding: 10px 20px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(242, 140, 56, 0.25);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.trust-badges span {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-badges i {
    color: var(--primary);
    margin-right: 5px;
    font-size: 1.1rem;
}

/* ===== SERVICES TABS SECTION ===== */
#services-tabs {
    background-color: var(--white);
    padding-top: 50px;
}

.service-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.tab i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gray);
    transition: all 0.3s ease;
}

.tab span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s ease;
}

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

.tab:hover i,
.tab:hover span {
    color: var(--white);
}

.tab.active {
    background-color: var(--primary);
}

.tab.active i,
.tab.active span {
    color: var(--white);
}

.tab-content {
    display: none;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.benefits-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.benefits-list i {
    color: var(--primary);
    margin-right: 10px;
}

.service-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== HOW IT WORKS SECTION ===== */
#how-it-works {
    background-color: var(--secondary);
    position: relative;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.step p {
    font-size: 0.9rem;
    color: var(--gray);
}

.step-arrow {
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

/* ===== TESTIMONIALS SECTION ===== */
#testimonials {
    background-color: var(--white);
}

.testimonial-card {
    background-color: var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    padding: 30px;
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--white);
    border-top: 3px solid var(--primary);
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--black);
}

.testimonial-author p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--gray);
}

.rating {
    color: var(--primary);
    font-size: 0.8rem;
}

/* ===== COUNTRIES SECTION ===== */
#countries {
    background-color: var(--secondary);
}

/* Region Selector */
.region-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
}

.region-btn {
    color: var(--gray);
    font-weight: 600;
    background-color: var(--white);
    border-radius: 20px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.region-btn:hover {
    color: var(--primary);
    background-color: rgba(242, 140, 56, 0.1);
    transform: translateY(-3px);
}

.region-btn.active {
    color: var(--white);
    background-color: var(--primary);
}

/* Region Content */
.region-content {
    display: none;
}

.region-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.country-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.country-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary);
}

.country-card img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

.country-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--black);
}

.more-countries {
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.more-countries:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.more-countries:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.more-countries:hover:before {
    transform: translateX(100%);
}

.more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    z-index: 1;
}

.more-content i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.more-content span {
    font-weight: 600;
    font-size: 1rem;
}

.showing-all .more-content i {
    transform: rotate(45deg);
}

.global-coverage-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--black);
}

/* Global Airtime Styles */
.popular-countries h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.country-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.country-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80px;
}

.country-badge img {
    width: 40px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 5px;
}

.country-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
}

.country-badge:hover {
    background-color: rgba(242, 140, 56, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#view-all-countries {
    padding: 10px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

#view-all-countries:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#view-all-countries:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

#view-all-countries:hover:before {
    transform: translateX(100%);
}

/* All Regions Container */
.all-regions-container {
    margin-top: 30px;
}

.region-header {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    text-align: left;
}

.all-regions-container .region-content {
    display: block;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

/* ===== APP DOWNLOAD SECTION ===== */
#app-download {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

#app-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242, 140, 56, 0.1) 0%, rgba(242, 140, 56, 0.05) 100%);
    z-index: 0;
}

#app-download .container {
    position: relative;
    z-index: 1;
}

#app-download h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.app-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.app-badge img {
    height: 50px;
    transition: all 0.3s ease;
}

.app-badge:hover img {
    transform: translateY(-5px);
}

.app-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-about img {
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--secondary);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--secondary);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-newsletter p {
    color: var(--secondary);
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
    margin-bottom: 20px;
}

.footer-newsletter input {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 0 20px;
    font-size: 1rem;
}

.footer-newsletter button {
    width: 50px;
    height: 50px;
    border: none;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: var(--primary-dark);
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 30px;
    filter: grayscale(100%) brightness(200%);
    transition: all 0.3s ease;
}

.payment-methods img:hover {
    filter: grayscale(0%) brightness(100%);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--secondary);
    margin-bottom: 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .hero-text h1 {
        font-size: 2.3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .floating-badge {
        width: 100px;
        height: 100px;
    }

    .badge-number {
        font-size: 1.8rem;
    }

    .badge-text {
        font-size: 0.8rem;
    }

    .step-arrow {
        display: none;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .floating-badge {
        width: 80px;
        height: 80px;
        right: 20px;
    }

    .badge-number {
        font-size: 1.5rem;
    }

    .badge-text {
        font-size: 0.7rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }

    .app-badges {
        flex-direction: column;
        gap: 15px;
    }

    .app-badge img {
        height: 40px;
    }

    .footer-about, .footer-links, .footer-newsletter {
        margin-bottom: 40px;
    }
}

@media (max-width: 575.98px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .tab {
        min-width: 80px;
        padding: 10px 15px;
    }

    .tab i {
        font-size: 1.2rem;
    }

    .tab span {
        font-size: 0.8rem;
    }

    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
