:root {
    --bg-color: #050a15;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary-color: #e07a2c;
    --primary-dim: rgba(23, 191, 203, 0.2);
    --secondary-color: #7000ff;
    --text-main: #f0f4f8;
    --text-muted: #9ba4b5;
    --font-main: 'Cairo', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    letter-spacing: 0.3px;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(112, 0, 255, 0.12), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(224, 122, 44, 0.1), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05), transparent 60%);
    background-attachment: fixed;
}

/* Glassmorphism utility */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

ul {
    list-style: none;
}

span {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition-speed);
    border-radius: 50px;
    border: 1px solid var(--surface-border);
    background: rgba(5, 10, 21, 0.3);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(5, 10, 21, 0.9);
    backdrop-filter: blur(16px);
    padding: 10px 30px;
    top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hamburger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
    transition: color var(--transition-speed);
}

.hamburger:hover {
    color: var(--primary-color);
}

.tooth-icon {
    filter: drop-shadow(0 0 8px rgba(224, 122, 44, 0.4));
    transition: transform var(--transition-speed) ease;
}

.logo:hover .tooth-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all var(--transition-speed);
}

.cta-btn,
.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #ffffff !important;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-icon {
    font-size: 1.4em;
}

.cta-text {
    color: #ffffff !important;
}

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

.announcement-ticker {
    position: fixed;
    top: 120px; /* Increased distance from navbar */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #ffffff !important;
    padding: 6px 24px;
    font-weight: 700;
    font-size: 12px;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    animation: slideDownTicker 0.5s ease-out;
}

.announcement-ticker * {
    color: #ffffff !important;
}

@keyframes slideDownTicker {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

body.has-ticker .navbar {
    top: 20px;
}

@media (max-width: 768px) {
    .announcement-ticker {
        top: 85px;
        font-size: 11px;
        padding: 5px 15px;
    }
}

.lang-switch {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.lang-switch:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: #fff;
}

.admin-nav-item a {
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.admin-nav-item a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(224, 122, 44, 0.4);
}

@media (min-width: 992px) {
    .admin-nav-item {
        margin-right: 20px;
    }
}

.floating-whatsapp {
    display: flex;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.primary-btn {
    padding: 16px 36px;
    font-size: 18px;
}

.pulse-glow {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 240, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

.glow-btn:hover,
.cta-btn:hover:not(.pulse-glow) {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(112, 0, 255, 0.4);
    filter: brightness(1.1);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--surface-border);
    padding: 14px 34px;
    font-size: 18px;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-dim);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 50px;
    gap: 50px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.hero-title span {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.location-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    position: relative;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.8s ease, box-shadow 0.8s ease;
    z-index: 2;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.road-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.road-bg svg {
    width: 100%;
    height: 100%;
}

.marker-icon, .location-details {
    position: relative;
    z-index: 2;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.hero-image:hover .location-card {
    transform: rotateY(0) rotateX(0);
    box-shadow: 0 15px 40px rgba(224, 122, 44, 0.3);
}

.marker-icon ion-icon {
    font-size: 5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 15px var(--primary-color));
    animation: pulseMarker 2s infinite;
}

.location-details h4 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 800;
}

.location-details p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--transition-speed);
}

.maps-link:hover {
    transform: translateY(-3px) scale(1.05);
}

@keyframes pulseMarker {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(224, 122, 44, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(224, 122, 44, 0.9));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(224, 122, 44, 0.5));
    }
}

.glow-sphere {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    opacity: 0.15;
    filter: blur(50px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulseSphere 4s alternate infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-10deg) rotateX(3deg);
    }

    100% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }
}

@keyframes pulseSphere {
    0% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Products Section */
.products {
    padding: 100px 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 40px 30px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: var(--primary-dim);
    padding: 15px;
    border-radius: 12px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.read-more {
    /*    تم اخفاء نص اكتشف  المزيد    */
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.read-more ion-icon {
    transition: transform var(--transition-speed);
}

.read-more:hover ion-icon {
    transform: translateX(-5px);
}

/* Features Split */
.features-split {
    padding: 100px 5%;
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-list ion-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-list h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.split-image {
    flex: 1;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(5, 10, 21, 0), rgba(112, 0, 255, 0.2));
}

.abstract-shape {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.animated-tooth-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: drop-shadow(0 0 30px rgba(112, 0, 255, 0.4));
    animation: floatTooth 6s ease-in-out infinite;
}

.abstract-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.abstract-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.abstract-content p {
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

@keyframes floatTooth {
    0% {
        transform: translate(-50%, -46%) rotate(-2deg) scale(1);
    }

    50% {
        transform: translate(-50%, -54%) rotate(3deg) scale(1.05);
    }

    100% {
        transform: translate(-50%, -46%) rotate(-2deg) scale(1);
    }
}

/* Team Section */
.team {
    padding: 100px 5%;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.05), transparent 70%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    text-align: center;
    padding: 30px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(224, 122, 44, 0.15);
}

.team-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--surface-border);
    transition: all var(--transition-speed);
}

.team-card:hover .team-image {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-avatar {
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--primary-color);
    border: 1px solid var(--surface-border);
}

.team-info h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #fff;
}

.team-info .major {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: all var(--transition-speed);
}

.team-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    padding: 60px 5% 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    padding: 50px;
    margin-bottom: 30px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-main);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--surface-border);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 10, 21, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
        text-align: center;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        border: 1px solid var(--surface-border);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(10px);
    }

    .features-split {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Responsive Navbar Adjustments */
    .navbar {
        padding: 15px 4%;
    }

    .logo {
        font-size: 20px;
    }

    .tooth-icon {
        width: 32px;
        height: 32px;
    }

    .cta-btn {
        display: none;
    }


}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 120px;
    }

    .abstract-shape {
        width: 250px;
        height: 250px;
    }
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224, 122, 44, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 21, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    padding: 10px;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-modal.active .modal-content {
    transform: scale(1);
}

.video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: -50px;
    left: 0; /* RTL alignment */
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    .modal-close {
        top: -45px;
        right: auto;
        left: 0;
    }
}

/* LTR Support (English) */
html[dir="ltr"] .nav-links a::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .read-more ion-icon {
    transform: rotate(180deg);
}

html[dir="ltr"] .read-more:hover ion-icon {
    transform: rotate(180deg) translateX(5px);
}

html[dir="ltr"] .hamburger {
    margin-right: 12px;
    margin-left: 0;
}

html[dir="ltr"] .nav-links.active {
    transform: translateY(10px);
}