/* =========================================
   DENTAL SPA VIZAG - PREMIUM DESIGN SYSTEM
   ========================================= */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #0a4d8c; /* Sophisticated deep blue */
    --primary-light: #e6f0fa;
    --primary-hover: #083c6d;
    --secondary: #00b8d4; /* Vibrant cyan accent */
    --accent: #2196f3;
    
    --text-main: #1e293b; /* Dark slate */
    --text-muted: #64748b;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    
    --success: #10b981;
    --warning: #25d366; /* WhatsApp Green */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --section-pad: 5rem;
    --border-radius: 16px;
    --card-radius: 20px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 30px rgba(10, 77, 140, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 77, 140, 0.12);
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Zero horizontal scrolling */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

ul {
    list-style: none;
}

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

.text-highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.bg-light {
    background-color: var(--bg-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Scale */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 700px;
}
.section-header.center {
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn i {
    font-size: 1.1em;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(10, 77, 140, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(10, 77, 140, 0.3);
}

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

.btn-secondary:hover {
    background-color: #d1e3f8;
    transform: translateY(-2px);
}

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

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

.btn-warning {
    background-color: var(--warning);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-warning:hover {
    background-color: #1ebc59;
    transform: translateY(-2px);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* =========================================
   NAVIGATION (Sticky & Mobile)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.logo-highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.navbar.scrolled .nav-link {
    color: var(--text-main);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary);
    border-radius: 3px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    padding: 9rem 1.5rem 4rem 1.5rem;
    display: flex;
    align-items: center;
    background: var(--bg-gradient);
    overflow: hidden;
}

.hero > .hero-content, .hero > .hero-image-container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
    padding-left: max(1.5rem, calc((100vw - 1200px) / 2));
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.trust-badge i {
    color: #f59e0b;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.features-row span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-row i {
    color: var(--success);
}

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

.blob-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

.hero-img {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 500px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-lg);
    animation: morph 8s ease-in-out infinite both alternate;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.floating-badge {
    position: absolute;
    bottom: 10%;
    left: 0;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.badge-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.badge-text strong {
    display: block;
    color: var(--text-main);
    font-size: 1.1rem;
}
.badge-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
    background: var(--primary);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
}

.trust-heading {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e6f0fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b0d4f5;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   SERVICES
   ========================================= */
.services {
    padding: var(--section-pad) 0;
}

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

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-desc {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.service-link:hover {
    gap: 0.8rem;
    color: var(--primary-hover);
}

/* =========================================
   ABOUT US
   ========================================= */
.about {
    padding: var(--section-pad) 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--card-radius);
    aspect-ratio: 4/5;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--card-radius);
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.about-text {
    margin-bottom: 1.5rem;
}

/* =========================================
   WHY CHOOSE US
   ========================================= */
.features {
    padding: var(--section-pad) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
}

.f-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery {
    padding: var(--section-pad) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
    padding: var(--section-pad) 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--card-radius);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-light);
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.r-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.r-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.stars i {
    color: #f59e0b;
    font-size: 0.8rem;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, #00b8d4 100%);
    padding: 5rem 1.5rem;
    text-align: center;
    color: white;
}

.cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    color: #e6f0fa;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: #0f172a; /* Dark sleek color */
    color: white;
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

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

.footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
}

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

.footer-contact ul li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #94a3b8;
    align-items: flex-start;
}

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

.footer-contact a {
    color: #94a3b8;
}
.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--warning);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   ANIMATIONS (Scroll Reveal)
   ========================================= */
.section-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE (MOBILE FIRST -> SCALING DOWN)
   ========================================= */

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .about-container {
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-content {
        padding-left: 0;
        margin-bottom: 3rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .features-row {
        justify-content: center;
    }
    .about-container {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    
    .section-pad {
        padding: 4rem 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        justify-content: center;
        padding: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
        width: 100%;
    }

    .nav-link {
        font-size: 1.5rem;
    }
    
    .cta-nav {
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .trust-heading {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons-wrapper {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero {
        padding-top: 6rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .features-row {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-badge {
        bottom: 5%;
        padding: 0.5rem 1rem;
        border-radius: 12px;
    }
    .badge-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .badge-text strong {
        font-size: 0.9rem;
    }
    .badge-text span {
        font-size: 0.75rem;
    }
}
