/************************************************************
ALAN
***********************************************************/

.alan {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: var(--white-color);
    color: white;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.alan-container {
    max-width: 700px;
    padding: 3rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: fadeInUp 1.2s ease;
}

.alan-container h1 {
    color: var(--primary-color);
    font-family: 'tektur', sans-serif;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.alan-container p {
    color: var(--black-color);
    font-family: "Poppins", sans-serif;
    padding: 0.5rem 0;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/*****************************************************
PORTFOLIO
****************************************************/

.portfolio {
    padding: 4rem;
    background-size: contain;
    text-align: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.portfolio-container {

    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;

}

.portfolio h2 {
    color: var(--primary-color);
    font-family: 'tektur', sans-serif;
    text-align: center;
}

.portfolio p {
    color: var(--black-color);
    font-family: "Poppins", sans-serif;
    padding: 0.5rem 0;
    text-align: center;
}

/**************************************************************
card3d SPECIAL CSS 
***************************************************************/

:root {
    --card3d-height: 400px;
    --card3d-width: calc(var(--card3d-height) / 1.5);
}

#hudson {
    border-radius: 1.5rem;
    border: 3px solid #0C153C;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

#pizzaplex {
    border-radius: 1.5rem;
    border: 3px solid #c85db8;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

#jeff {
    border-radius: 1.5rem;
    border: 3px solid var(--cooper-color);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}


.card3d {
    width: var(--card3d-width);
    height: var(--card3d-height);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 36px;
    perspective: 2500px;
    margin: 0 50px;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wrapper {
    transition: all 0.5s;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.card3d:hover .wrapper {
    transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
}

.wrapper::after {
    content: "";
    opacity: 0;
    width: 100%;
    height: 80px;
    transition: all 0.5s;
    position: absolute;
    left: 0;
}

.wrapper::after {
    bottom: 0;
    opacity: 1;
    background-image: linear-gradient(to bottom,
            transparent 46%,
            rgba(12, 13, 19, 0.5) 68%,
            rgba(12, 13, 19) 97%);
}

.card3d:hover .wrapper::before,
.wrapper::after {
    opacity: 1;
}

.card3d:hover .wrapper::after {
    height: 120px;
}

.title {
    width: 100%;
    transition: transform 0.5s;
}

.card3d:hover .title {
    transform: translate3d(0%, -50px, 100px);
}

.character {
    width: 100%;
    opacity: 0;
    transition: all 0.5s;
    position: absolute;
    z-index: -1;
}

.card3d:hover .character {
    opacity: 1;
    transform: translate3d(0%, -30%, 100px);
}

/* ********************************************************
PRESENTATION
*************************************************************/

.home-intro {
    font-family: 'Inter', sans-serif;
    background: rgb(235, 235, 235);
    padding: 4rem 10rem;
}

.intro-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.intro-header h2 {
    color: var(--primary-color);
    font-family: 'tektur', sans-serif;
    text-align: center;
    font-size: 40px;
}

.intro-header p {
    font-size: 1rem;
    color: #444;
    margin: 0.3rem 0;
}

.card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.info-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .home-intro {
        padding: 2rem 1rem;
    }

    .intro-header h1 {
        font-size: 2.2rem;
    }

}