/* ===============================
   HERO SECTION BASE
================================ */

.dentia-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.dentia-hero-section.rtl-direction {
    direction: rtl;
}

/* ===============================
   BACKGROUND & EFFECTS
================================ */

.dentia-animated-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.dentia-bg-gradient {
    position: absolute;
    inset: 0;
}

.dentia-floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: dentiaFloat 12s ease-in-out infinite;
}

.dentia-orb-1 {
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
}

.dentia-orb-2 {
    bottom: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    animation-delay: -4s;
}

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

.dentia-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-size: 40px 40px;
}

/* ===============================
   LAYOUT
================================ */

.dentia-hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.dentia-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .dentia-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.dentia-content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    min-height: 500px;
}

@media (min-width: 1024px) {
    .dentia-content-side {
        gap: 2rem;
    }
}

/* ===============================
   TEXT & ANIMATIONS
================================ */

.dentia-slide-content {
    opacity: 0;
    transform: translateY(30px);
    animation: dentiaSlideIn 0.5s ease-out forwards;
}

@keyframes dentiaSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dentia-welcome-text {
    font-weight: 600;
    letter-spacing: 0.05em;
    animation: dentiaFadeInLeft 0.4s ease-out 0.1s both;
}

@keyframes dentiaFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dentia-heading {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1rem;
}

.dentia-heading span {
    display: block;
    animation: dentiaFadeInLeft 0.5s ease-out both;
}

.dentia-heading span:nth-child(1) { animation-delay: 0.2s; }
.dentia-heading span:nth-child(2) { animation-delay: 0.3s; }

.dentia-description {
    max-width: 36rem;
    line-height: 1.7;
    animation: dentiaFadeInUp 0.4s ease-out 0.5s both;
}

@keyframes dentiaFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   BUTTON
================================ */

.dentia-button-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dentia-cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
}

.dentia-cta-button:hover {
    transform: scale(1.05) translateY(-2px);
}

.dentia-cta-button:active {
    transform: scale(0.98);
}

.dentia-cta-button .dentia-bg-slide {
    position: absolute;
    inset: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.dentia-cta-button:hover .dentia-bg-slide {
    transform: translateY(0);
}

.dentia-btn-text {
    position: relative;
    z-index: 10;
}

.dentia-arrow-circle {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dentia-arrow-circle svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.dentia-cta-button:hover svg {
    transform: translateX(2px);
}

/* ===============================
   IMAGE SIDE
================================ */

.dentia-image-side {
    position: relative;
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .dentia-image-side {
        justify-content: flex-end;
    }
}

.dentia-bg-shape {
    position: absolute;
    top: 2rem;
    right: 0;
    width: 90%;
    height: 85%;
    border-radius: 1.5rem;
}

.dentia-image-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.dentia-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 1.5rem;
}

.dentia-slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1) translateX(100px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.dentia-slider-image.active {
    opacity: 1;
    transform: scale(1) translateX(0);
}

/* ===============================
   FLOATING CARDS
================================ */

.dentia-hours-card,
.dentia-services-card {
    position: absolute;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    z-index: 20;
}

.dentia-hours-card {
    top: 50%;
    right: -1rem;
    transform: translateY(-50%);
}

.dentia-services-card {
    bottom: 5rem;
    left: -1rem;
}

/* ===============================
   INDICATORS
================================ */

.dentia-slide-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dentia-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,.6);
}

.dentia-indicator.active {
    width: 1.5rem;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 767px) {

    .dentia-hero-section {
        min-height: auto;
        padding: 80px 16px 40px;
    }

    .dentia-content-side {
        min-height: auto;
        align-items: center;
        text-align: center;
    }

    .dentia-heading {
        font-size: 1.75rem;
    }

    .dentia-description {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .dentia-button-container {
        justify-content: center;
        flex-wrap: wrap;
    }

    .dentia-image-wrapper {
        max-width: 320px;
        margin: auto;
    }

    .dentia-hours-card {
        right: 50%;
        bottom: -1.5rem;
        top: auto;
        transform: translateX(50%);
    }

    /* 🔥 SERVICES CARD – MOBILE ONLY */
    .dentia-services-card {
        bottom: -2rem;
        width: 94%;
        margin-left: 50px;
        height: 29%;
        left: 0;
        transform: none;
    }
}

@media (max-width: 480px) {

    .dentia-heading {
        font-size: 1.5rem;
    }

    .dentia-description {
        font-size: 0.9rem;
    }
}