@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Core Design System Tokens */
:root {
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Theme Variables - Dark Mode (Default) */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-glass: rgba(17, 24, 39, 0.7);
    --bg-glass-hover: rgba(31, 41, 55, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    
    --secondary: #06b6d4;
    --secondary-hover: #0891b2;
    --secondary-glow: rgba(6, 182, 212, 0.15);
    
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.15);
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-hover: rgba(241, 245, 249, 0.9);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-color-hover: rgba(99, 102, 241, 0.3);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #4f46e5;
    --primary-hover: #3730a3;
    --primary-glow: rgba(79, 70, 229, 0.1);
    
    --secondary: #0891b2;
    --secondary-hover: #0e7490;
    --secondary-glow: rgba(8, 145, 178, 0.1);
    
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

/* Utility Layouts */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

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

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Glassmorphism Elements */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: border var(--transition-normal), background var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel-hover:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-glass-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--primary-glow) 0px 10px 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    gap: 0.5rem;
    outline: none;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    width: fit-content;
}

.badge-secondary {
    background: var(--secondary-glow);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-normal), border var(--transition-normal);
}

[data-theme="light"] header {
    background: rgba(248, 250, 252, 0.6);
}

header.scrolled {
    background: var(--bg-glass);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.logo img {
    height: 2.25rem;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--text-primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

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

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

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger mobile menu button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5rem;
    height: 1.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

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

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 99;
    padding: 6rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right var(--transition-normal);
    border-left: 1px solid var(--border-color);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav .nav-link {
    font-size: 1.15rem;
}

/* Theme Switcher */
.theme-switch {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-switch:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.theme-switch svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 45%;
    height: 55%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

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

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

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

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

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border-color);
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Feature/Service Section */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-bg-alt {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section-title {
    font-size: 2.25rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.service-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.service-card:nth-child(2n) .service-icon {
    background: var(--secondary-glow);
    color: var(--secondary);
    border-color: rgba(6, 182, 212, 0.15);
}

.service-card h3 {
    margin-bottom: 0.25rem;
}

.service-list {
    list-style: none;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Tech Stack Section */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.tech-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tech-pill:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
    transform: translateY(-2px);
}

.tech-pill svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* Agile Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .timeline::before {
        left: 20px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-dot {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--primary);
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px var(--primary);
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.timeline-item:nth-child(3) .timeline-dot {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 767px) {
    .timeline-dot {
        left: 20px;
    }
}

.timeline-content {
    position: relative;
    width: 45%;
    float: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

@media (max-width: 767px) {
    .timeline-content {
        width: calc(100% - 50px);
        float: right !important;
    }
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeline-number {
    font-size: 2rem;
    font-weight: 800;
    opacity: 0.3;
    line-height: 1;
}

/* Call to Action Banner */
.cta-banner {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid var(--border-color-hover);
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: -1;
}

.cta-banner h2 {
    font-size: 2.25rem;
    max-width: 700px;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Smart Wizard Interface Styling */
.wizard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .wizard-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.wizard-card {
    position: relative;
    overflow: hidden;
}

.wizard-progress {
    margin-bottom: 2.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
    transition: width var(--transition-normal);
}

.wizard-step {
    display: none;
    animation: fadeIn var(--transition-normal) forwards;
}

.wizard-step.active {
    display: block;
}

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

.wizard-step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Radio/Checkbox Grid Options */
.option-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.option-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.option-card.selected {
    border-color: var(--primary);
    background: var(--primary-glow);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .option-card.selected {
    background: rgba(79, 70, 229, 0.05);
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.option-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.option-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Wizard Navigation Controls */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Form inputs styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Dynamic Live Estimator Panel */
.estimator-panel {
    align-self: start;
    position: sticky;
    top: 6.5rem;
}

.estimator-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.estimator-header h4 {
    font-size: 1.25rem;
}

.estimator-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.estimator-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.estimator-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.estimator-value.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.35rem;
    font-family: var(--font-heading);
}

.estimator-features-list {
    list-style: none;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.estimator-features-list li {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    padding-bottom: 0.25rem;
    border-bottom: 1px dashed var(--border-color);
}

.estimator-features-list li span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Success / Completion message */
.wizard-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 1.5rem;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--success);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-method h4 {
    margin-bottom: 0.25rem;
}

.contact-method p, .contact-method a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-method a:hover {
    color: var(--primary);
}

/* Admin Panel Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1.3fr 0.7fr;
    }
}

.proposal-table-wrapper {
    overflow-x: auto;
}

.proposal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.proposal-table th, .proposal-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.proposal-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proposal-table tbody tr {
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.proposal-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.proposal-table tbody tr.active {
    background-color: var(--primary-glow);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-new {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.status-viewed {
    background: rgba(6, 182, 212, 0.2);
    color: var(--secondary);
}

.proposal-details {
    align-self: start;
    position: sticky;
    top: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-row {
    margin-bottom: 1rem;
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.proposal-features-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.proposal-features-pills span {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

/* Footer styling */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    color: var(--text-secondary);
    transition: background-color var(--transition-normal), border var(--transition-normal);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    font-size: 0.9rem;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social-icon:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Legal Pages (Terms / Privacy) */
.legal-container {
    max-width: 800px;
    margin: 8rem auto 6rem;
    padding: 0 1.5rem;
}

.legal-title {
    margin-bottom: 1rem;
    font-size: 2.75rem;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-content section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Right-to-Left (RTL) Layout System Overrides
   ========================================== */
[dir="rtl"] {
    font-family: 'Cairo', var(--font-sans);
    direction: rtl;
    text-align: right;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6 {
    font-family: 'Cairo', var(--font-heading);
}

/* Navigation Menu */
[dir="rtl"] .mobile-nav {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--border-color);
    transition: left var(--transition-normal);
}

[dir="rtl"] .mobile-nav.active {
    right: auto;
    left: 0;
}

/* Service Lists */
[dir="rtl"] .service-list li {
    gap: 0.5rem;
}

[dir="rtl"] .service-list li::before {
    content: "✓";
    display: inline-block;
    transform: scaleX(-1);
    margin-left: 0.25rem;
    margin-right: 0;
}

/* Option Cards (Wizard) */
[dir="rtl"] .option-card input[type="radio"],
[dir="rtl"] .option-card input[type="checkbox"] {
    right: auto;
    left: 1.25rem;
}

/* Estimator Sidebar */
[dir="rtl"] .estimator-features-list {
    padding-right: 0;
    padding-left: 0.5rem;
}

[dir="rtl"] .estimator-features-list li span:first-child {
    text-align: right;
}

/* Timeline Components */
[dir="rtl"] .timeline::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .timeline-content {
    float: right;
    text-align: right;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
    float: left;
}

@media (max-width: 767px) {
    [dir="rtl"] .timeline::before {
        left: auto;
        right: 20px;
        transform: none;
    }
    
    [dir="rtl"] .timeline-dot {
        left: auto;
        right: 20px;
        transform: translateX(50%);
    }
    
    [dir="rtl"] .timeline-content {
        width: calc(100% - 50px);
        float: left !important;
    }
}

/* Header Switcher */
[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-links-col a:hover {
    padding-left: 0;
    padding-right: 2px;
}

/* Responsive Improvements for Mobile/Tablet Devices */
@media (max-width: 1023px) {
    #header-cta {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .logo img {
        height: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem !important;
    }
    
    .section {
        padding: 4rem 0 !important;
    }
    
    .hero-section {
        padding: 6rem 0 3rem !important;
        min-height: auto !important;
    }
    
    /* Reclaim screen width on mobile by reducing glass panel padding */
    .glass-panel {
        padding: 1.5rem !important;
    }
    
    /* Option grid gap scale */
    .option-grid {
        gap: 0.75rem !important;
    }
    
    /* Form inputs scale */
    .form-input {
        padding: 0.65rem 0.85rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Mobile font scale improvements */
    h1 { font-size: 2.25rem !important; }
    h2 { font-size: 1.85rem !important; }
    h3 { font-size: 1.35rem !important; }
}
