/* Base styles */
:root {
    --primary: #FF6A00;
    --accent: #FFD700;
    --background: #0A1F44;
}
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: #fff;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

h1 {
    color: black;
    font-size: 24px;
    margin-top: 10px;
}

/* Image defaults */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation */
.navbar {
    background-color: #16213e;
    padding: 10px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar.shadow {
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar a {
    color: var(--accent);
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    text-decoration: underline;
}
.navbar a:focus {
    outline: 2px dashed var(--accent);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .navbar a {
        display: block;
        margin: 10px 0;
    }
}

/* Troubleshooting section styling */
.troubleshoot {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
}
.troubleshoot h3 {
    color: var(--accent);
    margin-top: 0;
}
.troubleshoot li {
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    background-color: var(--primary);
    color: black;
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #e85d00;
    transform: translateY(-2px);
}
/* Before & After Section */
.before-after {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}

.before-after img {
    width: 100%;
    max-width: 400px;
    border-radius: 5px;
}
/* Gallery */
.gallery .grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 5px;
    border: 3px solid var(--accent);
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.05);
}
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 20px;
    flex-wrap: wrap;
    background: var(--background);
}

.hero-text {
    max-width: 400px;
    text-align: left;
    color: #fff;
}

.hero-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero-text p {
    margin-bottom: 20px;
}

.hero img {
    width: 100%;
    max-width: 500px;
    border-radius: 5px;
}
.image-label {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
    margin-top: 2px;
}

/* Testimonial */
.testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    margin: 15px auto;
    width: 80%;
    text-align: center;
}

.gallery img, .testimonial img {
    max-width: 300px;
    width: 100%;
    border-radius: 6px;
    margin: 10px auto;
}

/* Review */
.review {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--accent);
    margin: 20px auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 700px;
}
.review-rating {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 10px;
}

/* Social media icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.social-icons img {
    width: 20px;
    height: 20px;
}

/* Forms */
.container {
    padding: 20px;
    max-width: 800px;
    margin: 50px auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

footer {
    background: linear-gradient(to right, var(--primary), var(--accent));
    padding: 25px 15px;
    font-weight: bold;
    margin-top: 20px;
    color: #1a1a2e;
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: none;
}

/*
 * Only apply the fade-in effect when JavaScript is able to run.
 * Images remain visible by default, but JS will add a `lazy-init`
 * class to trigger the transition and a `lazy-loaded` class once
 * the image has finished loading.
 */
img[loading="lazy"] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

img.lazy-loaded {
    opacity: 1;
    transform: translateY(0);
}

.lazy-init:not(.lazy-loaded) {
    opacity: 0;
    transform: translateY(20px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.lightbox.show {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .hero {
        flex-direction: column;
    }
    .hero-text {
        text-align: center;
    }
    .gallery-grid img {
        width: 100%;
        height: auto;
    }
}
