@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Odibee+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?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&display=swap');

:root {
    --fs-base: clamp(1rem, 2vw, 1.4rem);
    --fs-title: clamp(2.5rem, 5.6vw, 6rem);
    --fs-section-title: clamp(1.5rem, 4vw, 4rem);
    --fs-banner-sub: clamp(1.2rem, 3vw, 3em);
    --banner-h: clamp(350px, 50vw, 600px);
    --carousel-h: clamp(280px, 50vw, 370px);
    --iframe-w: clamp(220px, 28vw, 550px);
    --iframe-h: clamp(280px, 48vw, 700px);
    --iframe-gap: clamp(6px, 1.2vw, 20px);
    --side-padding: clamp(1rem, 4vw, 2rem);
    --carousel-max-width: 100%;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-size: var(--fs-base);
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    background: #000000;
}

body::-webkit-scrollbar {
    display: none;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: inherit;
    list-style: none;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.home-section {
    position: relative;
    height: 100vh;
    background: url('images/BG.png') no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #282828;
    padding: 0 var(--side-padding);
    z-index: 1;
}

.home-content {
    max-width: 58vw;
    position: relative;
    z-index: 1;
    font-family: "Josefin Sans", sans-serif;
    padding: 0 var(--side-padding);
}

.home-content h1 {
    position: relative;
    font-size: var(--fs-title);
    line-height: 1.1;
    text-shadow: 10px 10px 15px #0e718a, -10px -10px 15px #40c9ff;
}

.home-content h3 {
    font-size: 1.3rem;
    color: #0e718a;
}

.location-badge {
    font-size: 0.9rem !important;
    color: #E0E0E0;
    font-weight: bold;
    margin: 0.5rem 0 !important;
    display: inline-block;
    background: rgba(14, 113, 138, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .location-badge {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.6rem;
    }
}

.home-content p {
    font-size: 1rem;
    margin: 1rem 0;
}

.profiles {
    position: relative;
    margin-top: 1.5rem;
    width: fit-content;
    height: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.profiles a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    align-items: center;
    background: transparent;
    z-index: 1;
    width: 2rem;
}

.profiles img {
    display: inline-flex;
    height: 100%;
    background: transparent;
}

.profiles a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    background: white;
    z-index: -1;
    transition: .5s;
    border-radius: 35px;
}

.profiles a:hover::before {
    width: 80%;
}

.img-hover {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    background: transparent;
    transition: 2s;
}

.img-hover:hover {
    background: #000000;
    opacity: .6;
}

.arrow-wrapper {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
    pointer-events: none;
    transition: opacity 1s;
}

.arrow-divider {
    width: 6em;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 24px 0;
    animation: floatArrow 2s ease-in-out infinite;
    z-index: 10;
}

.skills-section {
    padding: 50px var(--side-padding);
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
}

.skill-category {
    flex: 1 1 300px;
    background: linear-gradient(#212121, #212121) padding-box,
        linear-gradient(145deg, transparent 35%, rgba(2, 29, 78, 0.681), #40c9ff) border-box;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

.skill-category h3 {
    color: #40c9ff;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-tags span {
    background: #000000;
    color: #E0E0E0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #333;
}

.linkedin {
    width: 100%;
    position: relative;
    z-index: 2;
    height: auto;
    padding-bottom: 2rem;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: clip;
}

.section-title {
    font-size: 2em;
    text-align: center;
    z-index: 10;
    margin-bottom: 50px;
    font-family: "Josefin Sans", sans-serif;
    color: #E0E0E0;
    margin-top: 2rem;
}

.logos {
    position: relative;
    width: 100vw;
    height: 720px;
    max-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logos-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.item {
    position: absolute;
    width: 550px;
    max-width: 70vw;
    height: 720px;
    max-height: 60vh;
    border-radius: 10px;
    background-color: #fff;
    padding: 2px;
    transition: 0.5s;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
}

.iframe-overlay {
    position: absolute;
    width: 550px;
    max-width: 70vw;
    height: 720px;
    max-height: 60vh;
    background: transparent;
    border-radius: 10px;
    padding: 2px;
    z-index: 2;
    top: 0;
    pointer-events: auto;
    left: 50%;
    transform: translateX(-50%);
}

.about-me {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    padding: 50px var(--side-padding);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.about-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    flex: 1 1 400px;
    max-width: 800px;
}

.about-content h1 {
    font-size: 3rem;
    color: #282828;
    line-height: 0.9;
    text-align: left;
    text-shadow: 10px 10px 15px #0e718a, -10px -10px 15px #40c9ff;
}

.about-content p {
    margin-top: 1rem;
    font-size: 0.8rem;
    text-align: left;
    color: #E0E0E0;
}

.p2 {
    margin-top: 2rem;
}

.btn {
    font-size: 1rem;
    padding: 1rem 2.3rem;
    border: none;
    outline: none;
    border-radius: 0.4rem;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    background-color: #000000;
    color: rgb(234, 234, 234);
    font-weight: 700;
    transition: 0.6s;
    box-shadow: 0px 0px 30px #1f4c65;
    -webkit-box-reflect: below 10px linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.4));
}

.btn:active {
    scale: 0.92;
}

.btn:hover {
    background: linear-gradient(270deg, rgba(2, 29, 78, 0.681) 0%, rgba(31, 215, 232, 0.873) 60%);
    color: rgb(4, 4, 38);
}

.about-content .btn {
    margin-top: 2rem;
    align-self: flex-start;
    font-size: 1rem;
}

.card {
    position: relative;
    width: auto;
    max-width: fit-content;
    height: auto;
    max-height: fit-content;
    border-radius: 14px;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 20px 20px 60px #1f4c65, -20px -20px 60px rgba(2, 29, 78, 0.681);
    will-change: transform;
}

.bg {
    position: relative;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    width: auto;
    max-width: fit-content;
    height: auto;
    max-height: fit-content;
    z-index: 2;
    background: #000000;
    backdrop-filter: blur(24px);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card .img {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 3 / 4;
    align-items: center;
    justify-content: center;
    display: flex;
    overflow: hidden;
}

.card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to top, transparent 2%, black 40%);
}

.bg .info {
    display: flex;
    flex-direction: column;
    width: 90%;
    padding: 1rem;
    z-index: 3;
    color: #000000;
    align-items: center;
    justify-content: center;
    background: linear-gradient(#212121, #212121) padding-box,
        linear-gradient(145deg, transparent 35%, rgba(2, 29, 78, 0.681), #40c9ff) border-box;
    border: 2px solid transparent;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.bg .info span {
    text-align: center;
    font-size: 1.8rem;
}

.bg .info p {
    font-size: .65rem;
    color: #E0E0E0;
    margin-bottom: 1em;
    text-align: center;
}

.info .links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.links a {
    font-size: 0.7rem;
    padding: .5em 1.5em;
}

.projects-and-certs-container {
    position: relative;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    padding: 50px 20px;
    width: 100%;
    background: #000000;
    overflow: clip;
}

.projects-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    place-items: center;
    gap: 1rem;
    row-gap: .5rem;
}

.Certificates-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 640px;
    border: 2px solid #282828;
    border-radius: 20px;
    z-index: 10;
    padding: .3rem;
    flex: 1 1 400px;
}

.Certificates h2 {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 10;
    gap: .3rem;
}

.Certificates-content:hover {
    border-color: #008bf8;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.Certificate-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 200px;
    z-index: 3;
    color: #000000;
    background-clip: border-box;
    align-items: center;
    justify-content: center;
    background: linear-gradient(#212121, #212121) padding-box,
        linear-gradient(145deg, transparent 35%, rgba(2, 29, 78, 0.681), #40c9ff) border-box;
    border: 2px solid transparent;
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
}

.Certificate-card h1 {
    text-align: center;
    font-size: 1.1rem;
    font-family: "Josefin Sans", sans-serif;
}

.Certificate-card p {
    font-size: .6rem;
    color: #E0E0E0;
    margin-bottom: 1em;
}

.Certificate-card .links {
    display: flex;
    gap: 1rem;
}

.links a {
    font-size: 0.7rem;
    padding: .3em 2em;
}

.card-project {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 710px;
    max-height: 150px;
    padding: 0.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    background: #000000;
    transition: max-height 0.8s ease;
    overflow: hidden;
    color: white;
    box-sizing: border-box;
}

.card-project:hover {
    max-height: 900px;
}

.align {
    padding: 1rem;
    display: flex;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.align .links {
    position: absolute;
    right: 5px;
    display: flex;
    align-self: flex-end;
}

.align .links a {
    font-size: 15px;
}

.align p {
    position: absolute;
    display: flex;
    align-self: flex-start;
    color: black;
}

.card-project h1 {
    top: 0;
    font-size: 2.5rem;
    text-align: center;
    color: rgba(14, 113, 138, 1);
}

.card-project p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: .7rem;
    margin-top: .5rem;
}

.video-container {
    width: 100%;
    max-width: 620px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgb(165, 165, 165);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    pointer-events: none;
    margin: 0 auto;
}

.video-container video {
    max-width: 620px;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    pointer-events: none;
}

.TechStack {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
}

.TechStack-header {
    font-size: 35px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: #282828;
}

.TechStack-inner {
    display: flex;
    overflow: hidden;
    width: max-content;
    animation: techstack 25s linear infinite;
}

.TechStack :before,
.TechStack :after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.TechStack :before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), #000000);
}

.TechStack :after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #000000);
}

.TechStack-group {
    display: flex;
}

.TechStack-group span {
    margin: 0 .7rem;
    white-space: nowrap;
    background: #000000;
    color: white;
    padding: 4px 16px 4px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
}

@keyframes techstack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .projects-and-certs-container {
        padding: 40px 15px;
        gap: 2rem;
    }

    .card-project {
        width: 100vw;
    }

    .video-container video {
        width: 100vw;
        height: auto;
        aspect-ratio: 16/9;
    }

    .align {
        flex-direction: column;
        max-width: 100%;
        align-items: left;
        margin-bottom: 1.5rem;
    }

    .align p {
        color: white;
    }

    .align .links {
        position: static;
        margin-top: 5px;
        align-self: left;
        display: block;
    }

    .links a {
        display: inline-block;
        padding: 0.5em 1em;
    }

    .card-project h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .card-project p {
        text-align: center;
    }
}

.contact-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px var(--side-padding);
    min-height: auto;
    justify-content: center;
}

.contact-card {
    width: auto;
    max-width: 700px;
    height: auto;
    min-height: fit-content;
    padding: clamp(1rem, 4vw, 2rem);
    border-radius: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    background: linear-gradient(#212121, #212121) padding-box,
        linear-gradient(145deg, transparent 35%, rgba(2, 29, 78, 0.681), #40c9ff) border-box;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.contact-intro {
    width: 75%;
    margin-bottom: 1rem;
    line-height: 1.15;
    text-align: center;
    color: white;
    font-size: .7rem;
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 20px;
}

.contact-info a {
    color: #a8ecff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #35c6e0;
}

.contacts-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.contact-card .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .6rem;
    border-radius: 8px;
    border: 1px solid #40c9ff;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-family: inherit;
    font-size: .5rem;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 10px rgba(37, 117, 252, 0.5);
}

.contact-form .btn {
    align-self: center;
    width: 100%;
}

.home-content,
.section-title,
.about-content,
.about-me .card,
.card-project,
.Certificate-card,
.contact-card,
.logos,
.skill-category,
.button-container,
.Certificates-content {
    animation:
        autoShowAnimation both,
        autoHideAnimation forwards;

    animation-timeline: view();

    animation-range:
        entry 5% cover 25%,
        cover 85% exit 100%;

}

@keyframes autoShowAnimation {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes autoHideAnimation {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.5);
    }
}

@keyframes floatArrow {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(18px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes blob-bounce {
    0% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }

    25% {
        transform: translate(-100%, -100%) translate3d(100%, 0, 0);
    }

    50% {
        transform: translate(-100%, -100%) translate3d(100%, 100%, 0);
    }

    75% {
        transform: translate(-100%, -100%) translate3d(0, 100%, 0);
    }

    100% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
}

@keyframes showRight {
    100% {
        width: 0;
    }
}

.fade-slide-in {
    animation: slideIn 0.5s ease forwards;
}

.fade-slide-out {
    animation: slideOut 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@media (max-width: 1200px) {

    .linkedin,
    .logos {
        max-width: 100vw;
    }

    .home-section {
        text-align: center;
        align-items: center;
        background: url('images/BG2.png') no-repeat;
        background-size: cover;
        background-position: center;
    }

    .img-hover {
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 100vh;
        background: transparent;
        transition: 2s;
    }
}

@media (max-width: 900px) {
    .home-content {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
    }

    .about-content,
    .card {
        position: relative;
        width: 90% !important;
        max-width: 320px;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin-bottom: 3rem;
    }

    .projects-and-certs-container {
        align-items: center;
    }

    .align p {
        color: white;
        font-size: .7rem;
    }
}

.button-container {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

.carousel-controls .button-3d[disabled],
.carousel-controls .button-3d.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.button-3d {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    border-width: 0;
    padding: 0 8px;
    min-width: 4em;
    min-height: 4em;
    box-sizing: border-box;
    background: transparent;
    font: inherit;
    cursor: pointer;
    margin: 10px;
    border-radius: 20px;
}

.button-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 8px 16px;
    transform: translateY(0);
    color: #fff;
    background-image: linear-gradient(145deg, #40c9ff, #2575fc);
    text-shadow: 0 -1px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    transition: transform 0.3s, border-radius 0.3s, background 10s;
    font-size: 1.4rem;
}

.button-3d:active .button-top {
    border-radius: 10px 10px 8px 8px / 8px;
    transform: translateY(2px);
    background-image: linear-gradient(145deg, #2575fc, #40c9ff);
}

.button-bottom {
    position: absolute;
    z-index: 1;
    bottom: 4px;
    left: 4px;
    border-radius: 20px;
    padding-top: 6px;
    width: calc(100% - 8px);
    height: calc(100% - 10px);
    background-image: linear-gradient(145deg, #2575fc, #40c9ff);
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5);
    transition: border-radius 0.2s, padding-top 0.2s;
}

.button-base {
    position: absolute;
    z-index: 0;
    top: 4px;
    left: 0;
    border-radius: 20px;
    width: 100%;
    height: calc(100% - 4px);
    background-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 2px 2px rgba(0, 0, 0, 0.25);
    transition: border-radius 0.2s, padding-top 0.2s;
}

.button-3d:active .button-bottom {
    border-radius: 10px 10px 8px 8px / 8px;
    padding-top: 0;
}

.button-3d:active .button-base {
    border-radius: 10px 10px 8px 8px / 8px;
    bottom: 0;
}

.carousel-controls {
    display: none;
}

@media (max-width: 1024px) {
    .carousel-controls {
        display: flex;
        justify-content: center;
    }
}