/* ========== الأنماط الأصلية (بدون تغيير) مع إضافة تأثير الزجاج للمؤسس ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

.header {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    text-decoration: none;
}

.logo i {
    color: #3498db;
    font-size: 2.2rem;
}

.logo-highlight {
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover, .nav-link.active {
    color: #3498db;
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle, .language-select {
    background: none;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 5px 10px;
    cursor: pointer;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
}

#heroSection {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform-style: preserve-3d;
    transform: perspective(800px) translateZ(0);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
    box-shadow: 0 8px 20px rgba(52,152,219,0.3);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

.btn-secondary {
    background: white;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform-style: preserve-3d;
    transform: perspective(500px) translateZ(0);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-control-btn {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: rgba(52,152,219,0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.services-section {
    padding: 5rem 0;
    background: white;
}

.stats-section {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.therapists-section {
    padding: 5rem 0;
    background: white;
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-logo {
    color: white;
    font-size: 2rem;
}

.footer-description {
    margin: 1rem 0;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.chat-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    cursor: pointer;
    z-index: 999;
    font-size: 1.2rem;
    transition: 0.3s;
}

.chat-button:hover {
    transform: scale(1.05);
    background: #20b859;
}

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== أنماط أساسية للموبايل ========== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.show {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-content {
        padding: 1.5rem;
        backdrop-filter: blur(6px);
    }
    .video-control-btn {
        bottom: 120px;
    }
    .chat-button {
        left: 20px;
        right: auto;
        bottom: 20px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .scroll-top {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* أنماط نافذة الكوكيز */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.cookie-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    padding: 2rem;
    margin: 0 1rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    padding: 2rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cookie-option {
    margin-bottom: 1rem;
}

.small-text {
    font-size: 0.8rem;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* ========== شريط الترحيب ========== */
.test-mode-notice {
    position: sticky;
    top: 0;
    z-index: 1002;
    background: linear-gradient(135deg, #F9A825, #FFD54F);
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    flex-wrap: wrap;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.test-notice-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.test-notice-content i {
    font-size: 1.6rem;
    flex-shrink: 0;
    color: #2c3e50;
}

.moving-text {
    display: inline-block;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: #2c3e50;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
    transform: translateX(100%);
    background: rgba(0,0,0,0.08);
    padding: 2px 8px;
    border-radius: 20px;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.test-notice-close {
    background: rgba(0,0,0,0.15);
    border: none;
    color: #2c3e50;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.test-notice-close:hover {
    background: rgba(0,0,0,0.3);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .test-mode-notice { padding: 10px 15px; }
    .moving-text { font-size: 0.95rem; animation-duration: 15s; }
    .test-notice-content i { font-size: 1.2rem; }
    .test-notice-close { width: 28px; height: 28px; font-size: 1rem; }
}

/* ========== أنماط العرض الدوار ثلاثي الأبعاد لفريق الأطباء ========== */
.scene, .a3d { display: grid }

.scene {
    overflow: hidden;
    perspective: 35em;
    mask: linear-gradient(90deg, transparent, black 20% 80%, transparent);
    margin: 3rem 0;
}

.a3d {
    place-self: center;
    transform-style: preserve-3d;
    animation: ry 32s linear infinite;
}

@keyframes ry { to { rotate: y 1turn } }

.card {
    --w: 17.5em;
    --ba: 1turn / var(--n);
    grid-area: 1/1;
    width: var(--w);
    aspect-ratio: 7/10;
    object-fit: cover;
    border-radius: 1.5em;
    backface-visibility: hidden;
    transform: 
        rotatey(calc(var(--i) * var(--ba)))
        translatez(calc(-1 * (0.5 * var(--w) + 0.5em) / tan(0.5 * var(--ba))));
}

@media (prefers-reduced-motion: reduce) {
    .a3d { animation-duration: 128s }
}

/* ========== أنماط بطاقات الخدمات الجديدة (ثلاثية الأبعاد) ========== */
.cards-container {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card-wrap {
    margin: 10px;
    transform: perspective(800px);
    transform-style: preserve-3d;
    cursor: pointer;
    flex: 0 0 280px;
}

.service-card-wrap:hover .service-card-info { transform: translateY(0); }
.service-card-wrap:hover .service-card-info p { opacity: 1; }
.service-card-wrap:hover .service-card-info,
.service-card-wrap:hover .service-card-info p { transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.service-card-wrap:hover .service-card-info:after { transition: 5s cubic-bezier(0.23, 1, 0.32, 1); opacity: 1; transform: translateY(0); }
.service-card-wrap:hover .service-card-bg { transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 5s cubic-bezier(0.23, 1, 0.32, 1); opacity: 0.8; }
.service-card-wrap:hover .service-card { transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1); box-shadow: rgba(255,255,255,0.2) 0 0 40px 5px, rgba(255,255,255,1) 0 0 0 1px, rgba(0,0,0,0.66) 0 30px 60px 0, inset #333 0 0 0 5px, inset white 0 0 0 6px; }

.service-card {
    position: relative;
    width: 280px;
    height: 380px;
    background-color: #333;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: rgba(0,0,0,0.66) 0 30px 60px 0, inset #333 0 0 0 5px, inset rgba(255,255,255,0.5) 0 0 0 6px;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.service-card-bg {
    opacity: 0.5;
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95), opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    pointer-events: none;
}

.service-card-info {
    padding: 20px;
    position: absolute;
    bottom: 0;
    color: #fff;
    transform: translateY(40%);
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.service-card-info p {
    opacity: 0;
    text-shadow: rgba(0,0,0,1) 0 2px 3px;
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.service-card-info * { position: relative; z-index: 1; }

.service-card-info:after {
    content: '';
    position: absolute;
    top: 0; left: 0; z-index: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
    background-blend-mode: overlay;
    opacity: 0;
    transform: translateY(100%);
    transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.service-card-info h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-shadow: rgba(0,0,0,0.5) 0 10px 10px;
    margin-bottom: 10px;
}

.service-card-info p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .service-card-wrap { flex: 0 0 260px; }
    .service-card { width: 260px; height: 360px; }
    .service-card-info h1 { font-size: 24px; }
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #3498db;
}

/* ========== زر التحكم بالموسيقى الخلفية ========== */
.music-control-btn {
    position: fixed;
    bottom: 160px;
    left: 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.music-control-btn:hover {
    transform: scale(1.1);
    background: #2980b9;
}

.music-control-btn .music-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.music-control-btn:hover .music-tooltip { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
    .music-control-btn { bottom: 180px; left: 15px; width: 45px; height: 45px; }
    .music-control-btn .music-tooltip { font-size: 0.75rem; }
}

/* ========== HOVER EFFECTS FOR HERO ELEMENTS (3D + GLASS) ========== */
.hero-content:hover {
    transform: perspective(800px) rotateX(3deg) rotateY(5deg) translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.15);
}

.hero-content:hover .hero-title { transform: translateX(-5px); }
.hero-content:hover .hero-subtitle { transform: translateX(-3px); }

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    transform: perspective(500px) rotateY(8deg) translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.hero-feature::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-feature:hover::after { opacity: 1; }
.hero-feature i { transition: transform 0.2s ease; }
.hero-feature:hover i { transform: scale(1.1) translateX(-3px); }

@media (max-width: 768px) {
    .hero-content:hover { transform: perspective(800px) rotateX(2deg) rotateY(3deg) translateY(-4px); }
    .hero-feature:hover { transform: perspective(500px) rotateY(4deg) translateY(-3px) scale(1.01); }
}

/* ========== ENHANCED GLASSMORPHISM: FOUNDER & EXPERTISE ========== */
.doctor-owner-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 25%, #24243e 50%, #1a1a4e 75%, #0f0c29 100%);
    position: relative;
    overflow: hidden;
}

.doctor-owner-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
    pointer-events: none;
}

.doctor-owner-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 210, 211, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.doctor-owner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.doctor-profile-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 36px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.doctor-profile-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 3rem;
}

/* ========== FOUNDER IMAGE ENHANCED ========== */
.doctor-image-side {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

.founder-img-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 1.5rem;
}

.founder-img-glow {
    position: absolute;
    top: -15px; left: -15px; right: -15px; bottom: -15px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #6C63FF, #00d2d3, #6C63FF, #a855f7, #6C63FF);
    animation: rotateGlow 6s linear infinite;
    filter: blur(12px);
    opacity: 0.6;
    z-index: 0;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.founder-img-ring {
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #6C63FF, #00d2d3, #6C63FF, #a855f7, #6C63FF);
    z-index: 1;
    animation: rotateGlow 6s linear infinite;
}

.founder-img-3d {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform-style: preserve-3d;
}

.founder-img-3d img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.founder-img-wrapper:hover .founder-img-glow {
    opacity: 0.9;
    filter: blur(18px);
}

.founder-img-wrapper:hover .founder-img-3d {
    transform: scale(1.05) rotateY(8deg) rotateX(5deg);
}

.founder-img-wrapper:hover .founder-img-3d img {
    border-color: rgba(108, 99, 255, 0.8);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.4);
}

.doctor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.badge-board { background: rgba(108, 99, 255, 0.2); color: #a5b4fc; border-color: rgba(108, 99, 255, 0.3); }
.badge-founder { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
.badge-remote { background: rgba(0, 210, 211, 0.2); color: #67e8f9; border-color: rgba(0, 210, 211, 0.3); }

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ========== DOCTOR INFO SIDE ========== */
.doctor-info-side {
    flex: 2;
    min-width: 320px;
}

.doctor-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.4;
}

.doctor-name i { color: #a5b4fc; font-size: 2rem; }

.founder-badge {
    background: linear-gradient(135deg, #6C63FF, #a855f7);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.doctor-specialty {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.doctor-qualifications {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    margin: 1.2rem 0;
    border-right: 4px solid #6C63FF;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 4px solid #6C63FF;
}

.qualification-item {
    margin: 0.7rem 0;
    font-size: 1rem;
    color: #cbd5e1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.6;
}

.qualification-item i { color: #a5b4fc; width: 24px; font-size: 1rem; flex-shrink: 0; }
.qualification-item strong { color: #e2e8f0; }

.languages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.7rem;
    margin-bottom: 0.25rem;
}

.lang-badge {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 40px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lang-ar { background: rgba(108, 99, 255, 0.2); color: #c4b5fd; }
.lang-en { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.lang-ru { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.lang-de { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.lang-uk { background: rgba(34, 197, 94, 0.2); color: #86efac; }

.lang-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== EXPERTISE HEADER ========== */
.expertise-header {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1.2rem;
    color: #f1f5f9;
    border-right: 4px solid #6C63FF;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expertise-header i { color: #a5b4fc; font-size: 1.5rem; }

/* ========== ENHANCED EXPERTISE GLASS CARDS ========== */
.services-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.expertise-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.2rem 1.4rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
    transform-style: preserve-3d;
    transform: perspective(800px) translateZ(0);
    position: relative;
    overflow: hidden;
}

.expertise-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.expertise-glass-card:hover::before { left: 100%; }

.expertise-glass-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.expertise-glass-card:hover::after { opacity: 1; }

.expertise-depression { --card-color: #818cf8; --card-glow: rgba(129, 140, 248, 0.25); }
.expertise-ocd { --card-color: #22d3ee; --card-glow: rgba(34, 211, 238, 0.25); }
.expertise-panic { --card-color: #f87171; --card-glow: rgba(248, 113, 113, 0.25); }
.expertise-bipolar { --card-color: #fb923c; --card-glow: rgba(251, 146, 60, 0.25); }
.expertise-personality { --card-color: #e879f9; --card-glow: rgba(232, 121, 249, 0.25); }
.expertise-addiction { --card-color: #34d399; --card-glow: rgba(52, 211, 153, 0.25); }
.expertise-eating { --card-color: #a3e635; --card-glow: rgba(163, 230, 53, 0.25); }
.expertise-family { --card-color: #60a5fa; --card-glow: rgba(96, 165, 250, 0.25); }
.expertise-medication { --card-color: #94a3b8; --card-glow: rgba(148, 163, 184, 0.25); }
.expertise-organic { --card-color: #f43f5e; --card-glow: rgba(244, 63, 94, 0.25); }

.expertise-glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--card-color);
    box-shadow: 
        0 20px 40px var(--card-glow),
        0 0 0 1px var(--card-color),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: perspective(800px) rotateY(4deg) rotateX(2deg) translateY(-6px) scale(1.02);
}

.expertise-icon-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.expertise-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--card-color);
    font-size: 1.4rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-glass-card:hover .expertise-icon {
    background: var(--card-glow);
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 0 20px var(--card-glow);
    border-color: var(--card-color);
}

.expertise-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.expertise-glass-card:hover .expertise-text {
    color: #f8fafc;
    transform: translateX(4px);
}

.disorder-emoji {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.expertise-glass-card:hover .disorder-emoji { transform: scale(1.2) rotate(5deg); }

/* ========== CTA BUTTONS ========== */
.doctor-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-main {
    background: linear-gradient(135deg, #6C63FF, #a855f7) !important;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4) !important;
    font-size: 1.1rem !important;
    padding: 14px 32px !important;
}

.btn-cta-main:hover {
    box-shadow: 0 12px 35px rgba(108, 99, 255, 0.5) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.btn-outline-doctor {
    background: transparent;
    border: 2px solid rgba(108, 99, 255, 0.5);
    color: #a5b4fc;
    padding: 0.75rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.btn-outline-doctor:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: #6C63FF;
    color: #c4b5fd;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.2);
    transform: translateY(-2px);
}

.doctor-privacy {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.doctor-privacy i { color: #6C63FF; }

/* ========== ENHANCED MOBILE RESPONSIVE FOR FOUNDER ========== */
@media (max-width: 1024px) {
    .services-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .doctor-owner-section { padding: 3rem 0; }
    .doctor-profile-inner { padding: 1.5rem; gap: 1.5rem; }
    .doctor-profile-card { border-radius: 24px; }
    .doctor-image-side { flex: 1 1 100%; min-width: unset; }
    .founder-img-wrapper { width: 180px; height: 180px; }
    .founder-img-glow { top: -10px; left: -10px; right: -10px; bottom: -10px; filter: blur(8px); }
    .founder-img-ring { top: -6px; left: -6px; right: -6px; bottom: -6px; }
    .doctor-info-side { flex: 1 1 100%; min-width: unset; }
    .doctor-name { font-size: 1.7rem; justify-content: center; }
    .doctor-specialty { font-size: 1.05rem; text-align: center; }
    .doctor-qualifications { padding: 1rem 1.2rem; }
    .qualification-item { font-size: 0.92rem; }
    .expertise-header { font-size: 1.2rem; justify-content: center; }
    .services-grid-enhanced { grid-template-columns: 1fr; gap: 0.8rem; }
    .expertise-glass-card { padding: 1rem 1.1rem; border-radius: 16px; }
    .expertise-icon { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
    .expertise-text { font-size: 0.93rem; }
    .disorder-emoji { font-size: 1.2rem; }
    .expertise-glass-card:hover { transform: perspective(800px) rotateY(2deg) rotateX(1deg) translateY(-3px) scale(1.01); }
    .doctor-cta { justify-content: center; }
    .btn-cta-main { font-size: 1rem !important; padding: 12px 24px !important; }
    .btn-outline-doctor { font-size: 0.95rem; padding: 0.65rem 1.5rem; }
    .doctor-privacy { text-align: center; justify-content: center; font-size: 0.82rem; }
    .languages-container { justify-content: center; }
    .doctor-badges { justify-content: center; }
    .founder-img-wrapper:hover .founder-img-3d { transform: scale(1.03); }
    .doctor-owner-section::before { width: 250px; height: 250px; }
    .doctor-owner-section::after { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
    .doctor-profile-inner { padding: 1.2rem; }
    .founder-img-wrapper { width: 150px; height: 150px; }
    .doctor-name { font-size: 1.5rem; }
    .founder-badge { font-size: 0.65rem; padding: 0.2rem 0.8rem; }
    .badge { font-size: 0.72rem; padding: 0.3rem 0.8rem; }
    .expertise-glass-card { padding: 0.8rem 1rem; gap: 10px; }
    .expertise-icon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 10px; }
    .expertise-text { font-size: 0.88rem; line-height: 1.5; }
    .disorder-emoji { font-size: 1.1rem; }
    .doctor-cta { flex-direction: column; align-items: stretch; }
    .btn-cta-main, .btn-outline-doctor { justify-content: center; text-align: center; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .hero-content, .hero-feature, .expertise-glass-card, .founder-img-3d, .founder-img-glow, .founder-img-ring {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    .hero-content:hover, .hero-feature:hover, .expertise-glass-card:hover, .founder-img-wrapper:hover .founder-img-3d {
        transform: none !important;
    }
    .founder-img-glow { animation: none; opacity: 0.4; }
    .founder-img-ring { animation: none; }
    .expertise-glass-card::before { display: none; }
    .a3d { animation-duration: 128s }
}
/* ========== ENHANCED FAQ SECTION (GLASSMORPHISM) ========== */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 50%, #f8faff 100%);
    position: relative;
}

.faq-section .section-title {
    color: #1e2a3e;
}

.faq-section .section-subtitle {
    color: #64748b;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-2px);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.85);
    border-color: #6C63FF;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.15);
    transform: translateY(0);
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 1.5rem;
    border: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
    transition: color 0.3s ease;
    gap: 15px;
}

.faq-question:hover {
    color: #6C63FF;
}

.faq-item.active .faq-question {
    color: #6C63FF;
}

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    color: #6C63FF;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust based on content length */
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #475569;
    line-height: 1.9;
    font-size: 1rem;
    border-top: 1px solid rgba(108, 99, 255, 0.15);
    padding-top: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }
    .faq-question {
        font-size: 1rem;
        padding: 1.2rem;
    }
    .faq-answer p {
        font-size: 0.93rem;
        line-height: 1.7;
    }
    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem;
    }
}
/* ========== ENHANCED STATS SECTION (GLASSMORPHISM & DARK) ========== */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 50%, #0f0c29 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background orbs to match founder section */
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 12s ease-in-out infinite;
    pointer-events: none;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 211, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 15s ease-in-out infinite reverse;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.glass-stat {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on hover */
.glass-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.glass-stat:hover::before {
    left: 100%;
}

.glass-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.2);
}

.stat-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #6C63FF, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
    display: block;
    transition: transform 0.3s ease;
}

.glass-stat:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
}

.stat-prefix, .stat-suffix {
    font-size: 1.8rem;
    font-weight: 700;
    color: #a5b4fc;
}

.stat-label {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 4rem 0;
    }
    .glass-stat {
        padding: 2rem 1rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-icon {
        font-size: 2.2rem;
    }
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .glass-stat {
        padding: 1.5rem 0.5rem;
        border-radius: 16px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-prefix, .stat-suffix {
        font-size: 1.2rem;
    }
    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
}
/* ========== ENHANCED THERAPISTS SECTION (DARK GLASS & GLOW) ========== */
.therapists-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 50%, #0f0c29 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background orbs */
.therapists-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 210, 211, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 14s ease-in-out infinite;
    pointer-events: none;
}

.therapists-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 11s ease-in-out infinite reverse;
    pointer-events: none;
}

.therapists-section .section-title {
    color: #f1f5f9;
}

.therapists-section .section-subtitle {
    color: #94a3b8;
}

.scene, .a3d { 
    display: grid; 
}

.scene {
    overflow: hidden;
    perspective: 35em;
    mask: linear-gradient(90deg, transparent, black 15% 85%, transparent);
    margin: 3rem auto;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.a3d {
    place-self: center;
    transform-style: preserve-3d;
    animation: ry 32s linear infinite;
}

@keyframes ry { to { rotate: y 1turn } }

.card {
    --w: 17.5em;
    --ba: 1turn / var(--n);
    grid-area: 1/1;
    width: var(--w);
    aspect-ratio: 7/10;
    object-fit: cover;
    border-radius: 1.5em;
    backface-visibility: hidden;
    transform: 
        rotatey(calc(var(--i) * var(--ba)))
        translatez(calc(-1 * (0.5 * var(--w) + 0.5em) / tan(0.5 * var(--ba))));
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(108, 99, 255, 0.1);
}

/* Add glow effect to cards */
.a3d:hover .card {
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(108, 99, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .therapists-section {
        padding: 4rem 0;
    }
    .scene {
        perspective: 25em;
    }
    .card {
        --w: 12em;
        border-radius: 1.2em;
    }
    .therapists-section::before,
    .therapists-section::after {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .therapists-section {
        padding: 3rem 0;
    }
    .scene {
        perspective: 20em;
    }
    .card {
        --w: 10em;
        border-radius: 1em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .a3d { animation-duration: 128s }
}
