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

:root {
    /* Color Palette */
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #3385d6;
    --secondary-color: #00a8e8;
    --accent-color: #4CAF50;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #e9ecef;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --header-height: 70px;
    --section-padding: 80px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

/* ===========================
   Header / Navigation
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo .logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2942 50%, #0d47a1 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(248, 249, 250, 0.1), transparent);
}

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

.hero-content {
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-item h3 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.hero-image-wrapper {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 80px rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 8s linear infinite;
}

.hero-image-wrapper .hero-logo {
    width: 280px;
    height: 280px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* ===========================
   Section Common Styles
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   Services Section
   =========================== */
.services {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

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

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid var(--border-color);
    cursor: pointer;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--text-white);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ===========================
   About Section
   =========================== */
.about {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

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

.about-image {
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #0a1628, #1a2942);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border: 5px solid rgba(0, 102, 204, 0.2);
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

.about-image-wrapper .about-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

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

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.about-dentist {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
}

.about-dentist h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.dentist-title {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 10px;
}

.dentist-credentials {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

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

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--text-white);
    font-size: 1.25rem;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.info-text p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.info-text a {
    color: var(--primary-color);
}

.info-text a:hover {
    text-decoration: underline;
}

.social-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.social-icon:hover i {
    color: var(--text-white);
}

/* ===========================
   Contact Form
   =========================== */
.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-fast);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.btn-loading {
    display: none;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid #c3e6cb;
}

.form-success i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.form-success p {
    margin: 0;
    font-size: 1rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo .footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

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

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

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

.footer-social i {
    color: var(--text-white);
}

/* ===========================
   Scroll to Top Button
   =========================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    z-index: 999;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet (768px and below) */
@media screen and (max-width: 968px) {
    :root {
        --header-height: 60px;
        --section-padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        padding: 80px 30px 30px;
        transition: var(--transition-normal);
        z-index: 100;
    }
    
    .nav-menu.show-menu {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .nav-toggle,
    .nav-close {
        display: block;
    }
    
    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .hero-image-wrapper .hero-logo {
        width: 220px;
        height: 220px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text .section-header {
        text-align: center;
    }
    
    .about-image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .about-image-wrapper .about-logo {
        width: 200px;
        height: 200px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Mobile (576px and below) */
@media screen and (max-width: 576px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: calc(var(--header-height) + 50px) 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .hero-image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .hero-image-wrapper .hero-logo {
        width: 180px;
        height: 180px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .about-image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .about-image-wrapper .about-logo {
        width: 160px;
        height: 160px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .info-items {
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
