/* ===================================
   Code Wave Agency - Professional Styles
   =================================== */

/* Import Fonts - Inter for English, Cairo for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for consistent theming */
:root {
    --primary-color: #0f4c81;
    --primary-dark: #0a3a63;
    --primary-light: #2d6ba0;
    --secondary-color: #42b72a;
    --accent-color: #edf5fb;
    --bg-dark: #f7fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f8fb;
    --text-primary: #17324d;
    --text-secondary: #5e7287;
    --text-muted: #8a9aae;
    --border-color: #dbe4ec;
    --success-color: #42b72a;
    --gradient-primary: linear-gradient(135deg, #0f4c81 0%, #1b5f95 100%);
    --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    --shadow-sm: 0 1px 2px rgba(15, 31, 54, 0.05);
    --shadow-md: 0 8px 20px rgba(15, 31, 54, 0.06);
    --shadow-lg: 0 16px 34px rgba(15, 31, 54, 0.08);
    --shadow-xl: 0 24px 48px rgba(15, 31, 54, 0.1);
    --shadow-glow: 0 16px 32px rgba(15, 76, 129, 0.08);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(15, 76, 129, 0.05), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu */
.mobile-menu {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open {
    max-height: 400px;
    padding: 1rem 0;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(15, 76, 129, 0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 183, 42, 0.08) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-logo {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 22px rgba(15, 76, 129, 0.18);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 76, 129, 0.22);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(66, 183, 42, 0.1);
    border: 1px solid rgba(66, 183, 42, 0.2);
    border-radius: 50px;
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Cards
   =================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 76, 129, 0.16);
    box-shadow: var(--shadow-glow);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(15, 76, 129, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   Services Section
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 76, 129, 0.16);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(15, 76, 129, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(15, 76, 129, 0.12);
    transform: scale(1.04);
}

/* ===================================
   Statistics Section
   =================================== */
.stats-section {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 6rem;
    color: rgba(59, 130, 246, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: rgba(15, 76, 129, 0.16);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: rgba(15, 76, 129, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--gradient-primary);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   Contact Section
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-card,
.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-heading {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.contact-lead {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.0625rem;
    line-height: 1.9;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(219, 228, 236, 0.8);
}

.contact-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-copy {
    min-width: 0;
}

.contact-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-link,
.contact-text {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(219, 228, 236, 0.8);
}

.contact-actions-label {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-action-btn {
    min-width: 170px;
}

.contact-action-btn--whatsapp {
    background: #25D366;
    color: white;
}

.contact-action-btn--whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.22);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #fbfdff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #fbfdff;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(-5px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
}

/* ===================================
   WhatsApp Floating Button
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    background: #20BA5A;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: ping 2s infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Modal
   =================================== */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 36, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
}

#modal-video {
    display: none;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    background: #000;
}

.modal--video #modal-image {
    display: none;
}

.modal--video #modal-video {
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-light);
}

/* ===================================
   RTL Specific
   =================================== */
html[dir="rtl"] .space-x-3 > :not([hidden]) ~ :not([hidden]),
html[dir="rtl"] .space-x-4 > :not([hidden]) ~ :not([hidden]),
html[dir="rtl"] .space-x-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

html[dir="rtl"] .footer-links a:hover {
    transform: translateX(5px);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-card,
    .contact-form {
        padding: 2rem;
    }

    .contact-actions-row {
        flex-direction: column;
    }

    .contact-action-btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Page Sections (Legacy Support)
   =================================== */
.page-section {
    min-height: calc(100vh - 100px);
    padding-bottom: 50px;
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background-color: #f2f6fa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.2em;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

.placeholder-image img {
    cursor: pointer;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-avatar {
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.team-member-mohamed-ahmed {
    object-fit: cover;
    object-position: center top;
}

.team-member-mohamed-khaled {
    object-fit: cover;
    object-position: center 18%;
}

.team-card {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100%;
}

.team-card__avatar {
    width: 10rem;
    height: 10rem;
    margin: 0 auto 1.5rem;
    border-radius: 999px;
    overflow: hidden;
    border: 4px solid rgba(15, 76, 129, 0.14);
    box-shadow: 0 14px 30px rgba(15, 31, 54, 0.08);
    background: linear-gradient(135deg, #f8fbfe 0%, #edf5fb 100%);
}

.team-card__avatar--blue { border-color: rgba(15, 76, 129, 0.22); }
.team-card__avatar--cyan { border-color: rgba(14, 116, 144, 0.22); }
.team-card__avatar--purple { border-color: rgba(99, 102, 241, 0.20); }
.team-card__avatar--pink { border-color: rgba(236, 72, 153, 0.20); }
.team-card__avatar--green { border-color: rgba(34, 197, 94, 0.20); }

.team-card__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.team-card__name {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.team-card__role {
    margin-bottom: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
}

.team-card__bio {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.4rem;
}

.team-card__links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: auto;
}

.team-link {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(15, 76, 129, 0.12);
    background: rgba(15, 76, 129, 0.07);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.team-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.team-link--alt {
    background: rgba(99, 102, 241, 0.08);
    color: #5b5bd6;
    border-color: rgba(99, 102, 241, 0.14);
}

.team-link--alt:hover {
    background: #5b5bd6;
    color: #fff;
}

.team-link--disabled {
    background: rgba(138, 154, 174, 0.12);
    color: var(--text-muted);
    border-color: rgba(138, 154, 174, 0.14);
    cursor: default;
    pointer-events: none;
}

.card-hover-effect {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ===================================
   Customer Logos Carousel
   =================================== */
.customer-logos-track {
    display: flex;
    animation: scroll-logos 15s linear infinite;
    width: max-content;
}

.customer-logos-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

.customer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.customer-logo:hover {
    transform: scale(1.1);
}

.customer-logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.customer-logo:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Make linked logos more obviously clickable */
a.customer-logo {
    cursor: pointer;
    position: relative;
}

a.customer-logo::after {
    content: '🔗';
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

a.customer-logo:hover::after {
    opacity: 1;
}

/* RTL support for animation */
html[dir="rtl"] .customer-logos-track {
    animation-direction: reverse;
}

@media (max-width: 768px) {
    .customer-logo img {
        height: 60px;
        max-width: 150px;
    }
    
    .customer-logos-track {
        gap: 2rem !important;
    }
}

/* ===================================
   Real Estate Product Page
   =================================== */
.product-page-hero {
    padding-top: 8rem;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.05) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.hero-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.hero-proof {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: var(--shadow-xl);
    background: #fff;
}

.hero-proof img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.kpi-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.kpi-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.kpi-card span {
    color: var(--text-secondary);
    font-weight: 600;
}

.list-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.benefits-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--secondary-color);
    flex-shrink: 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.proof-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proof-card .placeholder-image {
    height: 320px;
    border-radius: 18px;
    margin-bottom: 0;
}

.proof-card .placeholder-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    background: #0b1220;
}

.proof-card h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.proof-card p {
    margin: 0;
}

.proof-card--wide {
    grid-column: span 2;
}

.proof-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.cta-panel {
    background: linear-gradient(135deg, #0f4c81 0%, #0a3a63 100%);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.cta-panel .section-title,
.cta-panel .hero-description,
.cta-panel p {
    color: #fff;
}

@media (max-width: 1024px) {
    .kpi-strip,
    .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .kpi-strip,
    .proof-grid {
        grid-template-columns: 1fr;
    }

    .proof-card--wide {
        grid-column: auto;
    }

    .hero-panel,
    .cta-panel,
    .list-panel {
        padding: 1.5rem;
    }

    .proof-card .placeholder-image {
        height: 260px;
    }
}

/* ===================================
   ERP Landing Page
   =================================== */
.erp-landing-page {
    padding-top: 6rem;
    background:
        radial-gradient(circle at top left, rgba(66, 183, 42, 0.08), transparent 22%),
        radial-gradient(circle at top right, rgba(15, 76, 129, 0.1), transparent 28%),
        linear-gradient(180deg, #eef5fb 0%, #ffffff 32%, #f8fbfe 100%);
}

.erp-landing-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 2rem;
}

.erp-landing-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: center;
}

.erp-landing-copy {
    position: relative;
    z-index: 2;
}

.erp-landing-title {
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    line-height: 1.18;
    font-weight: 900;
    color: var(--text-primary);
    margin: 1rem 0 1.5rem;
    max-width: 14ch;
}

.erp-landing-description {
    font-size: 1.2rem;
    line-height: 1.95;
    color: var(--text-secondary);
    max-width: 62ch;
}

.erp-landing-note {
    margin-top: 1.5rem;
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.erp-landing-visual {
    position: relative;
    min-height: 540px;
}

.erp-dashboard-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(15, 76, 129, 0.92), rgba(10, 58, 99, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 32px 60px rgba(10, 58, 99, 0.22);
    padding: 1rem;
}

.erp-dashboard-card img {
    width: 100%;
    display: block;
    border-radius: 22px;
    background: #fff;
}

.erp-dashboard-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 1;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    backdrop-filter: blur(14px);
    font-size: 0.85rem;
    font-weight: 800;
}

.erp-mini-stat {
    position: absolute;
    width: min(260px, 72%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 76, 129, 0.14);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.1rem;
}

.erp-mini-stat strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.erp-mini-stat span {
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.6;
}

.erp-mini-stat--top {
    top: 3.5rem;
    right: -1.5rem;
}

.erp-mini-stat--bottom {
    bottom: 2rem;
    left: -1rem;
}

.erp-section-soft {
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.03) 0%, rgba(255,255,255,0.88) 100%);
}

.erp-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.erp-problem-card,
.erp-why-card,
.erp-trust-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 26px;
    padding: 1.7rem;
    box-shadow: var(--shadow-md);
}

.erp-problem-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.erp-problem-card p,
.erp-demo-copy {
    color: var(--text-secondary);
    line-height: 1.8;
}

.erp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.14), rgba(66, 183, 42, 0.12));
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 900;
}

.erp-highlight-banner {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(66, 183, 42, 0.12));
    color: var(--primary-dark);
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
}

.erp-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.erp-feature-stack {
    display: grid;
    gap: 1rem;
}

.erp-feature-tile {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.erp-feature-tile strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.erp-feature-tile span {
    color: var(--text-secondary);
    line-height: 1.7;
}

.erp-section-results {
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(15,76,129,0.03) 100%);
}

.erp-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.erp-result-item {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem 1.2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.erp-result-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.erp-result-item span {
    color: var(--text-secondary);
    line-height: 1.7;
}

.erp-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.erp-tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary-dark);
    font-weight: 700;
}

.erp-section-demo {
    background: linear-gradient(180deg, rgba(15,76,129,0.05) 0%, rgba(255,255,255,0.85) 100%);
}

.erp-demo-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.erp-demo-list {
    display: grid;
    gap: 1rem;
}

.erp-demo-list div {
    display: grid;
    gap: 0.25rem;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(15,76,129,0.03) 0%, #fff 100%);
}

.erp-demo-list strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.erp-demo-list span {
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .erp-landing-shell,
    .erp-two-column,
    .erp-demo-shell {
        grid-template-columns: 1fr;
    }

    .erp-problem-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .erp-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .erp-landing-visual {
        min-height: auto;
        padding-bottom: 8rem;
    }
}

@media (max-width: 768px) {
    .erp-landing-page {
        padding-top: 5rem;
    }

    .erp-landing-title {
        max-width: none;
    }

    .erp-problem-grid,
    .erp-results-grid {
        grid-template-columns: 1fr;
    }

    .erp-landing-visual {
        padding-bottom: 0;
    }

    .erp-mini-stat {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .erp-demo-shell,
    .erp-problem-card,
    .erp-why-card,
    .erp-trust-card {
        padding: 1.5rem;
    }
}
