/* Color Palette & Variables */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(20, 24, 44, 0.6);
    --bg-lighter: rgba(30, 35, 60, 0.5);
    --primary: #00e1ff;
    --primary-glow: rgba(0, 225, 255, 0.4);
    --secondary: #6c2bd9;
    --text-main: #ffffff;
    --text-muted: #a0a5b5;
    --border: rgba(255, 255, 255, 0.08);
    --font-family: 'Tajawal', sans-serif;
}

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

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

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

a {
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-family);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(7, 9, 19, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    letter-spacing: 1px;
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
}

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

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

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

.glow-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.blob-1 {
    top: -100px;
    left: -100px;
    background: var(--secondary);
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: var(--primary);
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 225, 255, 0.1);
    border: 1px solid var(--primary-glow);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #a0a5b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

/* Old Mockup in Hero */
.dashboard-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.skeleton-header {
    height: 30px;
    width: 40%;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.skeleton-chart {
    height: 150px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.skeleton-cards {
    display: flex;
    gap: 1rem;
}

.scard {
    flex: 1;
    height: 80px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

/* Generic Section Styles */
.services, .pricing, .testimonials, .faq, .visual-proof, .contact-section {
    padding: 6rem 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 225, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Dashboard Visual Proof */
.dashboard-preview {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    min-height: 500px;
}

.dash-sidebar {
    width: 250px;
    background: rgba(10, 15, 30, 0.8);
    border-left: 1px solid var(--border);
    padding: 1.5rem;
}

.dash-logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-menu-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.dash-menu-item.active {
    background: rgba(0, 225, 255, 0.1);
    color: var(--primary);
    font-weight: bold;
}

.dash-main {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.dash-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.dash-search {
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-stat-cards, .dash-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-stat-card {
    flex: 1;
    background: var(--bg-lighter);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-title {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-trend.positive {
    color: #27c93f;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.dash-chart-area {
    flex: 1;
    background: var(--bg-lighter);
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-bottom: 20px;
}

.chart-faux-bars {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    gap: 2%;
    justify-content: space-around;
}

.chart-faux-bars .bar {
    width: 10%;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.recommended {
    border-color: var(--primary);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(20,24,44,0.8) 0%, rgba(0,225,255,0.05) 100%);
    box-shadow: 0 10px 40px rgba(0,225,255,0.1);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.price {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.price .amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
}

.price .currency, .price .period {
    color: var(--text-muted);
    font-size: 1rem;
}

.price .currency { margin-left: 0.3rem; }
.price .period { margin-right: 0.3rem; }

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-lighter);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.stars {
    color: #ffbd2e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 45px;
    height: 45px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.client-info h4 {
    font-size: 1rem;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: right;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255,255,255,0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* arbitrary large height for transition */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Contact Form Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-methods .method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-methods .method i {
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-form-container {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    padding: 4rem 0 0;
    background: #04050a;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.brand .logo {
    margin-bottom: 1rem;
}

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

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 900px) {
    .hero-content, .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .dashboard-preview {
        flex-direction: column;
    }
    .dash-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }
    .pricing-card.recommended {
        transform: scale(1);
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .brand p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .dash-header-bar {
        flex-direction: column;
        gap: 1rem;
    }
    .dash-stats {
        flex-direction: column;
    }
}
