/* Basic Reset & Body Styling */
html {
    font-size: 16px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
    overflow: hidden; /* This is intentional for the full-screen slider effect */
    color: #fff;
}

a {
    color: #fff;
    text-decoration: none;
}

ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}

figure {
    margin: 0;
}

/* --- UPDATED HEADER AND NAV STYLING --- */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 2.5rem;
    z-index: 20;
    box-sizing: border-box;
}

/* New header-top-row for desktop layout */
.header-top-row {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
}

.logo {
    position: static; /* No longer needs absolute positioning here */
}

.logo img {
    display: block;
    height: 8rem;
    width: auto;
}

.nav {
    position: absolute;
    /* Vertically center nav relative to the top row for desktop */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.nav li {
    display: block;
    margin: 0 1.5rem;
    padding: 0;
}

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    font-size: calc(0.6rem + 0.35vw);
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav a span {
    position: relative;
}

.nav a span::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: right;
    transform: scaleX(0);
}

.nav a:hover span::before,
.nav a.is-active span::before {
    transform: scaleX(1);
    transform-origin: left;
    background-color: #fff;
}

.nav a:hover,
.nav a.is-active {
   color: #fff;
}

/*
==============================================
=========== SOCIAL ICON STYLES ===============
==============================================
*/
.social-icons {
    position: absolute;
    top: 50%;
    right: 0; /* Aligns to the right edge of the header padding */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between icons */
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Scroll Indicator */
.scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: calc(0.5rem + 0.35vw);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Vertical Text Styling */
.vert-text {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 15rem;
    display: flex;
    align-items: center;
    z-index: 10;
}

.vert-text span {
    display: block;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    transform: rotate(-90deg) translateY(15rem);
    transform-origin: bottom left;
    font-size: calc(0.8rem + 0.2vw);
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Slider Core Styles */
.slider {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

/* Text Overlay on Slider */
.slider__text {
    position: absolute;
    bottom: calc(3rem + 4vw);
    left: calc(3rem + 4vw);
    z-index: 10;
    font-size: calc(1.5rem + 4vw);
    text-transform: uppercase;
    transform-origin: top;
    line-height: 1.1;
    color: #fff;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.slider__text-line {
    overflow: hidden;
}

/* Slider Inner Container (for WebGL Canvas) */
.slider__inner {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

/* Slider Navigation Bullets */
.slider__nav {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-bullet {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    cursor: pointer;
}

.slider-bullet__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

 .slider-bullet.is-active .slider-bullet__text {
     color: #fff;
 }

.slider-bullet__line {
    background-color: rgba(255, 255, 255, 0.5);
    height: 1px;
    width: 1.5rem;
    transition: background-color 0.3s ease;
}

.slider-bullet.is-active .slider-bullet__line {
     background-color: #fff;
 }

/* Individual Slide Styles */
.slide {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

 .slide.is-active {
     opacity: 1;
     visibility: visible;
 }

.slide__content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 120px 2rem 2rem; /* Add padding to avoid overlap with header */
    box-sizing: border-box;
}

/* Image Styling within Slides */
.slide__img {
    position: relative;
    width: 28vw;
    height: 75vh;
    padding: 0;
    margin: 0 1vw;
    min-width: 15rem;
    transform-origin: center center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.slide__img img {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

 .slide__img:hover img {
    transform: scale(1.05);
 }

/* Ensure canvas takes full space */
.slider__inner canvas {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

/* --- STYLES for About Us and Contact Us --- */
.about-us__content {
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3vw;
}

.about-us__img {
    flex-shrink: 0;
}

.about-us__text {
    color: #fff;
    max-width: 450px;
}

.about-us__text h2 {
    font-size: calc(1.5rem + 2.5vw);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.about-us__text p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.contact-us__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.contact-us__text {
    position: static;
    transform: none;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.contact-form button {
    background-color: #fff;
    color: #111;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #ccc;
}

/* --- NEW STYLES for Services Page --- */
.services-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    /* Added for mobile scrolling */
    overflow-y: auto;
    max-height: 100%;
}

.services-container h2 {
    font-size: calc(1.5rem + 2.5vw);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
}

.service-emoji {
    font-size: 2.5rem;
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-list h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.service-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 0.25rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fff; /* Checkmark color */
}


/*
==============================================
=========== RESPONSIVE STYLES ==============
==============================================
*/

/* Tablet and below */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .slide__img {
        width: 35vw;
        height: 60vh;
    }

    .slider__text {
        font-size: calc(1rem + 5vw);
        left: 2rem;
        bottom: 2rem;
    }

    .about-us__content {
        flex-direction: column;
        text-align: center;
    }

    .about-us__img {
        height: 40vh;
        width: 60vw;
        max-width: 400px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .main-header {
        position: absolute;
        height: auto;
        padding: 0.5rem 0; /* Updated padding */
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(17, 17, 17, 0.8);
    }
    
    .header-top-row {
        position: relative;
        height: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .logo {
        margin: 0;
    }

    .logo img {
        height: 3.5rem; /* Smaller logo for balance */
    }

    .social-icons {
        position: static;
        transform: none;
        gap: 1.2rem;
    }

    .social-icons a {
        font-size: 1.3rem;
    }

    .nav {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0.25rem;
    }

    .nav ul {
        justify-content: space-around;
        width: 100%;
    }

    .nav li {
        margin: 0 0.5rem;
    }

    .nav a {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    /* Hide decorative elements on mobile */
    .slider__nav, .vert-text, .scroll {
        display: none;
    }

    .slide__content {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        gap: 1.5rem;
        overflow-y: auto;
    }

    /* Portfolio Slide */
    .slide__img {
        width: 80vw;
        height: 50vh;
        min-width: unset;
        margin: 0;
    }

    .slider__text {
        position: relative;
        bottom: auto;
        left: auto;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
        font-size: calc(1.5rem + 6vw);
        margin-top: 1rem;
    }

    /* Services Slide */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-container {
        padding: 1rem;
    }
     .services-container h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    /* About Us Slide */
    .about-us__img {
        height: 30vh;
        width: 70vw;
    }
    
    .about-us__text {
        max-width: 90%;
    }

    .about-us__text h2 {
        font-size: 2.5rem;
    }
    .about-us__text p {
        font-size: 0.9rem;
    }

    /* Contact Us Slide */
    .contact-us__container {
        justify-content: flex-start;
        padding-top: 2rem;
    }
    .contact-us__text {
        margin-bottom: 1.5rem;
    }
    .contact-form {
        width: 90%;
    }
}
/*
==============================================
=========== FOOTER STYLES ====================
==============================================
*/

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50; /* High enough to be on top of the slider canvas */
    padding: 0.75rem 2rem;
    box-sizing: border-box;
    background: rgba(17, 17, 17, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Nice blur effect if supported */
    -webkit-backdrop-filter: blur(5px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content .address {
    margin: 0;
    padding: 0;
}

.footer-content a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Make footer responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 0.5rem 1rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.7rem;
        text-align: center;
    }
}