:root {
    /* --yellow: rgb(254, 231, 71); */
    --yellow: rgb(54, 188, 255);
    --black: rgb(12, 12, 14);
    --gray: rgb(162, 162, 162);
    --light-gray: rgb(40, 42, 49);
    --white: rgb(255, 255, 255);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: prata;
    src: url(./Prata/Prata-Regular.ttf);
}

@font-face {
    font-family: inter;
    src: url(./Inter/Inter-VariableFont_slnt\,wght.ttf);
}

body {
    background-color: var(--black);
    background-image: url('./Assets/aiease_1751144469750.png');
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-clip: content-box;
    background-origin: content-box;
    scroll-behavior: smooth;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    appearance: none;
    background-color: var(--light-gray);
    width: 5px;
    height: 5px;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
    background-color: var(--yellow);
}

.menu-ctn {
    transform: translate(5000px);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    background-color: var(--black);
    padding: 2rem 1rem;
    transition: 0.3s ease-in-out;
}

.x-close {
    filter: invert(1);
    width: 20px;
    cursor: pointer;
}

.sidelinks {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.sidelink {
    color: var(--gray);
    text-decoration: none;
    font-size: 1.4em;
    transition: 0.2s ease-in-out;
}

.sidelink:hover {
    color: var(--white);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    padding-block: 2rem;
}

.navlinks {
    display: none;
}

.logo a {
    text-decoration: none;
    color: var(--white);
    font-family: prata;
    font-weight: 100;
    font-size: 0.88em;
    position: relative;
    transition: 0.5s 0.1s ease-in;
}

.logo>a:before {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    height: 100%;
    width: 53%;
    background-color: var(--yellow);
    padding: 0.4rem 0.4rem;
    z-index: -1;
    transition: 0.8s ease-in-out;
    transform: scaleX(0);
    transform-origin: left;
}

.logo>a:hover::before {
    transform: scaleX(1);
}

.logo>a:after {
    content: "";
    position: absolute;
    top: -6px;
    right: -6px;
    height: 100%;
    width: 37%;
    background-color: var(--yellow);
    padding: 0.4rem 0.4rem;
    z-index: -1;
    transition: 0.8s 0.1s ease-in-out;
    transform: scaleX(0);
    transform-origin: bottom right;
}

.logo>a:hover::after {
    transform: scaleX(1);
}

.logo>a:hover {
    color: var(--black);
    word-spacing: 5px;
}

.hamburger {
    width: 20px;
    cursor: pointer;
}

.hero-sec {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4rem;
}

article {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
    padding-inline: 1rem;
}

.hero-head {
    color: var(--white);
    font-size: 2em;
    font-weight: 100;
    font-family: prata;
}

.hero-msg {
    color: var(--gray);
    font-family: inter;
    font-size: 0.85em;
}

.highlighted {
    color: var(--black);
    background-color: var(--yellow);
    padding-inline: 0.5rem;
}

.companies {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 1rem;
}

.company {
    width: 80px;
    transition: 0.3s ease-in-out;
}

.company:nth-child(1):hover {
    filter: sepia(2) saturate(500) hue-rotate(10deg);
    /* Red */
}

.company:nth-child(2):hover {
    filter: sepia(1) saturate(40) hue-rotate(170deg);
    /* Blue (100) */
}

.company:nth-child(3):hover {
    filter: sepia(1) saturate(10) hue-rotate(170deg);
    /* Blue (70) */
}

.company:nth-child(4):hover {
    filter: sepia(1) saturate(7) hue-rotate(10deg);
    /* Yellow (RGB 254, 231, 71) */
}

.company:nth-child(5):hover {
    filter: sepia(1) saturate(5) hue-rotate(80deg);
    /* Green (provided by you) */
}

.company:nth-child(6):hover {
    filter: sepia(1) saturate(30) hue-rotate(170deg);
    /* Blue (80) */
}


/* projects styling */
.projects {
    padding-inline: 1rem;
    padding-top: 5rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.project {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding-bottom: 3rem;
}

.proj-img-ctn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

.proj-img {
    width: 100%;
}

.proj-info {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
}

.proj-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proj-name {
    font-family: prata;
    font-weight: 100;
    font-size: 1.6em;
    color: var(--white);
    text-decoration: none;
    transition: 0.6s ease-in-out;
}


.proj-msg {
    color: var(--gray);
    font-family: inter;
    font-size: 0.8em;
}

/* about us */
.about-us {
    gap: 3.2rem;
    background-color: var(--light-gray);
    padding-block: 3.2rem;
}

.article-top {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.about-head {
    color: var(--white);
    font-family: prata;
    font-weight: 100;
    font-size: 1.6em;
}

.about-msg {
    color: var(--gray);
    font-family: inter;
    font-weight: 300;
    font-size: 0.88em;
}

/* certificate section */
.certificates-section {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 3.3rem;
}

.certificates-section h2 {
    font-family: prata;
    font-weight: 100;
    font-size: 2em;
    color: var(--white);
    margin-bottom: 2rem;
}

.cert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.cert-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    width: calc(25% - 1.5rem);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cert-card:hover {
    transform: scale(1.02);
}

.cert-card img {
    width: 100%;
    height: auto;
    display: block;
}

.cert-info {
    padding: 1rem;
}

.cert-info h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.cert-info p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: #cccccc;
}

.cert-summary {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #999999;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .cert-card {
        width: calc(33.33% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .cert-card {
        width: calc(50% - 1.5rem);
    }
}

@media (max-width: 500px) {
    .cert-card {
        width: 100%;
    }
}

/* call to action section */
.cta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding: 4rem 1rem;
    background-color: var(--light-gray);
    width: 100%;
}

.cta-head {
    font-family: prata;
    font-weight: 100;
    font-size: 1.8em;
    color: var(--white);
}

.cta-msg {
    color: var(--gray);
    font-family: inter;
    font-weight: 300;
    font-size: 0.88em;
}

.reach-me {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0rem;
}

.in-touch-btn {
    color: var(--black);
    font-family: prata;
    font-size: 0.8em;
    text-decoration: none;
    font-weight: 100;
    background-color: var(--yellow);
    border: 1px solid var(--black);
    padding: 0.8rem 1.5rem;
    transition: 0.8s ease-in-out;
    cursor: pointer;
}

.in-touch-btn:hover {
    background-color: var(--black);
    border-color: var(--yellow);
    color: var(--yellow);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

.cv-btn {
    font-family: prata;
    font-size: 0.8em;
    text-decoration: none;
    font-weight: 100;
    padding: 0.8rem 1.5rem;
    transition: 0.8s ease-in-out;
    cursor: pointer;
    background-color: var(--black);
    border: 1px solid var(--yellow);
    color: var(--yellow);
}

.cv-btn:hover {
    background-color: var(--yellow);
    border-color: var(--black);
    color: var(--black);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Certificate CTA styling */
.cert-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(54, 188, 255, 0.2);
}

.cert-cta .cv-btn {
    font-size: 0.9em;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.cert-cta .cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(54, 188, 255, 0.3);
}

/* footer styling */
footer {
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}


.socials {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-ico {
    width: 20px;
}

@media (min-width: 770px) {
    nav {
        padding-inline: 5vw;
    }

    .hamburger {
        display: none;
    }

    .navlinks {
        display: flex;
        align-items: center;
        gap: 100px;
    }

    .links {
        display: flex;
        align-items: center;
        gap: 1.6rem;
    }

    .link {
        position: relative;
        text-decoration: none;
        color: var(--gray);
        font-family: inter;
        font-size: 0.8em;
        font-weight: 300;
        transition: 0.9s ease-in-out;
    }

    .link:hover {
        color: var(--black);
    }

    .link:before {
        content: "";
        position: absolute;
        top: -6px;
        left: -6px;
        height: 100%;
        width: 100%;
        background-color: var(--yellow);
        padding: 0.4rem 0.4rem;
        z-index: -1;
        transition: 0.8s ease-in-out;
        transform: scale(0);
        transform-origin: top left;
    }

    .link:hover::before {
        transform: scale(1);
    }

    .hero-sec {
        align-items: flex-start;
    }

    .hero-head,
    .hero-msg {
        max-width: 50%;
    }

    article:nth-child(1) {
        align-items: flex-start;
        padding-inline: 4rem;
    }

    .companies {
        width: 100%;
        padding-inline: 4rem;
        gap: unset;
        justify-content: space-between;
    }

    .projects {
        flex-direction: row;
        gap: 2rem;
        padding-inline: 4rem;
        width: 100vw;
        overflow-x: scroll;
    }

    .project {
        width: 50%;
    }

    .about-us {
        padding-inline: 4rem;
        flex-direction: row;
    }

    .cta {
        padding-inline: 4rem;
        width: 100%;
    }

    footer {
        padding-inline: 4rem;
    }
}

@keyframes move {
    0% {
        opacity: 1;
    }


    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

/* Quick Interview Modal */
.quick-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.quick-modal-content {
    background-color: var(--black);
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    border: 1px solid var(--yellow);
    border-radius: 8px;
}

.quick-modal-content p {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: prata;
    font-size: 1rem;
}

.quick-modal-content .in-touch-btn,
.quick-modal-content .cv-btn {
    margin: 0.5rem;
}

/* Loader overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    width: 80px;
    height: 80px;
    filter: brightness(10) invert(1);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Certificate Image Modal */
.cert-image-clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cert-image-clickable:hover {
    transform: scale(1.05);
}

.cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 300;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-modal.show {
    display: flex;
    opacity: 1;
}

.cert-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cert-modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    z-index: 301;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cert-modal-close:hover {
    background: var(--yellow);
    color: var(--black);
    transform: rotate(90deg);
}

.cert-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.cert-modal-title {
    color: var(--white);
    font-family: prata;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
}

.cert-modal-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cert-zoom-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--yellow);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: inter;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cert-zoom-btn:hover {
    background: var(--yellow);
    color: var(--black);
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .cert-modal-close {
        top: -30px;
        right: -10px;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }

    .cert-modal-image {
        max-height: 70vh;
    }

    .cert-modal-title {
        font-size: 1rem;
    }

    .cert-zoom-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}