@import url('https://fonts.cdnfonts.com/css/calibri-light');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Calibri Light', sans-serif;
    scroll-behavior: smooth;                                            
}

nav {
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    opacity: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    position: fixed;
    /* Fix the navbar at the top */
    width: 100%;
    /* Make sure it spans the full width of the page */
    top: 0;
    left: 0;
    z-index: 1005;
    /* Ensure it stays on top of other elements */
}

nav .mainMenu {
    display: none;
    /* Hidden by default */
    list-style: none;
    flex-direction: column;
    /* Vertical layout for both mobile and desktop */
    justify-content: center;
    /* Center items vertically */
    align-items: center;
    /* Center items horizontally */
    background: rgb(0, 0, 0);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full viewport height */
    transition: transform 0.5s ease;
    /* Smooth animation */
    transform: translateY(-100%);
    /* Initially hidden */
}

nav .mainMenu.show {
    display: flex;
    transform: translateY(0);
    /* Show menu */
}

nav .mainMenu li a {
    display: inline-block;
    padding: 15px;
    text-decoration: none;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    font-size: 18px;
    transition: 0.2s ease, font-size 0.2s ease;
    /* Add transition for the hover effect */
    position: relative;
    /* Required for the ::after pseudo-element */
}

nav .mainMenu li a:hover {
    background: #000;
    font-size: 22px;
    /* Increase the font size on hover */
}

nav .mainMenu li a::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    /* Adjust the thickness here */
    background: #EAAA0D;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

nav .mainMenu li a:hover::after {
    transform: scaleX(3);
}

nav .openMenu {
    font-size: 2rem;
    display: block;
    /* Always visible */
    cursor: pointer;
}

nav .mainMenu .closeMenu {
    font-size: 2rem;
    display: block;
    /* Always visible */
    position: absolute;
    top: 20px;
    right: 40px;
    cursor: pointer;
}

.fa-facebook:hover {
    color: rgb(0, 110, 255);
}

.fa-twitter:hover {
    color: rgb(86, 154, 243);
}

.fa-instagram:hover {
    color: rgb(255, 0, 191);
}

.fa-github:hover {
    color: rgb(255, 123, 0);
}

nav .logo img {
    cursor: pointer;
    width: 80px;
}







.containerrr {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
    min-height: 100vh;
    display: grid;
    place-items: center;

}

.sub-containerrr {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    width: 100%;
    max-width: 90%;
    margin: auto;
    padding: 60px 0;
}

.containerrr h1 {
    font-weight: normal;
    font-size: 35px;
    position: relative;
    margin: 5px 0;
    color: #000;
}


.card-box {
    height: 350px;
    width: 300px;
    background-color: #fff;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease-in-out;
}

.card-box::before,
.card-box::after {
    content: '';
    position: absolute;
    z-index: -1;
    transition: 0.5s ease-in-out;
}

.card-box::before {
    inset: -15px 100px;
    border-top: 4px solid var(--clr);
    border-bottom: 4px solid var(--clr);
    transform: skewY(15deg);
}

.card-box:hover::before {
    inset: -10px 40px;
    transform: skewY(0deg);
}

.card-box::after {
    inset: 100px -15px;
    border-left: 4px solid var(--clr);
    border-right: 4px solid var(--clr);
    transform: skew(1deg);
}

.card-box:hover::after {
    inset: 40px -10px;
    transform: skew(0deg);
}

.card-data {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    background-color: #fff;
    transition: 0.5s ease-in-out;
    color: var(--clr);
    box-shadow: 0 0 0 4px #2e2e2e,
        0 0 0 6px var(--clr);
}

.card-box:hover .card-icon {
    color: #fff;
    background-color: var(--clr);
    box-shadow: 0 0 0 4px #2e2e2e,
        0 0 0 300px var(--clr);
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.card-content h3 {
    font-size: 1.5rem;
    color: #000;
    font-weight: 600;
    transition: 0.5s ease-in-out;
}

.card-box:hover .card-content h3 {
    color: #fff;
    font-size: 1rem;
    display: none;

}

.card-content h4 {
    font-size: 1rem;
    color: #000;
    transition: 0.5s ease-in-out;
    display: none;
}

.card-box:hover .card-content h4 {
    color: #fff;
    display: flex;
}


.card-content a {
    font-size: 1rem;
    color: #000;
    transition: 0.5s ease-in-out;
    display: none;
}

.card-box:hover .card-content a {
    color: #fff;
    display: flex;
}


.card-content p {
    position: relative;
    display: inline-flex;
    padding: 8px 15px;
    background-color: var(--clr);
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    margin-top: 10px;
    border: 2px solid var(--clr);
    transition: 0.5s ease-in-out;
}

.card-box:hover .card-content p {
    color: var(--clr);
    background-color: #2e2e2e;
    display: none;
}

.card-box:hover .card-content p:hover {
    border-color: #2e2e2e;
    color: #2e2e2e;
    background-color: var(--clr);
    display: none;
}



footer {
    background-color: #111;
}

.footerContainer {
    width: 100%;
    padding: 70px 30px 20px;
}

.socialIcons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.socialIcons a {
    text-decoration: none;
    padding: 10px;
    background-color: white;
    margin: 10px;
    border-radius: 50%;
}

.socialIcons a i {
    font-size: 2em;
    color: black;
    opacity: 0.9;
}

/* Hover effect on social media icon */
.socialIcons a:hover {
    background-color: #111;
    transition: 0.5s;
}

.socialIcons a:hover i {
    color: white;
    transition: 0.5s;
}

.footerNav {
    margin: 30px 0;
}

.footerNav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    flex-wrap: wrap;
}

.footerNav ul li a {
    color: white;
    margin: 20px;
    text-decoration: none;
    font-size: 1.3em;
    opacity: 0.7;
    transition: 0.5s;
}

.footerNav ul li a:hover {
    opacity: 1;
}

.footerBottom {
    background-color: #000;
    padding: 20px;
    text-align: center;
    font-size: 1rem;

}

.footerBottom p {
    color: white;
    font-weight: 0.5rem
}

.designer {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 0px 5px;
}

/* Media Queries */
@media (max-width: 768px) {
    .footerContainer {
        padding: 50px 20px 10px;
    }

    .socialIcons a {
        padding: 8px;
        margin: 8px;
    }

    .socialIcons a i {
        font-size: 1.8em;
    }

    .footerNav ul li a {
        margin: 10px;
        font-size: 1.1em;
    }

    .footerBottom {
        font-size: 0.9rem;

    }
    
    .card-content h4{
        font-size: 1.5rem;
    }
    .card-content h3{
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .footerContainer {
        padding: 30px 10px 10px;
    }

    .socialIcons a {
        padding: 6px;
        margin: 6px;
    }

    .socialIcons a i {
        font-size: 1.5em;
    }

    .footerNav ul li a {
        margin: 5px;
        font-size: 1em;
    }

    .designer {
        font-size: 0.8em;
    }

    .footerBottom {
        font-size: 0.9rem;
    }
}