@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-cyan: #00c6ff;
    --primary-blue: #0072ff;
    --primary-gold: #ffd700;
    --primary-dark: #003087;
    --bg-light: #f8f9ff;
    --white: #ffffff;
    --dark: #1a1a2e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 8px 32px rgba(0, 198, 255, 0.1);
    --shadow-md: 0 20px 60px rgba(0, 198, 255, 0.15);
    --shadow-lg: 0 30px 80px rgba(0, 198, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    --gradient-gold: linear-gradient(135deg, var(--primary-gold) 0%, #ffed4e 100%);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    overflow-x: hidden;
    background: var(--bg-light);
}

/* ===============================
     ULTRA-MODERN HEADER
================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 10000;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: 1.4rem;
}

/* 🔥 MODERN HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10001;
    transition: var(--transition-fast);
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-fast);
    position: relative;
    letter-spacing: 0.02em;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition-fast);
    z-index: -1;
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cta-btn {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 0.875rem 2.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: var(--transition-fast);
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ===============================
     HERO - GLASSMORPHISM 2.0
================================ */
.hero {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120,119,198,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,119,198,0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120,219,255,0.3) 0%, transparent 50%),
        url('https://content.jdmagicbox.com/comp/guntur/j6/9999px863.x863.190315132656.w5j6/catalogue/sai-dental-care-gorantla-guntur-hospitals-14oahszlls.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(0,198,255,0.6) 0%, rgba(0,114,255,0.4) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, white 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: slideInUp 1s 0.2s forwards;
}

.hero-content p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    opacity: 0;
    animation: slideInUp 1s 0.4s forwards;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideInUp 1s 0.6s forwards;
}

.btn {
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    min-height: 56px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255,215,0,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}

/* ===============================
     SECTIONS & CARDS
================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

section {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255,215,0,0.4);
}

/* Services Grid */
.services {
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,198,255,0.1);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-20px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-cyan);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

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

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
}

/* About Section */
.about {
    background: var(--white);
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(0,198,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(0,198,255,0.1);
}

.stat-number {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

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

.testimonial {
    background: var(--glass-bg);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
    font-weight: 200;
}

.testimonial:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,0.3);
}

.stars {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.testimonial-author {
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-top: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-gold);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

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

/* Footer */
footer {
    background: var(--dark);
    color: #b0b0b0;
    padding: 5rem 0 2rem;
    position: relative;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-section a {
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

/* ... (previous :root and base styles remain the same) ... */

/* ===============================
   PERFECT RESPONSIVE SYSTEM
================================ */

/* Desktop XL (1400px+) - Default styles already optimized */

/* Desktop Large (1200px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    nav {
        padding: 1rem 2rem;
    }
}

/* Laptop Large (1024px - 1199px) */
@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .about-content {
        gap: 4rem;
    }
}

/* Tablet Landscape (900px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 1.75rem;
    }
    
    nav {
        padding: 1rem 1.75rem;
    }
    
    .hero-content h1 {
        letter-spacing: -0.02em;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet Portrait (768px - 899px) */
@media (max-width: 899px) {
    /* 🔥 MODERN SLIDE-IN MOBILE MENU */
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        /* Hidden off-screen by default */
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 340px;
        max-width: 90vw;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 120px 2.5rem 2rem;
        gap: 0;
        box-shadow: -20px 0 60px rgba(0,0,0,0.15);
        transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid rgba(0,198,255,0.2);
        z-index: 10001;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 1.25rem 0;
        font-size: 1.15rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(0,198,255,0.1);
        text-align: left;
    }
    
    .nav-links a:hover {
        padding-left: 1.5rem;
        background: rgba(0,198,255,0.1);
    }
    
    .cta-btn {
        margin-top: 2rem;
        width: 100%;
        text-align: center;
        padding: 1.25rem;
    }
    
    /* Hero */
    .hero {
        padding-top: 110px;
        min-height: 90vh;
        background-attachment: scroll;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Grids */
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    section {
        padding: 100px 0;
    }
    
    /* WhatsApp */
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 56px;
        height: 56px;
    }
}

/* Mobile Landscape (600px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }
    
    nav {
        padding: 0.875rem 1.5rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 100px 1rem 60px;
        min-height: 85vh;
    }
    
    .section-title {
        margin-bottom: 3.5rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
}

/* Mobile Portrait Large (480px - 599px) */
@media (max-width: 599px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-content p {
        font-size: 1.15rem;
    }
    
    .services-grid,
    .testimonials-grid {
        gap: 1.75rem;
    }
    
    .service-card,
    .testimonial {
        padding: 2rem 1.75rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

/* Mobile Portrait (360px - 479px) */
@media (max-width: 479px) {
    body {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    nav {
        padding: 0.75rem 1.25rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hamburger {
        width: 24px;
        height: 20px;
    }
    
    .hero {
        padding: 95px 1rem 50px;
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-content p {
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 2.75rem;
    }
    
    .service-card,
    .testimonial {
        padding: 1.75rem 1.5rem;
    }
    
    .about-stats .stat {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    /* Footer */
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.125rem;
        justify-content: center;
    }
}

/* Small Mobile (320px and below) */
@media (max-width: 359px) {
    .nav-links {
        width: 100vw;
        right: -100vw;
        padding: 120px 1.75rem 2rem;
    }
    
    .hero {
        padding: 90px 1rem 40px;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card,
    .testimonial {
        border-width: 0.5px;
    }
    
    header {
        backdrop-filter: blur(40px);
    }
}

/* Landscape Mobile Fix */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .nav-links {
        height: 100vh;
        padding-top: 80px;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .nav-links {
        transition: none;
    }
}

/* Focus Visible for Keyboard Navigation */
@media (pointer: coarse) {
    .btn:focus-visible,
    .nav-links a:focus-visible,
    .hamburger:focus-visible {
        outline: 2px solid var(--primary-cyan);
        outline-offset: 2px;
    }
}