/* Product Page CSS - Real Google Sign-In Implementation */

:root {
    --primary-red: #e60012;
    --dark-red: #cc0010;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header Styles - Enhanced with Authentication */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

header.scrolled {
    background: rgba(0,0,0,0.98);
    padding: 10px 20px;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.logo::before {
    content: "";
    width: 40px;
    height: 40px;
    background-image: url('Pics/327336510_1387372982079733_4073025529741406796_n-removebg-preview.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 50px;
    /* margin-top: -20px; */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
}

nav a[aria-current="page"] {
    color: var(--primary-red);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-red);
}

nav a:hover::after,
nav a[aria-current="page"]::after {
    width: 100%;
}

/* Authentication Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: none;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.user-info.active {
    display: flex;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    object-fit: cover;
}

.user-avatar:hover {
    border-color: var(--primary-red);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(230, 0, 18, 0.3);
}

.user-name {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.sign-out-btn {
    background: rgba(230, 0, 18, 0.8);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.sign-out-btn:hover {
    background: var(--primary-red);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f0fe 100%);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(230,0,18,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(230,0,18,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(230,0,18,0.1)"/></svg>') repeat;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--white);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 2rem auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(230,0,18,0.1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-duration {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-price {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid rgba(230,0,18,0.1);
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-red);
}

.service-features {
    margin-bottom: 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-features.active {
    max-height: 300px;
    opacity: 1;
}

.features-list {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1rem;
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    width: 20px;
}

.service-actions {
    display: flex;
    gap: 1rem;
}

/* Enhanced Button Styles with Google Icon Support */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    justify-content: center;
    position: relative;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    box-shadow: var(--shadow);
}

/* When not authenticated, show Google branding */
.btn-primary:not(.authenticated) {
    background: linear-gradient(135deg, #4285f4, #3367d6);
}

.btn-primary:not(.authenticated):hover {
    background: linear-gradient(135deg, #3367d6, #2851a3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.btn-primary:not(.authenticated) .fab.fa-google {
    color: white;
    font-size: 1rem;
}

/* When authenticated, show normal red styling */
.btn-primary.authenticated {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
}

.btn-primary.authenticated:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: rgba(230,0,18,0.05);
}

.btn i {
    transition: var(--transition);
}

.btn-primary.authenticated:hover i {
    transform: translateX(3px);
}

/* Sign-in Modal - Updated for Real Google Sign-In */
.signin-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.signin-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signin-header {
    margin-bottom: 2rem;
}

.signin-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.signin-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* Google Sign-In Button Container Styles */
.g_id_signin {
    margin: 1.5rem 0 !important;
    display: flex;
    justify-content: center;
}

/* Override Google's default button styles if needed */
.g_id_signin > div {
    margin: 0 auto !important;
}

.close-signin-btn {
    background: var(--bg-light);
    border: none;
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 1rem;
}

.close-signin-btn:hover {
    background: #ddd;
    color: var(--text-dark);
}

/* Booking Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.close-btn {
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
}

.success-alert {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.success-alert.show {
    display: flex;
}

/* Form Styles */
.booking-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group select option:disabled {
    color: #999 !important;
    background-color: #ffebee !important;
    font-style: italic;
}

.form-group select option:not(:disabled) {
    color: var(--text-dark);
    background-color: white;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-section a i {
    width: 20px;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
}

/* ============================================ */
/* ENHANCED MOBILE RESPONSIVE DESIGN */
/* Following homepage patterns */
/* ============================================ */

/* Tablet and Mobile - 768px and below */
@media (max-width: 768px) {
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Header adjustments */
    header {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo::before {
        width: 32px;
        height: 32px;
    }

    /* Navigation Menu */
    .header-nav {
        order: 3;
        flex-basis: 100%;
        margin-top: 1rem;
        margin-right: 0;
        justify-content: flex-start;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.98);
        flex-direction: column;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav a {
        display: block;
        padding: 1rem;
    }

    /* Auth Section Mobile */
    .auth-section {
        order: 2;
    }

    .user-info {
        background: rgba(255, 255, 255, 0.15);
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }

    .user-name {
        font-size: 0.8rem;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }

    .sign-out-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Hero Section */
    .hero {
        padding: 100px 15px 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Services Section */
    .services {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin: 1.5rem auto 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-header {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .service-info h3 {
        font-size: 1.2rem;
    }

    .service-duration {
        font-size: 0.85rem;
    }

    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-price {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    .service-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
    }

    /* Modal Adjustments */
    .modal-content,
    .signin-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        padding: 1.5rem;
        max-height: 85vh;
    }

    .modal-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .modal-title,
    .signin-title {
        font-size: 1.3rem;
    }

    .signin-subtitle {
        font-size: 0.9rem;
    }

    .close-btn {
        width: 36px;
        height: 36px;
    }

    /* Form Adjustments */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    /* Notification */
    .notification {
        top: 80px;
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Footer adjustments */
    footer {
        padding: 40px 15px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .copyright {
        font-size: 0.85rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* Small Mobile Devices - 480px and below */
@media (max-width: 480px) {
    /* Header */
    .logo {
        font-size: 1rem;
    }

    .logo::before {
        width: 28px;
        height: 28px;
    }

    .user-info {
        padding: 0.3rem 0.6rem;
    }

    .user-avatar {
        width: 26px;
        height: 26px;
    }

    .user-name {
        font-size: 0.75rem;
    }

    .sign-out-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    /* Hero */
    .hero {
        padding: 80px 15px 50px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    /* Services */
    .services {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .service-info h3 {
        font-size: 1.1rem;
    }

    .price-amount {
        font-size: 1.4rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-content,
    .signin-content {
        padding: 1.25rem;
    }

    .modal-title,
    .signin-title {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .notification {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 15px 50px;
    }

    .modal-content,
    .signin-content {
        max-height: 80vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for better mobile UX */
    nav a {
        padding: 1.2rem;
    }

    .btn {
        min-height: 44px;
    }

    .close-btn,
    .sign-out-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .service-icon {
        min-width: 44px;
        min-height: 44px;
    }

    /* Larger touch targets for form controls */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--white);
    }
    
    .service-card {
        border: 2px solid var(--text-dark);
    }
    
    .user-avatar {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .loading::after {
        animation: none;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .auth-section,
    .signin-modal,
    .modal,
    .notification {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .service-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .btn {
        border: 1px solid #000;
        color: #000 !important;
        background: transparent !important;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Focus indicators for better accessibility */
.btn:focus-visible,
.user-avatar:focus-visible,
.sign-out-btn:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 2px;
}

/* Enhanced loading states */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}