
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #282c34;
    color: #abb2bf;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.main-container {
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    box-sizing: border-box;
}

.main-header {
    margin-bottom: 40px;
}

.main-header h1 {
    font-size: 3em;
    font-weight: 700;
    color: #61dafb;
    margin-bottom: 10px;
}

.main-header p {
    font-size: 1.2em;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-selector {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.option-card {
    position: relative;
    width: 22%;
    min-width: 280px;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-sizing: border-box;
}

.option-card.active {
    height: auto;
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}


.option-card .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.option-card .card-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 15%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.95) 95%);
    z-index: 1;
}

/* Ensure content is on top of both pseudo-elements */
.card-content {
    text-align: left;
    width: 100%;
    position: relative;
    z-index: 2;
}

.card-content h2 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #61dafb;
    color: #282c34;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #ffffff;
    color: #282c34;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    width: 100%;
    box-sizing: border-box;
    position: relative; /* Ensure collapsible content is above overlay */
    z-index: 1;
}

.option-card.active .collapsible-content {
    max-height: 500px;
    padding-top: 20px;
}

.sub-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: left;
}

.sub-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.main-footer {
    margin-top: 50px;
    color: #777;
}

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

@media (max-width: 768px) {
    .portfolio-selector {
        flex-direction: column;
        align-items: center;
    }

    .option-card {
        width: 90%;
        max-width: 400px;
    }

    .main-header h1 {
        font-size: 2.5em;
    }
}
