:root {
    --primary: #2c3e50;
    /* Dark slate blue for a high-end feel */
    --secondary: #ffffff;
    --accent: #ecf0f1;
    /* Light gray accent */
    --bg: #f5f5f5;
    --text: #333333;
}

/* Reset and Body Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal scroll on mobile if something is slightly too wide */
html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f9f9f9, #e8e8e8);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 35px;
    width: 35px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* NAV styles */
header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

header nav ul.show {
    display: flex;
}

header nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #1e90ff;
}

/* Hamburger icon */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    min-height: 100vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg,
            rgba(44, 62, 80, 0.15),
            rgba(236, 240, 241, 0.15));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--secondary);
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin: 0 auto 40px auto;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--accent);
}

/* Sections (Base) */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Popular Services Section */
#popular-services {
    background-color: #ffffff;
}

/* Our Services Section */
#our-services {
    background-color: #fefefe;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.service-card {
    background: var(--secondary);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 300px;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.booking-info {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

.btn-service {
    margin: 20px auto 0 auto;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-service:hover {
    background: #243447;
}

.btn-toggle {
    display: inline-block;
    margin: 10px auto 0 auto;
    background: #e0e0e0;
    color: #333;
    padding: 8px 16px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-toggle:hover {
    background: #ccc;
}

.hidden-info {
    display: none;
    margin-top: 15px;
    text-align: left;
    font-size: 0.95rem;
    color: #555;
}

/* Gallery Section */
#gallery {
    background-color: #ffffff;
    padding: 80px 5%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

/* Slight blur for videos, removed on hover (desktop) */
.video-item video {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.video-item:hover video {
    filter: none;
}

.rotated-video {
    display: block;
    transform-origin: center;
}

/* Booking Form */
.booking-form {
    max-width: 500px;
    background: var(--secondary);
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.booking-form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.booking-form button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.booking-form button:hover {
    background: #243447;
}

/* Contact Section */
.contact-section {
    background: var(--secondary);
    padding: 80px 5%;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-section .contact-info {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    /* Show hamburger, hide nav by default */
    .hamburger {
        display: flex;
    }

    /* Hide nav by default on mobile */
    header nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: var(--secondary);
        position: absolute;
        top: 60px;
        right: 5%;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    /* The .show class (toggled via JS) will display the nav */
    header nav ul.show {
        display: flex;
    }

    /* Adjust logo & font sizes */
    .logo {
        font-size: 1.5rem;
    }

    .logo-container img {
        height: 30px;
        width: 30px;
    }

    header nav ul li a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Make sure service cards don't overflow horizontally on mobile */
    .services-grid {
        flex-direction: column;
        gap: 20px;
        /* smaller gap on mobile to avoid overflow */
        align-items: center;
    }

    .service-card {
        flex: none;
        /* let it shrink freely */
        max-width: 100% !important;
        width: 100%;
        margin: 0 auto;
    }

    /* Smaller images on mobile in gallery */
    .gallery-item img,
    .gallery-item video {
        max-height: 300px;
    }

    /* Reduce section padding for smaller screens (optional) */
    section {
        padding: 60px 5%;
    }
}