/* CSS Variables based on Midly Theme */
:root {
    /* Colors extracted from App */
    --bg-dark: #141833;       /* Midnight Navy */
    --bg-card: rgba(39, 45, 93, 0.4); /* Muted Navy with opacity */
    --bg-card-hover: rgba(63, 72, 130, 0.5); /* Primary Light with opacity */
    --primary: #272D5D;
    --primary-light: #3F4882;
    --primary-dark: #1A1E40;
    --accent: #6B7B8C;        /* Steel Grey */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Gradients */
    --gradient-btn: linear-gradient(135deg, #4268F6, #8A42F6);
    --gradient-btn-hover: linear-gradient(135deg, #5A7BF7, #9B5AF7);
    --gradient-text: linear-gradient(135deg, #7EB8F7, #F1F5F9);
    
    /* Text */
    --text-main: #F1F5F9;     /* Off-White */
    --text-muted: #CBD5E1;    /* Softer Off-White */
    --text-dark: #1A1A2E;
    
    /* UI Elements */
    --glass-border: rgba(241, 245, 249, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow Effects */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

.blob-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(66, 104, 246, 0.4);
}

.blob-2 {
    top: 30%;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(138, 66, 246, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(20, 24, 51, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

/* Text Utilities */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 4px 15px rgba(66, 104, 246, 0.4);
}

.btn-primary:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 104, 246, 0.6);
}

.btn-disabled {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.btn-disabled:hover {
    background: rgba(107, 123, 140, 0.1);
}

.btn-support {
    background: #25D366; /* WhatsApp Green */
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
}

.btn-support:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(20, 24, 51, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

/* Logo with image */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
}

.logo-text em {
    font-style: normal;
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.nav-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.image-wrapper {
    padding: 1rem;
    border-radius: 32px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

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

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.section-title span {
    color: #7EB8F7;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.features-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: rgba(126, 184, 247, 0.3);
}

/* Premium Cards (AI Agent & Google Earth) */
.feature-card-premium {
    border-color: rgba(138, 66, 246, 0.4);
    background: linear-gradient(135deg, rgba(66, 104, 246, 0.15), rgba(138, 66, 246, 0.1));
}

.feature-card-premium:hover {
    border-color: rgba(138, 66, 246, 0.7);
    background: linear-gradient(135deg, rgba(66, 104, 246, 0.25), rgba(138, 66, 246, 0.2));
}

/* "New" / "Exclusive" Badge */
.feature-badge-new {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.feature-subtitle {
    font-size: 0.9rem;
    color: #7EB8F7;
    margin-bottom: 1rem !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* AI Icon */
.ai-icon-wrapper {
    position: relative;
    display: inline-block;
    font-size: 3rem;
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.ai-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(66, 104, 246, 0.5);
    animation: aiPulse 2s ease-out infinite;
}

@keyframes aiPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Earth Globe Icon */
.earth-icon-wrapper {
    position: relative;
    display: inline-block;
    font-size: 3rem;
    color: #10B981;
    margin-bottom: 1.5rem;
}

.earth-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.4);
    animation: earthSpin 4s linear infinite;
}

@keyframes earthSpin {
    from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
    to   { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.feature-image img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Campaign Section */
.campaign-banner {
    padding: 4rem;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.campaign-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(138, 66, 246, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.campaign-content, .campaign-image {
    position: relative;
    z-index: 1;
}

.campaign-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    margin-bottom: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 15px; /* RTL adjusting */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 4px solid #7EB8F7;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
}

.badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.campaign-note {
    background: rgba(245, 158, 11, 0.1);
    border-right: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.campaign-note i {
    color: var(--warning);
    font-size: 1.5rem;
}

.campaign-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.campaign-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Footer & Support */
.footer-section {
    background: var(--primary-dark);
    padding: 80px 0 0;
    border-top: 1px solid var(--glass-border);
}

.support-box {
    text-align: center;
    padding: 4rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, rgba(39, 45, 93, 0.8), rgba(20, 24, 51, 0.9));
}

.support-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-logo span {
    color: #7EB8F7;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-btn);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid,
    .features-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .campaign-banner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .campaign-image img {
        transform: none;
        margin-top: 2rem;
    }
    
    .nav-links {
        display: none; /* Add hamburger menu for real app */
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-section {
        padding-top: 120px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s forwards;
}

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

/* Support Form */
.support-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: right;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(20, 24, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7EB8F7;
    background: rgba(39, 45, 93, 0.8);
    box-shadow: 0 0 0 4px rgba(126, 184, 247, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(241, 245, 249, 0.4);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    bottom: 40px;
}

.toast-notification i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* =============================================
   Sub-Section Layout (used in features/affiliates)
   ============================================= */
.sub-section {
    margin-bottom: 4rem;
}

.sub-section-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.sub-icon-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(39, 45, 93, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #7EB8F7;
}

.sub-icon-wrap.premium-icon {
    background: linear-gradient(135deg, rgba(66,104,246,0.3), rgba(138,66,246,0.2));
    border-color: rgba(138,66,246,0.4);
}

.sub-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 0.5rem;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(255,255,255,0.08), transparent);
    margin: 3rem 0;
}

/* =============================================
   Image Galleries
   ============================================= */
.image-gallery {
    display: grid;
    gap: 1.5rem;
}

.image-gallery.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.image-gallery.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.image-gallery.one-col {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(126, 184, 247, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.gallery-item.wide-card img {
    height: 320px;
}

.gallery-caption {
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(20, 24, 51, 0.5);
}

/* =============================================
   Affiliates Section
   ============================================= */
.affiliates-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(39,45,93,0.15) 50%, transparent 100%);
}

/* =============================================
   Payout Section
   ============================================= */
.payout-section {
    padding: 100px 0;
}

/* =============================================
   Footer Logo Image
   ============================================= */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    opacity: 0.85;
}

/* =============================================
   Responsive — Galleries & Sub-sections
   ============================================= */
@media (max-width: 992px) {
    .image-gallery.three-col {
        grid-template-columns: 1fr 1fr;
    }

    .sub-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .image-gallery.three-col,
    .image-gallery.two-col {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }

    .gallery-item.wide-card img {
        height: 220px;
    }
}

