/* ============================================
   ScienceMed - Home Page Styles
   Direction: RTL | Colors: Blue & White
   Font: Cairo (Google Fonts)
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    /* Primary Blues */
    --primary-900: #023e8a;
    --primary-800: #0353a4;
    --primary-700: #0466c8;
    --primary-600: #0077b6;
    --primary-500: #0096c7;
    --primary-400: #00b4d8;
    --primary-300: #48cae4;
    --primary-200: #90e0ef;
    --primary-100: #caf0f8;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Background & Text */
    --bg-primary: #bfd4e6;
    --bg-main: #d9e8f5;
    --bg-card: #d9e8f5;
    --bg-footer: #96b5d2;
    --bg-secondary: #d9e8f5;
    --bg-header: var(--primary-600);
    --bg-navbar: var(--primary-800);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-light: var(--white);

    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

/* ---------- Dark Mode Variables ---------- */
[data-theme="dark"] {
    --bg-primary: #0a1628;
    --bg-main: #0f1f3a;
    --bg-card: #112240;
    --bg-footer: #0c182c;
    --bg-secondary: #0f1f3a;
    --bg-header: #0d1b33;
    --bg-navbar: #081425;
    
    
    
    
    
    
    --text-primary: #e0e6ed;
    --text-secondary: #a0aec0;
    --text-light: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Header ---------- */
.header {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 50%, var(--primary-500) 100%);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 100;
}

[data-theme="dark"] .header {
    background: linear-gradient(135deg, #0d1b33 0%, #122240 50%, #162a4d 100%);
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.header__brand:hover {
    opacity: 0.9;
}

.header__logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header__brand:hover .header__logo-wrapper {
    transform: scale(1.05);
}

.header__logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
    transition: var(--transition);
}

.header__info {
    display: flex;
    flex-direction: column;
}

.header__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.header__subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- Toggle Buttons ---------- */
.toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.toggle-btn i {
    font-size: 1rem;
}

.toggle-btn--active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-700);
}

/* ---------- Navigation Bar ---------- */
.navbar {
    background: var(--bg-navbar);
    padding: 0 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 99;
}

[data-theme="dark"] .navbar {
    background: #081425;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar__list {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar__item {}

.navbar__link {
    display: block;
    padding: 14px 28px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary-300);
    transition: var(--transition);
    border-radius: 3px 3px 0 0;
}

.navbar__link:hover,
.navbar__link--active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.navbar__link:hover::after,
.navbar__link--active::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.navbar__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 14px 0;
}

/* ---------- Hero Slider ---------- */
.slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 130px);
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    background: var(--primary-900);
}

.slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider__slide--active {
    opacity: 1;
}

.slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Dark Mode Adjustments for Slider Images */
[data-theme="dark"] .slider__image {
    filter: brightness(0.85) contrast(1.1);
}

[data-theme="dark"] .slider__slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.35); /* Subtle dark navy overlay */
    cursor: pointer;
}

.slider__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 62, 138, 0.3) 0%, rgba(2, 62, 138, 0.5) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.slider__number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.slider__text {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 10px;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
}

.slider__text-en {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* Slider Dots */
.slider__dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider__dot--active {
    background: var(--white);
    transform: scale(1.2);
}

/* ---------- Main Content Section ---------- */
.main-content {
    padding: 60px 40px;
    background: var(--bg-primary);
    transition: var(--transition);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-700);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

[data-theme="dark"] .section-title {
    color: var(--primary-300);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%; /* Matches the exact width of the word */
    height: 3px;
    background: linear-gradient(to left, var(--primary-600), var(--primary-300));
    border-radius: 3px;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 800px;
}

/* Welcome Section */
.welcome {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.welcome__title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

[data-theme="dark"] .welcome__title {
    background: linear-gradient(135deg, var(--primary-300), var(--primary-200));
    -webkit-background-clip: text;
    background-clip: text;
}

.welcome__text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
    line-height: 2;
}

/* Features Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 40px;
    background: var(--bg-secondary);
}

.feature-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 119, 182, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-400);
}

.feature-card__icon {
    font-size: 2.8rem;
    color: var(--primary-600);
    margin-bottom: 18px;
}

[data-theme="dark"] .feature-card__icon {
    color: var(--primary-300);
}

.feature-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #060e1a 0%, #0a1628 100%);
}

.footer__text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__text a {
    color: var(--primary-300);
    font-weight: 600;
}

.footer__text a:hover {
    color: var(--white);
}

/* Social specific colors *//* Social tooltip *//* ---------- Animations ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slideIn {
    animation: slideInRight 0.8s ease forwards;
}

/* ---------- Responsive Design ---------- */

/* Tablet */
@media (max-width: 992px) {
    .header {
        padding: 12px 24px;
    }

    .header__title {
        font-size: 1.25rem;
    }

    .navbar {
        padding: 0 24px;
    }

    .navbar__link {
        padding: 12px 18px;
        font-size: 0.88rem;
    }

    .slider__number {
        font-size: 4rem;
    }

    .slider__text {
        font-size: 1.2rem;
    }

    .welcome__title {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .header__logo { height: 48px; width: auto; }

    .header__title {
        font-size: 1.1rem;
    }

    .header__subtitle {
        font-size: 0.65rem;
    }

    .header__controls {
        gap: 8px;
    }

    .toggle-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    /* Mobile Nav */
    .navbar {
        padding: 0 16px;
    }

    .navbar__toggle {
        display: block;
    }

    .navbar__list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .navbar__list--open {
        display: flex;
    }

    .navbar__link {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar__link::after {
        display: none;
    }

    /* Slider */
    .slider__number {
        font-size: 3rem;
    }

    .slider__text {
        font-size: 1rem;
    }

    .slider__text-en {
        font-size: 0.85rem;
    }

    /* Welcome */
    .welcome {
        padding: 50px 16px;
    }

    .welcome__title {
        font-size: 1.6rem;
    }

    .welcome__text {
        font-size: 1rem;
    }

    /* Features */
    .features {
        grid-template-columns: 1fr;
        padding: 30px 16px;
        gap: 20px;
    }

    /* Social Float *//* Footer */
    .footer {
        padding: 30px 16px;
    }

    .main-content {
        padding: 40px 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header__brand {
        gap: 10px;
    }

    .header__logo { height: 40px; width: auto; }

    .header__title {
        font-size: 0.95rem;
    }

    .header__controls {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .slider__number {
        font-size: 2.5rem;
    }

    .slider__text {
        font-size: 0.9rem;
    }

    .welcome__title {
        font-size: 1.4rem;
    }
}

/* ---------- LTR Mode (English) ---------- */
[dir="ltr"] {
    text-align: left;
}

[dir="ltr"] .navbar__link::after {
    right: auto;
    left: 0;
}

[dir="ltr"] .section-title::after {
    right: auto;
    left: 0;
}

/* ========== Products Carousel ========== */
.products-carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    align-items: center;
}

.carousel-btn {
    background: var(--primary-600);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s, transform 0.2s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-700);
    transform: scale(1.1);
}

.carousel-track-container {
    width: 100%;
    margin: 0 15px;
    overflow: hidden;
}

.carousel-card {
    min-width: 250px;
    max-width: 280px;
    flex: 0 0 auto;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .carousel-card {
    border: 1px solid rgba(255,255,255,0.05);
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carousel-card__img-container {
    height: 200px;
    background-color: var(--white);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--bg-main);
}

.carousel-card__content {
    padding: 15px;
    text-align: center;
}

.carousel-card__title {
    color: var(--primary-600);
    font-size: 1.1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-card__category {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .carousel-card {
        min-width: 220px;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up-active {
    opacity: 1;
    transform: translateY(0);
}
/* ========== Navbar Search ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar__search-input {
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--primary-300);
    outline: none;
    background: var(--bg-card);
    color: var(--text-color);
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
}

.navbar__search-input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 5px rgba(0, 119, 182, 0.3);
}

.navbar__search-icon {
    position: absolute;
    right: 12px;
    color: var(--primary-500);
    cursor: pointer;
}

[dir="rtl"] .navbar__search-input {
    padding: 8px 15px 8px 35px;
}

[dir="rtl"] .navbar__search-icon {
    right: auto;
    left: 12px;
}

.navbar__search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .navbar__search-results {
    border: 1px solid rgba(255,255,255,0.05);
}

.navbar__search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="dark"] .search-result-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-main);
}

.search-result-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

.search-result-name {
    font-size: 0.9rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .navbar__search-input {
        width: 150px;
    }
}

/* ---------- Social Media Float Directions ---------- *//* Human Health Button */
.human-health-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800)) !important;
}
/* ========== Footer Modern Styles ========== */
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.footer-link:hover {
    color: var(--primary-500);
    transform: translateX(-5px); /* Slide left in RTL */
}
html[dir="ltr"] .footer-link:hover {
    transform: translateX(5px); /* Slide right in LTR */
}

.footer-social:hover {
    background: var(--primary-500) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .footer__bottom {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer-email:hover { color: var(--primary-500) !important; text-decoration: underline !important; }

.footer-human-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800)) !important;
}


/* ========== Contact Page Advanced Layout ========== */
.main-content { flex: 1; padding: 60px 85px; }
.contact-hero { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.5rem; color: var(--primary-800); margin-bottom: 20px; }
[data-theme='dark'] .section-title { color: var(--primary-300); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
}
@media (max-width: 850px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card-title { font-size: 1.8rem; color: var(--primary-700); margin-bottom: 10px; }
[data-theme='dark'] .contact-card-title { color: var(--primary-300); }
.contact-card-desc { color: var(--text-secondary); margin-bottom: 30px; font-size: 1.05rem; }

/* Chat Buttons */
.direct-chat { background: var(--bg-card); padding: 40px; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); }
[data-theme='dark'] .direct-chat { border: 1px solid rgba(255,255,255,0.05); }

.chat-btn { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border-radius: 12px; text-decoration: none; color: white; margin-bottom: 16px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.chat-btn:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.chat-btn i { font-size: 2.2rem; }
.chat-btn-text { display: flex; flex-direction: column; }
.chat-btn-title { font-size: 1.2rem; font-weight: 700; }
.chat-btn-sub { font-size: 0.9rem; opacity: 0.9; }

.chat-btn--whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.chat-btn--messenger { background: linear-gradient(135deg, #00B2FF, #006AFF); }
.chat-btn--telegram { background: linear-gradient(135deg, #0088cc, #005580); }

/* Form */
.contact-form-container { background: var(--bg-card); padding: 40px; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden; z-index: 1; }
[data-theme='dark'] .contact-form-container { border: 1px solid rgba(255,255,255,0.05); }

.contact-form-container::before { content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%); z-index: -1; border-radius: 50%; }
.contact-form-container::after { content: '\f471'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; bottom: -20px; left: -20px; font-size: 8rem; color: rgba(0, 180, 216, 0.03); z-index: -1; transform: rotate(-15deg); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-primary); font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.1); background: var(--bg-primary); color: var(--text-primary); font-family: inherit; transition: border-color 0.3s, box-shadow 0.3s; }
[data-theme='dark'] .form-group input, [data-theme='dark'] .form-group textarea { border: 1px solid rgba(255,255,255,0.1); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15); }
/* RTL/LTR Form Alignment Fix */
html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea {
    text-align: right;
    direction: rtl;
}
html[dir="ltr"] .form-group input,
html[dir="ltr"] .form-group textarea {
    text-align: left;
    direction: ltr;
}

.submit-btn { width: 100%; padding: 16px; background: var(--primary-600); color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.submit-btn:hover { background: var(--primary-700); }

/* Marketing Section */
.marketing-section { max-width: 1000px; margin: 0 auto 60px; text-align: center; padding-bottom: 60px; border-bottom: 2px dashed rgba(0, 119, 182, 0.2); }
[data-theme='dark'] .marketing-section { border-bottom: 2px dashed rgba(255, 255, 255, 0.1); }
.marketing-title { font-size: 2.2rem; color: var(--primary-700); margin-bottom: 10px; }
[data-theme='dark'] .marketing-title { color: var(--primary-300); }
.marketing-desc { color: var(--text-secondary); margin-bottom: 40px; font-size: 1.1rem; }
.marketing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 768px) { .marketing-grid { grid-template-columns: 1fr; } }
.marketing-card { background: var(--bg-card); padding: 40px 20px; border-radius: 16px; text-decoration: none; color: var(--text-primary); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; z-index: 1; border-top: 4px solid transparent; }
[data-theme='dark'] .marketing-card { border: 1px solid rgba(255,255,255,0.05); }
.marketing-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0; background: linear-gradient(to top, rgba(0,180,216,0.05), transparent); z-index: -1; transition: height 0.3s; }
.marketing-card:hover::before { height: 100%; }
.marketing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.marketing-card i { font-size: 3.5rem; margin-bottom: 20px; transition: color 0.3s; }
.marketing-card h4 { font-size: 1.4rem; margin-bottom: 10px; }
.marketing-card span { font-size: 0.95rem; color: var(--text-secondary); }
.marketing-card--facebook:hover { border-top-color: #1877F2; }
.marketing-card--facebook:hover i { color: #1877F2; }
.marketing-card--youtube:hover { border-top-color: #FF0000; }
.marketing-card--youtube:hover i { color: #FF0000; }
.marketing-card--tiktok:hover { border-top-color: #ff69b4; }
.marketing-card--tiktok:hover i { color: #ff69b4; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-icon { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
.contact-grid > div { animation: fadeInUp 0.8s ease-out forwards; }
.contact-grid > div:nth-child(2) { animation-delay: 0.2s; }
.marketing-card { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.marketing-card:nth-child(1) { animation-delay: 0.4s; }
.marketing-card:nth-child(2) { animation-delay: 0.6s; }
.marketing-card:nth-child(3) { animation-delay: 0.8s; }
.chat-btn:hover i { animation: pulse-icon 1s infinite; }

/* Telegram Badge Fix */
.contact-tg-btn {
    border: 2px solid #0088cc;
    overflow: visible;
    position: relative;
}
.fastest-reply-badge {
    position: absolute;
    top: -2px;
    background: #ffcc00;
    color: #333;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}
/* LTR defaults to left */
[dir="ltr"] .fastest-reply-badge {
    left: -2px;
    right: auto;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
}
/* RTL defaults to right */
[dir="rtl"] .fastest-reply-badge {
    right: -2px;
    left: auto;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Swap Badge Position Request */
[dir="rtl"] .fastest-reply-badge {
    left: -2px !important;
    right: auto !important;
    border-top-left-radius: 12px !important;
    border-bottom-right-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
[dir="ltr"] .fastest-reply-badge {
    right: -2px !important;
    left: auto !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 8px !important;
    border-top-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}


/* Scroll Prompt Arrow */
.scroll-prompt {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
    animation: bounce-float 2s infinite ease-in-out;
    cursor: pointer;
}
.scroll-prompt.hidden {
    opacity: 0;
    visibility: hidden;
}
.scroll-prompt-text {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-800);
    background: rgba(162, 198, 227, 0.95);
    padding: 6px 18px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.15);
}
.curved-arrow {
    width: 60px;
    height: 60px;
    color: var(--primary-900);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}
[data-theme='dark'] .scroll-prompt-text {
    background: rgba(13, 27, 51, 0.85);
    color: var(--primary-300);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
[data-theme='dark'] .curved-arrow {
    color: var(--primary-300);
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}
@keyframes bounce-float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 12px); }
}
    50% { transform: translate(-50%, 12px); }
}
    50% { transform: translate(-50%, 15px); }
}
