/* Modern Medical Clinic Design System 2025 - WOW Factor Edition */

/* ===== APPOINTMENT PAGE STYLES ===== */

/* Appointment Page Hero Section */
.appointment-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    overflow: hidden;
}

.appointment-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.appointment-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.appointment-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.appointment-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.appointment-hero .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

/* Appointment Form Styling */
.appointment-form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.appointment-form-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.appointment-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.appointment-form-body {
    padding: 2rem;
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sidebar-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.sidebar-card-body {
    padding: 1.5rem;
}

/* Form Elements */
.appointment-form-container .form-group {
    margin-bottom: 1.5rem;
}

.appointment-form-container .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.appointment-form-container .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.appointment-form-container .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.appointment-form-container .form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.appointment-form-container .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.appointment-form-container .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    resize: vertical;
    min-height: 120px;
}

.appointment-form-container .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Styling */
.btn-appointment {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-appointment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.appointment-form-container .success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Error Message */
.appointment-form-container .error-message {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Service Info Card */
.appointment-form-container .service-info-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Working Hours */
.sidebar-card .working-hours {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-card .working-hours:last-child {
    border-bottom: none;
}

/* Benefits List - Removed old styles, now using Bootstrap grid */

/* Emergency Contact */
.sidebar-card .emergency-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dc2626;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .appointment-hero .hero-content {
        padding: 40px 0;
    }

    .appointment-hero .hero-title {
        font-size: 2.5rem;
    }

    .appointment-form-body {
        padding: 1.5rem;
    }

    .sidebar-card-body {
        padding: 1rem;
    }
}

/* ===== MODERN BLOG DESIGN SYSTEM ===== */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.blog-hero--compact {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.9;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: white;
}

.hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-category,
.hero-date,
.hero-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin: 15px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-excerpt {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 700px;
    font-weight: 300;
}

.hero-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.hero-author .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.author-info {
    margin-right: 20px;
}

.author-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.article-stats {
    display: flex;
    gap: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.stat-item i {
    font-size: 16px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* Main Blog Layout */
.blog-main {
    background: #f8f9fa;
    padding: 80px 0;
    min-height: 100vh;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.featured-image {
    position: relative;
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-image:hover .image-overlay {
    opacity: 1;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.image-zoom {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-zoom:hover {
    background: white;
    transform: scale(1.1);
}

.image-zoom i {
    font-size: 20px;
    color: #333;
}

/* Article Body Typography */
.article-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 400;
    margin-bottom: 60px;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #1a202c;
    font-weight: 700;
    line-height: 1.3;
    margin: 50px 0 25px;
    position: relative;
}

.article-body h1 {
    font-size: 2.8rem;
    margin-top: 60px;
}
.article-body h2 {
    font-size: 2.3rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}
.article-body h3 {
    font-size: 1.9rem;
    color: #667eea;
}
.article-body h4 { font-size: 1.5rem; }
.article-body h5 { font-size: 1.3rem; }
.article-body h6 { font-size: 1.1rem; }

.article-body p {
    margin-bottom: 30px;
    text-align: justify;
    text-justify: inter-word;
}

.article-body p:first-of-type {
    font-size: 1.3rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 40px;
}

.article-body ul,
.article-body ol {
    margin: 30px 0;
    padding-right: 40px;
}

.article-body li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-body blockquote {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-right: 6px solid #667eea;
    padding: 40px;
    margin: 50px 0;
    border-radius: 16px;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.8;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article-body blockquote::before {
    content: '"';
    font-size: 6rem;
    color: #667eea;
    position: absolute;
    top: -20px;
    right: 30px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.article-body code {
    background: #f1f5f9;
    color: #e53e3e;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-body pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 30px;
    border-radius: 16px;
    overflow-x: auto;
    margin: 40px 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    line-height: 1.7;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.article-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Article Tags */
.article-tags {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-tags h4 {
    margin: 0 0 25px 0;
    color: #1a202c;
    font-size: 1.4rem;
    font-weight: 700;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Social Share */
.social-share {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    text-align: center;
}

.social-share h4 {
    margin: 0 0 30px 0;
    color: #1a202c;
    font-size: 1.4rem;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: white;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #4267b2 0%, #365899 100%);
    color: white;
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Article Actions */
.article-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    background: white;
    cursor: pointer;
    font-size: 1rem;
}

.like-btn {
    border-color: #e53e3e;
    color: #e53e3e;
}

.like-btn:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
}

.bookmark-btn {
    border-color: #3182ce;
    color: #3182ce;
}

.bookmark-btn:hover {
    background: #3182ce;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.3);
}

.share-btn {
    border-color: #38a169;
    color: #38a169;
}

.share-btn:hover {
    background: #38a169;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f7fafc;
}

.card-header h3 {
    margin: 0;
    color: #1a202c;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Author Card */
.author-profile {
    text-align: center;
}

.author-avatar.large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.author-details h4 {
    margin: 0 0 15px 0;
    color: #1a202c;
    font-size: 1.3rem;
    font-weight: 700;
}

.author-details p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 25px;
}

.author-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat .label {
    font-size: 0.9rem;
    color: #718096;
}

/* Popular Articles */
.popular-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f7fafc;
    transition: all 0.3s ease;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    background: #f7fafc;
    margin: 0 -20px;
    padding: 20px;
    border-radius: 12px;
}

.popular-image {
    width: 80px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-content {
    flex: 1;
}

.popular-content h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.popular-content h4 a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.popular-content h4 a:hover {
    color: #667eea;
}

.popular-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #718096;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-item a {
    display: block;
    padding: 10px 15px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    border-right: 3px solid transparent;
}

.toc-item a:hover {
    background: #f7fafc;
    color: #667eea;
    transform: translateX(3px);
    border-right-color: #667eea;
}

.toc-item a.active {
    background: #667eea;
    color: white;
    transform: translateX(5px);
    border-right-color: #4c51bf;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toc-h1 { margin-right: 0; }
.toc-h2 { margin-right: 15px; }
.toc-h3 { margin-right: 30px; }
.toc-h4 { margin-right: 45px; }

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 24px;
    padding: 60px;
    margin-top: 80px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comments-container {
    max-width: 800px;
    margin: 0 auto;
}

.comments-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #f7fafc;
}

.comments-header h2 {
    margin: 0 0 15px 0;
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
}

.comments-header p {
    color: #718096;
    font-size: 1.1rem;
    margin: 0;
}

/* Comment Form */
.comment-form-container {
    margin-bottom: 50px;
}

.comment-form {
    background: #f7fafc;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-info span {
    color: #2d3748;
    font-weight: 600;
}

.form-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-body textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    margin-top: 20px;
    text-align: left;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 40px;
    background: #f7fafc;
    border-radius: 20px;
    margin-bottom: 50px;
}

.login-prompt p {
    margin: 0;
    font-size: 1.1rem;
    color: #4a5568;
}

.login-prompt a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Comments List */
.comment-item {
    display: flex;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid #f7fafc;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.05rem;
}

.comment-date {
    color: #718096;
    font-size: 0.9rem;
}

.comment-text {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.comment-actions {
    display: flex;
    gap: 20px;
}

.comment-action {
    background: none;
    border: none;
    color: #718096;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-action:hover {
    color: #667eea;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-comments p {
    font-size: 1.1rem;
    margin: 0;
}

/* Related Articles */
.related-articles {
    background: #f7fafc;
    padding: 80px 0;
    margin-top: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin: 0 0 20px 0;
    color: #1a202c;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-header p {
    color: #718096;
    font-size: 1.2rem;
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .card-overlay {
    opacity: 1;
}

.article-card:hover .card-image img {
    transform: scale(1.1);
}

.read-more {
    background: white;
    color: #2d3748;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.date {
    color: #718096;
}

.card-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
}

.card-content h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content h3 a:hover {
    color: #667eea;
}

.card-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f7fafc;
}

.card-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #718096;
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #667eea;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-sidebar {
        order: -1;
    }

    .sidebar-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-excerpt {
        font-size: 1.2rem;
    }

    .hero-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .article-content {
        padding: 40px 30px;
    }

    .featured-image img {
        height: 300px;
    }

    .article-body {
        font-size: 1.1rem;
    }

    .comments-section {
        padding: 40px 30px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .article-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .article-content {
        padding: 30px 20px;
    }

    .comments-section {
        padding: 30px 20px;
    }

    .sidebar-card {
        padding: 25px 20px;
    }
}

/* ===== LIVE CHAT WIDGET STYLES ===== */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Chat Toggle Button */
.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    border: none;
    color: white;
    font-size: 24px;
    z-index: 10001;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

/* Chat Badge */
.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

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

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-info {
    flex: 1;
}

.chat-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.status {
    font-size: 12px;
    opacity: 0.9;
}

.status.online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ed573;
    border-radius: 50%;
    margin-left: 5px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 400px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Message Styles */
.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

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

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.bot-message {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bot-message .message-avatar {
    background: #e9ecef;
    color: #6c757d;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bot-message .message-content {
    background: white;
    color: #333;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.bot-message .message-time {
    color: #6c757d;
}

/* Typing Indicator */
.typing-indicator {
    align-self: flex-start;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-field {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 18px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
    max-height: 100px;
    min-height: 44px;
}

.chat-input-field:focus {
    border-color: #667eea;
}

.chat-input-field:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.chat-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick Reply Buttons */
.quick-replies {
    padding: 0 20px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    line-height: 1.2;
}

.quick-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .live-chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 100px);
        bottom: 80px;
        right: 0;
        border-radius: 15px 15px 0 0;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .chat-messages {
        min-height: 300px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-messages {
        padding: 15px;
        min-height: 250px;
    }

    .chat-input {
        padding: 12px 15px;
    }

    .quick-btn {
        font-size: 9px;
        padding: 5px 10px;
    }
}


/* ===== CSS VARIABLES ===== */
:root {
  /* Primary Colors - Medical & Professional */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Advanced Gradients - 2025 Edition */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #34d399 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-multi: linear-gradient(-45deg, var(--primary), var(--success), var(--accent), var(--primary));
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Enhanced Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Typography */
  --font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Advanced Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== SECONDARY HERO STYLES ===== */
.secondary-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gray-50);
}

.secondary-hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.secondary-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 0.05) 0%,
    rgba(16, 185, 129, 0.05) 50%,
    rgba(245, 158, 11, 0.05) 100%);
  animation: gradientShift 8s ease infinite;
}

.secondary-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  background-size: 300px 300px, 200px 200px, 400px 400px;
  animation: patternFloat 20s ease-in-out infinite;
}

.secondary-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  align-items: center;
  width: 100%;
}

.secondary-hero-text {
  max-width: 600px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: slideInUp 0.8s ease-out;
}

.page-badge i {
  font-size: 1.1em;
}

.page-title {
  margin-bottom: var(--space-lg);
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.title-main {
  display: block;
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.title-sub {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--gray-600);
  line-height: 1.3;
}

.page-description {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.page-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.secondary-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInRight 0.8s ease-out 0.3s both;
}

.page-icon-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-icon {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.page-icon:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-2xl);
}

.page-icon i {
  font-size: 3rem;
  color: var(--white);
}

.icon-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 2s ease-in-out infinite;
}

.page-scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--gray-500);
  animation: slideInUp 0.8s ease-out 0.8s both;
}

.page-scroll-indicator .scroll-text {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.page-scroll-indicator .scroll-arrow {
  animation: bounce 2s infinite;
}

.page-scroll-indicator .scroll-arrow i {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .secondary-hero {
    min-height: 50vh;
    padding: var(--space-lg) 0;
  }

  .secondary-hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .title-main {
    font-size: var(--font-size-3xl);
  }

  .title-sub {
    font-size: var(--font-size-lg);
  }

  .page-actions {
    justify-content: center;
  }

  .page-icon-container {
    width: 150px;
    height: 150px;
  }

  .page-icon {
    width: 100px;
    height: 100px;
  }

  .page-icon i {
    font-size: 2.5rem;
  }
}

/* ===== PAGE LOADER ANIMATION ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--gradient-multi);
  background-size: 400% 400%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: gradientShift 8s ease infinite, fadeOut 1s ease-out 2s forwards;
}

.page-loader::before {
  content: '';
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* ===== CONTENT REVEAL ANIMATION ===== */
.content-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: contentReveal 1s ease-out 2.5s forwards;
}

@keyframes contentReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md) 0;
  color: var(--gray-900);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--gray-600);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== ADVANCED NAVIGATION - GLASSMORPHISM ===== */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.25rem 0;
}

/* Scrolled State - Smaller Navigation */
.navbar-header.scrolled {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0.25rem 0;
  transform: translateY(0);
  animation: navbarShrink 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes navbarShrink {
  0% {
    transform: translateY(-100%);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-header.scrolled .navbar {
  padding: 0.5rem 0;
}

.navbar-header.scrolled .brand-icon {
  width: 35px;
  height: 35px;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-header.scrolled .brand-text h1 {
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-header.scrolled .brand-text span {
  font-size: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-header.scrolled .nav-link {
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-header.scrolled .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transitions for all navbar elements */
.navbar-header * {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
  padding: var(--space-sm) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.brand-text h1 {
  font-size: var(--font-size-lg);
  margin: 0;
  color: #1f2937;
}

.brand-text span {
  font-size: var(--font-size-sm);
  color: #6b7280;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link::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;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Scrolled state link colors */
.navbar-header.scrolled .nav-link {
  color: #374151;
}

.navbar-header.scrolled .nav-link:hover,
.navbar-header.scrolled .nav-link.active {
  color: white;
  background: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gray-700);
  margin: 2px 0;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-md);
  transform: translateY(-100%);
  transition: var(--transition);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-sm);
  text-decoration: none;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-actions {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ===== MAGNETIC BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-slow);
  font-size: var(--font-size-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

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

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

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

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
}

/* ===== HERO SECTION - STUNNING ANIMATIONS ===== */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-multi);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  animation: float 20s ease-in-out infinite;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 15s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation-delay: 10s;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  animation: textReveal 1s ease-out 0.4s both;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.hero-description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
  transition: var(--transition);
}

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

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  display: block;
  margin-bottom: var(--space-xs);
  background: linear-gradient(45deg, var(--white), rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 1s both;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 0.6s ease-out 0.6s both;
}

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

.hero-image {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-multi);
  background-size: 400% 400%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: -1;
  animation: gradientShift 8s ease infinite;
}

.hero-image:hover::before {
  opacity: 0.3;
}

.image-placeholder {
  text-align: center;
  color: var(--white);
}

.image-placeholder i {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
  opacity: 0.8;
  animation: pulse 2s ease-in-out infinite;
}

.image-placeholder span {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  text-align: center;
  z-index: 2;
  animation: fadeInUp 1s ease-out 3s both;
}

.scroll-text {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
  opacity: 0.8;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===== SECTIONS ===== */
.services-section,
.about-section,
.portfolio-section,
.testimonials-section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-md);
  color: var(--gray-900);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== SERVICES - 3D ANIMATIONS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-multi);
  background-size: 400% 400%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: -1;
  animation: gradientShift 8s ease infinite;
}

.service-card:hover {
  transform: translateY(-20px) rotateX(10deg) rotateY(5deg);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.1);
}

.service-card:hover::before {
  opacity: 0.3;
}

.service-card.featured {
  border: 2px solid var(--accent);
}

.featured-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--gradient-accent);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  animation: pulse 2s ease-in-out infinite;
}

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

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

.service-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
}

.service-features i {
  color: var(--success);
  font-size: 1.1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.service-link:hover {
  gap: var(--space-sm);
  transform: translateX(-5px);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--gray-50);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-text h2 {
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.about-text h3 {
  color: var(--gray-700);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
}

.doctor-credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--gray-700);
  transition: var(--transition);
}

.credential-item:hover {
  transform: translateX(10px);
}

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

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

.about-image .image-placeholder {
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-image .image-placeholder::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-multi);
  background-size: 400% 400%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: -1;
  animation: gradientShift 8s ease infinite;
}

.about-image .image-placeholder:hover::before {
  opacity: 0.3;
}

/* ===== PORTFOLIO - INTERACTIVE GALLERY ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  position: relative;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-multi);
  background-size: 400% 400%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: -1;
  animation: gradientShift 8s ease infinite;
}

.portfolio-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.portfolio-card:hover::before {
  opacity: 0.3;
}

.portfolio-card.featured {
  border: 2px solid var(--accent);
}

.portfolio-image {
  height: 250px;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.portfolio-image::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.6s;
}

.portfolio-card:hover .portfolio-image::before {
  left: 100%;
}

.portfolio-info {
  padding: var(--space-lg);
}

.portfolio-info h4 {
  margin-bottom: var(--space-xs);
  color: var(--gray-900);
}

.portfolio-info p {
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

.portfolio-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--success);
  font-weight: 600;
}

.portfolio-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ===== TESTIMONIALS - ADVANCED CAROUSEL ===== */
.testimonials-section {
  background: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

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

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

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.testimonial-content {
  margin-bottom: var(--space-lg);
}

.stars {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

.testimonial-card:hover .author-avatar {
  transform: scale(1.1);
}

.author-info h5 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--gray-900);
}

.author-info span {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

/* ===== CTA SECTION - MAGICAL ANIMATIONS ===== */
.cta-section {
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

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

.cta-section::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
  bottom: 20%;
  right: 15%;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
  animation: glowText 2s ease-in-out infinite alternate;
}

@keyframes glowText {
  from { text-shadow: 0 0 20px rgba(255,255,255,0.5); }
  to { text-shadow: 0 0 30px rgba(255,255,255,0.8); }
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg) 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-brand i {
  font-size: 1.5rem;
  color: var(--primary-light);
}

.footer-brand h4 {
  color: var(--white);
  margin: 0;
}

.footer-section h5 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-section p {
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--gray-400);
  transition: var(--transition);
}

.contact-item:hover {
  color: var(--white);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--primary-light);
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--gray-400);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    width: 300px;
    height: 300px;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .services-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .service-card,
  .portfolio-card,
  .testimonial-card {
    padding: var(--space-lg);
  }
}

/* ===== ADVANCED ANIMATIONS ===== */
/* ===== ADVANCED ANIMATIONS - 2025 EDITION ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes contentReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes glowText {
  from { text-shadow: 0 0 20px rgba(255,255,255,0.5); }
  to { text-shadow: 0 0 30px rgba(255,255,255,0.8); }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.text-reveal {
  animation: textReveal 2s ease-out;
}

.slide-in-left {
  animation: slideInLeft 1s ease-out;
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.float {
  animation: float 15s ease-in-out infinite;
}

.glow-text-animation {
  animation: glowText 2s ease-in-out infinite alternate;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* ===== GLOW EFFECTS ===== */
.glow-text {
  text-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
  transition: text-shadow 0.3s ease;
}

.glow-text:hover {
  text-shadow: 0 0 30px rgba(37, 99, 235, 0.8);
}

/* ===== INTERACTIVE CARDS ===== */
.interactive-card {
  transition: var(--transition-slow);
  cursor: pointer;
}

.interactive-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.1);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CONTENT REVEAL ANIMATION ===== */
.content-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: contentReveal 1s ease-out 2.5s forwards;
}

/* ===== MAGNETIC BUTTONS ===== */
.magnetic-btn {
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.magnetic-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.magnetic-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ===== 3D CARD EFFECTS ===== */
.card-3d {
  transform-style: preserve-3d;
  transition: var(--transition-slow);
}

.card-3d:hover {
  transform: translateY(-20px) rotateX(10deg) rotateY(5deg);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.1);
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== PARTICLE EFFECTS ===== */
.particle-bg {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  animation: float 20s ease-in-out infinite;
}

/* ===== HOVER GLOW EFFECTS ===== */
.hover-glow {
  transition: var(--transition);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ===== TEXT GRADIENT EFFECTS ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FLOATING ELEMENTS ===== */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  animation-delay: 4s;
}

/* ===== CUSTOM CURSOR ===== */
/* .custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  transform: translate(-50%, -50%) scale(1.5);
} */

/* ===== PARTICLE EFFECTS ===== */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 5s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ===== LOADING ANIMATIONS ===== */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== HOVER TRANSFORMATIONS ===== */
.hover-lift {
  transition: var(--transition-slow);
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.hover-scale {
  transition: var(--transition-slow);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: var(--transition-slow);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

/* ===== GRADIENT TEXT ANIMATIONS ===== */
.gradient-text-animated {
  background: var(--gradient-multi);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* ===== SHIMMER EFFECT ===== */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::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: left 0.5s;
}

.shimmer:hover::before {
  left: 100%;
}

/* ===== MORPHING SHAPES ===== */
.morphing-shape {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: morph 4s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 50%; }
  25% { border-radius: 25%; }
  50% { border-radius: 0%; }
  75% { border-radius: 25%; }
}

/* ===== BEFORE/AFTER SLIDER STYLES ===== */
.before-after-section {
  padding: 120px 0;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.before-after-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--white) 0%, transparent 100%);
  z-index: 1;
}

.before-after-slider {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.before-after-container {
  position: relative;
  height: 600px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.before-after-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  border-radius: var(--radius-2xl);
}

.before-after-item.active {
  opacity: 1;
  transform: translateX(0);
}

.before-after-wrapper {
  position: relative;
  width: 100%;
  height: 70%;
  overflow: hidden;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.before-image {
  left: 0;
  border-radius: var(--radius-2xl) 0 0 0;
}

.after-image {
  right: 0;
  border-radius: 0 var(--radius-2xl) 0 0;
}

.before-image img,
.after-image img {
  width: 200%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.before-image img {
  object-position: right center;
}

.after-image img {
  object-position: left center;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
}

.image-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.image-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.slider-handle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--white);
  transform: translateX(-50%);
  cursor: col-resize;
  z-index: 10;
}

.slider-line {
  width: 100%;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  cursor: col-resize;
  transition: all 0.3s ease;
}

.slider-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.before-after-info {
  padding: 30px;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.before-after-info h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.before-after-info p {
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.result-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.result-stats span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-weight: 600;
  font-size: 0.95rem;
}

.result-stats i {
  font-size: 1.1rem;
}

.before-after-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.before-after-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.nav-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.nav-btn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nav-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  padding: 80px 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.newsletter-section::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"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.newsletter-text h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.newsletter-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.newsletter-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-2xl);
}

.newsletter-form .form-group {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
  padding: 15px 30px;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.newsletter-form .btn:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.newsletter-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-benefits span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.newsletter-benefits i {
  color: var(--secondary);
  font-size: 1.1rem;
}



/* ===== SEARCH FUNCTIONALITY ===== */
.search-container {
  position: relative;
  margin-left: 20px;
}

.search-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-700);
}

.search-toggle:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.search-box {
  position: absolute;
  top: 100%;
  right: 0;
  width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--gray-200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  margin-top: 10px;
  overflow: hidden;
  pointer-events: none;
  display: none;
}

.search-box.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

/* Ensure no leftover elements */
.search-box:not(.active) {
  display: none !important;
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.search-header h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.search-close {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.2s ease;
}

.search-close:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.search-box input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  font-size: 1rem;
  background: var(--white);
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
}

.search-box input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.search-box input::placeholder {
  color: var(--gray-500);
}

.search-results {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 0;
}

.search-result-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--gray-100);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--gray-50);
}

.search-result-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.search-result-description {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.search-result-type {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 5px;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.search-loading {
  padding: 20px;
  text-align: center;
  color: var(--primary);
  font-size: 0.9rem;
}

.search-loading i {
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== LIVE CHAT WIDGET ===== */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-2xl);
  transition: all 0.3s ease;
  position: relative;
  color: var(--white);
  font-size: 1.5rem;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.chat-window {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 350px;
  height: 500px;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.chat-window.active {
  display: flex;
  animation: slideUp 0.3s ease-out;
}

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

.chat-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-info h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.status {
  font-size: 0.8rem;
  opacity: 0.9;
}

.status.online::before {
  content: '●';
  color: var(--secondary);
  margin-left: 5px;
}

.chat-close {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--gray-50);
}

.message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.message.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.bot-message .message-avatar {
  background: var(--gradient-primary);
  color: var(--white);
}

.user-message .message-avatar {
  background: var(--gray-300);
  color: var(--gray-700);
}

.message-content {
  max-width: 70%;
}

.message-content p {
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}

.user-message .message-content p {
  background: var(--primary);
  color: var(--white);
}

.message-time {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 5px;
  display: block;
}

.chat-input {
  padding: 20px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.quick-btn {
  padding: 8px 12px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray-700);
}

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

.chat-form {
  display: flex;
  gap: 10px;
}

.chat-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.chat-form button {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-form button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .before-after-container {
    height: 700px;
  }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* Tablet Landscape */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-content {
    gap: 40px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    padding: 100px 0 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .before-after-container {
    height: 550px;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .chat-window {
    width: 320px;
    height: 480px;
  }
}

/* Mobile Large */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-section {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .services-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .before-after-container {
    height: 500px;
  }

  .before-after-info {
    padding: 20px;
  }

  .before-after-info h4 {
    font-size: 1.5rem;
  }

  .before-after-filter {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .newsletter-text h3 {
    font-size: 2rem;
  }

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

  .chat-window {
    width: 300px;
    height: 450px;
  }

  .live-chat-widget {
    bottom: 20px;
    left: 20px;
  }
}

/* Mobile Small */
@media (max-width: 575px) {
  .container {
    padding: 0 20px;
  }

  .hero-section {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 0.95rem;
  }

    /* Navbar Mobile */
  .navbar-menu {
    display: none;
  }

  .navbar-actions .btn:first-child {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

    /* Search Mobile */
  .search-container {
    margin-left: 10px;
  }

  .search-box {
    width: calc(100vw - 40px);
    right: -20px;
  }



  /* Mobile Menu Enhancements */
  .mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 10px;
  }

    .mobile-search-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-700);
    font-size: 0.9rem;
  }

  .mobile-search-toggle:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
  }

  .mobile-search-toggle.active {
    background: var(--primary);
    color: var(--white);
  }

  .mobile-search-box {
    margin: 0 20px 20px;
    display: none;
  }

  .mobile-search-box.active {
    display: block;
  }

  .mobile-search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    background: var(--white);
    color: var(--gray-900);
  }

  .mobile-search-box input:focus {
    outline: none;
    border-color: var(--primary);
  }

  .mobile-search-results {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
  }

  /* Sections */
  .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .section-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* Service Cards */
  .service-card {
    padding: 25px 20px;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  /* Portfolio Cards */
  .portfolio-card {
    margin-bottom: 20px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 20px;
  }

  .testimonial-content p {
    font-size: 0.9rem;
  }

  /* Before/After Slider */
  .before-after-section {
    padding: 80px 0;
  }

  .before-after-container {
    height: 450px;
  }

  .before-after-info {
    padding: 15px;
  }

  .before-after-info h4 {
    font-size: 1.3rem;
  }

  .before-after-info p {
    font-size: 0.9rem;
  }

  .before-after-filter {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: auto;
  }

  .before-after-nav {
    gap: 20px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Newsletter */
  .newsletter-section {
    padding: 60px 0;
  }

  .newsletter-text h3 {
    font-size: 1.8rem;
  }

  .newsletter-text p {
    font-size: 1rem;
  }

  .newsletter-form-wrapper {
    padding: 25px 20px;
  }

  .newsletter-form input[type="email"] {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .newsletter-form .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .newsletter-benefits {
    gap: 10px;
  }

  .newsletter-benefits span {
    font-size: 0.85rem;
  }

  /* Live Chat */
  .live-chat-widget {
    bottom: 15px;
    left: 15px;
  }

  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .chat-window {
    width: calc(100vw - 30px);
    height: 400px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 70px;
  }

  .chat-header {
    padding: 15px;
  }

  .chat-messages {
    padding: 15px;
  }

  .chat-input {
    padding: 15px;
  }

  .quick-actions {
    gap: 6px;
  }

  .quick-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .chat-form input {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .chat-form button {
    width: 36px;
    height: 36px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }
}

/* Ultra Small Mobile */
@media (max-width: 375px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .before-after-container {
    height: 400px;
  }

  .chat-window {
    width: calc(100vw - 20px);
    height: 350px;
  }

  .newsletter-text h3 {
    font-size: 1.6rem;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image,
  .portfolio-image,
  .before-image img,
  .after-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}



/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-particles,
  .morphing-shape,
  .gradient-text-animated {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  .navbar-header,
  .live-chat-widget,
  .hero-actions,
  .cta-section,
  .newsletter-section {
    display: none !important;
  }

  .hero-section {
    padding: 20px 0;
  }

  .section-title,
  .hero-title {
    color: black !important;
  }

  .before-after-container {
    height: auto;
    page-break-inside: avoid;
  }
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.faq-category-btn {
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-category-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.faq-category-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.faq-content {
  position: relative;
}

.faq-group {
  display: none;
}

.faq-group.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question h4 {
  margin: 0;
  color: var(--dark);
  font-weight: 600;
}

.faq-question i {
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

.faq-answer p {
  color: var(--gray-600);
  line-height: 1.8;
  margin: 0;
}

/* ===== CLINIC GALLERY SECTION ===== */
.clinic-gallery-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  background: var(--gray-100);
  border: none;
  color: var(--gray-600);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-tab-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.gallery-tab-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.gallery-content {
  position: relative;
}

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

.gallery-grid.active {
  display: grid;
  animation: fadeInUp 0.5s ease;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.gallery-overlay p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ===== PRICE CALCULATOR SECTION ===== */
.price-calculator-section {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

.price-calculator {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.calculator-steps {
  display: flex;
  background: var(--primary-light);
  padding: 2rem;
  justify-content: center;
  gap: 2rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-weight: 600;
}

.step.active {
  color: var(--primary);
}

.step-number {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--primary);
  color: var(--white);
}

.calculator-content {
  padding: 2rem;
}

.calculator-step {
  display: none;
}

.calculator-step.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

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

.service-option {
  position: relative;
  cursor: pointer;
}

.service-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.option-content {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.service-option:hover .option-content {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.service-option input:checked + .option-content {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.option-content i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.option-content span {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.option-content small {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.calculator-options {
  margin: 2rem 0;
}

.option-group {
  margin-bottom: 1.5rem;
}

.option-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.checkbox-option input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-option input:checked + .checkmark::after {
  content: '✓';
  color: var(--white);
  font-weight: bold;
  font-size: 0.8rem;
}

.calculator-buttons {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.calculator-next,
.calculator-prev {
  flex: 1;
  max-width: 200px;
}

.price-result {
  text-align: center;
}

.price-breakdown {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.price-items {
  margin: 1.5rem 0;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.price-item:last-child {
  border-bottom: none;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 2px solid var(--primary);
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}

.price-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--warning-light);
  color: var(--warning-dark);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.price-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== APPOINTMENT CALENDAR SECTION ===== */
.appointment-calendar-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.calendar-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-nav {
  background: var(--primary-light);
  border: none;
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-nav:hover {
  background: var(--primary);
  color: var(--white);
}

.calendar-title {
  color: var(--dark);
  font-weight: 700;
  margin: 0;
}

.calendar-grid {
  margin-bottom: 2rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.weekday {
  text-align: center;
  font-weight: 600;
  color: var(--gray-600);
  padding: 0.5rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
}

.calendar-day:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.calendar-day.available {
  background: var(--success-light);
  color: var(--success-dark);
  border-color: var(--success);
}

.calendar-day.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.calendar-day.disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
}

.time-slots {
  animation: fadeInUp 0.5s ease;
}

.time-slots h4 {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

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

.time-slot {
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-slot.available:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.time-slot.reserved {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
}

.time-slot.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
}

.legend-color.available {
  background: var(--success);
}

.legend-color.reserved {
  background: var(--gray-400);
}

.legend-color.selected {
  background: var(--primary);
}

/* ===== APPOINTMENT TRACKING SECTION ===== */
.appointment-tracking-section {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

.tracking-container {
  max-width: 700px;
  margin: 0 auto;
}

.tracking-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.tracking-form .form-group {
  margin-bottom: 1.5rem;
}

.tracking-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.tracking-result {
  animation: fadeInUp 0.5s ease;
}

.appointment-info {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item .label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 600;
}

.info-item .value {
  font-weight: 700;
  color: var(--dark);
}

.status.confirmed {
  color: var(--success);
}

.status.pending {
  color: var(--warning);
}

.status.cancelled {
  color: var(--danger);
}

.appointment-timeline {
  margin: 2rem 0;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 50px;
  width: 2px;
  height: 30px;
  background: var(--gray-200);
}

.timeline-item.completed::after {
  background: var(--success);
}

.timeline-item.active::after {
  background: var(--primary);
}

.timeline-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-item.completed .timeline-icon {
  background: var(--success);
  color: var(--white);
}

.timeline-item.active .timeline-icon {
  background: var(--primary);
  color: var(--white);
}

.timeline-item .timeline-icon {
  background: var(--gray-200);
  color: var(--gray-500);
}

.timeline-content h5 {
  margin: 0 0 0.25rem 0;
  color: var(--dark);
  font-weight: 600;
}

.timeline-content p {
  margin: 0 0 0.25rem 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.timeline-content small {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.appointment-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== SERVICE COMPARISON SECTION ===== */
.service-comparison-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.comparison-container {
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.comparison-tab {
  background: var(--gray-100);
  border: none;
  color: var(--gray-600);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.comparison-tab:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.comparison-tab.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.comparison-content {
  position: relative;
}

.comparison-table {
  display: none;
}

.comparison-table.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.comparison-grid {
  width: 100%;
  background: var(--white);
  border-collapse: collapse;
}

.comparison-grid th,
.comparison-grid td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-grid th {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--dark);
}

.comparison-grid th:first-child {
  text-align: right;
  background: var(--primary-light);
  color: var(--primary);
}

.service-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.service-header i {
  font-size: 1.5rem;
  color: var(--primary);
}

.popularity-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.popularity-stars i {
  color: var(--warning);
  font-size: 1rem;
}

.comparison-grid tbody tr:hover {
  background: var(--gray-50);
}

/* ===== RESPONSIVE DESIGN FOR NEW FEATURES ===== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .service-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .comparison-grid th,
  .comparison-grid td {
    padding: 1.5rem;
  }
}

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

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
  .service-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-steps {
    gap: 1rem;
  }

  .step span {
    display: none;
  }

  .comparison-tabs {
    gap: 0.5rem;
  }

  .comparison-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
  .faq-categories {
    gap: 0.5rem;
  }

  .faq-category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .gallery-tabs {
    gap: 0.5rem;
  }

  .gallery-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .price-calculator {
    margin: 0 1rem;
  }

  .calculator-buttons {
    flex-direction: column;
  }

  .calculator-next,
  .calculator-prev {
    max-width: none;
  }

  .calendar-container {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .calendar-legend {
    gap: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .appointment-actions {
    flex-direction: column;
  }

  .table-responsive {
    font-size: 0.85rem;
  }

  .comparison-grid th,
  .comparison-grid td {
    padding: 0.75rem 0.5rem;
  }

  .service-header {
    gap: 0.25rem;
  }

  .service-header i {
    font-size: 1.2rem;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
  .faq-categories {
    flex-direction: column;
    align-items: center;
  }

  .faq-category-btn {
    width: 200px;
    text-align: center;
  }

  .gallery-tabs {
    flex-direction: column;
    align-items: center;
  }

  .gallery-tab-btn {
    width: 200px;
    text-align: center;
  }

  .service-options {
    grid-template-columns: 1fr;
  }

  .option-content {
    padding: 1rem;
  }

  .calculator-steps {
    padding: 1rem;
  }

  .calculator-content {
    padding: 1rem;
  }

  .checkbox-group {
    gap: 0.75rem;
  }

  .price-actions {
    flex-direction: column;
  }

  .calendar-nav {
    width: 35px;
    height: 35px;
  }

  .calendar-title {
    font-size: 1.1rem;
  }

  .weekday {
    padding: 0.25rem;
    font-size: 0.8rem;
  }

  .calendar-day {
    font-size: 0.9rem;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-slot {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .tracking-form {
    padding: 1.5rem;
  }

  .appointment-info {
    padding: 1.5rem;
  }

  .timeline-item {
    gap: 0.75rem;
  }

  .timeline-icon {
    width: 30px;
    height: 30px;
  }

  .timeline-item:not(:last-child)::after {
    left: 14px;
  }

  .comparison-tabs {
    flex-direction: column;
    align-items: center;
  }

  .comparison-tab {
    width: 200px;
    text-align: center;
  }

  .comparison-grid {
    font-size: 0.8rem;
  }

  .comparison-grid th:first-child {
    text-align: center;
  }

  .service-header span {
    font-size: 0.8rem;
  }
}

/* Mobile Small (480px - 575px) */
@media (max-width: 575px) {
  .faq-question {
    padding: 1rem;
  }

  .faq-question h4 {
    font-size: 0.95rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1rem 1rem;
  }

  .gallery-item {
    aspect-ratio: 3/2;
  }

  .gallery-overlay {
    padding: 1rem;
  }

  .calculator-steps {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .option-content i {
    font-size: 1.5rem;
  }

  .price-breakdown {
    padding: 1rem;
  }

  .price-note {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .calendar-container {
    padding: 1rem;
  }

  .calendar-header {
    margin-bottom: 1rem;
  }

  .calendar-nav {
    width: 30px;
    height: 30px;
  }

  .calendar-title {
    font-size: 1rem;
  }

  .slots-grid {
    grid-template-columns: 1fr;
  }

  .legend-item {
    font-size: 0.8rem;
  }

  .tracking-form {
    padding: 1rem;
  }

  .appointment-info {
    padding: 1rem;
  }

  .timeline-content h5 {
    font-size: 0.9rem;
  }

  .timeline-content p {
    font-size: 0.8rem;
  }

  .table-responsive {
    font-size: 0.75rem;
  }

  .comparison-grid th,
  .comparison-grid td {
    padding: 0.5rem 0.25rem;
  }

  .service-header {
    gap: 0.1rem;
  }

  .service-header i {
    font-size: 1rem;
  }

  .service-header span {
    font-size: 0.7rem;
  }
}

/* Ultra Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .section-header {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .faq-container,
  .price-calculator,
  .calendar-container,
  .tracking-container,
  .comparison-container {
    margin: 0 0.5rem;
  }

  .faq-category-btn,
  .gallery-tab-btn,
  .comparison-tab {
    width: 180px;
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .calculator-steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    gap: 0.25rem;
  }

  .option-content {
    padding: 0.75rem;
  }

  .calculator-options {
    margin: 1rem 0;
  }

  .price-item {
    font-size: 0.85rem;
  }

  .price-total {
    font-size: 1rem;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 0.25rem;
  }

  .weekday {
    font-size: 0.7rem;
  }

  .calendar-day {
    font-size: 0.8rem;
  }

  .time-slot {
    padding: 0.4rem;
    font-size: 0.8rem;
  }

  .info-item .label {
    font-size: 0.75rem;
  }

  .info-item .value {
    font-size: 0.9rem;
  }

  .timeline-icon {
    width: 25px;
    height: 25px;
  }

  .timeline-item:not(:last-child)::after {
    left: 12px;
  }

  .comparison-grid {
    font-size: 0.7rem;
  }

  .comparison-grid th,
  .comparison-grid td {
    padding: 0.4rem 0.2rem;
  }
}

/* ===== SECONDARY HERO ANIMATIONS ===== */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes patternFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

