/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reset navigation completely */
ul, li, a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Specific reset for nav elements */
.nav-menu, .nav-menu *, .nav-link, .nav-link * {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* Theme Variables */
:root {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient-2: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #1e293b;
    --footer-text: #cbd5e1;
    --code-bg: #f1f5f9;
    --hover-bg: #f8fafc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient-2: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --border-color: #334155;
    --card-bg: #1e293b;
    --header-bg: rgba(15, 23, 42, 0.95);
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --code-bg: #1e293b;
    --hover-bg: #334155;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg) !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

/* Force header background consistency */
[data-theme="dark"] .header {
    background: var(--header-bg) !important;
}

[data-theme="light"] .header {
    background: var(--header-bg) !important;
}

.navbar {
    padding: 1rem 0;
}

 .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    background: transparent !important;
}

.nav-menu li {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    list-style: none !important;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    background: none !important;
    background-image: none !important;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-primary);
    background: none !important;
    background-image: none !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--accent-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero section */
.hero {
    background: var(--accent-gradient);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.medical-icon {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.medical-icon i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.stat p {
    opacity: 0.9;
    font-weight: 500;
}

/* Services section */
.services {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

/* Fix services grid overflow on small screens */
@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin: 2rem 0 0 0;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        max-width: 100%;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* About section */
.about {
    padding: 100px 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.feature span {
    font-weight: 500;
    color: var(--text-primary);
}

.about-image {
    display: flex;
    justify-content: center;
}

.lab-illustration {
    width: 400px;
    height: 400px;
    background: var(--accent-gradient-2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.lab-illustration i {
    font-size: 10rem;
    color: white;
}

/* Contact section */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
}

.footer-section .logo {
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--footer-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--footer-text);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.contact-item,
.feature {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .medical-icon {
        width: 250px;
        height: 250px;
    }
    
    .medical-icon i {
        font-size: 6rem;
    }
    
    .lab-illustration {
        width: 300px;
        height: 300px;
    }
    
    .lab-illustration i {
        font-size: 8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Medium small phones (<=414px) - iPhone Plus sizes */
@media (max-width: 414px) {
    .hero-title { font-size: 1.9rem; }
    .hero-description { font-size: 1rem; line-height: 1.6; }
    .service-card { padding: 1.8rem; }
}

/* Small phones (<=375px) - iPhone SE and similar */
@media (max-width: 375px) {
    .hero-title { font-size: 1.7rem; }
    .hero-description { font-size: 0.9rem; line-height: 1.5; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .service-card { padding: 1.5rem; }
    .section-title { font-size: 1.9rem; }
}

/* Extra small phones (<=360px) */
@media (max-width: 360px) {
    .logo span { font-size: 0.95rem; }
    .hero-title { font-size: 1.6rem; }
    .hero-description { font-size: 0.85rem; line-height: 1.4; }
    .service-card { padding: 1.5rem; }
    .popup-content { 
        padding: clamp(1rem, 3vw, 1.5rem);
        width: min(96vw, 400px);
        max-width: 96vw;
        max-height: 92vh;
    }
    .discount-badge { width: 85px; height: 85px; }
    .discount-value { font-size: 1.4rem; }
    .discount-text { font-size: 0.8rem; }
    .discount-title { font-size: 0.9rem; }
    .whatsapp-instruction { font-size: 0.75rem; }
    .whatsapp-number { font-size: 0.9rem; }
    .popup-cta { font-size: 0.9rem; padding: 0.8rem 1rem; }
    .popup-header h2 { font-size: 1.2rem; }
    .discount-code { font-size: 0.8rem; padding: 0.8rem; }
}

/* Very small phones (<=320px) */
@media (max-width: 320px) {
    .container { padding: 0 12px; }
    .hero-title { font-size: 1.6rem; }
    .section-title { font-size: 1.6rem; }
    .discount-badge { width: 80px; height: 80px; }
    .popup-content { padding: 1rem; }
    .discount-code { font-size: 0.85rem; padding: 0.8rem 0.8rem; }
    .copy-button { right: 6px; width: 32px; height: 32px; }
    
    /* Fix logo text cramping */
    .logo span {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    .logo {
        gap: 6px;
    }
    .logo i {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .medical-icon {
        width: 200px;
        height: 200px;
    }
    
    .medical-icon i {
        font-size: 4rem;
    }
    
    .lab-illustration {
        width: 250px;
        height: 250px;
    }
    
    .lab-illustration i {
        font-size: 6rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .logo span {
        font-size: 1rem;
    }
}

/* Smooth scrolling for older browsers */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.service-card:hover .service-icon {
    transform: scale(1.1);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

/* Theme Toggle Styles */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-gradient);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    border: 3px solid var(--bg-primary);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Theme-specific adjustments */
[data-theme="dark"] .hero {
    opacity: 0.95;
}

/* Discount Popup Styles */
/* Ensure overlay covers under fixed header on mobile */
.header { position: fixed; }
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.discount-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discount-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-content {
    background: var(--card-bg);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: min(90vw, 550px);
    max-width: 95vw;
    max-height: 95vh;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.popup-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.popup-close:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
}

.popup-close i {
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.popup-close:hover i {
    color: white;
}

.popup-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.popup-icon i {
    font-size: 2.5rem;
    color: white;
}

.popup-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.popup-body {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.discount-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.discount-badge.routine {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.discount-badge.special {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.discount-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

.discount-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    z-index: 1;
    position: relative;
}

.discount-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    z-index: 1;
    position: relative;
}

.discount-title {
    margin: 1rem 0 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.discount-divider {
    display: inline-block;
    font-size: 2rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin: 0 1rem;
    vertical-align: middle;
}

.popup-footer {
    position: relative;
    z-index: 1;
}

.discount-code {
    background: var(--bg-secondary);
    border: 2px dashed var(--accent-primary);
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    position: relative;
}

.discount-code i {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.discount-code span {
    color: var(--text-secondary);
}

.discount-code strong {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-left: 0.5rem;
    letter-spacing: 1px;
}

.popup-cta {
    width: 100%;
    padding: 1.2rem 2rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.4);
}

.popup-cta i {
    transition: transform 0.3s ease;
}

.popup-cta:hover i {
    transform: translateX(5px);
}

/* Copy Button Styles */
.copy-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-primary);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.copy-button:hover {
    background: var(--accent-secondary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.copy-button:active {
    transform: translateY(-50%) scale(0.95);
}

.copy-button i {
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.copy-button.copied {
    background: #10b981;
}

.copy-button.copied i::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Tooltip for copy button */
.copy-button::after {
    content: "Copy Code";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.copy-button:hover::after {
    opacity: 1;
    visibility: visible;
}

.copy-button.copied::after {
    content: "Copied!";
}

/* WhatsApp Section Styles */
.whatsapp-section {
    background: var(--bg-tertiary);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.whatsapp-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-logo i {
    font-size: 1.8rem;
    color: white;
}

.whatsapp-text {
    flex: 1;
    text-align: left;
}

.whatsapp-instruction {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.3rem 0;
    line-height: 1.4;
}

.whatsapp-number {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin: 0;
}

/* Adjust coupon code positioning */
.discount-code {
    padding-right: 50px; /* Make room for copy button */
}

/* Mobile responsive for WhatsApp section */
@media (max-width: 480px) {
    .whatsapp-section {
        padding: 0.8rem;
    }
    
    .whatsapp-content {
        gap: 0.8rem;
    }
    
    .whatsapp-logo {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-logo i {
        font-size: 1.5rem;
    }
    
    .whatsapp-instruction {
        font-size: 0.8rem;
    }
    
    .whatsapp-number {
        font-size: 1rem;
    }
}

/* Responsive Popup Styles */
@media (max-width: 768px) {
    .popup-content {
        padding: 2rem;
        width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .discount-badge {
        width: 100px;
        height: 100px;
        margin: 0 0.5rem;
    }
    
    .discount-value {
        font-size: 2rem;
    }
    
    .discount-title {
        font-size: 1rem;
        margin: 0.5rem 0 1.5rem;
    }
    
    .popup-icon {
        width: 60px;
        height: 60px;
    }
    
    .popup-icon i {
        font-size: 2rem;
    }
}

/* Landscape/Horizontal Mobile Orientation Fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .popup-content {
        padding: 1.5rem;
        width: 90vw;
        max-width: 600px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .popup-header {
        margin-bottom: 1rem;
    }
    
    .popup-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .popup-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.5rem;
    }
    
    .popup-icon i {
        font-size: 1.5rem;
    }
    
    .popup-body {
        margin-bottom: 1.5rem;
    }
    
    .discount-badge {
        width: 80px;
        height: 80px;
        margin: 0 0.3rem;
    }
    
    .discount-value {
        font-size: 1.5rem;
    }
    
    .discount-text {
        font-size: 0.8rem;
    }
    
    .discount-title {
        font-size: 0.9rem;
        margin: 0.3rem 0 1rem;
    }
    
    .discount-divider {
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .whatsapp-section {
        padding: 0.8rem;
    }
    
    .whatsapp-logo {
        width: 35px;
        height: 35px;
    }
    
    .whatsapp-logo i {
        font-size: 1.3rem;
    }
    
    .whatsapp-instruction {
        font-size: 0.75rem;
    }
    
    .whatsapp-number {
        font-size: 0.9rem;
    }
    
    .popup-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 1.5rem;
    }
    
    .popup-body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .discount-badge {
        margin: 0.5rem 0;
    }
    
    .discount-divider {
        margin: 0.5rem 0;
    }
    
    .discount-code {
        font-size: 0.9rem;
        padding: 1rem;
        flex-wrap: wrap;
        text-align: center;
    }
    
    .discount-code strong {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .popup-cta {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

/* Ensure mobile menu uses theme variables in all cases */
@media (max-width: 768px) {
    .nav-menu {
        background: var(--bg-primary) !important;
        border-top: 1px solid var(--border-color) !important;
    }
    
    .nav-menu .nav-link {
        color: var(--text-primary) !important;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--accent-primary) !important;
    }
    
    [data-theme="dark"] .nav-menu {
        background: var(--bg-primary) !important;
        border-top: 1px solid var(--border-color) !important;
    }
    
    [data-theme="dark"] .nav-menu .nav-link {
        color: var(--text-primary) !important;
    }
    
    [data-theme="dark"] .nav-menu .nav-link:hover {
        color: var(--accent-primary) !important;
    }
    
    [data-theme="light"] .nav-menu {
        background: var(--bg-primary) !important;
        border-top: 1px solid var(--border-color) !important;
    }
    
    [data-theme="light"] .nav-menu .nav-link {
        color: var(--text-primary) !important;
    }
    
    [data-theme="light"] .nav-menu .nav-link:hover {
        color: var(--accent-primary) !important;
    }
}

/* Additional animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.theme-toggle {
    animation: pulse 2s infinite;
}

/* Smooth theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Force navigation theme consistency - NO background for desktop */
.nav-menu,
[data-theme="dark"] .nav-menu,
[data-theme="light"] .nav-menu {
    background: transparent !important;
    border: none !important;
}

/* Remove any background/box from nav items completely */
.nav-menu li,
.nav-menu li:hover,
.nav-menu li:focus,
.nav-menu li:active {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.nav-link,
[data-theme="dark"] .nav-link,
[data-theme="light"] .nav-link {
    color: var(--text-primary) !important;
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.nav-link:hover,
[data-theme="dark"] .nav-link:hover,
[data-theme="light"] .nav-link:hover,
.nav-link:focus,
.nav-link:active {
    color: var(--accent-primary) !important;
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove tap highlight on mobile */
.nav-link { -webkit-tap-highlight-color: rgba(0,0,0,0); }

.hamburger span,
[data-theme="dark"] .hamburger span,
[data-theme="light"] .hamburger span {
    background: var(--text-primary) !important;
}

/* Header scrolled state */
.header.scrolled {
    background: var(--header-bg);
    box-shadow: var(--shadow-xl);
}

/* Mobile theme adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .theme-toggle i {
        font-size: 1.2rem;
    }
}

/* Additional Responsive Fixes */
@media (max-width: 768px) {
    /* Fix service cards on mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* Fix hero buttons on mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Fix form responsiveness */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Fix footer social links */
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    /* Smaller screens adjustments */
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Fix stat cards on small screens */
    .stat {
        padding: 1rem;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .stat p {
        font-size: 0.9rem;
    }
    
    /* Fix features list */
    .features {
        font-size: 0.9rem;
    }
    
    /* Fix contact items */
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
    }
    
    /* Better form inputs on mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Fix for horizontal scroll issues */
body {
    overflow-x: hidden;
}

.hero,
.services,
.about,
.contact,
.footer {
    overflow: hidden;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix text overflow issues */
.hero-title,
.section-title,
.service-card h3,
.footer-section h4 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-link,
    .btn,
    .popup-close,
    .social-links a,
    .whatsapp-logo,
    .copy-button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Fix z-index stacking */
.header {
    z-index: 1000;
}

.theme-toggle {
    z-index: 999;
}

.popup-overlay {
    z-index: 9998;
}

.discount-popup {
    z-index: 9999;
}

.notification {
    z-index: 10000;
}

/* Smooth animations on mobile */
@media (max-width: 768px) {
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) {
        .service-card:hover {
            transform: none;
        }
        
        .contact-item:hover .contact-icon {
            transform: none;
        }
        
        .social-links a:hover {
            transform: none;
        }
    }
}
