/* --- CSS RESET & GLOBALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    /*background-color: #111;
    color: #fff;
    /* NEW BACKGROUND IMAGE */
    /*background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1655628266959-12ec3f839a46?q=80&w=1742&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');*/
    /*background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;*/
    
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
}

/* --- NEW PARALLAX BACKGROUND --- */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150vh; /* 20% taller than the screen */
    
    /* Make sure your background link is still correct here */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/background.png');
    
    background-size: cover;
    background-position: center top; 
    z-index: -1; 
    pointer-events: none; 
}

/* --- NAVBAR --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: #007BFF;
}

/* --- SECTIONS --- */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism card effect for content */
.content-box {
    background: rgba(20, 20, 20, 0.35); 
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    width: 100%;
    text-align: center;
}

/* --- HOME / HERO --- */
#home h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 5.5rem; /* Pumped this up to make the script stand out */
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.8); /* Gives it a slight 3D pop */
}

#home p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 10px;
}

/*.hero-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}*/

/* --- SCROLL INDICATOR ANIMATION --- */
.scroll-indicator {
    display: inline-block;
    margin-top: 50px;
    color: #fff;
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: #007BFF;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 15px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #fff;
    color: #000;
}

/* --- SERVICES --- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.service-category {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.service-category h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #007BFF;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.service-item {
    margin-bottom: 20px;
}

.service-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.service-item p {
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding: 5px 0;
}

/* --- BOOKING FORM --- */
form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

input, select, textarea {
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: #007BFF;
}

::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

button[type="submit"] {
    grid-column: span 2;
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #0056b3;
}

/* --- NEW: OUR WORKS GALLERY --- */
#works .works-box {
    max-width: 1000px;
}

/* --- GALLERY GRID FIX FOR 3x2 --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces exactly 3 columns */
    gap: 30px;
    width: 100%;
}

/* Ensure sliders inside the grid fill their column nicely */
.compare-wrapper {
    width: 100%;
    margin: 0 auto;
}

.compare-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
}

.compare-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Let clicks pass through to the slider */
}

.img-before {
    /* Initially show 50% of the top image */
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.compare-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Invisible but functional */
    cursor: ew-resize;
    z-index: 10;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #007BFF;
    z-index: 5;
    pointer-events: none;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #007BFF;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: none;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.gallery-label {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: bold;
    letter-spacing: 1px;
}

/* --- OUR WORKS SUBTITLE LINK --- */
.social-redirect {
    display: block;
    margin-bottom: 30px;
    color: #aaaaaa; /* Classy faded gray */
    text-decoration: none; /* Kills the ugly underline */
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.social-redirect:hover {
    color: #007BFF; /* Lights up blue when they mouse over it */
}

/* --- PURE TEXT SHIMMER EFFECT (NO BOX/BUTTON) --- */
.promo-cta {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1.5px;
    cursor: pointer;
    
    /* Creates the gradient: Slightly faded white with a blinding white stripe in the middle */
    background: linear-gradient(
        120deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(255, 255, 255, 0.6) 40%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(255, 255, 255, 0.6) 60%, 
        rgba(255, 255, 255, 0.6) 100%
    );
    background-size: 200% auto;
    
    /* MAGIC TRICK: This forces the background color into the shape of the letters */
    color: #fff; /* Fallback for older browsers */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Runs the shimmer across the letters continuously */
    animation: textShimmer 3s linear infinite;
    transition: transform 0.3s ease;
}

/* Pops up slightly when hovered */
.promo-cta:hover {
    transform: scale(1.05);
}

/* The actual animation moving the light from left to right */
@keyframes textShimmer {
    to {
        background-position: 200% center;
    }
}

/* --- MOBILE RESPONSIVENESS ADJUSTMENTS --- */
@media (max-width: 768px) {
    nav { padding: 15px 10px; gap: 15px; flex-wrap: wrap; }
    nav a { font-size: 0.85rem; }
    .content-box { padding: 30px 20px; }
    #home h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem !important; }
    
    form { grid-template-columns: 1fr; }
    .form-group.full-width, button[type="submit"] { grid-column: span 1; }
    
    .service-category { min-width: 100%; }
    
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }

    /* Stack the before/after canvases on phones */
    /* Inside your @media block at the bottom of the file... */
    .gallery-grid {
        grid-template-columns: 1fr; /* Drops it down to 1 column on phones */
        gap: 40px; /* Gives a bit more breathing room between projects when stacked */
    }
    .compare-wrapper { width: 100%; }
}

/* --- MINIMALIST PROMO BANNER --- */
.discount-banner {
    background: transparent;
    color: #007BFF;
    border: 1px solid #007BFF;
    padding: 8px 16px;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 30px;
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* --- CLEAN CONTACT INFO --- */
.contact-info {
    margin-top: 10px;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* --- REDESIGNED WHY US SECTION --- */
.why-us-container {
    margin-top: 50px;
    text-align: left;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.2); /* Subtle inner box */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.why-title {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

.why-us-list {
    list-style: none;
    padding: 0;
}

.why-us-list li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* Stacks text on mobile */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.why-us-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.why-feature {
    color: #007BFF;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.why-separator {
    display: none; /* Hidden on mobile */
}

.why-benefit {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* --- DESKTOP LAYOUT FOR WHY US --- */
@media (min-width: 600px) {
    .why-us-list li {
        display: grid;
        grid-template-columns: 220px 20px 1fr; /* Fixed columns to perfectly align the pipes */
        align-items: baseline;
        gap: 15px;
    }
    
    .why-feature {
        text-align: right;
        margin-bottom: 0;
    }
    
    .why-separator {
        display: block;
        text-align: center;
        color: rgba(255, 255, 255, 0.2);
        margin: 0;
    }
    
    .why-benefit {
        flex: 1;
    }
}

.details-btn {
    background: transparent;
    color: #007BFF;
    border: 1px solid #007BFF;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.details-btn:hover {
    background: #007BFF;
    color: #fff;
}

/* --- MODAL (POP-UP) STYLING --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: #111;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #007BFF;
}

.modal-list {
    list-style-type: none;
    padding: 0;
}

.modal-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.modal-list strong {
    color: #fff;
    display: block;
    margin-bottom: 3px;
}

/* --- SERVICE CARD LAYOUT FIXES --- */
.service-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.service-header h4 {
    margin: 0; /* Kills any default margins pushing the button down */
    font-size: 1.2rem;
}

.details-btn {
    background: transparent;
    color: #007BFF;
    border: 1px solid #007BFF;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap; /* Forces the button text to stay on one line */
    flex-shrink: 0; /* Prevents the button from getting squished if the title is long */
    margin-left: 15px; /* Adds breathing room between the title and the button */
}

.details-btn:hover {
    background: #007BFF;
    color: #fff;
}