/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    color: #222;
    background: #EDE7F6;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: #6C38A1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(108,56,161,0.08);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFB300;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    margin-left: 2rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #FFB300;
}

.nav-links a.active {
    color: #FFB300;
    font-weight: bold;
}

.book-btn {
    background: #9C27B0;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.book-btn:hover {
    background: #FFB300;
    color: #6C38A1 !important;
}

.book-btn.active {
    background: #FFB300;
    color: #6C38A1 !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Page Sections */
.page-section {
    padding: 8rem 2rem 5rem;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(108,56,161,0.92), rgba(156,39,176,0.7)),
                url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #FFB300;
    color: #6C38A1;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 200px;
}

.cta-button:hover {
    background: #9C27B0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 16px rgba(108,56,161,0.08);
    border: 1px solid #d1b3ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108,56,161,0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #9C27B0;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #6C38A1;
}

/* Services Section */
.services {
    background: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #6C38A1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 16px rgba(108,56,161,0.08);
    border: 1px solid #d1b3ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108,56,161,0.15);
}

.service-card i {
    font-size: 2.5rem;
    color: #9C27B0;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #6C38A1;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.price {
    display: block;
    font-size: 1.2rem;
    color: #FFB300;
    margin-top: 1rem;
    font-weight: bold;
}

.price.coming-soon {
    color: #666;
    font-style: italic;
    font-size: 1rem;
}

.service-card .book-btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #6C38A1;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.service-card .book-btn:hover {
    background: #9C27B0;
    transform: translateY(-2px);
}

/* About Section */
.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #6C38A1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(108,56,161,0.15);
    display: block;
    margin: 0 auto;
    border: 4px solid #fff;
}

/* Contact Section */
.contact {
    background: #f9f9f9;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #6C38A1;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: #9C27B0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #6C38A1;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #9C27B0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #9C27B0 0%, #6C38A1 100%);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* Booking Section */
.booking h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #6C38A1;
}

.booking-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.booking-form {
    display: grid;
    gap: 1.5rem;
}

.booking-form .form-group {
    margin-bottom: 1.5rem;
}

.booking-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #6C38A1;
    font-weight: bold;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: #9C27B0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

/* Footer */
footer {
    background: #6C38A1;
    color: #fff;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #FFB300;
}

.footer-section a {
    color: #FFB300;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: #9C27B0;
}

.visitor-counter {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #FFB300;
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #FFB300;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #9C27B0;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #FFB300;
    color: #6C38A1;
}

/* Map Section */
.map-section {
    background: #fff;
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Contact Info Cards */
.contact-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 16px rgba(108,56,161,0.08);
    border: 1px solid #d1b3ff;
    text-align: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,56,161,0.15);
}

.contact-info-card h3 {
    color: #6C38A1;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-info-card p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.contact-info-card a {
    color: #9C27B0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: #6C38A1;
}

/* Gallery Section */
.gallery {
    background: #EDE7F6;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #6C38A1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 16px rgba(108,56,161,0.08);
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108,56,161,0.15);
}

.haircut-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #6C38A1;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.gallery-image {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(108,56,161,0.10);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.02);
}

.gallery-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108,56,161,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-link:hover {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
}

.gallery-content i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.gallery-content h3 {
    font-size: 1.2rem;
}

/* Booking Confirmation Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 500px;
}

.success-message {
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.error-message {
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.success-message i,
.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message h3,
.error-message h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message p,
.error-message p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Time Select Styling */
select#time {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

select#time:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

select#time option {
    padding: 0.5rem;
}

select#time option:disabled {
    color: #999;
    font-style: italic;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Navigation improvements */
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #6C38A1;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        margin: 0.75rem 0;
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        width: 80%;
        text-align: center;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Layout improvements */
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Typography improvements */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    /* Grid improvements */
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    /* Spacing improvements */
    .page-section {
        padding: 6rem 1rem 3rem;
    }
    
    .service-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    .contact-form,
    .booking-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    /* Form improvements */
    .form-group input,
    .form-group textarea,
    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
    
    /* Button improvements */
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Footer improvements */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Map improvements */
    .map-container {
        height: 350px;
    }
    
    /* Contact info improvements */
    .contact-info-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .contact-info-card h3 {
        font-size: 1.1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-width: 160px;
    }
    
    .service-card,
    .feature-card {
        padding: 1.25rem;
    }
    
    .contact-form,
    .booking-container {
        padding: 1.25rem;
    }
    
    .gallery-item {
        padding: 1.25rem 1.25rem 1rem 1.25rem;
    }
    
    .gallery-image {
        max-width: 280px;
    }
    
    /* Map improvements for small screens */
    .map-container {
        height: 300px;
    }
    
    /* Contact info improvements for small screens */
    .contact-info-card {
        padding: 1rem;
    }
    
    .contact-info-card h3 {
        font-size: 1rem;
    }
    
    .contact-info-card p {
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .cta-button,
    .submit-btn,
    .book-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .social-links a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-info-card {
        min-height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature-card,
.about-content,
.contact-container {
    animation: fadeIn 0.8s ease-out;
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Improve scrolling performance */
    .nav-links {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better touch feedback */
    .service-card,
    .feature-card,
    .gallery-item,
    .contact-info-card {
        -webkit-tap-highlight-color: rgba(156, 39, 176, 0.1);
    }
    
    /* Improve form usability */
    input, select, textarea {
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    /* Better button feedback */
    .cta-button,
    .submit-btn,
    .book-btn {
        -webkit-tap-highlight-color: transparent;
    }
} 