/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 2px;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.secondary:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-3px);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #3498db;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #7f8c8d;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    background-color: white;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
}

/* How It Works Section */
.how-it-works {
    background-color: #f8f9fa;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.step {
    text-align: center;
    flex: 1;
    padding: 0 1rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50px;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.step p {
    color: #7f8c8d;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
}

.download .section-title {
    color: white;
}

.download .section-title::after {
    background: white;
}

.download-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.download-card p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.download-card .btn {
    background: white;
    color: #3498db;
}

.download-card .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Testimonials Section */
.testimonials {
    background-color: white;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.testimonial-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #2c3e50;
}

.testimonial-text p::before,
.testimonial-text p::after {
    content: '"';
    color: #3498db;
    font-size: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.testimonial-author p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* About Section */
.about {
    background-color: #f8f9fa;
}

.about-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

.about-content {
    flex: 1;
    padding: 0 2rem;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about-content p {
    margin-bottom: 1rem;
    color: #7f8c8d;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.contact-form form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.info-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center; /* تعديل لجعل الأيقونات على اليمين */
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: #2980b9;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: #3498db;
    transform: translateX(5px);
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
}

.footer-newsletter button {
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 0 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .about-container {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: white;
        height: calc(100vh - 70px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger {
        display: block;
    }

    .features-container,
    .testimonials-container,
    .download-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h3::after,
    .footer-newsletter h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-newsletter form {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Animation for burger menu */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Placeholder styles */
#logo-placeholder,
#hero-placeholder,
#user1-placeholder,
#user2-placeholder,
#company-placeholder,
#footer-logo-placeholder {
    background-color: #e0e0e000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.8rem;
    object-fit: contain;
}

#logo-placeholder {
    width: 150px;
    height: auto;
}

.footer-logo {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;     /* توسيط أفقي */
  justify-content: center; /* توسيط عمودي */
  text-align: center;
}

#footer-logo-placeholder {
  max-width: 100%;
  max-height: 100%;
}


#hero-placeholder {
    width: 100%;
    height: auto;
}

#user1-placeholder,
#user2-placeholder {
    width: 60px;
    height: 60px;
}

#company-placeholder {
    width: 300px;
    height: auto;
}

/* GlowriteX Specific Styles */

/* Floating Indicator */
.floating-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 3s ease-in-out infinite;
}

.indicator-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.indicator-circle.arabic {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    opacity: 1;
    z-index: 2;
}

.indicator-circle.english {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    opacity: 0;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, -60%);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

/* Demo Section */
.demo {
    background-color: #f8f9fa;
    overflow: hidden;
}

.demo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.demo-video {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-animation {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.demo-screen {
    width: 100%;
    height: 100%;
    padding: 20px;
    position: relative;
}

.demo-cursor {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    animation: moveCursor 8s linear infinite;
    z-index: 1;
}

.demo-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
    position: absolute;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.demo-indicator.arabic {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    animation: followCursorArabic 8s linear infinite;
}

.demo-indicator.english {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    opacity: 0;
    animation: followCursorEnglish 8s linear infinite;
}

.demo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    width: 80%;
}

@keyframes moveCursor {
    0%, 100% {
        top: 50%;
        left: 30%;
    }
    25% {
        top: 30%;
        left: 60%;
    }
    50% {
        top: 70%;
        left: 70%;
    }
    75% {
        top: 60%;
        left: 40%;
    }
}

@keyframes followCursorArabic {
    0%, 45%, 100% {
        top: 50%;
        left: 30%;
        transform: translate(10px, -10px);
        opacity: 1;
    }
    25% {
        top: 30%;
        left: 60%;
        transform: translate(10px, -10px);
        opacity: 1;
    }
    50%, 95% {
        top: 70%;
        left: 70%;
        transform: translate(10px, -10px);
        opacity: 0;
    }
    75% {
        top: 60%;
        left: 40%;
        transform: translate(10px, -10px);
        opacity: 0;
    }
}

@keyframes followCursorEnglish {
    0%, 45%, 100% {
        top: 50%;
        left: 30%;
        transform: translate(10px, -10px);
        opacity: 0;
    }
    25% {
        top: 30%;
        left: 60%;
        transform: translate(10px, -10px);
        opacity: 0;
    }
    50%, 95% {
        top: 70%;
        left: 70%;
        transform: translate(10px, -10px);
        opacity: 1;
    }
    75% {
        top: 60%;
        left: 40%;
        transform: translate(10px, -10px);
        opacity: 1;
    }
}

.demo-options {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.option-group {
    margin-bottom: 2rem;
}

.option-group h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.option-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.option-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.option-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.option-btn:hover:not(.active) {
    border-color: #3498db;
    color: #3498db;
}

/* Support Card */
.support-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: steam 3s ease-in-out infinite;
}

@keyframes steam {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.coffee-btn {
    background: #FFDD00;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3);
    transition: all 0.3s ease;
}

.coffee-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 221, 0, 0.4);
    background: #FFE44D;
}

.coffee-btn i {
    animation: steam 2s ease-in-out infinite;
}