* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #5fc9b3;
    --accent-color: #8fbc5e;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* prevent logo from getting squished */
    margin-right: 16px;
}

.logo img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 320px;
}

.nav-menu {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    flex-wrap: wrap;
    list-style: none;
    gap: 18px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* Hero Section with Slider */
.hero {
    margin-top: 100px;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(95, 201, 179, 0.9)), 
                url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?w=1200') center/cover;
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(95, 201, 179, 0.9)), 
                url('https://images.unsplash.com/photo-1576201836106-db1758fd1c97?w=1200') center/cover;
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(95, 201, 179, 0.9)), 
                url('https://images.unsplash.com/photo-1587300003388-59208cc962cb?w=1200') center/cover;
}

.slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s 0.2s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s 0.4s both;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
    z-index: 10;
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.5);
}

.slider-controls .prev {
    left: 20px;
}

.slider-controls .next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* Section Common Styles */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-light);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Services Section */
.services {
    padding: 80px 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: white;
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Success Stories Section */
.success-stories {
    padding: 80px 0;
}

.success-stories h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.story-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.story-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.story-content {
    padding: 25px;
}

.story-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.story-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.story-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.story-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Ratings Section */
.ratings {
    padding: 80px 0;
    background: var(--white);
}

.ratings h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.ratings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.rating-lead {
    color: var(--text-light);
}

.rating-slider {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.rating-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    --rating-cards-per-view: 1;
}

.rating-card {
    min-width: calc(100% / var(--rating-cards-per-view));
    padding: 40px 30px;
}

.rating-card-inner {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.rating-name {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.rating-stars {
    color: #f4b400;
    font-size: 1.2rem;
}

.rating-message {
    color: var(--text-light);
    line-height: 1.8;
}

.rating-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.rating-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: background 0.3s, transform 0.3s;
}

.rating-control:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.rating-control.prev {
    left: 20px;
}

.rating-control.next {
    right: 20px;
}

.rating-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.rating-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d7de;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.rating-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.rating-empty {
    text-align: center;
    color: var(--text-light);
    padding: 30px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item .icon {
    font-size: 2rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

#formMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

#formMessage.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

#formMessage.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: min(500px, 100%);
    border-radius: 10px;
    position: relative;
}

.rating-modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

#ratingFormMessage {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
}

#ratingFormMessage.success {
    background: #d4edda;
    color: #155724;
}

#ratingFormMessage.error {
    background: #f8d7da;
    color: #721c24;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        height: 500px;
        margin-top: 100px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ratings-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-track {
        --rating-cards-per-view: 1;
    }

    .services-grid,
    .gallery-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .slider-controls button {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .hero {
        height: 400px;
    }

    .about h2,
    .services h2,
    .gallery h2,
    .success-stories h2,
    .ratings h2,
    .contact h2 {
        font-size: 2rem;
    }
}
