.hero-section {
    width: 100%;
    min-height: 80vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 56px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-title .gradient-text {
    background: linear-gradient(to bottom, #595959, #ffffffcf 99%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #7F8188;
    letter-spacing: 0.02em;
    line-height: 1.6;
    max-width: 600px; 
}

.hero-section::before {
    content: '';
    z-index: -1;
    background-image: url('images/Homepage/Vector.svg');
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 120%;
}

.main-content {
    padding:80px 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
    width: 100%;
    align-items: center;
}

.portfolio-card {
    width: 1000px;
    height: 500px;
    background-color: #232322;
    border: 1px solid #343539;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
    text-decoration: none; /* Removes underline from link */

    /* Initial GSAP animation state */
    opacity: 0;
    transform: perspective(1000px) rotateX(30deg) scale(0.5);
    transform-style: preserve-3d;
}

.card-super-title {
    font-size: 16px;
    color: #969696;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.card-content {
    flex-grow: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.image-container {
    flex: 1;
    height: 100%;
    margin-left: -32px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px 0 0 12px;
}

.image-position-movie {
    object-position: 100% 50%;
}

.image-position-apartment {
    object-position: 50px 50%;
    transform: scale(1.1);
}

.image-position-medicine {
    transform: scale(0.9);
    object-position: 50% 50%;
}

.text-container {
    margin-top: -60px;
    flex: 1;
    text-align: left;
    padding-right: 32px;
}

.card-title {
    font-weight: 500;
    font-size: 24px;
    color: #F2F2F2;
    margin: 0 0 4px 0;
}

.card-description {
    font-weight: 300;
    font-size: 14px;
    color: #969696;
    line-height: 1.5;
}

.portfolio-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}


/* ----- Homepage Responsive ----- */

@media (max-width: 1200px) {
    .portfolio-card {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .portfolio-card {
        flex-direction: column;
        height: auto;
        padding: 24px;
    }

    .image-container {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .image-container img {
        border-radius: 12px;
    }

    .text-container {
        margin-top: 0;
        padding-right: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        flex-direction: column;
        gap: 10px;
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .portfolio-card {
        padding: 16px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 12px;
    }
}