﻿/* Basic Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color-main);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   VIBRANT & PROFESSIONAL THEME (REVISION 3)
   - Updated primary background to a softer, deeper dark blue/grey.
   - Retained energetic gradient accents.
   - Logo design provided separately.
   ==========================================================================
*/

:root {
    /* Background Colors */
    --bg-primary: #A7C4B5; /* deeper sage (balanced background) */
    --bg-secondary: #8FB9AA; 
    --bg-surface: #61E786;  /* vibrant green */
    --bg-surface-dark: #5A5766; /* muted slate */
    --bg-deep: #48435C; /* deep purple-gray */

    /* Accent & Brand Colors */
    --accent-green: #61E786;
    --accent-lavender: #9792E3;
    --accent-slate: #5A5766;
    --accent-gradient: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-lavender) 100%);

    /* Text Colors */
    --text-color-main: #2A2A34; 
    --text-color-headings: #1C1C24;
    --text-color-secondary: #48435C;
    --text-color-muted: #7C7A89;

    /* Borders & Lines */
    --border-color: #9792E3;

    /* Effects */
    --button-radius: 25px;
    --border-radius-elements: 12px;
    --shadow-soft: 0 4px 15px rgba(151, 146, 227, 0.25);
    --glow-green: 0 0 15px rgba(97, 231, 134, 0.35);
    --glow-lavender: 0 0 15px rgba(151, 146, 227, 0.35);
    --glow-strong: 0 0 25px rgba(72, 67, 92, 0.5);
}


/* Utility Classes */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--button-radius);
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-pink);
    border: 2px solid var(--accent-pink);
}

.btn-secondary:hover {
    background-color: var(--accent-pink);
    color: #fff;
    box-shadow: var(--glow-pink);
}

.btn-dashboard {
    background-color: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 10px 24px;
}

.btn-dashboard:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Header */
header {
    background-color: A7C4B5;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

/* Header hidden state for scroll-down */
header.hidden {
    transform: translateY(-100%);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

/* Updated Logo Styling */
header .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -1px;
    background: linear-gradient(90deg,  var(--accent-lavender) 50%, var(--bg-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 23px; /* Moves it down */
    margin-left: 10px; /* Moves it to the right */
}

.nav-menu {
    display: none; /* Hide nav links by default */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%; /* Position below the header */
    left: 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 999;
}

.nav-menu.active {
    display: flex; /* Show nav links when active */
}

.nav-menu li {
    margin: 10px 0;
    text-align: center;
    list-style: none;
}

.menu-toggle {
    display: block; /* Hamburger button is always visible */
    background: transparent;
    border: none;
    color: var(--text-color-main);
    font-size: 1.5rem;
    cursor: pointer;
    margin-top: 20px;
}

/* Desktop layout for nav */
@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* Hide the hamburger button on desktop */
    }

    .nav-menu {
        display: flex; /* Always show the nav menu on desktop */
        flex-direction: row;
        position: static;
        width: auto;
        border-top: none;
        box-shadow: none;
        padding: 0;
    }

    .nav-menu li {
        margin: 0 15px;
    }

    .btn-dashboard {
        display: block; /* Show the dashboard button on desktop */
    }
}


/* Main Content */
main {
    padding-top: 85px;
}

/* Sections General Styling */
section {
    padding: var(--section-padding);
}
section h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2.8em;
    color: var(--text-color-headings);
    font-weight: 700;
    letter-spacing: -1px;
}

.subtitle {
    text-align: center;
    font-size: 1.15em;
    color: var(--text-color-secondary);
    max-width: 700px;
    margin: 0 auto 60px auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), url('maalgah web.png') no-repeat center center;
    background-size: cover;
    text-align: center;
    padding: 140px 0;
}
.hero h1 {
    font-size: 4em;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
}
.hero p.centered-hero-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 650px;
    color: var(--text-color-secondary);
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-item {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius-elements);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-purple);
}
.feature-item i {
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 0 0 10px var(--accent-cyan);
}
.feature-item h3 {
    margin-bottom: 12px;
    color: var(--text-color-main);
    font-size: 1.3em;
}
.feature-item p {
    font-size: 1em;
    color: var(--text-color-secondary);
}
.feature-item small {
    display: none;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--bg-secondary);
}
.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}
.step {
    flex: 1;
    padding: 30px;
}
.step-number {
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 auto 20px auto;
    box-shadow: var(--glow-purple);
}
.step h3 {
    margin-bottom: 15px;
    color: var(--text-color-main);
    font-size: 1.4em;
}
.step p {
    margin-bottom: 20px;
    color: var(--text-color-secondary);
}

/* Use Cases & Demo Calls - Tab Styles */
.use-case-tabs,
.demo-call-tabs {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.tab-button,
.demo-tab-button {
    padding: 10px 25px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-color-secondary);
    border-radius: var(--button-radius);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tab-button.active,
.demo-tab-button.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}
.tab-button:hover:not(.active),
.demo-tab-button:hover:not(.active) {
    color: var(--text-color-main);
    border-color: var(--accent-pink);
}
.use-case-content,
.demo-call-content {
    /* The fix */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.use-case-content.active,
.demo-call-content.active {
    /* The fix */
    display: block;
    max-height: 1000px; /* A large value to allow all content to show */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Use Cases Section */
.use-case-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius-elements);
    border: 1px solid var(--border-color);
}
.use-case-content h3 {
    color: var(--text-color-main);
    margin-bottom: 25px;
    font-size: 1.6em;
    text-align: center;
}
.use-case-content ul {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: 0 auto;
}
.use-case-content ul li {
    margin-bottom: 18px;
    padding-left: 35px;
    position: relative;
    font-size: 1.05em;
    color: var(--text-color-secondary);
}
.use-case-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 1.1em;
}
.use-case-content ul li strong {
    color: var(--text-color-main);
}

/* Demo Calls Section */
#demo-calls {
    background-color: var(--bg-secondary);
}
.demo-call-content h3 {
    text-align: center;
    color: var(--text-color-headings);
    font-size: 1.8em;
    margin-bottom: 10px;
}
.demo-call-content p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-color-secondary);
}
.phone-display {
    background-color: var(--bg-primary);
    padding: 30px;
    border-radius: var(--border-radius-elements);
    margin: 30px auto 0;
    border: 1px solid var(--border-color);
    max-width: 500px;
    text-align: center;
    box-shadow: var(--glow-purple);
}
.phone-display h4 {
    color: var(--text-color-main);
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 500;
}
.phone-number-link {
    display: block;
    font-size: 2.2em;
    font-weight: 600;
    color: var(--accent-cyan);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    text-shadow: 0 0 10px var(--accent-cyan);
}
.phone-number-link:hover {
    color: #fff;
    text-shadow: 0 0 20px var(--accent-cyan);
}
.phone-display .note {
    font-size: 0.9em;
    color: var(--text-color-secondary);
}

/* About & FAQs Section */
.about-section, .faqs-section {
    max-width: 800px;
    margin: 0 auto;
}

.about-section p {
    color: var(--text-color-secondary);
    font-size: 1.1em;
    text-align: center;
}

/* FAQ ACCORDION STYLES */
.faqs-section {
    padding: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--bg-secondary);
    margin-bottom: 20px;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color-dark);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust this value as needed for the content */
}


/* Contact Section */
#contact {
    background-color: var(--bg-secondary);
}
.contact-details {
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color-secondary);
}
.contact-details p {
    margin-bottom: 12px;
    font-size: 1.1em;
}
.contact-details i {
    color: var(--accent-cyan);
    margin-right: 10px;
}
.contact-details a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-details a:hover {
    text-decoration: underline;
    color: #fff;
}
.contact-form {
    max-width: 600px;
    margin: 20px auto 0 auto;
    padding: 40px;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-elements);
    border: 1px solid var(--border-color);
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color-main);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-color-main);
    transition: all 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}
.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Footer */
footer {
    background-color: var(--bg-surface-dark);
    color: var(--text-color-muted);
    padding: 60px 0 20px 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-section {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}
.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}
.footer-section p {
    font-size: 0.9em;
    line-height: 1.6;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    /* This Flexbox rule centers the list items as a group */
    display: flex;
    flex-direction: column;
    align-items: center; 
}
.footer-section ul li {
    margin-bottom: 10px;
}
.footer-section ul li a {
    text-decoration: none;
    color: var(--text-color-muted);
    font-size: 0.9em;
    transition: color 0.2s ease;
}
.footer-section ul li a:hover {
    color: #fff;
}
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center; /* This is already correct and centers the icons */
}
.social-icons a {
    color: var(--text-color-muted);
    transition: color 0.2s ease;
}
.social-icons a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8em;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    header nav {
        flex-direction: row; /* Keep logo and menu on the same row */
        justify-content: space-between; /* Space out the logo and menu toggle */
        padding: 10px 20px;
    }
    .nav-menu {
        
       display: none; /* Hide nav links by default */
        
       flex-direction: column;
        
       width: 100%;
        
       position: absolute;
        
       top: 100%;
        
       left: 0;
        
       background-color: var(--bg-secondary); 
        
       border-top: 1px solid var(--border-color); /* This border already matches the containers */
    
       box-shadow: var(--glow-purple); /* This adds the glowing effect */
    
       padding: 20px 0;

       z-index: 999;

    }
    .nav-menu.active {
        display: flex; /* Show nav links when active */
    }

    .nav-menu li {
        margin: 10px 30px;
        text-align: left;
        list-style: none;
    }
    .nav-menu li a {
    color: #1C1C24;
    text-decoration: none; /* This removes the underline */
    font-weight: 700; /* This makes the text bold/thick */
    }
    .menu-toggle {
        display: block; /* Hamburger button is visible on mobile */
    }

    .dashboard-btn-mobile .btn-dashboard {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    }
    .dashboard-btn-mobile {
        display: list-item; /* Show mobile dashboard button */
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .step {
        max-width: 400px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .pricing-page-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pricing-table-container {
        min-width: 700px;
    }
    .pricing-header .subtitle::after {
        content: "";
    }
}