:root {
    --primary: #00B4D8;
    --primary-dark: #0077B6;
    --accent: #FFB703;
    --dark: #03045E;
    --light: #CAF0F8;
    --white: #FFFFFF;
    --gray: #ADB5BD;
    --surface: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-svg {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--dark);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-text span {
    color: var(--primary);
    display: block;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 180, 216, 0.4);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 4rem 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    gap: 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--light) 0%, transparent 70%);
    opacity: 0.4;
    border-radius: 50%;
    z-index: -1;
}

.hero-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content h1 span {
    color: var(--primary);
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.4);
}

.secondary-btn {
    background: transparent;
    color: var(--dark);
    padding: 1.2rem 3rem;
    border: 2px solid var(--dark);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.4s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.image-placeholder {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.before-image {
    /* Replace with your actual "before" grout image URL */
    background-image: url('picts/Broken tiles replaced then floor grout color sealed/IMG_5395.jpeg');
    z-index: 2;
    overflow: hidden;
}

.after-image {
    /* Replace with your actual "after" grout image URL */
    background-image: url('picts/Broken tiles replaced then floor grout color sealed/IMG_5399.jpeg');
    z-index: 1;
}

.slider-handle {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--white);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-handle::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1;
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    border-radius: 8px;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.ba-label.before {
    left: 20px;
}

.ba-label.after {
    right: 20px;
}

/* Services Section */
.services {
    padding: 6rem 5%;
    background: var(--surface);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Before/After Section */
.before-after {
    padding: 6rem 5%;
    background: var(--white);
}

.ba-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.ba-item {
    text-align: center;
}

.ba-item h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.ba-item.before h3 {
    color: #E63946;
}

.ba-item.after h3 {
    color: #06D6A0;
}

.ba-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 2rem;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--white);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ba-placeholder::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.ba-placeholder span {
    position: relative;
    z-index: 2;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ba-item.before .ba-placeholder {
    /* Placeholder for before image - replace with your actual image URL */
    background-image: url('https://images.unsplash.com/photo-1584622781564-1d987f7333c1?w=800&q=80');
}

.ba-item.after .ba-placeholder {
    /* Placeholder for after image - replace with your actual image URL */
    background-image: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=800&q=80');
}

/* Why Choose Us */
.why-us {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.why-us .section-title h2,
.why-us .section-title p {
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature:nth-child(2) .feature-icon {
    animation-delay: 0.5s;
}

.feature:nth-child(3) .feature-icon {
    animation-delay: 1s;
}

.feature:nth-child(4) .feature-icon {
    animation-delay: 1.5s;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: var(--light);
    line-height: 1.8;
}

/* Reviews Section */
.reviews {
    padding: 6rem 5%;
    background: var(--white);
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
}

.review-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.platform-card {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.platform-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--dark);
}

.platform-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.stars {
    color: var(--accent);
}

.rating-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.review-count {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.platform-link {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 1rem;
}

.platform-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.integration-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--surface) 100%);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.integration-note h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.integration-note p {
    color: var(--gray);
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background: var(--surface);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item-icon {
    font-size: 2rem;
    color: var(--primary);
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-item p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-form h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.4);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 2rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .ba-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

.logo {
  max-width: 100%; /* Ensures the image does not exceed the width of its container */
  height: auto;    /* Automatically adjusts the height to maintain the aspect ratio */
  display: block;  /* Optional: Helps with alignment and margin issues, especially for centering */
}

.privacy-policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    margin-top: 100px;
}