/* ========================================
   DESIGN TOKENS & VARIABLES
   ======================================== */
:root {
    --primary: #1E88E5;
    --primary-dark: #1565C0;
    --primary-light: #64B5F6;
    --accent: #0D47A1;
    --white: #ffffff;
    --off-white: #f8f9fc;
    --gray-50: #f1f3f8;
    --gray-100: #e4e7ef;
    --gray-200: #c8cdd9;
    --gray-300: #9aa2b5;
    --gray-400: #6b7589;
    --gray-500: #4a5568;
    --gray-600: #2d3748;
    --gray-700: #1a202c;
    --dark: #0f1724;
    --gold: #FFB74D;
    --success: #4CAF50;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--gray-600);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(30, 136, 229, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* ========================================
   PRELOADER
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn span {
    transition: transform var(--transition);
}

.btn:hover span {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(30, 136, 229, 0.5);
    transform: translateY(-2px);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   NAVIGATION
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

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

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

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

#navbar.scrolled .logo-name {
    color: var(--gray-700);
}

#navbar.scrolled .logo-sub {
    color: var(--gray-400);
}

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

.nav-links a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

#navbar.scrolled .nav-links a {
    color: var(--gray-500);
}

#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active {
    color: var(--primary);
    background: rgba(30, 136, 229, 0.08);
}

.nav-cta {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: var(--white) !important;
    backdrop-filter: blur(10px);
}

.nav-cta:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
}

#navbar.scrolled .nav-cta {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
}

#navbar.scrolled .nav-cta:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

#navbar.scrolled .hamburger span {
    background: var(--gray-700);
}

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

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

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(15, 23, 36, 0.3) 0%,
            rgba(15, 23, 36, 0.5) 40%,
            rgba(15, 23, 36, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
}

.hero-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-light);
    background: rgba(30, 136, 229, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 32px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

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

.hero-phone strong {
    color: var(--white);
}

.hero-phone:hover {
    color: var(--white);
}

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 350px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 12px;
}

.hero-stat p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s infinite;
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 80px 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about-image-mobile {
    display: none;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 40px rgba(30, 136, 229, 0.3);
}

.exp-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.exp-text {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-700);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-desc {
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 32px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(30, 136, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

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

.stat-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    display: inline;
}

.stat-plus {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 80px 0;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-700);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray-400);
    font-size: 1rem;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.service-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(15, 23, 36, 0.15) 100%);
    transition: var(--transition);
}

.service-card:hover .service-img-overlay {
    background: linear-gradient(to bottom, transparent 40%, rgba(30, 136, 229, 0.2) 100%);
}

.service-body {
    padding: 28px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.service-link:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--dark), var(--gray-700));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(30, 136, 229, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

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

.testimonial-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

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

.testimonial-stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card>p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.testimonial-author h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-300);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 80px 0;
    background: var(--off-white);
}

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

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-700);
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-info>p {
    color: var(--gray-400);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.contact-item a {
    color: var(--primary);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.contact-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-600);
    background: var(--off-white);
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-300);
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239aa2b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    position: relative;
    line-height: 0;
}

.map-section iframe {
    filter: grayscale(30%) contrast(1.05);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

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

.footer-brand .logo-sub {
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

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

.footer ul a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-contact a {
    color: var(--primary-light);
}

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

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 96px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.3);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 136, 229, 0.5);
}

/* ========================================
   ANIMATIONS
   ======================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid children */
.services-grid [data-animate]:nth-child(2) {
    transition-delay: 0.1s;
}

.services-grid [data-animate]:nth-child(3) {
    transition-delay: 0.2s;
}

.services-grid [data-animate]:nth-child(4) {
    transition-delay: 0.3s;
}

.services-grid [data-animate]:nth-child(5) {
    transition-delay: 0.4s;
}

.services-grid [data-animate]:nth-child(6) {
    transition-delay: 0.5s;
}

.testimonial-grid [data-animate]:nth-child(2) {
    transition-delay: 0.15s;
}

.testimonial-grid [data-animate]:nth-child(3) {
    transition-delay: 0.3s;
}

.stats-grid [data-animate]:nth-child(2) {
    transition-delay: 0.1s;
}

.stats-grid [data-animate]:nth-child(3) {
    transition-delay: 0.2s;
}

.stats-grid [data-animate]:nth-child(4) {
    transition-delay: 0.3s;
}

/* ========================================
   MEET YOUR DENTIST SECTION
   ======================================== */
.dentist {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

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

.dentist-image-column {
    position: relative;
}

.dentist-image-wrapper {
    position: relative;
    z-index: 2;
}

.dentist-image-wrapper img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 520px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s var(--transition);
}

.dentist-avatar-placeholder {
    width: 100%;
    height: 520px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border: 2px dashed var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--gray-400);
    transition: transform 0.5s var(--transition);
}

.dentist-avatar-placeholder .avatar-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.dentist-avatar-placeholder .avatar-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    text-transform: uppercase;
}

.dentist-image-wrapper:hover img,
.dentist-image-wrapper:hover .dentist-avatar-placeholder {
    transform: scale(1.02);
}

.dentist-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 140px;
    height: 140px;
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.35;
}

/* Floating Badges */
.dentist-badge {
    position: absolute;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--gray-100);
    z-index: 3;
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.dentist-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.badge-experience {
    top: 40px;
    left: -40px;
}

.badge-patients {
    bottom: 40px;
    right: -40px;
}

.badge-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.badge-txt {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dentist-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.dentist-qualifications {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.qualification-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(13, 71, 161, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
}

.dentist-bio {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Achievements Grid */
.dentist-achievements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-600);
}

.achievement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(76, 175, 80, 0.12); /* Light green tint matching var(--success) */
    color: var(--success);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dentist-actions {
    margin-top: 10px;
}

/* ========================================
   SMILE TRANSFORMATIONS GALLERY
   ======================================== */
.gallery {
    padding: 80px 0;
    background: var(--off-white);
}

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

.gallery-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Draggable Comparison Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #cbd5e1; /* Fallback Before background */
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Image wrappers */
.image-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%; /* Initial split percentage */
    overflow: hidden;
    z-index: 3;
    background: #bfdbfe; /* Fallback After background */
    border-right: 2px solid var(--white);
}

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

/* Placeholder overlays for empty images */
.slider-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    z-index: 1;
    font-family: 'Inter', sans-serif;
}

.placeholder-before {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
}

.placeholder-after {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--primary-dark);
    /* Set width: 100% of the slider container so the text aligns center when resized */
    width: 100%;
    height: 100%;
}

.placeholder-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.placeholder-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.8;
}

/* Slider labels (Before/After) */
.slider-label {
    position: absolute;
    bottom: 16px;
    background: rgba(15, 23, 36, 0.65);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 4;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.label-before {
    left: 16px;
}

.label-after {
    right: 16px;
}

/* Fade out labels during active dragging */
.comparison-slider.active .slider-label {
    opacity: 0;
}

/* Drag Handle */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--white);
    z-index: 5;
    cursor: ew-resize;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.handle-button {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.4);
    border: 3px solid var(--white);
    transition: background-color 0.2s, transform 0.2s;
    pointer-events: none;
}

.slider-handle:hover .handle-button,
.slider-handle:focus-visible .handle-button {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.slider-handle:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

/* Card Body */
.gallery-card .card-body {
    padding: 24px;
}

.gallery-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.gallery-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ========================================
   FLOATING WHATSAPP BUTTON
   ======================================== */
.whatsapp-float-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    animation: whatsappFloat 4s ease-in-out infinite;
}

/* Continuous pulse effect */
.whatsapp-float-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    animation: whatsappPulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Hide the pulse animation when hover over the button */
.whatsapp-float-wrapper:hover::before {
    animation: none;
    opacity: 0;
}

.whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 56px;
    width: 56px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    overflow: hidden;
}

.whatsapp-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
    transition: transform 0.4s ease;
}

.whatsapp-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding-right: 20px;
}

/* Keyboard accessibility focus outline */
.whatsapp-float:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
    width: 170px;
}

.whatsapp-float:focus-visible .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

/* Hover behaviors */
@media (hover: hover) {
    .whatsapp-float:hover {
        width: 170px;
        background-color: #128C7E; /* Modern WhatsApp teal */
        box-shadow: 0 8px 25px rgba(18, 140, 126, 0.5);
    }

    .whatsapp-float:hover .whatsapp-text {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.1s;
    }

    .whatsapp-float:hover svg {
        transform: rotate(360deg);
    }
}

/* Keyframes for Floating and Pulsing */
@keyframes whatsappFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    30% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.74rem;
    }

    .nav-links {
        gap: 4px;
    }

    .dentist-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dentist-image-column {
        max-width: 500px;
        margin: 0 auto;
    }

    .dentist-image-wrapper img,
    .dentist-avatar-placeholder {
        height: 440px;
    }

    .hero {
        align-items: center;
        padding-top: 110px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 24px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 0;
    }

    .hero-right {
        justify-content: flex-start;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-grid > .about-image {
        display: none;
    }

    .about-image img {
        height: 400px;
    }

    .about-image-mobile {
        display: block;
        position: relative;
        width: calc(100% - 20px);
        max-width: 500px;
        margin: 30px auto 30px 20px;
    }

    .about-image-mobile img {
        border-radius: var(--radius-lg);
        width: 100%;
        height: 400px;
        object-fit: cover;
        box-shadow: var(--shadow-lg);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about,
    .dentist,
    .services,
    .gallery,
    .testimonials,
    .contact {
        padding: 50px 0;
    }

    .stats {
        padding: 40px 0;
    }

    .cta-banner {
        padding: 50px 0;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .placeholder-title {
        font-size: 1.2rem;
    }

    .badge-experience {
        left: -20px;
        top: 30px;
    }

    .badge-patients {
        right: -20px;
        bottom: 30px;
    }

    .whatsapp-float-wrapper {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float-wrapper::before {
        width: 48px;
        height: 48px;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
    }

    .whatsapp-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    @media (hover: none) {
        .whatsapp-float:hover {
            width: 48px;
            background-color: #25D366;
        }
        .whatsapp-float:hover svg {
            transform: none;
        }
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 8px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: var(--gray-600) !important;
        font-size: 0.9rem;
        padding: 12px 16px;
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(30, 136, 229, 0.08) !important;
        color: var(--primary) !important;
    }

    .nav-cta {
        background: var(--primary) !important;
        color: var(--white) !important;
        border-color: var(--primary) !important;
        text-align: center;
        margin-top: 16px;
    }

    .hero {
        min-height: 100svh;
        align-items: center;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-tag {
        margin-bottom: 12px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .hero-content {
        gap: 24px;
        padding-bottom: 0;
    }

    .hero-stat {
        max-width: 100%;
        padding: 24px;
    }

    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-num {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form-wrap {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-content h2,
    .section-header h2,
    .contact-info h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .dentist-image-wrapper img,
    .dentist-avatar-placeholder {
        height: 320px;
    }

    .dentist-badge {
        padding: 10px 16px;
    }

    .badge-num {
        font-size: 1.4rem;
    }

    .badge-txt {
        font-size: 0.65rem;
    }

    .dentist-achievements {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-stat {
        padding: 20px;
    }

    .about-image img,
    .about-image-mobile img {
        height: 300px;
    }

    .experience-badge {
        bottom: -10px;
        right: 0;
        padding: 16px;
    }

    .exp-number {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 28px 24px;
    }
}