/* ==========================================================================
   Menetalk Premium eSIM CSS
   ========================================================================== */

/* Typography & Reset over-rides */
:root {
    --esim-primary: #F4DB00;     /* Premium menetalk Yellow */
    --esim-secondary: #FF9E00;   /* Vibrant Gold/Amber Orange */
    --esim-accent: #FFE600;      /* Intense Neon Yellow */
    --esim-bg-dark: #000000;
    --esim-bg-darker: #070707;
    --esim-bg-light: #ffffff;
    --esim-text-light: #f8fafc;
    --esim-text-dark: #111827;
    --esim-text-muted: #A3A3A3;
    --esim-glass-bg: rgba(18, 18, 18, 0.65);
    --esim-glass-border: rgba(244, 219, 0, 0.08);
    --esim-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    background-color: var(--esim-bg-darker);
    color: var(--esim-text-light);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Base Sections */
.esim-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.bg-gradient-subtle {
    background: linear-gradient(135deg, var(--esim-bg-dark) 0%, var(--esim-bg-darker) 100%);
}

.mesh-bg {
    background-color: var(--esim-bg-darker);
    background-image: radial-gradient(at 0% 0%, rgba(244, 219, 0, 0.1) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(255, 158, 0, 0.1) 0px, transparent 50%);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--esim-primary), var(--esim-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-text {
    font-size: 1.125rem;
    color: var(--esim-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--esim-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--esim-glass-border);
    border-radius: 20px;
    box-shadow: var(--esim-glass-shadow);
}

.glass-card {
    background: var(--esim-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--esim-glass-border);
    border-radius: 16px;
    box-shadow: var(--esim-glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 219, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--esim-primary), var(--esim-accent));
    color: #000000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(244, 219, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--esim-glass-border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--esim-primary), var(--esim-secondary), var(--esim-accent));
    z-index: -1;
    border-radius: 10px;
    opacity: 0.6;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 1;
}

/* Hero Section */
.esim-hero {
    padding: 150px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(244, 219, 0, 0.1);
    border: 1px solid rgba(244, 219, 0, 0.2);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--esim-primary);
    margin-bottom: 24px;
}

.main-heading {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-content .subtext {
    font-size: 1.25rem;
    color: var(--esim-text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 3D Glass SIM Card in Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-sim-card {
    width: 280px;
    height: 440px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.glass-sim-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: linear-gradient(-135deg, transparent 50%, rgba(255,255,255,0.2) 50%);
    border-radius: 0 24px 0 0;
}

.sim-chip {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FDB931);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #8C6A00;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.2);
}

.sim-network {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.sim-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: auto;
    margin-bottom: 10px;
}

.sim-brand {
    font-size: 0.9rem;
    color: var(--esim-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Floating Orbs behind Hero */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--esim-primary);
    top: -50px;
    right: -50px;
    animation: pulse 8s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--esim-secondary);
    bottom: -50px;
    left: 20px;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateX(10deg) rotateY(0deg); }
    100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.b-icon {
    font-size: 3rem;
    color: var(--esim-secondary);
    margin-bottom: 20px;
    display: inline-flex;
    padding: 20px;
    background: rgba(255, 158, 0, 0.1);
    border-radius: 50%;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--esim-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Pricing Section */
.pricing-tabs-wrapper {
    margin-top: 40px;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.pricing-tab {
    background: var(--esim-glass-bg);
    border: 1px solid var(--esim-glass-border);
    color: var(--esim-text-light);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-tab:hover {
    background: rgba(255,255,255,0.1);
}

.pricing-tab.active {
    background: linear-gradient(135deg, var(--esim-primary), var(--esim-accent));
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(244, 219, 0, 0.4);
}

.pricing-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.p-card {
    width: 100%;
    max-width: 320px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.p-card.popular {
    border-color: var(--esim-primary);
    box-shadow: 0 10px 30px rgba(244, 219, 0, 0.2);
}

.p-card.popular::after {
    content: 'Best Value';
    position: absolute;
    top: 20px; right: -35px;
    background: var(--esim-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 40px;
    transform: rotate(45deg);
}

.p-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.p-card p {
    color: var(--esim-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 45px;
}

.p-card .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.p-card .btn {
    margin-top: auto;
    width: 100%;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.faq-item {
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--esim-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--esim-secondary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    color: var(--esim-text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .main-heading { font-size: 3rem; }
    .hero-content .subtext { margin-left: auto; margin-right: auto; }
    .eyebrow { margin-left: auto; margin-right: auto; }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .esim-section { padding: 60px 0; }
    .main-heading { font-size: 2.5rem; }
    
    .pricing-tabs {
        flex-direction: column;
        align-items: center;
    }
    .pricing-tab { width: 100%; max-width: 300px; text-align: center; }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}


/* Enhanced Carousel and Sticky Tabs for Pricing */

.pricing-tabs-wrapper {
    margin-top: 20px;
}

.sticky-tab-nav {
    position: sticky;
    top: 80px; 
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    margin-bottom: 40px;
    pointer-events: none; /* Let clicks pass through padding */
}

.sticky-tab-nav .pricing-tabs {
    pointer-events: auto; /* Re-enable clicks on the pill */
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--esim-glass-border);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(244, 219, 0, 0.05);
}

.pricing-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 5px;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.pricing-tabs::-webkit-scrollbar {
    display: none;
}

.pricing-tab {
    background: transparent;
    border: none;
    color: var(--esim-text-muted);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.pricing-tab.active {
    color: #000;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.tab-indicator {
    position: absolute;
    bottom: 5px;
    left: 0;
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--esim-primary), var(--esim-accent));
    border-radius: 30px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 5px 15px rgba(244, 219, 0, 0.3);
}

.pricing-carousel {
    width: 100%;
    padding: 20px 0; /* Add padding to prevent shadow/scale cutoff */
}

.pricing-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
    justify-content: center;
}

.p-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
    flex-grow: 1;
}

.p-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--esim-text-light);
    font-size: 0.95rem;
}

.card-icon {
    font-size: 3rem;
    color: var(--esim-primary);
    margin-bottom: 20px;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.p-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid var(--esim-glass-border);
}

.p-card:hover {
    border-color: var(--esim-primary);
}

.p-card.popular {
    border: 2px solid var(--esim-primary);
    transform: scale(1.05);
}

.p-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.p-card.popular::after {
    top: 25px; right: -35px;
}

@media (max-width: 1200px) {
    .pricing-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .pricing-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sticky-tab-nav {
        top: 60px;
        padding: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .sticky-tab-nav .pricing-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .pricing-tab {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--esim-glass-border);
        border-radius: 8px;
        padding: 12px 10px;
        font-size: 13px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        box-sizing: border-box;
    }
    
    .pricing-tab.active {
        background: linear-gradient(135deg, var(--esim-primary) 0%, var(--esim-secondary) 100%);
        color: #000000 !important;
        border-color: transparent;
        box-shadow: 0 5px 15px rgba(244, 219, 0, 0.35);
    }
    
    .tab-indicator {
        display: none !important;
    }

    .pricing-carousel {
        overflow: visible;
        scroll-snap-type: none;
        padding: 10px 0 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .pricing-track {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .pricing-track::after {
        display: none;
    }

    .p-card {
        width: 100%;
        max-width: 100%;
    }

    .p-card.popular {
        transform: scale(1);
    }
    
    .p-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* Staggered Card Animation */
.pricing-content .p-card {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.pricing-content.active .p-card {
    opacity: 1;
    transform: translateY(0);
}

.pricing-content.active .p-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(244, 219, 0, 0.15);
}

.pricing-content.active .p-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(244, 219, 0, 0.25);
}

/* Stagger delays up to 8 cards */
.pricing-content.active .p-card:nth-child(1) { transition-delay: 0.05s; }
.pricing-content.active .p-card:nth-child(2) { transition-delay: 0.10s; }
.pricing-content.active .p-card:nth-child(3) { transition-delay: 0.15s; }
.pricing-content.active .p-card:nth-child(4) { transition-delay: 0.20s; }
.pricing-content.active .p-card:nth-child(5) { transition-delay: 0.25s; }
.pricing-content.active .p-card:nth-child(6) { transition-delay: 0.30s; }
.pricing-content.active .p-card:nth-child(7) { transition-delay: 0.35s; }
.pricing-content.active .p-card:nth-child(8) { transition-delay: 0.40s; }

