@font-face {
    font-family: 'Playfair Display';
    src: url('../font/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Gill Sans';
    src: url('../font/GillSans-Light.ttf') format('truetype');
    font-weight: 300;
}
@font-face {
    font-family: 'Gill Sans';
    src: url('../font/GillSans.ttf') format('truetype');
}
@font-face {
    font-family: 'Gill Sans';
    src: url('../font/GillSans-Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'Gill Sans';
    src: url('../font/GillSans-Heavy.ttf') format('truetype');
    font-weight: 600;
}
@font-face {
    font-family: 'Gill Sans';
    src: url('../font/GillSans-Bold.ttf') format('truetype');
    font-weight: 700;
}

:root{
    --primary-color: #610011;
    --primary-color-light: #610011;
    --secondary-color: #fd8719;
    --secondary-color-light: #fd8719;
    --light-color: #ffffff;
    --dark-color: #000000;

    --header-font: 'Playfair Display', serif;
    --subtext-font: 'Gill Sans', sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
}

.main{
    width: 100%;
    height: fit-content;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.main_inner{
    width: 100%;
    height: fit-content;
    
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero{
    width: 100%;
    height: 100vh;
    background-image: url(../img/software_bg3.jpg);
    background-position: center;
    background-size: cover;
}

.hero_inner{
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero_inner > .nav{
    width: 100%;
    height: 14vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero_inner > .nav > .nav_inner{
    width: 90vw;
    height: 10vh;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero_inner > .nav > .nav_inner > .logo{
    height: 100%;
    width: fit-content;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero_inner > .nav > .nav_inner > .logo > img{
    height: 100%;
    width: fit-content;
}

.hero_inner > .nav > .nav_inner > .links{
    height: 100%;
    width: 40%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.hero_inner > .nav > .nav_inner > .links > a{
    text-decoration: none;
}

.hero_inner > .nav > .nav_inner > .links > a > .link{
    color: var(--dark-color);
    font-family: var(--subtext-font);
    font-size: 1.2rem;
    padding: 8px 16px;
    cursor: pointer;

    transition: 0.2s ease-out;
}

.hero_inner > .nav > .nav_inner > .links > a > .cta{
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-radius: 100px;
}

.hero_inner > .nav > .nav_inner > .links > a > .link:hover{
    transform: translateY(-10%);
}


.hero_inner > .content{
    width: 100%;
    height: 90vh;

    display: flex;
    justify-content: center;
    align-items: center;

}

.hero_inner > .content > .content_inner{
    width: 80%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero_inner > .content > .content_inner > .upper_heading{
    text-align: center;
    font-family: var(--subtext-font);
    font-size: 4vw;
    width: 50%;
    color: var(--dark-color);
    margin: 0;
    padding: 0;
    margin-top: 40px;
    line-height: 1.2;
    font-weight: 200;
}

.hero_inner > .content > .content_inner > .upper_heading > span{
    font-family: var(--header-font);
    font-weight: 600;
    font-style: italic;
}

.hero_inner > .content > .content_inner > .line{
    margin-top: 50px;
    width: 30vw;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);

}


.hero_inner > .content > .content_inner > .logo{
    height: 0vh;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: -10vh;
}

.hero_inner > .content > .content_inner > .cta{
    width: fit-content;
    height: fit-content;
    padding: 24px 36px;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-family: var(--header-font);
    font-size: 1.2rem;
    
    margin-top: 50px;
    border-radius: 100px;

    cursor: pointer;

    transition: 0.2s ease-out;

    border: 2px solid var(--dark-color);


}

.hero_inner > .content > .content_inner > .cta:hover{
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-10%);
}

.features{
    width: 100%;
    height: fit-content;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgb(245, 245, 245);

    padding: 8vh 0;
}

.features_inner{
    width: 80%;
    height: fit-content;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.features_inner > h1{
    font-family: var(--header-font);
    font-size: 3vw;
    color: var(--dark-color);
    margin: 0;
    padding: 0;
    line-height: 1.2;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--secondary-color);
}

.features_inner > .cards {
    margin-top: 80px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem; /* Ensures gap between cards */
    align-items: stretch;
}

.features_inner > .cards > .card {
    width: 100%;
    height: fit-content;
    
    background-color: var(--light-color);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    color: var(--light-color);

    border-top: 5px solid var(--secondary-color);

    padding: 20px 0px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    cursor: pointer;

    grid-column: span 1; /* Default: each card takes 1 column */
}

.features_inner > .cards > .card:hover,
.features_inner > .cards > .card:focus {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.16);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.features_inner > .cards > .card > .icon{
    width: 50%;
    aspect-ratio: 1/1;
    margin-top: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #b65163;
    mask-size: cover;
    mask-position: center;
}

.features_inner > .cards > .card1 > .icon
{
    mask-image: url(../img/fast.png);
}
.features_inner > .cards > .card2 > .icon
{
    mask-image: url(../img/secure.png);
}
.features_inner > .cards > .card3 > .icon
{
    mask-image: url(../img/powerful.png);
}
.features_inner > .cards > .card4 > .icon
{
    mask-image: url(../img/stable.png);
}

.features_inner > .cards > .card > p{
    font-family: var(--subtext-font);
    font-size: 2rem;
    color: var(--primary-color);
    margin: 30px 0;
    font-weight: 500;
    text-align: center;
}

/* === SOFTWARE SECTION STYLING === */
.softwares {
    width: 100%;
    background-color: rgb(245, 245, 245);
    padding: 5vw 0;
    display: flex;
    flex-direction: column;
    gap: 0vw;
    align-items: center;
    justify-content: center;
    gap: 2vw;
}

.software {
    width: 80%;
    background: white;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 6vw 4vw;

    box-shadow: 0 2px 16px rgba(0,0,0,0.0);
}

.software_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.software .left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}

.software .left h1 {
    font-family: var(--header-font);
    font-size: 2.5vw;
    color: var(--primary-color);
    width: 70%;
    margin: 0;
    padding: 0;
}

.software .left p {
    font-family: var(--subtext-font);
    font-size: 1.1vw;
    color: #333;
    line-height: 1.6;
    width: 80%;
    margin-top: 0px;
}

.software .left .line {
    width: 30%;
    margin: 30px 0px;
    height: 4px;
    background-color: rgba(0,0,0,0.16);
}


.software .left .icon{
    width: 5vw;
    height: 5vw;

    mask-size: cover;
    mask-position: center;
    background-color: var(--primary-color);
}

.software1 .left .icon {
    mask-image: url('../img/school.png');
}

.software2 .left .icon {
    mask-image: url('../img/book.png');
}

.software_cta {
    display: inline-block;
    width: fit-content;
    padding: 0.8vw 1.8vw;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-family: var(--subtext-font);
    font-weight: 600;
    font-size: 1vw;
    text-decoration: none;
    border: 2px solid var(--secondary-color);
    margin-top: 30px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.software_cta:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.software .right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}

.software .img {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.software1 .img {
    background-image: url('../img/school_bg.png');
}

.software2 .img {
    background-image: url('../img/book_bg.png');
}


.contact{
    width: 100%;
    height: 50vh;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10vh 0;

    background-color: var(--primary-color);
}

.contact_inner{
    width: 80%;
    height: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact_inner > .left{
    width: 48%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

}

.contact_inner > .left > .map{
    width: 100%;
    height: 100%;

    overflow: hidden;
    border-radius: 2vw;
}

.contact_inner > .right{
    width: 48%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}

.contact_inner > .right > h1{
    font-family: var(--header-font);
    font-size: 3vw;
    color: var(--light-color);
    margin: 0;
    padding: 0;
    line-height: 1.2;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--secondary-color);
}

.contact_inner > .right > p{
    font-family: var(--subtext-font);
    font-size: 1.2vw;
    color: var(--light-color);
    margin-top: 30px;
}

.contact_inner > .right > .labels{
    width: fit-content;
    height: fit-content;

    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: column;
}

.contact_inner > .right > .labels > .label{
    width: fit-content;
    height: fit-content;
    margin-bottom: 0px;

    display: flex;
    justify-content: start;
    align-items: center;
}

.contact_inner > .right > .labels > .label > .icon{
    width: 30px;
    height: 30px;

    background-color: var(--light-color);
    border-radius: 100%;
}

.contact_inner > .right > .labels > .label > p{
    font-family: var(--subtext-font);
    font-size: 1.2vw;
    color: var(--light-color);
    margin-left: 20px;
    flex: 1;
}

.contact_inner > .right > img{
    margin-top: 30px;
    height: 40px;
    border-radius: 5px;
}

.footer{

    margin-top: -10vh;

    width: 90vw;
    height: fit-content;
    display: flex;
    justify-content: end;
    align-items: center;

    padding: 2vh 4vw;
}

.footer > p{
    color: white;
    font-family: var(--subtext-font);

    font-size: 1rem;
}

@media (min-width: 1920px) {

    .hero_inner > .nav > .nav_inner > .links > a > .link{
        font-size: 1.4rem;
        padding: 10px 20px;
    }
    
}

@media (max-width: 1366px) {

    .hero_inner > .nav > .nav_inner > .links > a > .link{
        font-size: 1rem;
        padding: 10px 20px;
    }

    .hero_inner > .nav > .nav_inner > .links{
        width: 50%;
    }
}

@media (max-width: 900px) {



    .software .left .icon{
        width: 12vw;
        height: 12vw;

        margin: 3vw 0;

        mask-size: cover;
        mask-position: center;
        background-color: var(--primary-color);
    }

    .software .right {
        width: 100%;
        height: fit-content;

        background-color: red;

        display: flex;
        justify-content: center;
        align-items: start;
        flex-direction: column;
    }

    .software .img {
        width: 100%;
        aspect-ratio: 16/9;
        background-color: #eee;
        background-size: cover;
        background-position: center;
    }

    .software{
        width: 70%;
    }

    .software_inner{
        flex-direction: column-reverse;
        gap: 5vw;
    }

    .software .left,
    .software .right{
        flex: 1 1 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .software .left h1{
        font-size: 4vw;
        width: 80%;
    }

    .software .left p{
        font-size: 2vw;
        width: 80%;
    }

    .software .left .software_cta{
        font-size: 2vw;
        padding: 10px 20px;
        font-weight: 500;
    }

    .features_inner > h1{
        font-size: 5vw;
    }


    .contact_inner > .right > h1{
        font-size: 6vw;
    }

    .contact_inner > .right > p{
        font-size: 3vw;
        margin-top: 30px;
    }

    .contact_inner > .right > .labels > .label > .icon{
        width: 20px;
        height: 20px;
    }

    .contact_inner > .right > .labels > .label > p{
        font-size: 3vw;
        margin-left: 10px;
    }

    .contact_inner > .left > .map{
        height: 75%;
    }

    .contact_inner > .right > img{
        margin-top: 30px;
        height: 40px;
        border-radius: 5px;
    }

    .hero_inner > .nav > .nav_inner > .links{
        width: 80%;
    }

    .hero_inner > .content > .content_inner > .upper_heading{
        width: 80%;
        font-size: 7vw;
        font-weight: 300;
    }


    .features_inner > .cards > .card {
        grid-column: span 2; /* Default: each card takes 1 column */
    }

}

@media (max-width: 480px) {

    .software .left h1{
        font-size: 5vw;
    }

    .software .left p{
        font-size: 3vw;
    }

    .software .left .software_cta{
        font-size: 3vw;
    }

    .features_inner > h1{
        font-size: 6vw;
    }

    .features_inner > .cards {
        gap: 1rem;
    }

    .features_inner > .cards > .card > p{
        font-size: 5vw;
    }

    .hero_inner > .nav > .nav_inner > .links{
        width: calc(100% - 10vh - 3vh);
    }

    .hero_inner > .nav > .nav_inner > .links > a > .link{
        font-size: 0.8rem;
        padding: 5px 5px;
        font-weight: 500;
    }

    .hero_inner > .content > .content_inner > .upper_heading{
        width: 90%;
        font-size: 8vw;
    }

    .hero_inner > .content > .content_inner > .line{
        width: 60vw;
    }

    .hero_inner > .content > .content_inner > .cta{
        font-size: 4vw;
        padding: 16px 24px;
    }

}