/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a237e;
    background: linear-gradient(135deg, #e8f5e8 0%, #f3e5f5 50%, #e3f2fd 100%);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 0.3rem;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 1rem;
    color: #546e7a;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Hero section */
.hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.wave-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: wave 10s ease-in-out infinite;
}

.wave-background::before,
.wave-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: inherit;
    animation: waveMove 20s linear infinite;
}

.wave-background::before {
    animation-delay: -10s;
    opacity: 0.7;
}

.wave-background::after {
    animation-delay: -15s;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInScale 1s ease-out 0.5s both;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.explore-btn, .webcam-btn {
    background: linear-gradient(45deg, #ff9800, #ff5722);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.explore-btn:hover, .webcam-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.webcam-btn {
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.webcam-btn:hover {
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Directory section */
.directory {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.directory h2 {
    font-size: 2rem;
    color: #1976d2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e3f2fd;
    color: #1976d2;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
    animation: fadeInScale 0.5s ease-out;
}

.business-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: calc(var(--delay, 0) * 0.1s);
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.business-card:nth-child(1) { --delay: 1; }
.business-card:nth-child(2) { --delay: 2; }
.business-card:nth-child(3) { --delay: 3; }

.business-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.business-card:hover::before {
    opacity: 1;
}

.business-card h3 {
    color: #1a237e;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.business-card p {
    color: #546e7a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 2rem 1rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h2 {
    font-size: 1.5rem;
    color: #1976d2;
    margin-bottom: 0.5rem;
}

.cta-section p {
    font-size: 1rem;
    color: #546e7a;
    margin-bottom: 1rem;
}

.cta-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.cta-btn:hover::before {
    left: 100%;
}

/* Pricing section */
.pricing-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-container h2 {
    font-size: 2rem;
    color: #1976d2;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border: 3px solid #ff9800;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #ff9800;
    color: white;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: #1976d2;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff9800;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: #546e7a;
    border-bottom: 1px solid #e3f2fd;
}

.pricing-btn {
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    width: 100%;
}

.pricing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Contact section */
.contact-section {
    background: linear-gradient(135deg, #f3e5f5 0%, #e3f2fd 100%);
    padding: 2rem 1rem;
    text-align: center;
}

.contact-section h2 {
    font-size: 1.5rem;
    color: #1976d2;
    margin-bottom: 0.5rem;
}

.contact-section p {
    font-size: 1rem;
    color: #546e7a;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-item h3 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.contact-item p {
    color: #546e7a;
}

/* Search bar */
.search-container {
    margin-bottom: 2rem;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    border: 2px solid #e3f2fd;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e3f2fd;
    position: relative;
}

.modal-header h2 {
    color: #1976d2;
    margin: 0;
    font-size: 1.8rem;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #546e7a;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #1976d2;
}

.modal-body {
    padding: 2rem;
}

.business-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.business-details p {
    margin-bottom: 1rem;
    color: #546e7a;
}

.business-website {
    display: inline-block;
    background: #2196f3;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.business-website:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #546e7a;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25px);
    }
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
