:root {
    /* Light Mode (Default) */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --bg-color: #ffffff;
    --text-color: #0f172a;
    --text-secondary: #475569;
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --gradient-1: rgba(99, 102, 241, 0.05);
    --gradient-2: rgba(236, 72, 153, 0.05);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(15, 23, 42, 0.9);
    --gradient-1: rgba(99, 102, 241, 0.15);
    --gradient-2: rgba(236, 72, 153, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Gradients */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, var(--gradient-1) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, var(--gradient-2) 0%, transparent 25%);
    transition: background 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Components */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    backdrop-filter: blur(5px);
}

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

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

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-color);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.05);
}
.theme-icon{
    height: 2rem;
    width: 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 500px;
}

.hero-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.2));
    animation: float 6s ease-in-out infinite;
}

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

/* Features Carousel (Infinite Center Loop) */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    list-style: none;
    padding: 0;
    margin: 0;
    will-change: transform;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%; /* Default mobile width */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    opacity: 1; /* Mobile defaults to full opacity */
    transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (min-width: 900px) {
    .carousel-slide {
        width: 33.333%; /* Show 3 on desktop */
        opacity: 0.5;
        transform: scale(0.85);
    }

    .carousel-slide.active-center {
        opacity: 1;
        transform: scale(1.05); /* Highlight center item */
        z-index: 10;
        filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
    }
    
    /* Ensure glass card inside scales smoothly */
    .carousel-slide .glass-card {
        transition: all 0.5s ease;
    }
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 350px;
    height: 100%;
}

.feature-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.75rem;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background: rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-indicator.current-slide {
    background: var(--primary);
    transform: scale(1.2);
}

/* Pricing Section */
.pricing-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2rem;
    /* Hide scrollbar for clean look but allow scroll */
    scrollbar-width: none; 
}
.pricing-wrapper::-webkit-scrollbar {
    display: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.price-cards {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-width: 280px; /* Ensure cards don't shrink too much */
}

.badge-premium {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.features-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .mobile-reverse-column {
        flex-direction: column-reverse; /* Text below image on mobile for better flow */
        gap: 2rem;
    }
    
    .hero {
        text-align: center;
        justify-content: center;
        height: auto;
        min-height: auto;
        padding-bottom: 3rem;
    }
    .container{
        padding-top: 8rem;
    }

    .nav-container{
        padding-top: 0;
    }
    

    /* Pricing Horizontal Scroll */
    .pricing-grid {
        overflow-x: auto;
        padding-bottom: 2rem;
        gap: 1.5rem;
    }
    
    .price-cards {
        scroll-snap-align: center;
        width: 85vw; /* Almost full width but show peek of next card */
        flex-shrink: 0;
    }

    /* Carousel slide mobile */
    .carousel-slide {
        min-width: 100%;
    }
}

/* Workflow Section */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    padding: 2rem 0;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-header {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-number {
    position: absolute;
    top: -10px;
    left: -10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.screenshot-frame {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    transition: transform 0.3s ease;
    max-width: 100%;
}

.screenshot-frame:hover {
    transform: translateY(-5px);
}

.step-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Connecting line for desktop */
@media (min-width: 900px) {
    .workflow-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px; /* Center with icon roughly */
        right: -50%;
        width: 100%;
        height: 2px;
        background: radial-gradient(circle, var(--text-secondary) 0%, transparent 80%);
        opacity: 0.3;
        z-index: 0;
    }
}

/* Contact Section (Apple Style) */
:root {
    --section-bg: #F5F5F7;
    --card-bg-apple: #FFFFFF;
    --input-bg-apple: #F5F5F7;
    --apple-blue: #0071e3;
    --text-primary: #1d1d1f;
    --text-secondary-apple: #86868b;
}

[data-theme="dark"] {
    --section-bg: #000000;
    --card-bg-apple: #1c1c1e;
    --input-bg-apple: #2c2c2e;
    --text-primary: #f5f5f7;
    --text-secondary-apple: #86868b;
    --apple-blue: #2997ff;
}

.contact-header-apple {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header-apple h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.contact-header-apple p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.apple-card {
    background: var(--card-bg-apple);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .apple-card {
    border: 1px solid rgba(255,255,255,0.1);
}

.apple-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* Info Card */
.info-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-content p {
    color: var(--text-secondary-apple);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.apple-link-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: opacity 0.2s ease;
}

[data-theme="dark"] .apple-link-row {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.apple-link-row:last-child {
    border-bottom: none;
}

.apple-link-row:hover {
    opacity: 0.7;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: var(--input-bg-apple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.link-text {
    display: flex;
    flex-direction: column;
}

.link-text .label {
    font-size: 0.8rem;
    color: var(--text-secondary-apple);
    font-weight: 500;
}

.link-text .value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Form Card */
.apple-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.apple-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.apple-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 4px;
}

.apple-input-group input,
.apple-input-group textarea {
    background: var(--input-bg-apple);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-primary);

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    transition: all 0.2s ease;
}

.apple-input-group input:focus,
.apple-input-group textarea:focus {
    outline: none;
    background: var(--card-bg-apple);
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.apple-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
}

[data-theme="dark"] .apple-btn {
    background: #FFFFFF;
    color: black;
}

.apple-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Standard Apple Popup */
.apple-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.apple-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.apple-popup {
    width: 270px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    text-align: center;
    padding-top: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(1.1);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.apple-popup-overlay.active .apple-popup {
    transform: scale(1);
    opacity: 1;
}

[data-theme="dark"] .apple-popup {
    background: rgba(30, 30, 30, 0.95);
    color: white;
}

.popup-icon-apple {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.apple-popup h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    margin-bottom: 4px;
    color: var(--text-color);
}

.apple-popup p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    margin-bottom: 20px;
    padding: 0 16px;
    line-height: 1.4;
}

.apple-popup button {
    width: 100%;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15); /* Hairline */
    padding: 12px 0;
    font-size: 17px;
    font-weight: 600;
    color: #007AFF; /* Apple Blue */
    cursor: pointer;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    transition: background 0.1s;
}

[data-theme="dark"] .apple-popup button {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.apple-popup button:active {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .apple-popup button:active {
    background: rgba(255, 255, 255, 0.05);
}

/* Ramadan Offer - Original Price Strikethrough */
.original-price {
    text-decoration: line-through;
    color: var(--secondary);
    font-size: 0.9em;
    margin-right: 0.5rem;
    opacity: 0.8;
}

/* Ramadan Heading Styles */
.ramadan-heading-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.ramadan-title-group {
    position: relative;
    display: inline-block;
}

.ramadan-title {
    background: linear-gradient(to right, #d1b352, #a85e08, #d1b352); /* Gold Gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.ramadan-decoration.top-center {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* Adjust size */
    max-width: 80%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

.ramadan-lamp {
    width: 60px;
    height: auto;
    position: absolute;
    top: 10px;
    z-index: 3;
    filter: drop-shadow(0 10px 15px rgba(255, 215, 0, 0.4));
}

.ramadan-lamp.left {
    left: -80px;
    animation: swing 3s ease-in-out infinite alternate;
}

.ramadan-lamp.right {
    right: -80px;
    animation: swing 3.5s ease-in-out infinite alternate-reverse;
}

.ramadan-mosque-bg {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

@keyframes swing {
    0% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

@media (max-width: 768px) {
    .ramadan-lamp {
        width: 40px;
    }
    .ramadan-lamp.left {
        left: -30px;
        top: -10px;
    }
    .ramadan-lamp.right {
        right: -30px;
        top: -10px;
    }
    .ramadan-decoration.top-center {
        width: 200px;
        top: -30px;
    }
}
