/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* --- Global Styles --- */
:root {
    --primary-color: #5ddcf2;
    --secondary-color: #4AB8D1;
    --dark-color: #2c3e50;
    --light-color: #f4f7f9;
    --white-color: #ffffff;
    --font-family: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--white-color);
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0rem 2rem;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 4rem; position: relative; }
h3 { font-size: 1.5rem; }

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

section {
    padding: 6rem 0;
}

.section-bg {
     background-color: var(--light-color);
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -3rem auto 3rem;
    font-size: 1.1rem;
    color: #666;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
}


/* --- Header & Navbar --- */
#main-header {
    background: var(--white-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

#navbar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    z-index: 1001; 
}

#navbar ul {
    display: flex;
    align-items: center;
}

#navbar ul li a {
    padding: 0.75rem;
    margin: 0 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

#navbar ul li a:hover, #navbar ul li a.active {
    color: var(--primary-color);
}
#navbar ul li:last-child a:hover {
    color: white !important;
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--dark-color); cursor: pointer; }
.close-btn { display: none; }

/* --- Hero Section --- */
#hero {
    background: linear-gradient(to right, rgba(93, 220, 242, 0.1), rgba(93, 220, 242, 0.05)), url('https://www.toptal.com/designers/subtlepatterns/uploads/double-bubble-outline.png');
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

#hero .hero-content { max-width: 800px; margin: auto; }
#hero .hero-content p { font-size: 1.2rem; margin-bottom: 2rem; color: #555; }
#hero .cta-buttons .btn { margin: 0 0.5rem; font-weight:900; }

/* --- Features Section --- */
#features .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; text-align: center; }
#features .feature-card { background: #fdfdfd; padding: 2.5rem 1.5rem; border-radius: 10px; border-bottom: 5px solid var(--primary-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
#features .feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
#features .feature-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }
#features .feature-card p { font-size: 0.95rem; color: #666; font-weight:900;}

/* --- Process Section (from original) --- */
#process .process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; text-align: center; }
#process .process-step { position: relative; }
#process .step-icon { width: 80px; height: 80px; background-color: var(--white-color); border: 3px solid var(--primary-color); color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2.5rem; font-weight: 700; margin: 0 auto 1.5rem; transition: all 0.3s ease; }
#process .process-step:hover .step-icon { background-color: var(--primary-color); color: var(--white-color); }
#process .process-step h3 { font-size: 1.2rem; }

/* --- Why Us Section --- */
#why-us .why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
#why-us .why-us-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
#why-us .why-us-list .item { display: flex; align-items: flex-start; margin-bottom: 2rem; }
#why-us .why-us-list .item-icon { font-size: 2rem; color: var(--primary-color); margin-left: 1.5rem; }
#why-us .why-us-list h3 { margin-bottom: 0.3rem; font-size: 1.2rem; }

/* --- Testimonials Section --- */
#testimonials .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background-color: var(--white-color); padding: 2rem; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 5px solid var(--primary-color); position: relative; }
.testimonial-card i.fa-quote-right { position: absolute; top: 20px; right: 20px; font-size: 3rem; color: var(--light-color); z-index: 1; }
.testimonial-card blockquote { margin-bottom: 1rem; font-style: italic; color: #555; position: relative; z-index: 2; }
.testimonial-card cite { font-weight: 700; color: var(--dark-color); font-style: normal; }

/* --- Pricing Section --- */
#pricing .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: center; }
#pricing .pricing-card { background: var(--white-color); border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.07); text-align: center; padding: 2.5rem 2rem; transition: all 0.3s ease; }
#pricing .pricing-card.popular { transform: scale(1.05); border: 2px solid var(--primary-color); }
.pricing-card .plan-name { font-size: 1.3rem; font-weight: 600; color: var(--secondary-color); }
.pricing-card .price { font-size: 3rem; font-weight: 700; margin: 1rem 0; color: var(--dark-color); }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: #777; }
.pricing-card ul { margin: 2rem 0; }
.pricing-card ul li { padding: 0.7rem 0; border-bottom: 1px solid #eee; }
.pricing-card ul li:last-child { border-bottom: none; }

/* --- Footer --- */
#main-footer { background: var(--dark-color); color: var(--white-color); text-align: center; padding: 4rem 0 2rem; }
#main-footer h2 { color: var(--white-color); margin-bottom: 2rem; }
#main-footer p { margin-bottom: 2rem; font-size: 1.1rem; }
#main-footer .copyright { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #444; font-size: 0.9rem; color: #aaa; }

/* --- Tabs Styles --- */
.tabs-nav { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; border-bottom: 1px solid #e0e0e0; flex-wrap: wrap; }
.tab-link { padding: 0.8rem 1.5rem; cursor: pointer; background: none; border: none; font-size: 1.1rem; font-weight: 600; font-family: var(--font-family); color: #777; transition: all 0.3s ease; border-bottom: 3px solid transparent; position: relative; top: 1px; }
.tab-link:hover { color: var(--dark-color); }
.tab-link.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-pane { display: none; animation: fadeIn 0.5s ease-in-out; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================================== */
/* --- START: STYLES FOR NEW SECTIONS --- */
/* =============================================================== */

/* --- Integrations Section --- */
.integrations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; text-align: center; }
.integration-card { background: var(--white-color); padding: 2rem; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.integration-card img { height: 40px; margin-bottom: 1rem; }
.integration-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.integration-card h3 { font-size: 1.2rem; }

/* --- Security Section --- */
#security { background: var(--dark-color); color: var(--white-color); }
#security h2 { color: var(--white-color); }
#security h2::after { background: var(--primary-color); }
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; text-align: center; }
.security-item i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.security-item p { color: #ccc; }

/* --- FAQ Section --- */
.faq-container { max-width: 800px; margin: auto; }
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 1.5rem 0; }
.faq-question h3 { margin-bottom: 0; font-size: 1.2rem; }
.faq-question i { transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-answer p { padding: 0 0 1.5rem 0; color: #666; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary-color); }
.faq-item.active .faq-answer { max-height: 200px; /* Adjust if needed for longer answers */ }


/* =============================================================== */
/* --- START: STYLES FOR PRICING TOGGLE --- */
/* =============================================================== */

.pricing-toggle {
    display: flex;
    justify-content: center;
    margin: -2rem auto 3rem;
    background-color: #eaf0f2;
    border-radius: 50px;
    padding: 5px;
    width: fit-content;
    border: 1px solid #d8e0e3;
}

.pricing-toggle .toggle-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--dark-color);
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-toggle .toggle-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 3px 10px rgba(93, 220, 242, 0.4);
}

.pricing-toggle .discount-badge {
    position: absolute;
    top: -10px;
    right: -15px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: bold;
}

/* Styles for Pricing Cards */
.price-container {
    margin: 1rem 0;
    color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: baseline;
    min-height: 52px; /* To prevent layout shift */
}

.price-container .price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 5px;
}

.price-container .price-value {
    font-size: 3rem;
    font-weight: 700;
}

.price-container .price-period {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
    margin-right: 5px;
}
.price-container .price-custom {
    font-size: 1.8rem;
    margin: 0;
}

/* --- Responsive --- */
@media(max-width: 992px) {
    #why-us .why-us-grid { grid-template-columns: 1fr; }
    #why-us .why-us-image { display: block; max-width: 500px; margin: 0 auto; }
}

@media(max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 4rem 0; }
    .container { padding: 0 1.5rem; }

    .menu-toggle { display: block; }
    #navbar ul { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background-color: var(--dark-color); flex-direction: column; align-items: flex-start; padding-top: 5rem; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: right 0.4s ease-in-out; z-index: 1000; overflow-y: auto; max-height: 100vh; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--primary-color) #1f2d3d }
    #navbar ul.open { right: 0; }
    #navbar ul::-webkit-scrollbar { width: 8px; }
    #navbar ul::-webkit-scrollbar-track { background: #1f2d3d; }
    #navbar ul::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
    #navbar ul li { width: 100%; }
    #navbar ul li a { display: block; padding: 1rem 2rem; color: var(--white-color); margin: 0; width: 100%; border-bottom: 1px solid #444; }
    #navbar ul li a:hover { background-color: var(--secondary-color); }
    #navbar ul li a.btn { margin: 1.5rem auto; text-align: center; width: 80%; border: 2px solid var(--primary-color); background: transparent; }
    #navbar ul li a.btn:hover { background-color: var(--primary-color); }
    .close-btn { display: block; position: absolute; top: 1rem; left: 1.5rem; font-size: 2.2rem; color: var(--white-color); background: none; border: none; cursor: pointer; }
    
    #hero { height: auto; padding: 6rem 0; }
    #hero .cta-buttons { display: flex; flex-direction: column; align-items: center; }
    #hero .cta-buttons .btn { margin: 0.6rem 0; width: 90%;}
   
    #pricing .pricing-grid { grid-template-columns: 1fr; }
    #pricing .pricing-card { margin-bottom: 2rem; }
    #pricing .pricing-card.popular { transform: scale(1); }
    
    .tab-link { padding: 0.8rem 0.8rem; font-size: 0.9rem; }
}