* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #25356f;
    --accent-blue: #0182c5;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links-major {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links-major a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links-major a:hover {
    color: var(--accent-blue);
}

.nav-drawer {
    position: absolute;
    top: calc(100% + 10px);
    right: 2rem;
    left: auto;
    width: min(320px, calc(100vw - 4rem));
    background: var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-radius: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
    z-index: 1001;
}

@media (min-width: 1201px) {
    .nav-drawer {
        right: calc((100vw - 1200px) / 2 + 2rem);
    }
}

.nav-drawer-inner {
    padding: 1.5rem 2rem 2rem;
}

@media (max-width: 900px) {
    .nav-drawer {
        right: 1rem;
        width: clamp(220px, 50vw, 320px);
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    #services.services-collapsed .services-grid .service-card:nth-child(n+6) {
        display: none;
    }

    .more-services-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        margin: 0 auto;
    }
}

@media (min-width: 769px) {
    .more-services-btn {
        display: none !important;
    }

    #moreServicesBtn {
        display: none !important;
    }
}

.nav-links-all {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-all li {
    display: flex;
    justify-content: flex-end;
}

.nav-links-all a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    width: 100%;
    text-align: right;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links-all a:hover {
    color: var(--accent-blue);
    background: rgba(65, 133, 244, 0.05);
}

.nav-links-all a:active {
    background: var(--accent-blue);
    color: #dbeafe;
}

nav.nav-open .nav-drawer {
    max-height: calc(100vh - 80px);
    opacity: 1;
    transform: translateY(0);
}

nav.nav-open .nav-links-major {
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.practice-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-left: 1rem;
}

@media (max-width: 600px) {
    .practice-name {
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-links-major {
        display: none;
    }
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

nav.nav-open .mobile-menu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

nav.nav-open .mobile-menu span:nth-child(2) {
    opacity: 0;
}

nav.nav-open .mobile-menu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section - Full Width */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Image Carousel Container */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    z-index: 1;
}

.hero-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel img.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-carousel {
        display: none;
    }
}

/* Transparent Blue Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 53, 111, 0.85) 0%, rgba(1, 130, 197, 0.85) 100%);
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 Q70 30 50 50 Q30 30 50 10" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 4;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.cta-icon {
    width: 20px;
    height: 20px;
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

section.hero {
    max-width: none;
    padding: 6rem 0;
    margin: 0;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Fade-in animation classes */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for sequential animations */
.fade-in-element.delay-1 { transition-delay: 0.1s; }
.fade-in-element.delay-2 { transition-delay: 0.2s; }
.fade-in-element.delay-3 { transition-delay: 0.3s; }
.fade-in-element.delay-4 { transition-delay: 0.4s; }
.fade-in-element.delay-5 { transition-delay: 0.5s; }
.fade-in-element.delay-6 { transition-delay: 0.6s; }
.fade-in-element.delay-7 { transition-delay: 0.7s; }
.fade-in-element.delay-8 { transition-delay: 0.8s; }
.fade-in-element.delay-9 { transition-delay: 0.9s; }

.service-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop: 3x3 Checkerboard pattern */
@media (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Row 1: primary, accent, primary */
    .service-card:nth-child(1),
    .service-card:nth-child(3) {
        background: var(--primary-blue) !important;
    }
    
    .service-card:nth-child(2) {
        background: var(--accent-blue) !important;
    }
    
    /* Row 2: accent, primary, accent */
    .service-card:nth-child(4),
    .service-card:nth-child(6) {
        background: var(--accent-blue) !important;
    }
    
    .service-card:nth-child(5) {
        background: var(--primary-blue) !important;
    }
    
    /* Row 3: primary, accent, primary */
    .service-card:nth-child(7),
    .service-card:nth-child(9) {
        background: var(--primary-blue) !important;
    }
    
    .service-card:nth-child(8) {
        background: var(--accent-blue) !important;
    }
}

/* Mobile: Simple alternating with reduced delays */
@media (max-width: 768px) {
    .service-card:nth-child(odd) {
        background: var(--primary-blue);
    }

    .service-card:nth-child(even) {
        background: var(--accent-blue);
    }
    
    /* Reduce animation delays on mobile for better UX */
    .fade-in-element.delay-6 { transition-delay: 0.2s !important; }
    .fade-in-element.delay-7 { transition-delay: 0.25s !important; }
    .fade-in-element.delay-8 { transition-delay: 0.3s !important; }
    .fade-in-element.delay-9 { transition-delay: 0.35s !important; }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: var(--white);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: block;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-blue);
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    text-align: center;
    justify-content: center;
    align-items: center;
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.review-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.review-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    width: 100%;
}

.review-name {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    text-align: center;
}

.review-stars {
    font-size: 1.8rem;
    line-height: 1;
    text-align: center;
    margin-bottom: 1rem;
}

.review-comment {
    color: var(--text-light);
    line-height: 1.5;
    font-style: italic;
    font-size: 0.95rem;
    flex-grow: 1;
    text-align: center;
    width: 100%;
    position: relative;
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.review-comment.expanded {
    max-height: 500px;
}

.review-comment:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.review-comment.expanded::after {
    opacity: 0;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .review-comment {
        max-height: 100px;
    }
    
    .review-comment:not(.expanded)::after {
        height: 20px;
    }
}

.read-more-btn {
    background: none;
    border: none;
    color: #0056b3;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: underline;
    font-weight: 600;
}

.read-more-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Star colors */
.review-stars .star-full {
    color: var(--primary-blue);
}

.review-stars .star-empty {
    color: var(--accent-blue);
    opacity: 0.6;
}

/* Mobile: Single column layout */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .review-name {
        max-width: 70%;
        font-size: 0.95rem;
    }
    
    .review-comment {
        font-size: 0.9rem;
        display: -webkit-box;
        display: box;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .review-comment.expanded {
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
        max-height: 500px;
    }
}

/* Tablet: 2 columns if needed */
@media (min-width: 769px) and (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    color: #000;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    transform-origin: center center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-content.location-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: hidden;
    padding: 1.5rem;
}

.modal-content.location-modal h2 {
    margin-bottom: 0.75rem;
}

.modal-content.location-modal p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}
    
.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-blue);
}

.modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.modal-content h3 {
    color: var(--accent-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.phone-modal-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin: 1.5rem 0;
    text-align: center;
}

.clipboard-message {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.qr-container {
    text-align: center;
    margin-top: 1.5rem;
}

.qr-container img {
    max-width: 250px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qr-container p {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.location-banner {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    object-fit: cover;
    aspect-ratio: 21 / 9;
    max-height: 220px;
    min-height: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.location-map-container {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 350px;
}

.location-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.location-map-container iframe {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mobile-phone-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.phone-action-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.phone-action-button.call {
    background: var(--accent-blue);
    color: var(--white);
}

.phone-action-button.call:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.phone-action-button.save {
    background: var(--primary-blue);
    color: var(--white);
}

.phone-action-button.save:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.dentist-card {
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.dentist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dentist-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--primary-blue);
}

.dentist-info {
    padding: 2rem;
}

.dentist-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.dentist-info p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Technology Grid (Facilities Page) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

.practice-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.practice-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.practice-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.practice-gallery-item:hover .practice-gallery-image {
    transform: scale(1.05);
}

.practice-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(37, 53, 111, 0.85), rgba(1, 130, 197, 0.85));
    color: white;
    padding: 1rem;
}

.practice-gallery-overlay h4 {
    margin: 0;
}

.gallery-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 92vh;
    width: 95vw;
    height: 92vh;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.gallery-modal-title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 4.25rem;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 2;
}

.gallery-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-modal-content .close-modal {
    color: rgba(255,255,255,0.85);
    z-index: 3;
}

.gallery-modal-content .close-modal:hover {
    color: var(--white);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: rgba(37, 53, 111, 0.65);
    color: var(--white);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover {
    background: rgba(1, 130, 197, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav-prev {
    left: 1rem;
}

.gallery-nav-next {
    right: 1rem;
}

@media (max-width: 600px) {
    .gallery-modal-title {
        font-size: 0.95rem;
    }

    .gallery-nav {
        width: 44px;
        height: 44px;
    }
}

/* Practice Video Section */
.practice-video-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Responsive video sizing */
@media (max-width: 768px) {
    .practice-video-section {
        padding: 3rem 1rem;
    }
    
    .video-wrapper {
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    .video-wrapper video {
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .practice-video-section {
        padding: 2rem 0.5rem;
    }
    
    .video-wrapper {
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
    
    .video-wrapper video {
        border-radius: 12px;
    }
}

/* Focus states for accessibility */
.video-wrapper video:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Team Section */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    text-align: center;
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 280px;
    max-width: 300px;
}

@media (max-width: 992px) {
    .team-member {
        flex: 0 0 calc(50% - 1rem);
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        gap: 1.5rem;
    }
    
    .team-member {
        flex: 0 0 100%;
        max-width: 320px;
    }
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--accent-blue);
}

.team-member h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-gray);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-blue);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(1, 130, 197, 0.1);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-answer ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item.no-hover {
    cursor: pointer;
}

.contact-item.no-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 40px;
    height: 40px;
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-dark);
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    line-height: 1.8;
    display: block;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}


.footer-bottom p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.social-link {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-top: 1rem;
    background: var(--accent-blue);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.social-link svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    fill: #ffffff;
}

.social-link:hover {
    background: var(--white);
    transform: scale(1.1);
}

.social-link:hover svg {
    fill: var(--primary-blue);
}

/* Responsive */
/* Mobile Phone Button */
.mobile-phone-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.mobile-phone-button:active {
    transform: scale(0.95);
}

.mobile-phone-button svg {
    animation: none !important;
}

.mobile-phone-button .mobile-phone-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, calc(-50% + 8px));
    z-index: 2;
    animation: gentleVibrateCentered 3s ease-in-out infinite;
}

.mobile-phone-button .call-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    color: var(--primary-blue);
    font-weight: 600;
}

.mobile-phone-button .call-text span {
    color: var(--primary-blue);
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

@keyframes gentleVibrate {
    0%, 90%, 100% {
        transform: rotate(0deg);
    }
    92% {
        transform: rotate(-3deg);
    }
    94% {
        transform: rotate(3deg);
    }
    96% {
        transform: rotate(-2deg);
    }
    98% {
        transform: rotate(2deg);
    }
}

@keyframes gentleVibrateCentered {
    0%, 90%, 100% {
        transform: translate(-50%, calc(-50% + 6px)) rotate(0deg);
    }
    92% {
        transform: translate(-50%, calc(-50% + 6px)) rotate(-3deg);
    }
    94% {
        transform: translate(-50%, calc(-50% + 6px)) rotate(3deg);
    }
    96% {
        transform: translate(-50%, calc(-50% + 6px)) rotate(-2deg);
    }
    98% {
        transform: translate(-50%, calc(-50% + 6px)) rotate(2deg);
    }
}

@media (min-width: 769px) {
    .mobile-phone-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        padding: 2rem;
        margin: 1rem;
    }

    .desktop-mailto {
        display: none !important;
    }

    .mobile-tel {
        display: inline-flex !important;
    }

    .mobile-phone-link {
        display: flex !important;
    }

    .desktop-phone-link {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .desktop-mailto {
        display: inline-flex !important;
    }

    .mobile-tel {
        display: none !important;
    }

    .mobile-phone-link {
        display: none !important;
    }

    .desktop-phone-link {
        display: flex !important;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

a.cta-button.desktop-mailto {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Before & After Modal Styles */
.before-after-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.before-after-header {
    text-align: center;
    margin-bottom: 2rem;
}

.before-after-header h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.before-after-header p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.before-after-main-images {
    margin-bottom: 2rem;
}

.before-after-main-images h3 {
    text-align: center;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.before-after-set-heading {
    text-align: center;
    color: var(--primary-blue);
    margin: 2rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.before-after-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.before-after-pair img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.before-after-gallery {
    display: grid;
    gap: 1rem;
}

/* Responsive for before/after modal */
@media (max-width: 768px) {
    .before-after-modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1.5rem;
        padding-top: 3rem; /* Add more top padding to avoid overlap with close button */
    }
    
    .before-after-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .before-after-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .before-after-header p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .close-modal {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        z-index: 10;
    }
    
    .before-after-pair {
        gap: 0.5rem;
    }
    
    .before-after-pair img {
        height: 150px;
    }
}
