  /* General Styles */
  :root {
    --primary: #0077b6;
    --secondary: #48cae4;
    --accent: #023e8a;
    --light: #f8f9fa;
    --dark: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    padding-top: 6rem;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('image/hakon-sataoen-qyfco1nfMtg-unsplash.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-img {
    height: 300px;
    overflow: hidden;
    
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    opacity: 0;
    animation: fadeInLeft 1s ease forwards;
}

.contact-form {
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: center;
}

.contact-icon img {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}


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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-col h3 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    list-style: none;
}

.social-links li {
    margin-right: 1rem;
}

.social-links img {
    display: block; /* Make sure the image is displayed as a block element */
    width: 32px; /* Define the width */
    height: 32px; /* Define the height */
    object-fit: cover; /* Ensures the image maintains its aspect ratio and fills the container */
    transition: all 0.3s ease;
}


.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: white;
        transition: all 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

   /* Reviews Section Styles */
   .reviews {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

.review-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.average-rating h3 {
    font-size: 3rem;
    margin: 0;
    color: var(--primary);
}

.rating-breakdown {
    width: 60%;
}

.star-row {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.star-label {
    width: 50px;
}

.progress-container {
    flex-grow: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 0 10px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

.star-count {
    width: 30px;
    text-align: right;
}

/* Updated styles for a more compact review form */
.review-form-container {
background-color: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: 20px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}

.review-form-container h3 {
font-size: 1.2rem;
margin-top: 0;
margin-bottom: 10px;
}

.review-form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}

.review-form .form-group {
margin-bottom: 8px;
}

.review-form label {
display: block;
font-size: 0.85rem;
font-weight: 500;
margin-bottom: 2px;
}
/* Make review text area full width and center submit button */
.review-form .form-group:last-child {
grid-column: 1 / span 2;  /* Make textarea span both columns */
}

.review-form textarea.form-control {
width: 100%;
min-height: 80px;
}

.review-form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
position: relative;
padding-bottom: 40px;  /* Add space for the button */
}

.review-form .btn {
padding: 6px 10px;
font-size: 0.85rem;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: auto;
display: inline-block;
margin-top: 10px;
}

@media (max-width: 768px) {
.review-form .form-group:last-child {
grid-column: 1 / span 1;  /* Return to single column on mobile */
}

.review-form {
grid-template-columns: 1fr;
padding-bottom: 40px;
}
}

.star-rating {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
margin-top: 2px;
}

.star-rating label {
font-size: 20px;
padding: 0 3px;
}

.review-form .btn {
padding: 6px 10px;
font-size: 0.85rem;
height: auto;
min-height: unset;
line-height: normal;
margin-top: 5px;

display: inline-block;
}

@media (max-width: 768px) {
.review-form-container {
padding: 12px;
}

.review-form {
gap: 8px;
}
}

.review-form .form-group:last-child {
    grid-column: span 2;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ddd;
    font-size: 24px;
    padding: 0 5px;
    cursor: pointer;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-stars {
    color: #ffc107;
}

.review-date {
    color: #777;
    font-size: 0.9rem;
}

.review-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-buttons button {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-buttons button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sort-dropdown select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .review-stats {
        flex-direction: column;
    }
    
    .rating-breakdown {
        width: 100%;
        margin-top: 20px;
    }
    
    .review-form {
        grid-template-columns: 1fr;
    }
    
    .review-form .form-group:last-child {
        grid-column: span 1;
    }
}