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

:root {
    --primary-color: #409EFF;
    --secondary-color: #2c3e50;
    --accent-color: #3C8067;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

section {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===================================
   Header Styles
   =================================== */
.header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

.logo-icon {
    width: 60px;
    height: auto;
    transition: var(--transition);
}

.logo-icon:hover {
    transform: rotate(360deg) scale(1.1);
}

.brand-section {
    text-align: center;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
}

.contact-info {
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.contact-info a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-info a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-info a:hover::after {
    transform: scaleX(1);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

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

.hero-text {
    color: var(--bg-white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg-effect {
    position: absolute;
    width: 100%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-dentist {
    position: relative;
    z-index: 2;
    max-width: 400px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

/* Testimonial Card */
.testimonial-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.star {
    color: #FFD700;
    font-size: 1.5rem;
    margin: 0 2px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.testimonial-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 100px 0;
    background-color: var(--bg-white);
}

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

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.section-label {
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.3;
}

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

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

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

.service-card {
    background: var(--bg-white);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    transition: var(--transition);
}

.service-card:hover .service-icon img {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ===================================
   Clinic Tour Section
   =================================== */
.clinic-tour {
    padding: 100px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.tour-item {
    transition: var(--transition);
}

.tour-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    position: relative;
}

.tour-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

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

.tour-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.tour-item:hover .tour-image::after {
    opacity: 1;
}

.tour-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    text-align: center;
}

.contact .section-title {
    color: var(--bg-white);
    margin-bottom: 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.contact-info-box {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.contact-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.contact-subheading {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-details {
    font-size: 1.2rem;
    line-height: 2;
}

.contact-details strong {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
}

.contact-details a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-details a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-details a::before {
    content: '📞';
    margin-right: 8px;
    font-size: 1.2em;
}

.contact-image img {
    max-width: 400px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--bg-white);
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-copyright {
    font-size: 0.95rem;
}

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

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

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 1s ease;
}

.animate-fade-up {
    animation: fadeUp 1s ease;
}

.animate-slide-left {
    animation: slideLeft 1s ease;
}

.animate-slide-right {
    animation: slideRight 1s ease;
}

.animate-fade-down {
    animation: fadeDown 1s ease;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        justify-items: center;
    }

    .logo-section {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .logo-icon {
        margin: 0 auto;
    }

    .brand-section {
        width: 100%;
    }

    .contact-info {
        text-align: center;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

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

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo-section {
        margin-bottom: 10px;
    }

    .logo-icon {
        width: 55px;
    }

    .brand-name {
        font-size: 1.5rem;
        word-break: break-word;
    }

    .hero-title {
        font-size: 2rem;
        word-break: break-word;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-content {
        gap: 30px;
    }

    .hero {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        word-break: break-word;
        hyphens: auto;
    }

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

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

    .tour-image img {
        height: 300px;
    }

    .about-content {
        gap: 30px;
    }

    .contact-info a,
    .contact-details a {
        font-size: 0.95rem;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header {
        padding: 15px 0;
    }

    .header-content {
        gap: 15px;
    }

    .logo-section {
        margin-bottom: 5px;
    }

    .logo-icon {
        width: 50px;
    }

    .brand-name {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }

    .contact-info {
        font-size: 0.85rem;
    }

    .hero {
        padding: 40px 0;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-content {
        gap: 20px;
    }

    .hero-dentist {
        max-width: 280px;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 10px;
    }

    .section-label {
        font-size: 0.8rem;
    }

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

    .service-card {
        padding: 30px 15px;
    }

    .testimonial-card {
        padding: 20px;
        margin: 0 10px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .about {
        padding: 60px 0;
    }

    .about-description {
        font-size: 0.95rem;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-content {
        gap: 40px;
        padding: 0 10px;
    }

    .contact-info-box {
        padding: 0 5px;
    }

    .contact-heading {
        font-size: 1.3rem;
        line-height: 1.3;
        word-break: break-word;
        padding-right: 10px;
    }

    .contact-subheading {
        font-size: 0.95rem;
        word-break: break-word;
        padding-right: 10px;
    }

    .contact-details {
        font-size: 1rem;
    }

    .contact-details strong {
        font-size: 1.3rem;
    }

    .contact-details a {
        padding: 3px 8px;
        font-size: 0.9rem;
    }

    .tour-grid,
    .services-grid {
        gap: 20px;
    }

    .footer {
        padding: 30px 0;
        font-size: 0.9rem;
    }
}

/* ===================================
   Scroll Animations (triggered by JS)
   =================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}
