:root {
    --text-dark: #1f2937;
}

html {
    scroll-behavior: smooth;
}

#aboutMe,
#projects,
#skills,
#contact {
    scroll-margin-top: 4.5rem;
}

body {
    font-family: Roboto, Rubik, "Roboto Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.nav-item {
    font-size: x-large;
}

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: clamp(2rem, 6vw, 5rem);
    background: linear-gradient(to bottom, #588157, #344e41);
}

.hero-heading {
    font-size: clamp(2rem, 1.2rem + 3.5vw, 4.5rem);
    line-height: 1.1;
}

.circle-container {
    width: 350px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid #fcfcfc;
    border-radius: 50%;
    background: url("Assets/img/Alx.JPG") center / cover;
}

.title {
    position: relative;
    display: flex;
    width: 100%;
    height: 1.5em;
    align-items: center;
    justify-content: center;
    overflow: visible;
    container-type: inline-size;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}

.title.visible {
    opacity: 1;
    transform: translateY(0);
}

.title p {
    position: absolute;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    animation: textSequence 9s ease-in-out infinite;
    white-space: nowrap;
    font-size: clamp(0.875rem, 6cqi, 2rem);
}

.title p:nth-child(1) {
    animation-delay: 0s;
}

.title p:nth-child(2) {
    animation-delay: -3s;
}

.title p:nth-child(3) {
    animation-delay: -6s;
}

@keyframes textSequence {

    0%,
    100% {
        opacity: 0;
    }

    5%,
    30% {
        opacity: 1;
    }

    35% {
        opacity: 0;
    }
}

.full-height-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-cover {
    position: relative;
    min-height: 350px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-cover::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    content: "";
}

.card-cover>div {
    position: relative;
    z-index: 2;
}

.card-cover:hover {
    cursor: pointer;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
}

#contact {
    min-height: 100px;
    margin: 60px 0;
    padding: 60px 50px;
    border-radius: 20px;
}

.about-photo {
    width: 100%;
    height: auto;
    max-height: 70vh;
    background-color: #f8f9fa;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 991.98px) {
    .circle-container {
        width: min(70vw, 280px);
    }

    #aboutMe .row {
        --bs-gutter-x: 0.75rem;
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
    }

    #contact {
        margin: 24px 0;
        padding: 40px 16px;
    }
}

@media (min-width: 992px) {
    .about-photo {
        height: 600px;
        max-height: none;
        object-fit: cover;
    }
}