/* Design System Tokens */
:root {
    --bg-main: #07070a;
    --bg-darker: #040406;
    --bg-card: rgba(20, 20, 28, 0.45);
    --bg-card-hover: rgba(28, 28, 38, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.4);
    --border-active: #8b5cf6;
    
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary: #06b6d4;
    --secondary-hover: #0891b2;
    --accent: #22d3ee;
    --success: #10b981;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dark: #09090b;
    
    --font-en: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-ar: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
    
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.15s ease;
    
    --glow-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    --glow-shadow-active: 0 0 30px rgba(139, 92, 246, 0.35);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

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

body.lang-en {
    font-family: var(--font-en);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

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

/* Background Ambient Glows */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 50%;
    right: -200px;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    bottom: -100px;
    left: 20%;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Typography & Titles */
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto 48px auto;
    border-radius: 2px;
}

.scroll-offset {
    scroll-margin-top: 100px;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(7, 7, 10, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transform: rotate(45deg);
    display: inline-block;
}

.accent-text {
    color: var(--primary);
}

.accent-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
    }
}

.desktop-nav a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-lang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-quick);
}

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

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-quick);
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Nav Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-main);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-quick);
    border: none;
    gap: 8px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.45);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 140px 0 80px 0;
    position: relative;
    text-align: center;
}

.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.8s infinite;
}

.hero-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.2rem;
    }
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 36px auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.icon-calc {
    vertical-align: middle;
}

/* About Section */
.about-section {
    padding: 60px 0;
}

.about-card {
    padding: 40px;
}

.about-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.about-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Pricing Packages Section */
.pricing-section {
    padding: 80px 0;
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 12px;
    max-width: max-content;
    margin: 0 auto 40px auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-quick);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

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

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

/* Pricing Card styling */
.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 32px;
    height: 100%;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--glow-shadow);
}

.pricing-card.selected-card {
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.05);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-header {
    margin-bottom: 24px;
}

.package-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.package-price {
    display: flex;
    flex-direction: column;
}

.price-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.price-currency {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

.card-body {
    flex-grow: 1;
    margin-bottom: 32px;
}

.features-list {
    list-style: none;
}

.features-list li {
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features-list li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: 900;
    flex-shrink: 0;
}

.features-list li.disabled {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
}

.features-list li.disabled::before {
    content: "×";
    color: rgba(255, 255, 255, 0.3);
}

.highlight-cyan {
    color: var(--accent);
}

.highlight-purple {
    color: #c084fc;
}

.pricing-notice {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 24px;
}

/* Care Option Panel */
.care-section {
    display: flex;
    flex-direction: column;
    padding: 30px;
    margin-top: 40px;
    gap: 16px;
}

@media (min-width: 768px) {
    .care-section {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: right;
    }
}

.care-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.care-price .price-val {
    font-size: 1.7rem;
}

.care-price .price-currency {
    display: inline-block;
    margin-inline-start: 4px;
}

.care-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
}

/* Add-ons List */
.addons-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.addon-item {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
}

@media (min-width: 768px) {
    .addon-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: right;
    }
}

.addon-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.addon-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.addon-action {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-shrink: 0;
}

.addon-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.old-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.addon-item.no-pricing {
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.addon-item.no-pricing.selected-card {
    border-left-color: var(--secondary);
}

.price-currency-short {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.calculator-wrapper {
    margin-top: 40px;
}

.calc-panel, .calc-summary-panel {
    padding: 32px;
}

.panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    color: white;
}

.selected-items-wrapper {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.empty-state {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.7;
}

.selected-items-list {
    list-style: none;
}

.selected-package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
}

.selected-package-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.sel-pack-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.sel-pack-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.sel-pack-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sel-pack-price {
    font-weight: 700;
    color: white;
}

.btn-remove-pack {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: var(--transition-quick);
}

.btn-remove-pack:hover {
    transform: scale(1.15);
}

.ad-budget-container {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
    animation: fadeIn 0.3s ease;
}

.ad-budget-container.hidden {
    display: none;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.budget-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 16px 0;
}

.budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transition: var(--transition-quick);
}

.budget-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.ad-commission-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Receipt Details */
.receipt-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 4px 0;
}

.receipt-row.group-header {
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-top: 12px;
}

.receipt-row.group-header:first-child {
    margin-top: 0;
}

.receipt-sub-rows {
    min-height: 20px;
}

.receipt-row.total-row {
    font-weight: 700;
    color: white;
    padding-top: 8px;
}

.receipt-row.border-bottom {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.receipt-row.final-row {
    font-size: 0.95rem;
}

.receipt-row.grand-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.receipt-row.empty-row {
    font-style: italic;
    color: rgba(255, 255, 255, 0.2);
}

.calc-actions {
    margin-top: 16px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-quick);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.filter-btn.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    border-color: var(--secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 576px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--glow-shadow);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    z-index: 2;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-lang, .project-platform {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    z-index: 2;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
    flex-grow: 1;
    z-index: 2;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
}

.project-link:hover {
    color: var(--text-main);
}

.project-link .arrow {
    transition: transform var(--transition-quick);
}

.project-link:hover .arrow {
    transform: translateX(4px);
}

html[dir="rtl"] .project-link:hover .arrow {
    transform: translateX(-4px);
}

/* How We Work Timeline */
.how-we-work-section {
    padding: 80px 0;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.timeline-item {
    position: relative;
    padding: 24px 24px 24px 60px;
}

html[dir="rtl"] .timeline-item {
    padding: 24px 60px 24px 24px;
}

.timeline-num {
    position: absolute;
    top: 24px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

html[dir="rtl"] .timeline-num {
    left: auto;
    right: 20px;
}

.timeline-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .timeline-container {
        flex-direction: row;
        gap: 16px;
    }
    
    .timeline-item {
        flex: 1;
        padding: 32px 24px;
        text-align: center;
    }
    
    html[dir="rtl"] .timeline-item {
        padding: 32px 24px;
    }
    
    .timeline-num {
        position: static;
        margin: 0 auto 20px auto;
    }
}

/* Terms & Conditions Section */
.terms-section {
    padding: 40px 0;
}

.terms-wrapper {
    padding: 32px;
}

.terms-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.terms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .terms-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.term-col ul {
    list-style: none;
}

.term-col li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    position: relative;
    padding-inline-start: 16px;
}

.term-col li::before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

html[dir="rtl"] .term-col li::before {
    left: auto;
    right: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    margin-top: 40px;
}

.contact-info-panel, .contact-form-panel {
    padding: 40px;
}

.contact-info-panel h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.3rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-content a, .info-content span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-content a:hover {
    color: var(--accent);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-quick);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

/* Success alert overlay style */
.success-alert {
    display: flex;
    gap: 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 24px;
    border-radius: 12px;
    margin-top: 16px;
    animation: scaleUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-icon {
    width: 32px;
    height: 32px;
    background-color: var(--success);
    color: white;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-content h4 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.alert-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Footer Section */
.main-footer {
    padding: 60px 0 40px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto 32px auto;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Keyframes & Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

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

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

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Layout Swaps for English LTR */
html[lang="en"] {
    direction: ltr;
}

html[lang="en"] body {
    font-family: var(--font-en);
}

/* LTR specific layout details */
html[lang="en"] .timeline-item {
    padding: 24px 24px 24px 60px;
}

html[lang="en"] .timeline-num {
    left: 20px;
    right: auto;
}

html[lang="en"] .term-col li::before {
    left: 0;
    right: auto;
}

html[lang="en"] .info-item {
    text-align: left;
}

html[lang="en"] .care-section {
    text-align: left;
}

html[lang="en"] .addon-item {
    text-align: left;
}

html[lang="en"] .addon-price {
    align-items: flex-end;
}

/* ============================================
   ENHANCEMENTS: Floating Particles + Scroll Reveal
   (Appended — additive, no overrides)
   ============================================ */

/* Particle canvas sits above glows, below all content */
#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
}

/* Scroll-reveal base state: elements start hidden + offset */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered children (cards inside a grid reveal in sequence) */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.37s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.45s; }

/* Springy lift on pricing/addon/about cards (Framer-Motion feel) */
.pricing-card,
.addon-item,
.about-card,
.timeline-item {
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        background 0.35s ease,
        border-color 0.35s ease;
}

.pricing-card:hover,
.addon-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), var(--glow-shadow);
}

.pricing-card.popular:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), var(--glow-shadow-active);
}

/* Accessibility: honor reduced-motion — disable particles + reveals */
@media (prefers-reduced-motion: reduce) {
    #particles-canvas { display: none; }
    .reveal,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .pricing-card:hover,
    .addon-item:hover { transform: none; }
}
