:root {
    --primary: #1a5f7a;
    --primary-dark: #0d3d4d;
    --primary-light: #57c5b6;
    --accent: #ffc947;
    --accent-orange: #ff6b35;
    --success: #00c897;
    --bg-dark: #0a1628;
    --bg-card: #111d35;
    --bg-card-light: #1a2940;
    --text-light: #ffffff;
    --text-muted: #8899a6;
    --gradient-primary: linear-gradient(135deg, #1a5f7a 0%, #57c5b6 100%);
    --gradient-accent: linear-gradient(135deg, #ffc947 0%, #ff6b35 100%);
    --gradient-dark: linear-gradient(180deg, #0a1628 0%, #111d35 100%);
    --shadow-glow: 0 0 40px rgba(87, 197, 182, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Animated Background */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary-light) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--accent) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--bg-dark) 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-light);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(87, 197, 182, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.logo-container {
    position: relative;
    z-index: 2;
}

.logo-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 50px;
    box-shadow: var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.header .subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.header .company {
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.header-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.meta-item {
    background: var(--bg-card);
    padding: 15px 30px;
    border-radius: 15px;
    border: 1px solid rgba(87, 197, 182, 0.3);
}

.meta-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.meta-item strong {
    color: var(--primary-light);
    font-size: 1.2rem;
}

/* Navigation */
.nav-container {
    background: var(--bg-card);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    gap: 10px;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-list a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-list a:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.nav-logo {
    height: 40px;
    flex-shrink: 0;
}

/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--primary);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-light);
    transition: all 0.3s ease;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Styling */
.section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.section-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-glow);
}

.section-title {
    font-family: 'Cairo', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
}

.section-number {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    font-weight: 700;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(87, 197, 182, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-light);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Architecture Diagram */
.architecture-diagram {
    background: var(--bg-card-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.arch-main {
    background: var(--gradient-accent);
    color: var(--bg-dark);
    padding: 25px 50px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 40px;
    box-shadow: var(--shadow-glow);
}

.arch-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.arch-section {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.arch-section:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.arch-section-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.arch-section h4 {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.arch-section ul {
    list-style: none;
    text-align: right;
}

.arch-section ul li {
    padding: 5px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.arch-section ul li::before {
    content: '✓';
    color: var(--success);
    margin-left: 8px;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.package-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 2px solid var(--primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.package-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 201, 71, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.package-card:hover::after {
    opacity: 1;
}

.package-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(255, 201, 71, 0.2);
}

.package-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.package-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.package-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-available {
    background: rgba(0, 200, 151, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-soon {
    background: rgba(255, 201, 71, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Timeline */
.timeline {
    position: relative;
    padding-right: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    padding: 30px;
    padding-right: 60px;
    margin-bottom: 30px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(87, 197, 182, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-card);
}

.timeline-marker {
    position: absolute;
    right: -47px;
    top: 30px;
    width: 30px;
    height: 30px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 201, 71, 0.5);
}

.timeline-week {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.timeline-tasks {
    list-style: none;
}

.timeline-tasks li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-tasks li:last-child {
    border-bottom: none;
}

.timeline-tasks li::before {
    content: '▸';
    color: var(--accent);
}

.timeline-cost {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: var(--gradient-accent);
    color: var(--bg-dark);
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.1rem;
}

/* Pricing Section */
.pricing-hero {
    background: var(--gradient-primary);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.pricing-total {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-light);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.pricing-label {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.pricing-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.pricing-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(87, 197, 182, 0.2);
    transition: all 0.3s ease;
}

.pricing-item:hover {
    border-color: var(--accent);
    transform: translateX(-5px);
}

.pricing-item-name {
    font-weight: 600;
    color: var(--text-light);
}

.pricing-item-cost {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 15px;
    border: 1px solid var(--primary);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

th {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 18px 15px;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

tr:hover td {
    background: var(--bg-card-light);
    color: var(--text-light);
}

/* User Types Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.user-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.user-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.user-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.user-name {
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.user-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tech Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tech-category {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border-top: 4px solid var(--primary-light);
}

.tech-category h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    padding: 8px 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-list li::before {
    content: '◆';
    color: var(--primary-light);
    font-size: 0.6rem;
}

/* Discounts */
.discounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.discount-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    border: 2px dashed var(--accent);
    position: relative;
}

.discount-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--gradient-accent);
    color: var(--bg-dark);
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
}

.discount-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.discount-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.discount-desc {
    color: var(--text-muted);
}

/* Requirements */
.req-list {
    display: grid;
    gap: 15px;
}

.req-item {
    background: var(--bg-card);
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 4px solid var(--primary-light);
    transition: all 0.3s ease;
}

.req-item:hover {
    transform: translateX(-10px);
    background: var(--bg-card-light);
}

.req-num {
    width: 35px;
    height: 35px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--bg-dark);
    flex-shrink: 0;
}

/* Payment Section */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.payment-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--primary);
}

.payment-card h4 {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.payment-amount {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-note {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.9rem;
}

.bank-info {
    background: var(--bg-card-light);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border: 1px solid var(--primary);
}

.bank-info h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-label {
    color: var(--text-muted);
}

.bank-value {
    color: var(--text-light);
    font-weight: 600;
    font-family: monospace;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--bg-card);
    padding: 50px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 3px solid var(--primary);
}

.footer-logo {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 25px;
}

/* Guarantees */
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guarantee-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 3px solid var(--success);
}

.guarantee-icon {
    font-size: 30px;
    color: var(--success);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    .nav-container {
        display: none;
    }
    .card, .package-card, .timeline-item {
        break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-container {
        padding: 15px;
    }
    
    .nav-wrapper {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 5px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(87, 197, 182, 0.3);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list a {
        display: block;
        text-align: center;
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .nav-logo {
        height: 35px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    .header .subtitle {
        font-size: 1.2rem;
    }
    .header-meta {
        flex-direction: column;
        gap: 15px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .pricing-total {
        font-size: 2.5rem;
    }
    .payment-methods {
        grid-template-columns: 1fr;
    }
    .timeline {
        padding-right: 30px;
    }
    .timeline-item {
        padding-right: 40px;
    }
    .timeline-marker {
        right: -37px;
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}
