/* Custom CSS for Rashidham AI Astrologer */

/* Global Styles */
:root {
    --primary-color: #6f42c1;
    --secondary-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #ffc107 !important;
    transform: scale(1.05);
}

.navbar-logo {
    height: 45px;
    width: auto;
    max-width: 45px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffc107, #ff8c00);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
}

.dropdown-item:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107 !important;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh;
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
}

/* Animated Starfield */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    opacity: 0.8;
    z-index: 1;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

/* Floating cosmic particles */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 50px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 100px 100px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 150px 150px, rgba(255,255,255,0.4), transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: float 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Cosmic Background */
.cosmic-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.nebula-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    animation: nebula-float 20s ease-in-out infinite;
}

.star-field {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: star-twinkle 4s ease-in-out infinite;
}

.cosmic-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(45deg, transparent 30%, rgba(138, 43, 226, 0.1) 50%, transparent 70%);
    animation: wave-move 8s ease-in-out infinite;
}

@keyframes nebula-float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.1; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.2; }
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes wave-move {
    0%, 100% { transform: translateX(-100px); }
    50% { transform: translateX(100px); }
}

/* Hero App Showcase */
.hero-app-showcase {
    position: relative;
    z-index: 2;
}

/* 3D Phone Mockup */
.phone-mockup-3d {
    perspective: 1000px;
    margin: 0 auto;
    width: 320px;
    height: 640px;
}

.phone-frame {
    width: 100%;
    height: 100%;
    transform: rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    animation: phone-float 6s ease-in-out infinite;
}

.phone-frame:hover {
    transform: rotateY(-10deg) rotateX(2deg) scale(1.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        0 0 0 8px #333,
        0 0 0 12px #222,
        inset 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.app-screenshot:hover {
    transform: scale(1.02);
}

/* Floating App Elements */
.floating-notification {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: notification-bounce 3s ease-in-out infinite;
    z-index: 10;
}

.floating-badge {
    position: absolute;
    bottom: 40px;
    left: 30px;
    background: rgba(111, 66, 193, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: badge-pulse 4s ease-in-out infinite;
    z-index: 10;
}

/* Cosmic Elements */
.cosmic-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.zodiac-symbols {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.zodiac-icon {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 193, 7, 0.8);
    animation: zodiac-float 8s ease-in-out infinite;
}

.zodiac-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.zodiac-icon:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.zodiac-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.zodiac-icon:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 6s;
}

.cosmic-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 10s linear infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 30%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    bottom: 40%;
    left: 40%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 60%;
    right: 20%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    bottom: 20%;
    right: 40%;
    animation-delay: 8s;
}

/* Animations */
@keyframes phone-float {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0px); }
    50% { transform: rotateY(-15deg) rotateX(5deg) translateY(-10px); }
}

@keyframes notification-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes zodiac-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-15px) rotate(180deg); opacity: 1; }
}

@keyframes particle-float {
    0% { transform: translateY(0px) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Responsive Cards */
@media (max-width: 768px) {
    .feature-card,
    .service-card,
    .product-card,
    .ai-feature-card {
        margin-bottom: 1rem;
    }
    
    .feature-card .card-body,
    .service-card .card-body,
    .product-card .card-body,
    .ai-feature-card .card-body {
        padding: 1rem;
    }
    
    .feature-card h5,
    .service-card h5,
    .product-card h5,
    .ai-feature-card h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p,
    .service-card p,
    .product-card p,
    .ai-feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .feature-card,
    .service-card,
    .product-card,
    .ai-feature-card {
        margin-bottom: 0.75rem;
    }
    
    .feature-card .card-body,
    .service-card .card-body,
    .product-card .card-body,
    .ai-feature-card .card-body {
        padding: 0.75rem;
    }
}

.feature-icon {
    color: var(--primary-color);
}

/* Mobile App Section */
.app-showcase {
    position: relative;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    margin: 0 auto;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 25px;
    padding: 0;
    color: white;
    overflow: hidden;
}

.app-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    margin-bottom: 20px;
}

.app-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horoscope-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* App Badge Styles */
.app-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* App Screenshot Styles */
.app-screenshot {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    background: transparent;
}

.app-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    transition: transform 0.3s ease;
    display: block;
    border: none;
    outline: none;
}

.app-image:hover {
    transform: scale(1.05);
}

/* Debug styles - ensure image is visible */
.app-image {
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Fallback app interface (shown when image not available) */
.app-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.product-icon {
    color: var(--primary-color);
}

/* AI Feature Cards */
.ai-feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.ai-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.ai-feature-icon {
    color: var(--primary-color);
}

/* AI Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

/* AI Form Styling */
.ai-feature-card .form-control,
.ai-feature-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.ai-feature-card .form-control:focus,
.ai-feature-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Responsive Form Improvements */
@media (max-width: 768px) {
    .form-control,
    .form-select,
    .form-check-input {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    .form-label {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-check {
        margin-bottom: 0.75rem;
    }
    
    .form-check-label {
        font-size: 0.9rem;
        padding-left: 0.5rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .input-group-text {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .form-control,
    .form-select {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }
}

/* AI Result Styling */
.reading-content,
.analysis-content,
.recommendations-content,
.timing-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lucky-numbers {
    margin-top: 0.5rem;
}

.lucky-numbers .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Quiz Questions Styling */
.quiz-questions h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.quiz-questions .form-check {
    margin-bottom: 0.5rem;
}

.quiz-questions .form-check-label {
    font-size: 0.95rem;
    color: #555;
}

/* AI Button Styling */
.ai-feature-card .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ai-feature-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Loading States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AI Feature Icons */
.ai-feature-icon i {
    transition: transform 0.3s ease;
}

.ai-feature-card:hover .ai-feature-icon i {
    transform: scale(1.1);
}

/* Responsive AI Features */
@media (max-width: 768px) {
    .ai-feature-card {
        margin-bottom: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .reading-content,
    .analysis-content,
    .recommendations-content,
    .timing-content {
        font-size: 0.9rem;
    }
}

/* App Shopping Notice */
.app-shopping-notice {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.app-shopping-notice h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.service-icon {
    color: var(--primary-color);
}

/* Consultation Form */
.consultation-form {
    border: 1px solid rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.consultation-form:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.consultation-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.consultation-form .form-control,
.consultation-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.consultation-form .form-control:focus,
.consultation-form .form-select:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Contact Info */
.contact-info {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.contact-info h5 {
    color: #ffc107 !important;
    font-weight: 600;
}

.contact-info p {
    font-size: 1.1rem;
    font-weight: 500;
    color: white !important;
}

.contact-info small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Contact Section Text Colors */
#contact h2,
#contact h5,
#contact .display-5 {
    color: white !important;
}

#contact p,
#contact .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

#contact .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Contact Links */
.contact-info a {
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-info a:hover {
    color: #ffc107 !important;
}

/* Social Connect */
.social-connect .btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-connect .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contact Form */
.form-control {
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ff8f00);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff8f00, #ffc107);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-warning:hover::before {
    left: 0;
}

.btn-warning:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

/* Developer Credit */
.developer-credit {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.developer-credit a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--warning-color);
}

.social-links a:hover {
    background: var(--warning-color);
    transform: translateY(-3px);
}

/* Enhanced Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Typography */
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-logo {
        height: 35px;
        max-width: 35px;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Phone Mockup */
    .phone-mockup-3d {
        width: 250px;
        height: 500px;
        margin: 1rem auto;
        transform: scale(0.8);
    }
    
    .phone-frame {
        transform: rotateY(-5deg) rotateX(2deg);
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .expert-card .expert-info {
        padding: 1rem;
    }
    
    .expert-image {
        height: 200px;
    }
    
    .expert-name {
        font-size: 1.25rem;
    }
    
    .expert-specialization {
        font-size: 1rem;
    }
    
    .expert-description {
        font-size: 0.9rem;
    }
    
    .expertise-tags {
        justify-content: center;
    }
    
    .expertise-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .expert-stats {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Forms */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Calendar */
    .calendar-container {
        padding: 0.75rem;
        min-width: 100%;
    }
    
    .calendar-grid {
        min-width: 100%;
        gap: 2px;
        padding: 4px;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 0.25rem 0.1rem;
    }
    
    .calendar-day-number {
        font-size: 0.75rem;
    }
    
    .calendar-day-status {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .calendar-header h5 {
        font-size: 1rem;
    }
    
    /* Time Slots */
    .time-slot-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
        margin: 0.1rem;
    }
    
    /* AI Features */
    .ai-feature-card {
        margin-bottom: 1rem;
    }
    
    .ai-feature-card .card-body {
        padding: 1rem;
    }
    
    .reading-content,
    .analysis-content,
    .recommendations-content,
    .timing-content {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    /* Footer */
    .footer-section {
        text-align: center;
    }
    
    .footer-section .row > div {
        margin-bottom: 1.5rem;
    }
    
    /* Floating Button */
    .floating-book-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    /* Hide decorative elements on very small screens */
    .zodiac-symbols,
    .cosmic-particles,
    .floating-notification,
    .floating-badge {
        display: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .phone-mockup-3d {
        width: 280px;
        height: 560px;
    }
    
    .expert-image {
        height: 250px;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.5rem 0.25rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .phone-mockup-3d {
        width: 300px;
        height: 600px;
        margin-top: 30px;
    }
    
    .phone-frame {
        transform: rotateY(-10deg) rotateX(3deg);
    }
    
    .expert-image {
        height: 280px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.75rem 0.5rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .phone-mockup-3d {
        width: 320px;
        height: 640px;
    }
    
    .expert-image {
        height: 300px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .phone-mockup-3d {
        width: 350px;
        height: 700px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .phone-mockup-3d {
        transform: scale(0.6);
    }
    
    .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-logo,
    .expert-image,
    .app-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .modal,
    .floating-notification,
    .floating-badge,
    .floating-book-btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .expert-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .container {
        max-width: 100% !important;
    }
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown-toggle::after {
        margin-left: 0.5rem;
    }
    
    /* Improve form usability */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for mobile */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Improve card layouts */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Better modal experience */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    /* Improve calendar mobile experience */
    .calendar-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .calendar-grid {
        min-width: 600px;
    }
    
    /* Better button spacing */
    .btn-group .btn {
        margin: 0.1rem;
    }
    
    /* Improve text readability and responsive typography */
    p, li {
        line-height: 1.6;
    }
    
    /* Responsive Typography */
    h1, .display-1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2, .display-2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3, .display-3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h4, .display-4 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    h5, .display-5 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    h6, .display-6 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .small, small {
        font-size: 0.8rem;
    }
    
    /* Better text contrast and spacing */
    .text-muted {
        color: #6c757d !important;
    }
    
    .text-center {
        text-align: center !important;
    }
    
    .text-start {
        text-align: left !important;
    }
    
    .text-end {
        text-align: right !important;
    }
    
    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Responsive images with proper loading */
    .expert-image,
    .app-image,
    .navbar-logo {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .expert-image {
        aspect-ratio: 4/3;
    }
    
    .app-image {
        aspect-ratio: 9/16;
    }
    
    /* Lazy loading for images */
    img[loading="lazy"] {
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    img[loading="lazy"].loaded {
        opacity: 1;
    }
    
    /* Improve accessibility */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* Focus improvements for accessibility */
@media (max-width: 768px) {
    .btn:focus,
    .form-control:focus,
    .form-select:focus,
    .nav-link:focus {
        outline: 2px solid #ffc107;
        outline-offset: 2px;
    }
    
    .navbar-toggler:focus {
        outline: 2px solid #ffc107;
        outline-offset: 2px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Ensure modal doesn't cause horizontal scroll */
    .modal {
        overflow-x: hidden;
    }
    
    .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }
    
    /* Calendar specific mobile fixes */
    #bookingModal .modal-body {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #bookingModal .calendar-container {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        width: calc(100% + 1rem);
    }
    
    /* Better spacing for mobile */
    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Improve button groups on mobile */
    .btn-group-vertical .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .btn-group .btn {
        flex: 1;
        margin: 0.1rem;
    }
    
    /* Better table responsiveness */
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    /* Improve carousel on mobile */
    .carousel-item {
        padding: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    /* Better accordion on mobile */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Improve tabs on mobile */
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 1rem 0;
    }
    
    /* Better pagination on mobile */
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Improve breadcrumbs on mobile */
    .breadcrumb {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    /* Better alerts on mobile */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Improve progress bars on mobile */
    .progress {
        height: 0.75rem;
    }
    
    .progress-bar {
        font-size: 0.75rem;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .modal-dialog {
        margin: 0.125rem;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-logo {
        height: 30px;
        max-width: 30px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.feature-card:hover .feature-icon,
.service-card:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--warning-color);
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

/* GPU acceleration for smooth animations */
.hero-section,
.phone-mockup-3d,
.expert-card,
.feature-card,
.service-card,
.ai-feature-card {
    transform: translateZ(0);
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@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-section::before,
    .hero-section::after,
    .cosmic-bg,
    .zodiac-icon,
    .particle {
        animation: none !important;
    }
}

/* Optimize for mobile performance */
@media (max-width: 768px) {
    /* Disable hover effects on touch devices */
    .expert-card:hover,
    .feature-card:hover,
    .service-card:hover,
    .ai-feature-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    /* Simplify animations on mobile */
    .phone-frame {
        animation: none;
    }
    
    .floating-notification,
    .floating-badge {
        animation: none;
    }
    
    /* Optimize background images */
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
}

/* Language Switcher Styling */
.language-switcher {
    margin-left: 15px;
}

.language-switcher .btn {
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.language-switcher .dropdown-menu {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: none;
    padding: 8px 0;
}

.language-switcher .dropdown-item {
    padding: 10px 20px;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.language-switcher .dropdown-item.active {
    background-color: #ffc107;
    color: #000;
    font-weight: 600;
}

/* RTL Language Support */
[dir="rtl"] .language-switcher .dropdown-item:hover {
    transform: translateX(-5px);
}

/* Form Validation Styling */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #198754;
}

/* Enhanced Consultation Form Styling */
.consultation-form .card {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.consultation-form .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* General Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.consultation-form .card-header {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.consultation-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.consultation-form .form-control,
.consultation-form .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.consultation-form .form-control:focus,
.consultation-form .form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.consultation-form .btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.consultation-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Modal Calendar Fixes */
.modal-xl {
    max-width: 1200px; /* Ensure modal is wide enough for calendar */
}

#bookingModal .modal-body {
    overflow-x: auto; /* Allow horizontal scroll if needed */
}

/* Responsive Modal Improvements */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-xl {
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 0.75rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
}

/* Appointment Booking Calendar Styles - REBUILT VERSION */
.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    width: 100%;
    min-width: 600px; /* Ensure minimum width for 7 columns */
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.calendar-header h5 {
    color: var(--primary-color);
    font-weight: 700;
}

.calendar-header .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    padding: 8px;
    min-width: 600px; /* Ensure minimum width for proper display */
    width: 100%;
}

/* Ensure calendar grid is responsive */
@media (max-width: 768px) {
    .calendar-grid {
        min-width: 100%;
        gap: 1px;
        padding: 2px;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .calendar-grid {
        gap: 0.5px;
        padding: 1px;
        border-radius: 8px;
    }
}

.calendar-day {
    background: white;
    padding: 1.2rem 0.8rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
}

/* Calendar day status backgrounds */
.calendar-day.available {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}



.calendar-day.past-date {
    background-color: #e2e3e5;
    border: 1px solid #d6d8db;
}

.calendar-day.weekend {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    cursor: not-allowed;
}

.calendar-day:hover:not(.past-date):not(.weekend) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.calendar-day.available:hover {
    background-color: #c3e6cb;
}

.calendar-day.past-date:hover {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.calendar-day-header {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

/* Responsive weekday headers */
@media (max-width: 768px) {
    .calendar-day-header {
        font-size: 0.6rem;
        padding: 0.5rem 0.25rem;
        min-height: 35px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 576px) {
    .calendar-day-header {
        font-size: 0.55rem;
        padding: 0.4rem 0.15rem;
        min-height: 30px;
        letter-spacing: 0.2px;
    }
}

.calendar-day-number {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: #495057;
    z-index: 2;
    line-height: 1.2;
}

/* Day number colors for different statuses */
.calendar-day.available .calendar-day-number {
    color: #155724;
}



.calendar-day.past-date .calendar-day-number {
    color: #6c757d;
}

.calendar-day.weekend .calendar-day-number {
    color: #721c24;
}

.calendar-day-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.3rem;
    min-width: 60px;
}

.calendar-day-status.available {
    background-color: #d4edda;
    color: #155724;
}

.calendar-day-status.closed {
    background-color: #f8d7da;
    color: #721c24;
}

.calendar-day-status.past {
    background-color: #e2e3e5;
    color: #6c757d;
}

.calendar-day-status.unavailable {
    background-color: rgba(255, 255, 255, 0.8);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: default;
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.calendar-day.today .calendar-day-number {
    color: var(--primary-color);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
    z-index: 3;
}

.calendar-day.selected .calendar-day-number,
.calendar-day.selected .calendar-day-status {
    color: white;
}

.calendar-day.past-date {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}



/* Time Slot Styles */
.time-slot-btn {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background: white;
    color: #495057;
    cursor: pointer;
}

.time-slot-btn:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.2);
}

.time-slot-btn.selected {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.time-slot-btn.selected::before {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Time slot status colors */
.time-slot-btn.available {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.time-slot-btn.available:hover {
    background-color: #c3e6cb;
}

.time-slot-btn.booked {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot-btn.booked:hover {
    transform: none;
    box-shadow: none;
    background-color: #f8d7da;
}

/* Time Slots Container */
#timeSlotsContainer {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading States */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Time slot selected state */
.time-slot.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive Calendar Improvements */
@media (max-width: 768px) {
    .calendar-container {
        padding: 0.75rem;
        min-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.5rem; /* Extend to edges */
        max-width: 100vw; /* Ensure it doesn't exceed viewport width */
    }
    
    /* Ensure calendar fits within viewport */
    .modal-body {
        overflow-x: hidden;
    }
    
    .modal-body .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .modal-body .col-12 {
        padding-left: 0;
        padding-right: 0;
    }
    
    .calendar-grid {
        min-width: 100%;
        gap: 1px;
        padding: 2px;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    /* Ensure each day column takes equal space */
    .calendar-grid > * {
        min-width: 0;
        flex: 1;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 0.25rem 0.1rem;
        font-size: 0.75rem;
    }
    
    .calendar-day-number {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .calendar-day-status {
        font-size: 0.5rem;
        padding: 0.1rem 0.2rem;
        margin-top: 0.1rem;
    }
    
    .calendar-day-header {
        font-size: 0.6rem;
        padding: 0.5rem 0.25rem;
        font-weight: 700;
        text-align: center;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .calendar-header h5 {
        font-size: 1rem;
    }
    
    .calendar-header .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .time-slot-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
        margin: 0.1rem;
    }
}

@media (max-width: 576px) {
    .calendar-container {
        padding: 0.5rem;
        margin: 0 -0.25rem;
    }
    
    .calendar-grid {
        gap: 0.5px;
        padding: 1px;
    }
    
    .calendar-day {
        min-height: 45px;
        padding: 0.2rem 0.05rem;
        font-size: 0.7rem;
    }
    
    .calendar-day-number {
        font-size: 0.7rem;
        font-weight: 600;
    }
    
    .calendar-day-status {
        font-size: 0.45rem;
        padding: 0.05rem 0.15rem;
        margin-top: 0.05rem;
    }
    
    .calendar-day-header {
        font-size: 0.55rem;
        padding: 0.4rem 0.15rem;
        font-weight: 700;
    }
    
    .calendar-header h5 {
        font-size: 0.9rem;
    }
    
    .calendar-header .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .time-slot-btn {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
        margin: 0.05rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
            /* Enhanced Mobile Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        height: 40px;
        max-width: 40px;
    }
    
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    }
    
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 10px;
        margin: 0.25rem 0;
        display: block;
        width: 100%;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: rgba(255, 193, 7, 0.2);
        border-color: rgba(255, 193, 7, 0.3);
        transform: translateY(-2px);
        color: #ffc107 !important;
    }
    
    .navbar-nav .nav-link.active {
        background: rgba(255, 193, 7, 0.3);
        border-color: #ffc107;
        color: #ffc107 !important;
    }
    
    .dropdown-menu {
        background: rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(255, 193, 7, 0.3);
        border-radius: 10px;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        margin: 0.25rem 0.5rem;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 193, 7, 0.2);
        transform: translateX(5px);
    }
    
    /* Hero section mobile */
    .hero-section {
        padding-top: 100px;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Phone mockup mobile */
    .phone-mockup-3d {
        transform: scale(0.8);
        margin: 2rem 0;
    }
    
    /* Cards and sections */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Calendar mobile */
    .calendar-container {
        padding: 1rem;
        min-width: 100%; /* Allow full width on mobile */
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.5rem 0.25rem;
    }
    
    .calendar-day-number {
        font-size: 0.875rem;
    }
    
    .calendar-day-status {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-header h5 {
        font-size: 1.1rem;
    }
    
    /* Time slots mobile */
    .time-slot-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Modal improvements */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Form improvements */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* AI features mobile */
    .ai-feature-card {
        margin-bottom: 1rem;
    }
    
    .ai-feature-card .card-body {
        padding: 1rem;
    }
    
    /* Footer mobile */
    .footer-section {
        text-align: center;
    }
    
    .footer-section .row > div {
        margin-bottom: 2rem;
    }
}

/* Extra small devices */


/* Floating Sticky Book Button */
.floating-book-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.floating-book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    color: white;
    text-decoration: none;
}

.floating-book-btn i {
    font-size: 1.2rem;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(255, 107, 53, 0.8); }
    100% { box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4); }
}

/* Hide floating button on mobile when navbar is visible */
@media (max-width: 768px) {
    .floating-book-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Testimonials Carousel */
.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffc107;
}

.author-name {
    font-weight: bold;
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.author-location {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .modal,
    .floating-notification,
    .floating-badge {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}
