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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #8B5CF6 0%, #D946EF 50%, #A855F7 100%);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    background-clip: padding-box;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) #8B5CF6;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #8B5CF6 0%, #D946EF 50%, #A855F7 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 20px 60px;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: url('image/Vector 1.webp') repeat-x bottom;
    background-size: auto 100%;
    opacity: 0.3;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: -16px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-text h1 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    line-height: 1.2;
    margin-bottom: 4px;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
    line-height: 1.3;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin-right: 120px;
}

.location-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Rating */
.rating-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rating {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: fit-content;
}

.rating:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

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

.rating-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.rating-score {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-stars {
    color: #FFD700;
    font-size: 20px;
    line-height: 1;
}

.rating-count {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1;
}

/* Hero Content */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-left {
    max-width: 600px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
    margin-top: 0;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin-bottom: 40px;
}

.cta-button {
    background: #06B6D4;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.cta-button:hover {
    background: #0891B2;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

/* Features */
.features {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
}

.feature-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.feature svg {
    width: 48px;
    height: 48px;
}

.feature p {
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
}

/* Hero Right - Tooth Shape */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tooth-shape {
    position: relative;
    width: 650px;
    height: 700px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0;
}

.tooth-shape::before {
    display: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Info Block */
.info-block {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    color: white;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.info-block:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }

    .tooth-shape {
        width: 550px;
        height: 600px;
    }

    .location {
        margin-right: 60px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }

    .hero-content {
        gap: 40px;
    }

    .tooth-shape {
        width: 480px;
        height: 550px;
    }

    .hero-title {
        font-size: 48px;
    }

    .location {
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-left {
        max-width: 100%;
    }

    .tooth-shape {
        width: 450px;
        height: 520px;
        margin-top: 0;
        margin: 0 auto;
    }

    .features {
        gap: 30px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 20px 50px;
    }

    .container {
        padding: 0 20px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .location {
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .features {
        flex-direction: row;
        gap: 16px;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .feature {
        gap: 8px;
    }

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

    .feature p {
        font-size: 12px;
        white-space: nowrap;
    }

    .tooth-shape {
        width: 100%;
        max-width: 400px;
        height: 480px;
    }

    .info-block {
        bottom: 20px;
        right: 20px;
        font-size: 12px;
        padding: 12px 20px;
    }

    .cta-button {
        width: 100%;
        padding: 16px 32px;
    }

    .rating {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 16px 40px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .rating-score {
        font-size: 24px;
    }

    .rating-stars {
        font-size: 16px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 12px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .location {
        font-size: 13px;
        padding: 10px 14px;
    }

    .location-icon {
        width: 14px;
        height: 14px;
    }

    .tooth-shape {
        max-width: 320px;
        height: 400px;
    }

    .cta-button {
        font-size: 16px;
        padding: 14px 28px;
    }

    .features {
        gap: 12px;
    }

    .feature {
        gap: 6px;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
    }

    .feature svg {
        width: 28px;
        height: 28px;
    }

    .feature p {
        font-size: 11px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

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

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    transform: rotate(90deg);
}

.modal-title {
    color: #8B5CF6;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Nunito', sans-serif;
}

.modal-documents {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(217, 70, 239, 0.05) 100%);
    border-radius: 12px;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.document-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(217, 70, 239, 0.1) 100%);
    border-color: #8B5CF6;
    transform: translateX(8px);
}

.document-item svg {
    color: #8B5CF6;
    flex-shrink: 0;
}

.document-item span {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    line-height: 1.4;
}

.modal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    justify-content: center;
}

.modal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #8B5CF6 0%, #D946EF 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.modal-link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-right: 30px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }

    .document-item {
        padding: 16px;
    }

    .document-item span {
        font-size: 14px;
    }

    .modal-footer {
        margin-top: 20px;
        padding-top: 15px;
    }

    .modal-link {
        font-size: 14px;
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }
}

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

.hero-title,
.hero-subtitle,
.cta-button,
.features,
.tooth-shape {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    animation-delay: 0.1s;
}

.cta-button {
    animation-delay: 0.2s;
}

.features {
    animation-delay: 0.3s;
}

.tooth-shape {
    animation-delay: 0.4s;
}

/* SEO Content - Hidden from users, visible to search engines */
.seo-content {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.5;
}

.seo-content h2,
.seo-content h3,
.seo-content h4 {
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: #333;
}

.seo-content h2 {
    font-size: 32px;
}

.seo-content h3 {
    font-size: 24px;
}

.seo-content h4 {
    font-size: 20px;
}

.seo-content p {
    margin: 10px 0;
    color: #666;
}

.seo-content article {
    margin-bottom: 20px;
}

/* PDF Viewer Modal */
.pdf-viewer-modal .pdf-viewer-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 95vw;
    width: 1200px;
    max-height: 95vh;
    height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: modalFadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-viewer-title {
    color: #8B5CF6;
    font-size: 24px;
    font-weight: 700;
    padding: 30px 40px 20px 40px;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.pdf-viewer-container {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

.pdf-viewer-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: white;
}

@media (max-width: 768px) {
    .pdf-viewer-modal .pdf-viewer-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        max-width: 100vw;
    }

    .pdf-viewer-title {
        font-size: 20px;
        padding: 20px 60px 15px 20px;
    }

    .pdf-viewer-container {
        padding: 10px;
    }
}
