@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

:root {
    --primary-color: black;
    --secondary-color: white;
    --font-primary: black;
    --font-secondary: #636568;
    --ff: "Google Sans Flex", sans-serif;
    --h1: bold 54px/64px var(--ff);
    --h2: bold 36px/36px var(--ff);
    --h3: bold 24px/30px var(--ff);
    --links: bold 18px/30px var(--ff);
    --p: 18px/30px var(--ff);
    --subtext: 14px/20px var(--ff);
    --transition: 0.3s ease-in-out;
    --shadow: #00000030 0px 0px 10px 0px;
    --shadowdark: #00000030 0px 5px 10px 5px;
}

/* SERVICES SECTION */

#services {
    width: 80%;
    /* width: clamp(250px, 80%, 1200px); */
    margin: auto;
    margin: 5vw auto 150px auto;
}

#services>h2 {
    font: var(--h1);
    text-decoration: underline;
}

.span-2 {
    grid-column: span 2;
}

#services-grid .span-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2vw;
}

#services-grid .span-2 h2 {
    font-size: 5vw;
    line-height: 0.95;
}

#services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* CARD BASE */

.service-cards {
    position: relative;
    border-radius: 20px;
    aspect-ratio: 1/1;
    padding: 1.5vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(145deg, #0a0a0a, #111);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* GLOW EFFECT */
.service-cards::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 60%);
    opacity: 0.6;
}

/* NOISE TEXTURE FEEL */
.service-cards::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: url("https://www.transparenttextures.com/patterns/noise.png"); */
    background: url("/assets/grilled-noise.png");
    opacity: 0.08;
    pointer-events: none;
}

/* HOVER */
.service-cards:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-cards h3 {
    /* font: var(--h3); */
    font-size: 34px;
    font-weight: 700;
    color: white;
}

.service-cards p {
    font-size: 1.2rem;
    margin: 5px 0;
    /* color: white; */
    color: rgba(255, 255, 255, 0.7);
    font-family: "Roboto Mono", monospace;
}

.s-card-icon img {
    height: 5vw;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    opacity: 0.5;
}

.icon-container {
    display: flex;
    gap: 5px;
    line-height: 1.1;
}

/* PRODUCT FEATURE CONTAINER */

#product-features-header {
    display: flex;
    width: 80vw;
    margin: auto;
    border-radius: 18px;
    border: 1px solid white;
    padding: 30px 45px;
    margin-bottom: 150px;
}

#product-features-header>div {
    width: 50%;
}

#product-features-header-left h2 {
    font: var(--h2);
    margin-bottom: 15px;
}

/* PRODUCT FEATURES */
#product-features {
    width: 80vw;
    margin: auto;
    margin-bottom: 150px;
}

#product-features-container {
    display: flex;
    gap: 20px;
}

#product-features-container>div {
    width: 50%;
}

#product-features-container .left {
    margin: auto;
}

#product-features-container .left img {
    width: 100%;
}

#product-features-container .left h2 {
    font: var(--h2);

}

#product-features-container .left p {
    margin: 10px 0;
}

#product-features-container .right {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: linear-gradient(145deg, #0a0a0a, #111);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    gap: 0;
}

#product-features-container .right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 60%);
    opacity: 0.6;
}

#product-features-container .right::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: url("https://www.transparenttextures.com/patterns/noise.png"); */
    background: url("/assets/grilled-noise.png");
    opacity: 0.08;
    pointer-events: none;
}




/* PRODUCT FEATURE GRID */
#product-features-container .grid-item {
    border: 1px solid rgba(255, 215, 0, 0.08);
    padding: 1.5vw;
}

#product-features-container .grid-item p {
    font: var(--subtext);
    color: var(--font-secondary);
}

#product-features-container .grid-item span{    
    color: goldenrod;
    text-shadow: #ffcc00 1px 0 10px;
}

/* PRODUCT GALLERY */

#project-gallary {
    width: 80vw;
    /* max-width: 1100px; */
    margin: auto;
}

#project-gallary h2 {
    font-size: clamp(36px, 5vw, 80px);
    line-height: 0.95;
}

#project-gallary h2 span {
    color: #5300a0;
}

#project-context {
    margin-bottom: 20px;
}

.project-gallary-grid {
    position: relative;
    display: block;
    width: 100%;
    /* height: 420px; */
    height: 36vw;
    margin-bottom: 150px;
    overflow: hidden;
}

.project-gallary-grid .project {
    position: absolute;
    /* width: 320px; */
    width: 22vw;
    /* height: 380px; */
    height: 30vw;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
    left: calc(50% - 11vw);
    top: 20px;
    box-shadow: rgba(0, 0, 0, 0.75) 0px -15vw 108px -83px inset, rgba(79, 93, 224, 0.32) 0px 10px 30px;
}

.project-gallary-grid .project img {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-context {
    position: absolute;
    bottom: 0;
    z-index: 100;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#prev,
#next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.35);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
}

#prev {
    left: 14px;
}

#next {
    right: 14px;
}

.project-context span {
    font: var(--subtext);
    /* color: rgba(79, 93, 224, 0.32); */
    font-weight: 600;
}

.project-context h3 {
    /* color: #5300a0; */
    font: var(--h3);
}

.project-context a {
    color: white;
    padding: 10px 25px;
    width: fit-content;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
}

@media (max-width: 1200px) {
    #services {
        width: 90%;
    }

    .service-cards {
        padding: 1.2vw;
    }

    /* .service-cards p {
        font-size: 1.2cqw;
    } */
    #product-features {
        width: 90vw;
    }
}

@media (max-width: 900px) {
    #main {
        padding: 0 16px;
    }

    #services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-cards p {
        font-size: var(--p);
    }

    .service-cards {
        padding: 2vw;
    }

    #services-grid .span-2 h2 {
        font-size: 7vw;
        line-height: 0.95;
    }

    .s-card-icon>svg {
        height: 8vw;
    }

    #product-features-container {
        flex-wrap: wrap;
    }

    #product-features-container>div {
        width: auto;
    }

    #product-features {
        width: 80vw;
    }

    .project-gallary-grid {
        height: 340px;
    }

    .project-gallary-grid .project {
        width: 260px;
        height: 320px;
        left: calc(50% - 130px);
        top: 16px;
    }

    #prev,
    #next {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {

    #services-grid .span-2 h2 {
        font-size: 3rem;
        line-height: 0.95;
    }

    #services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .service-cards p {
        font: var(--p);
        font-family: "Roboto Mono", monospace;
    }

    .s-card-icon>svg {
        height: 20vw;
    }

    .service-cards h3 {
        font: var(--h2);
        /* font-size: 22px; */
        /* line-height: 1.2; */
    }

    .service-cards {
        padding: 3.5vw;
        aspect-ratio: auto;
        /* aspect-ratio: 5/4; */
    }
}

@media (max-width: 450px) {
    #product-features {
        width: 90vw;
    }
}