/* Modern Reset & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-red: #E61E25;
    /* Vibrant red from the brand image */
    --text-dark: #121212;
    --text-gray: #666666;
    --bg-white: #ffffff;
    --bg-subtle: #f8f9fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Modern Split Layout */

/* Body & Main Container */
/* Body & Main Container */
body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Split 50/50 */
}

/* LEFT SIDE: Text Content */
.content-side {
    padding: 4rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #ffffff 0%, #f4f4f4 100%);
    overflow-y: auto;
    /* Allow scrolling */
}

/* RIGHT SIDE: Slideshow */
.image-side {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Use a mask to seamlessly blend the image into the white background on the left */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
    background-color: var(--bg-white);
    /* Match the body background */
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 18s infinite;
}

/* Images */
.slide:nth-child(1) {
    animation-delay: 0s;
    background-image: url('assets/img/slide1.png');
}

.slide:nth-child(2) {
    animation-delay: 6s;
    background-image: url('assets/img/slide2.png');
}

.slide:nth-child(3) {
    animation-delay: 12s;
    background-image: url('assets/img/slide3.png');
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    5% {
        opacity: 1;
    }

    33% {
        opacity: 1;
        transform: scale(1);
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Header / Logo */
.top-url {
    position: absolute;
    top: 2rem;
    left: 6rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    text-decoration: underline;
    text-decoration-color: var(--primary-red);
    text-underline-offset: 4px;
}

header {
    position: absolute;
    top: 3rem;
    left: 6rem;
    margin: 0;
    z-index: 20;
    padding: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Hero Text Styling */
/* Hero Text Styling */
.hero {
    text-align: left;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-red) 0%, #ff8e8e 50%, var(--primary-red) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero p.tagline {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Pills */
.services-pill {
    display: inline-flex;
    gap: 1.5rem;
    padding: 0;
    margin-bottom: 2.5rem;
    background: transparent;
    border: none;
}

.service-item {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
}

.service-item:hover {
    color: var(--primary-red);
    transform: translateY(-2px);
    display: inline-block;
}

/* Contact Grid - Compact Vertical */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.contact-card {
    padding: 0;
    background: transparent;
}

.contact-card h3 {
    font-size: 0.75rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-red);
}

/* Footer */
/* Footer */
footer {
    position: absolute;
    bottom: 2rem;
    left: 6rem;
    font-size: 0.8rem;
    color: #999;
    text-align: left;
    padding: 0;
    width: auto;
}

/* Text Entrance Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-url,
header,
.services-pill,
.hero h1,
.hero p.tagline,
.contact-grid,
footer {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

.top-url {
    animation-delay: 0s;
}

header {
    animation-delay: 0.1s;
}

.services-pill {
    animation-delay: 0.3s;
}

.hero h1 {
    animation-delay: 0.5s;
}

.hero p.tagline {
    animation-delay: 0.7s;
}

.contact-grid {
    animation-delay: 0.9s;
}

footer {
    animation-delay: 1.1s;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    body {
        grid-template-columns: 1fr;
        /* Stack */
        overflow-y: auto;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .image-side {
        height: 35vh;
        /* Image on top */
        order: -1;
        width: 100%;
        flex-shrink: 0;
        /* Gradient from bottom (transparent) to top (opaque) on mobile */
        -webkit-mask-image: linear-gradient(to top, transparent 0%, black 30%);
        mask-image: linear-gradient(to top, transparent 0%, black 30%);
    }

    .content-side {
        padding: 2rem;
        width: 100%;
        overflow: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center flex items */
        text-align: center;
        /* Center text */
    }

    /* Fix header overlap by making them flow naturally */
    .top-url {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 0.5rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    header {
        position: relative;
        top: 0;
        left: 0;
        margin: 0;
        margin-bottom: 2rem;
        padding: 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .logo img {
        height: 40px;
        /* Slightly smaller on mobile */
    }

    .hero {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }

    .services-pill {
        flex-wrap: wrap;
        /* Allow wrapping */
        gap: 1rem;
        margin-bottom: 2rem;
        justify-content: center;
        /* Center pills */
    }

    .hero h1 {
        font-size: 3rem;
        /* Smaller hero text */
    }

    footer {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 3rem;
        width: 100%;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}