/* Mahtab.in - External CSS File */

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #1e40af 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease-out;
}
.hover-scale:hover {
    transform: scale(1.03);
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Cursor Pointer */
.cursor-pointer {
    cursor: pointer;
}

/* Search Styles */
.search-container {
    position: relative;
    width: 240px;
}
.search-input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}
.search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-result-item:hover {
    background-color: #f9fafb;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-highlight {
    background-color: #dbeafe;
    font-weight: bold;
}

/* Mobile Search Styles */
.mobile-search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.mobile-search-container.active {
    transform: translateY(0);
}
.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.mobile-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    outline: none;
    font-size: 1rem;
    margin-bottom: 20px;
}
.mobile-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 4rem;
}
.timeline-item:before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}
.timeline-dot {
    position: absolute;
    left: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1e40af;
    top: 5px;
}
.timeline-year {
    display: inline-block;
    background: #1e40af;
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Service Badge */
.service-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Pagination Button */
.pagination-button {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* File Upload Styles */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}
.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}
.file-upload:hover .file-upload-label {
    border-color: #6366f1;
    background-color: #f0f5ff;
}
.file-name {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}
.file-upload-icon {
    color: #6b7280;
    font-size: 1.25rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
}
.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button Styles */
.btn-primary {
    background-color: #1e40af;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.btn-secondary {
    background-color: transparent;
    color: #1e40af;
    padding: 12px 24px;
    border: 2px solid #1e40af;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background-color: #1e40af;
    color: white;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}
.slide-up {
    animation: slideUp 1s ease-in-out;
}
.slide-left {
    animation: slideLeft 1s ease-in-out;
}
.slide-right {
    animation: slideRight 1s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        width: 100%;
    }
    .mobile-search-input {
        padding: 12px 16px 12px 40px;
    }
    .timeline-item {
        padding-left: 60px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-item:before {
        left: 25px;
    }
}

/* === Auto-merged common inline styles === */
.gradient-text {
    background: linear-gradient(90deg, #1e40af 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hover-scale {
    transition: transform 0.3s ease-out;
}
.hover-scale:hover {
    transform: scale(1.03);
}
.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}
.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}
.visual-card {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1e40af;
    font-weight: 500;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}
.visual-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    animation: spin 10s linear infinite;
}
@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}
.visual-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #1e40af;
}
.visual-text {
    font-size: 1.2rem;
    line-height: 1.6;
}
#backToTopBtn {
    transition: opacity 0.3s, visibility 0.3s;
}
.hidden-btn {
    opacity: 0;
    visibility: hidden;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */

/* Ensure content doesn't go under fixed navbar */
body > section:first-of-type,
section:first-of-type,
.pt-16 { padding-top: 4rem; }

/* Fix WhatsApp button not overlapping content on small screens */
@media (max-width: 640px) {
    /* WhatsApp button - smaller on mobile */
    a[href*="wa.me"] {
        width: 3rem !important;
        height: 3rem !important;
        bottom: 1rem !important;
        right: 1rem !important;
    }
    /* Back to top button */
    #backToTopBtn {
        bottom: 5rem !important;
        right: 1rem !important;
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    /* Tables responsive */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    /* Cards full width on mobile */
    .grid {
        gap: 1rem;
    }
}

/* Fix sections having proper top padding because of fixed navbar */
section.pt-32 { padding-top: 8rem; }
section.pt-24 { padding-top: 6rem; }

/* Mobile menu full screen fix */
#mobileMenu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 998;
}

/* Ensure images don't overflow on mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Fix long text breaking layout on mobile */
@media (max-width: 768px) {
    /* Fix font sizes gently - don't override tailwind's responsive classes */
    .text-5xl { font-size: 2rem !important; line-height: 2.5rem; }
    .text-6xl { font-size: 2.25rem !important; line-height: 2.75rem; }
    /* Fix buttons from overflowing - make them wrap properly */
    .flex-col { flex-direction: column !important; }
    a, button {
        word-break: break-word;
        white-space: normal;
    }
}


/* ===== PREMIUM BUTTON STYLES ===== */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1e40af 0%, #6366f1 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-whatsapp:hover::before { left: 100%; }
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.5);
}

/* Fix mobile button overflow */
@media (max-width: 640px) {
    .btn-whatsapp {
        width: 100%;
        text-align: center;
        white-space: normal;
        padding: 0.875rem 1.25rem;
    }
    /* Fix buttons inside sections */
    section a[href*="wa.me"],
    section a[class*="px-8"],
    section a[class*="bg-primary"],
    section a[class*="bg-white"] {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        white-space: normal;
    }
    /* Only stack button groups, NOT icon/nav rows */
    .btn-group.flex {
        flex-direction: column;
    }
}

/* Premium card hover effects */
.card-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}
.card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Premium section transitions */
section { transition: opacity 0.3s ease; }

/* ===== PREMIUM ENHANCEMENTS ===== */

/* Navbar scroll shadow enhancement */
#navbar {
    transition: all 0.3s ease;
}
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Premium hero gradient overlay fix */
.bg-gradient-to-br.from-blue-50 {
    position: relative;
}

/* Animated underline for nav links */
nav a .underline-anim {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #1e40af, #6366f1);
    transition: width 0.3s ease;
}
nav a:hover .underline-anim { width: 100%; }

/* Premium WhatsApp floating button */
a[href*="wa.me"].fixed {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5) !important;
    animation: waBounce 2s ease-in-out infinite;
}
@keyframes waBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.05); }
}

/* Fix treatment page CTA section button overflow on mobile */
@media (max-width: 640px) {
    .py-20.bg-gradient-to-r a,
    .py-16.bg-gradient-to-r a,
    section[class*="gradient"] a[class*="px-8"] {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 auto;
        box-sizing: border-box;
    }
    /* Fix the button container */

}

/* Premium card styles */
.bg-white.rounded-xl, .bg-white.rounded-lg {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bg-white.rounded-xl:hover, .bg-white.rounded-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(30, 64, 175, 0.12);
}

/* Section fade-in animation */
@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium gradient text enhancement */
.gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #6366f1 60%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ===== CRITICAL FIXES ===== */

/* Fix: AOS animated sections with overflow-hidden clipping button text */
section.overflow-hidden .aos-animate,
section.overflow-hidden a,
section.overflow-hidden button {
    overflow: visible;
}

/* Fix: Buttons inside overflow-hidden sections - ensure full text visible */
section[class*="overflow-hidden"] a[class*="px-"],
section[class*="overflow-hidden"] a[class*="btn"] {
    position: relative;
    z-index: 1;
    overflow: visible !important;
    white-space: nowrap;
}

/* Fix: Social icons in footer stay horizontal */
.flex.space-x-4 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
}

/* Fix: Mobile menu nav links stay full width */
#mobileMenu nav a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    width: 100%;
}
#mobileMenu nav a span,
#mobileMenu nav a i {
    display: inline-block !important;
}

/* Fix: Button text overflow on mobile - don't clip */
a[href*="wa.me"],
a[class*="bg-primary"],
a[class*="bg-white"][class*="text-blue"] {
    overflow: visible !important;
    white-space: normal;
    word-break: normal;
}

/* Fix: Section headings overflow on mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
        line-height: 2.25rem !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    .text-4xl { font-size: 1.75rem !important; }
    .text-3xl { font-size: 1.5rem !important; }
    /* Buttons full width stacked on very small screens */
    .flex-col.sm\:flex-row {
        flex-direction: column !important;
    }
    .flex-col.sm\:flex-row a,
    .flex-col.sm\:flex-row button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
