* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

a {
    color: #FFFFFF;
}
a:hover, a:visited, a:active {
    color: #FFFFFF;
}

h1 {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header.sticky {
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo {
    height: 50px;
}

header h1 {
    font-size: 24px;
    font-weight: 700;
}

header nav {
    display: flex;
    align-items: center;
}

header nav a {
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

header nav a:hover::after {
    width: 100%;
}

main {
    padding: 15px 0;
}

.hero {
    background: url('https://images.unsplash.com/photo-1519750783829-eb7ed1e449d0') no-repeat center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    animation: fadeIn 1s ease-in;
}

.cta-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-button.small {
    padding: 6px 12px;
    font-size: 12px;
}

.businesses, .testimonials, .about, .services, .case-studies {
    padding: 40px 0;
}

h2, .admin-dashboard h3, .admin-dashboard h4 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

.admin-dashboard h3, .admin-dashboard h4 {
    font-size: 24px;
}

.business-grid, .service-grid, .about-grid, .case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.business-card {
    perspective: 1000px;
    height: 280px;
    position: relative;
}

.business-front, .business-back {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
}

.business-front {
    z-index: 2;
}

.business-back {
    transform: rotateY(180deg);
}

.business-card:hover .business-front {
    transform: rotateY(-180deg);
}

.business-card:hover .business-back {
    transform: rotateY(0);
}

.business-card img {
    max-height: 70px;
    margin-bottom: 10px;
}

.business-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.service-card, .about-grid div, .case-study-grid div {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.service-card img {
    max-height: 70px;
    margin-bottom: 10px;
}

.service-card h3, .about-grid h3, .case-study-grid h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.service-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.service-details div {
    margin-bottom: 15px;
    width: 100%;
}

.service-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-details ul {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
}

.business-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.business-images img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.business-images img:hover {
    transform: scale(1.05);
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 8px;
}

.testimonial h4 {
    font-size: 16px;
}

.carousel-controls {
    text-align: center;
    margin-top: 15px;
}

.carousel-controls button {
    border: none;
    padding: 8px 16px;
    margin: 0 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-info {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 15px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    padding: 20px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: slideIn 0.5s ease;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    padding: 10px;
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
}

#contactForm input, #contactForm textarea, .admin-form input, .admin-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
}

#contactForm textarea, .admin-form textarea {
    height: 80px;
}

footer {
    padding: 15px 0;
    text-align: center;
}

#scrollTop {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 20px;
    transition: background 0.3s;
}

.admin-login, .admin-dashboard {
    padding: 30px 0;
}

.admin-form {
    padding: 15px;
    border-radius: 8px;
    max-width: 550px;
    margin: 15px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.admin-form .cta-button {
    width: 100%;
}

.admin-form .delete {
    background: #A30E25;
}

.admin-form .delete:hover {
    background: #8B0C20;
}

.admin-form a {
    text-decoration: none;
}

.admin-form a:hover {
    text-decoration: underline;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.dropzone {
    border: 2px dashed;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 10px;
}

.dropzone img {
    max-width: 80px;
    margin-top: 8px;
}

.message-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.message-table th, .message-table td {
    padding: 8px;
    border: 1px solid;
    text-align: left;
}

.message-table th {
    font-weight: bold;
}

.error, .success {
    text-align: center;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile-Friendly Responsive Design */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 28px;
    }

    .business-grid, .service-grid, .about-grid, .case-study-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }

    .business-card {
        height: 260px;
    }

    .business-images img {
        width: 120px;
        height: 80px;
    }
}

@media (max-width: 767px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header .logo {
        height: 40px;
    }

    header h1 {
        font-size: 20px;
        margin: 10px 0;
    }

    header nav {
        margin-top: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav a {
        margin: 5px 8px;
        font-size: 13px;
    }

    .hero {
        height: 350px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .business-grid, .service-grid, .about-grid, .case-study-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .business-card {
        height: 300px;
    }

    .business-card img {
        max-height: 60px;
    }

    .business-card h3 {
        font-size: 18px;
    }

    .service-card img {
        max-height: 60px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .testimonial img {
        width: 50px;
        height: 50px;
    }

    .testimonial h4 {
        font-size: 14px;
    }

    .carousel-controls button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .admin-form, .contact-info, .modal-content {
        max-width: 100%;
        padding: 12px;
    }

    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .image-modal-content img {
        max-height: 70vh;
    }

    .message-table {
        font-size: 12px;
    }

    .message-table th, .message-table td {
        padding: 6px;
    }

    h2, .admin-dashboard h3, .admin-dashboard h4 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .admin-dashboard h3, .admin-dashboard h4 {
        font-size: 20px;
    }

    .service-details h3 {
        font-size: 16px;
    }

    .business-images img {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 18px;
    }

    header .logo {
        height: 35px;
    }

    header nav a {
        font-size: 12px;
        margin: 4px 6px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .cta-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    h2, .admin-dashboard h3, .admin-dashboard h4 {
        font-size: 20px;
    }

    .admin-dashboard h3, .admin-dashboard h4 {
        font-size: 18px;
    }

    .business-card {
        height: 280px;
    }

    .message-table {
        font-size: 10px;
    }

    .message-table th, .message-table td {
        padding: 4px;
    }

    .business-images img {
        width: 80px;
        height: 60px;
    }

    .image-modal-content img {
        max-height: 60vh;
    }
}