/* ========================================
   DENTAL WORLD OF MIAMI - MAIN STYLES
   ======================================== */

/* CSS Variables */
:root {
    --primary-blue: #1E3A8A;
    --accent-gold: #F59E0B;
    --white: #FFFFFF;
    --sky-blue: #E0F2FE;
    --dark-text: #1A1A1A;
    --gray-text: #64748B;
    --light-gray: #F1F5F9;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-gold: 0 10px 30px rgba(245, 158, 11, 0.3);
    --shadow-blue: 0 10px 30px rgba(30, 58, 138, 0.3);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-text);
    max-width: 600px;
}

.section-header.centered .section-subtitle {
    margin: 0 auto;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: var(--transition-medium);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #FBBF24);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    width: 100%;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--white);
}

.btn-facebook {
    background: #1877F2;
    color: var(--white);
}

.btn-instagram:hover, .btn-facebook:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* ========================================
   3D FLOATING ELEMENTS
   ======================================== */
.floating-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-3d {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.08;
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.2));
    animation: float3d var(--duration, 6s) ease-in-out infinite;
    will-change: transform;
}

.tooth-1 { top: 15%; left: 8%; animation-duration: 7s; animation-delay: 0s; font-size: 3rem; }
.tooth-2 { top: 60%; left: 5%; animation-duration: 8s; animation-delay: 1s; font-size: 2rem; }
.tool-1 { top: 30%; right: 10%; animation-duration: 6s; animation-delay: 2s; font-size: 2.2rem; }
.globe-1 { top: 70%; right: 8%; animation-duration: 9s; animation-delay: 0.5s; font-size: 3.5rem; }
.sparkle-1 { top: 20%; left: 50%; animation-duration: 5s; animation-delay: 1.5s; font-size: 1.5rem; }
.sparkle-2 { top: 80%; left: 30%; animation-duration: 6.5s; animation-delay: 2.5s; font-size: 1.8rem; }
.heart-1 { top: 45%; left: 15%; animation-duration: 7.5s; animation-delay: 3s; font-size: 2rem; }
.star-1 { top: 10%; right: 25%; animation-duration: 8s; animation-delay: 1s; font-size: 2.2rem; }

@keyframes float3d {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(5deg) scale(1.05); }
    50% { transform: translateY(-10px) rotate(-3deg) scale(0.95); }
    75% { transform: translateY(-25px) rotate(8deg) scale(1.02); }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-medium);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: var(--transition-medium);
}

.logo-sub {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: var(--transition-medium);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-gold), #FBBF24);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: var(--shadow-gold);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.nav-cta::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: var(--transition-medium);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(30, 58, 138, 0.6) 50%, rgba(245, 158, 11, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: fadeInDown 1s ease;
}

.badge-star {
    font-size: 1.2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.highlight {
    background: linear-gradient(135deg, var(--accent-gold), #FDE68A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

.hero-buttons .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.hero-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 0.85rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 1.5s forwards;
    opacity: 0;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: linear-gradient(180deg, var(--white) 0%, var(--sky-blue) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-glass {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(245, 158, 11, 0.1));
    z-index: 1;
    pointer-events: none;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image-glass:hover .about-img {
    transform: scale(1.05);
}

.about-float-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
    animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-icon {
    font-size: 2rem;
}

.about-float-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.about-float-card small {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-text);
    padding: 12px 16px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.5);
    transition: var(--transition-medium);
}

.about-feature:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 1.4rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(224, 242, 254, 0.5);
    transition: var(--transition-medium);
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-3deg);
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(30, 58, 138, 0.15);
    border-color: var(--accent-gold);
}

.service-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    bottom: -24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
}

.service-content {
    padding: 40px 24px 24px;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.service-content p {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.6;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-choose {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2563EB 100%);
    color: var(--white);
    overflow: hidden;
}

.why-choose .section-tag {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.why-choose .section-title {
    color: var(--white);
}

.why-choose .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.why-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition-medium);
    opacity: 0;
    transform: translateX(-30px);
}

.why-feature.visible {
    opacity: 1;
    transform: translateX(0);
    transition: var(--transition-medium);
}

.why-feature:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(8px);
}

.why-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--accent-gold), #FBBF24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.why-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.why-text p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
}

.why-choose-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.why-choose-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(245, 158, 11, 0.2));
    pointer-events: none;
}

.why-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.exp-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* ========================================
   SMILE GALLERY SECTION
   ======================================== */
.smile-gallery {
    background: linear-gradient(180deg, var(--sky-blue) 0%, var(--white) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.gallery-comparison {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    cursor: col-resize;
}

.gallery-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: width 0.1s ease-out;
}

.gallery-after {
    width: 200%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.gallery-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--accent-gold);
    transform: translateX(-50%);
    cursor: col-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    box-shadow: var(--shadow-gold);
    border: 3px solid var(--white);
}

.gallery-label {
    position: absolute;
    bottom: 16px;
    padding: 6px 16px;
    background: rgba(30, 58, 138, 0.8);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 5;
    letter-spacing: 1px;
}

.before-label { left: 16px; }
.after-label { right: 16px; }

.gallery-caption {
    padding: 20px;
    text-align: center;
}

.gallery-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.gallery-caption p {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 500;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
    background: var(--white);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: calc(50% - 15px);
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(224, 242, 254, 0.5));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--dark-text);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

.author-info h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray-text);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: var(--transition-medium);
}

.testimonial-dot.active {
    background: var(--accent-gold);
    transform: scale(1.3);
    box-shadow: var(--shadow-gold);
}

/* ========================================
   SOCIAL MEDIA SECTION
   ======================================== */
.social-media {
    background: linear-gradient(180deg, var(--white) 0%, var(--sky-blue) 100%);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.social-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.social-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.social-item:hover img {
    transform: scale(1.1);
}

.social-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.social-overlay i {
    font-size: 2rem;
    color: var(--white);
    transform: scale(0.5);
    transition: var(--transition-medium);
}

.social-item:hover .social-overlay {
    opacity: 1;
}

.social-item:hover .social-overlay i {
    transform: scale(1);
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========================================
   APPOINTMENT SECTION
   ======================================== */
.appointment {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.appointment::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.1), transparent 70%);
    pointer-events: none;
}

.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.appointment-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.appointment-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.appointment-float-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.float-info-item:nth-child(2) { animation-delay: 0.2s; }
.float-info-item:nth-child(3) { animation-delay: 0.4s; }

.float-info-item i {
    color: #10B981;
    font-size: 1.1rem;
}

.appointment .section-tag {
    background: rgba(255,255,255,0.2);
}

.appointment .section-title {
    color: var(--white);
}

.appointment .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group.floating-label input,
.form-group.floating-label select,
.form-group.floating-label textarea {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-medium);
    outline: none;
}

.form-group.floating-label input::placeholder,
.form-group.floating-label textarea::placeholder {
    color: transparent;
}

.form-group.floating-label select {
    color: var(--white);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
}

.form-group.floating-label select option {
    color: var(--dark-text);
}

.form-group.floating-label label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}

.form-group.floating-label textarea ~ label {
    top: 24px;
    transform: translateY(-50%);
}

.form-group.floating-label input:focus,
.form-group.floating-label select:focus,
.form-group.floating-label textarea:focus,
.form-group.floating-label input:not(:placeholder-shown),
.form-group.floating-label select:valid,
.form-group.floating-label textarea:not(:placeholder-shown) {
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.15);
}

.form-group.floating-label input:focus ~ label,
.form-group.floating-label input:not(:placeholder-shown) ~ label,
.form-group.floating-label select:focus ~ label,
.form-group.floating-label select:valid ~ label,
.form-group.floating-label textarea:focus ~ label,
.form-group.floating-label textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--accent-gold);
    background: var(--primary-blue);
}

.form-group.floating-label textarea ~ label {
    top: 24px;
}

.form-group.floating-label textarea:focus ~ label,
.form-group.floating-label textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
}

.btn-loader {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: inline;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-success.visible {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.form-success p {
    margin-bottom: 24px;
    opacity: 0.9;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
    background: var(--white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    transition: var(--transition-medium);
}

.faq-item:hover {
    border-color: var(--sky-blue);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question i {
    transition: var(--transition-medium);
    color: var(--accent-gold);
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 28px 24px;
}

.faq-answer p {
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: linear-gradient(180deg, var(--sky-blue) 0%, var(--white) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary-blue), #3B82F6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: var(--shadow-blue);
}

.contact-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.contact-text p,
.contact-text a {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.contact-text a:hover {
    color: var(--accent-gold);
}

.contact-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-md);
}

.contact-social a:nth-child(1) { background: #1877F2; }
.contact-social a:nth-child(2) { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social a:nth-child(3) { background: #DB4437; }

.contact-social a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.contact-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 250px;
}

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

.map-container {
    flex: 1;
    min-height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f2657 100%);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-main {
    color: var(--white);
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: var(--transition-medium);
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-social a:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--accent-gold);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    opacity: 0.8;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
    transform: translateX(4px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
}

.footer-contact li i {
    color: var(--accent-gold);
    margin-top: 4px;
    min-width: 16px;
}

.footer-contact a {
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.footer-bottom-links a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), #3B82F6);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-blue);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* ========================================
   REVEAL ON SCROLL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 2.4rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .about-grid,
    .why-choose-grid,
    .appointment-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-image-glass,
    .why-choose-image,
    .appointment-image {
        order: -1;
    }
    .why-choose-image .why-img {
        height: 400px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 8px;
        transition: var(--transition-medium);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-link {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.1rem;
    }
    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
        text-align: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-stats {
        gap: 30px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .section {
        padding: 70px 0;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .service-card:hover {
        transform: translateY(-8px);
    }
    .testimonial-card {
        min-width: 100%;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .experience-badge {
        padding: 16px 24px;
    }
    .exp-number {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .floating-3d-container {
        display: none;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.9rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .about-float-card {
        right: 10px;
        bottom: -10px;
        padding: 14px 18px;
    }
    .why-feature {
        padding: 16px 18px;
    }
    .contact-actions {
        flex-direction: column;
    }
    .contact-actions .btn {
        width: 100%;
    }
    .social-buttons {
        flex-direction: column;
    }
    .social-buttons .btn {
        width: 100%;
    }
    .faq-question {
        padding: 20px;
        font-size: 0.95rem;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000080;
        --accent-gold: #CC7A00;
        --gray-text: #333333;
    }
}
