@import url('https://fonts.cdnfonts.com/css/vag-rounded');
@import url('https://fonts.cdnfonts.com/css/glacial-indifference');

:root {
    --headfont: 'VAG Rounded', sans-serif;
    --bodyfont: 'Glacial Indifference', sans-serif;
    --yellow: #fff38c;
    --black: rgb(109, 16, 49); 
    --crimson: rgb(183, 45, 87);
    --pink: #ecb2cc;
}

/* --- Base & Reset --- */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

p, button {
    font-family: var(--bodyfont);
    color: white;
    font-size: 24px;
}

button {
    padding: 10px 24px;
    border: 0;
    font-weight: bold;
    cursor: pointer;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 300ms ease, 
                background-color 300ms ease, 
                color 300ms ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

button:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--crimson);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(-1px) scale(1.02);
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--headfont);
    text-align: center;
}

h1 {
    color: var(--yellow);
    font-weight: 900;
    font-size: 60px;
    margin: 5px 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h2 {
    color: var(--yellow);
    font-weight: 900;
    font-size: 38px;
    margin: 5px 0;
}

h3 {
    color: white;
    font-weight: 900;
    font-size: 26px;
    margin: 10px 0 20px 0;
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 243, 140, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 243, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 243, 140, 0); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Navigation --- */
nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 80vw;
    height: 80px;
    position: absolute;
    top: 50px;
    left: 10vw;
    opacity: 1; /* Removed animation override */
    z-index: 100;
}

#nav-logo {
    height: 100%;
    width: auto;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

#nav-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

nav > a {
    color: white;
    font-weight: bold;
    font-size: 24px;
    width: auto;
    padding: 0;
    margin: 0;
    font-family: var(--headfont);
    cursor: pointer;
    transition: color 250ms ease, transform 250ms ease;
    position: relative;
}

nav > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: var(--yellow);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav > a:hover {
    transform: translateY(-2px);
    color: var(--yellow);
}

nav > a:hover::after {
    width: 100%;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

#home-header {
    background-color: var(--crimson);
    background-image:
        radial-gradient(at 0% 0%, var(--crimson) 0px, transparent 50%),
        radial-gradient(at 100% 0%, #db8353 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--yellow) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--pink) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--black) 0px, transparent 50%);
    background-size: 180% 180%;
    animation: radialMesh 12s ease-in-out infinite alternate;
}

#about-hero-header {
    background-image: url('images/about-header.png');
    background-size : 100%;
    width : 100vw;
    background-repeat : no-repeat;
}

@keyframes radialMesh {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 50% 100%;
    }
}

.button-container {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
    display: flex;
    gap: 15px;
}

/* --- Buttons --- */
.full-button {
    background-color: var(--yellow);
    color: var(--crimson);
    border-radius: 5px;  
    animation: pulseGlow 3s infinite;
}

.invis-button {
    background-color: transparent;
}

.invis-button:hover {
    color: var(--yellow);
    box-shadow: none;
}

/* --- Services Overview --- */
#services-overview {
    background-color: var(--crimson);
    min-height: 100vh;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#services-overview > * {
    margin: 10px 0;
}

#services-cards-container > * > p {
    color: white;
}

.service-button-container {
    background-color: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-button-container > button {
    border-radius: 50px;
    background-color: transparent;
    color: var(--crimson);
}

.service-button-container > .selected-button {
    border-radius: 50px;
    background-color: var(--crimson);
    color: white;
}

.service-button-container > button:hover {
    transform: scale(1.02);
    background-color: var(--pink);
    color: var(--crimson);
    box-shadow: none;
}

.service-button-container > .selected-button:hover {
    transform: scale(1);
    background-color: var(--crimson);
    color: white;
    cursor: default;
    box-shadow: none;
}

.service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    width: 65vw;
    height: auto;
}

.branding-container-img {
    height: 60vh;
    width: 20vw;
    border-radius: 20px;
    background-color: white;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    margin: 0 10vw;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.branding-container-img:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.branding-container-img > img {
    height: 100%;
    width: auto;
    background-color: transparent;
    animation: float 5s ease-in-out infinite;
}

.service-content {
    width: 40vw;
    height: auto;
}

.service-content > h3 {
    text-align : left;
}

/* --- Testimonials --- */
#testimonials > h2 {
    color: var(--crimson);
    margin: 40px 0;
    text-transform: capitalize;
}

#testimonial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 25%, rgba(183, 45, 87, 1) 75%, rgba(183, 45, 87, 1) 100%);
}

.testimonial {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: scale(1.01);
}

.testimonial > * {
    margin: 5px 0;
}

.testimonial > p {
    width: 40vw;
}

.testimonial > img {
    width: 15vw;
    height: auto;
    transition: transform 0.3s ease;
}

.testimonial:hover > img {
    transform: scale(1.08);
}

.pink-testimonial {
    background-color: var(--crimson);
    border-radius: 500px 0 0 500px;
    width: 90vw;
}

.white-testimonial {
    background-color: white;
    width: 100%;
}

.white-testimonial > h3 {
    color: var(--crimson);
}

.white-testimonial > p {
    color: var(--black);
}

/* --- Footer --- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
}

.contact-span, .copyright-span {
    height: 10vh;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-family: var(--headfont);
    font-size: 26px;
}

.contact-span > svg {
    height: 50px;
    width: 50px;
    fill: var(--crimson);
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-span > svg {
    transform: scale(1.2) rotate(10deg);
}

.contact-link:hover {
    text-decoration: underline;
    color: var(--black);
}

/* About Us */

.about-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.about-section > * {
    width: 50%;
}

/* Image Comparison Slider Styles */
.image-compare {
    position: relative;
    width: 100%;
    max-width: 50vw;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
    margin : 0;
}

.image-compare img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-compare .img-overlay {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    transition: clip-path 0.05s ease-out;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--crimson); /* Vibrant brand accent */
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: var(--crimson);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.text-content {
    display : flex;
    flex-direction : column;
    align-items : center;
    justify-content : center;
    padding : 0 20px;
}

.text-content > h2 {
    color : var(--crimson);
    text-align : left;
    width : 40vw;
}

.text-content > p {
    color : var(--black);
    text-align : left;
    width : 40vw;
}

#case-studies {
    margin : 40px 0;
}

#case-studies > * {
    color : var(--black);
    text-align : center;
}

#case-studies-container {
    display : flex;
    flex-direction : row;
    align-items : center;
    justify-content : center;
    
}

#case-studies-container > a  {
    width : 20vw;
    height : 35vh;
    background-color : pink;
    border-radius : 20px;
    overflow : hidden;
    background-color : white;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

#case-studies-container > a > img {
    height : auto;
    width : 100%;
}

#case-studies-container > a > * {
    color : var(--black);
}

.full-width-image {
    width : 100%;
    height : auto;
}

/* --- Responsive Styles (max-width: 980px) --- */
@media screen and (max-width: 980px) {

    h1, h2, h3 {
        text-align: left;
    }

    h1 {
        font-size: 50px;
    }

    p, button {
        font-size: 20px;
    }

    button {
        padding: 5px 10px;
        font-size: 24px;
    }

    nav {
        height: 90vh;
        width: 100vw;
        flex-direction: column;
        justify-content: space-around;
        left: 0;
        top: 0;
        background-color: var(--crimson, #a00000);
        padding: 40px 0;
        z-index: 90;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
        animation: none;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    #nav-logo {
        height: auto;
        width: 50%;
    }

    nav > a {
        z-index: 50;
    }

    nav > a::after {
        display: none;
    }

    /* Hamburger Menu */
    #nav-icon3 {
        width: 40px;
        height: 40px;
        position: absolute;
        top: 20px;
        left: 20px;
        margin: 0;
        transform: rotate(0deg);
        transition: .5s ease-in-out;
        cursor: pointer;
        z-index: 99;
    }

    #nav-icon3 span {
        display: block;
        position: absolute;
        height: 5px;
        width: 100%;
        background: var(--yellow, #f39c12);
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    #nav-icon3 span:nth-child(1) { top: 0px; }
    #nav-icon3 span:nth-child(2),
    #nav-icon3 span:nth-child(3) { top: 18px; }
    #nav-icon3 span:nth-child(4) { top: 36px; }

    #nav-icon3.open span:nth-child(1),
    #nav-icon3.open span:nth-child(4) {
        top: 18px;
        width: 0%;
        left: 50%;
    }

    #nav-icon3.open span:nth-child(2) { transform: rotate(45deg); }
    #nav-icon3.open span:nth-child(3) { transform: rotate(-45deg); }

    .header > * {
        width: 90vw;
        height: auto;
    }

    .service-button-container {
        display: none;
    }

    .service-card {
        display: flex !important;
        opacity: 1 !important;
        flex-direction: column;
        width: 65vw;
    }

    .branding-container-img {
        height: 50vh;
        width: 70vw;
        margin: 10vw 0;
    }

    .branding-container-img > img {
        height: auto;
        width: 90vw;
    }

    .service-content {
        width: 70vw;
    }

    .service-content > * {
        margin: 10px 0;
    }

    #testimonials {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #testimonials > h2 {
        width: 70vw;
        text-align: center;
    }

    #testimonial-container {
        background: #ffffff;
    }

    .testimonial > * {
        text-align: left;
        width: 70vw;
    }

    .testimonial > p {
        width: 70vw;
    }

    .testimonial > img {
        width: 60vw;
    }

    .pink-testimonial {
        border-radius: 10px;
    }

    .white-testimonial {
        border-radius: 0 10px 10px 0;
        width: 90vw;
    }

    footer {
        margin: 0;
        padding: 50px 0;
        background-color: var(--crimson);
    }

    footer > * {
        margin: 10px 0;
    }

    .contact-span, .copyright-span {
        max-width: 70vw;
        color: white;
        font-size: 20px;
        text-align: center;
    }

    .contact-span > svg {
        fill: var(--yellow) !important;
    }
    
    /* About Us */
    #home-header {
    
}

#about-hero-header {
    background-image: url('images/about-header.png');
    width : 100vw;
    background-repeat : no-repeat;
    background-color: var(--crimson);
    background-image:
        radial-gradient(at 0% 0%, var(--crimson) 0px, transparent 50%),
        radial-gradient(at 100% 0%, #db8353 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--yellow) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--pink) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--black) 0px, transparent 50%);
    background-size: 180% 180%;
    animation: radialMesh 12s ease-in-out infinite alternate;
}

#about-hero-header > * {
    width : 90vw;
}


.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.about-section > * {
    width: 90%;
}

/* Image Comparison Slider Styles */
.image-compare {
    position: relative;
    width: 100%;
    max-width: 90vw;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
    margin : 0;
    border-radius : 20px;
    margin : 20px 0;
}

.image-compare img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-compare .img-overlay {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    transition: clip-path 0.05s ease-out;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--crimson); /* Vibrant brand accent */
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: var(--crimson);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.text-content {
    display : flex;
    flex-direction : column;
    align-items : center;
    justify-content : center;
    padding : 0 20px;
}

.text-content > h2 {
    color : var(--crimson);
    text-align : left;
    width : 90vw;
}

.text-content > p {
    color : var(--black);
    text-align : left;
    width : 90vw;
}

#case-studies {
    margin : 40px 0;
}

#case-studies > h2 {
    color : var(--crimson);
    text-align : center;
}

#case-studies > p {
    color : var(--black);
    text-align : left;
    width : 90%;
    position : relative;
    left : 5%;
}

#case-studies-container {
    display : flex;
    flex-direction : row;
    align-items : center;
    justify-content : center;
    
}

#case-studies-container > a  {
    width : 90vw;
    height : 50vh;
    border-radius : 20px;
    overflow : hidden;
    background-color : white;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

#case-studies-container > a > img {
    height : auto;
    width : 100%;
}

#case-studies-container > a > h3 {
    color : var(--black);
    width : 90%;
    position : relative;
    left : 2.5%;
}

.full-width-image {
    width : 100%;
    height : auto;
}

}