/* Project Task Manager Hub - Main Landing Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #150067 0%, #2a0099 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.main-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    justify-items: center;
}

/* Inverted triangle layout for larger screens - 3 on top, 2 centred below */
@media (min-width: 900px) {
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto auto;
        gap: 30px;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto 50px auto;
        padding: 20px;
    }

    /* Top row: 3 cards evenly spaced */
    .project-card:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .project-card:nth-child(2) {
        grid-column: 3 / 5;
        grid-row: 1;
    }

    .project-card:nth-child(3) {
        grid-column: 5 / 7;
        grid-row: 1;
    }

    /* Bottom row: 2 cards centred (inverted triangle) */
    .project-card:nth-child(4) {
        grid-column: 2 / 4;
        grid-row: 2;
    }

    .project-card:nth-child(5) {
        grid-column: 4 / 6;
        grid-row: 2;
    }
}

.project-card {
    background: #EDE8ED;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(21, 0, 103, 0.3);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 15px 15px 0 0;
    transition: all 0.3s ease;
}

.project-card.work::before {
    background: linear-gradient(135deg, #150067 0%, #2a0099 100%);
}

.project-card.personal::before {
    background: linear-gradient(135deg, #150067 0%, #3d1a78 100%);
}

.project-card.relationships::before {
    background: linear-gradient(135deg, #150067 0%, #2f0d5c 100%);
}

.project-card.learning::before {
    background: linear-gradient(135deg, #150067 0%, #4a2c85 100%);
}

.project-card.home::before {
    background: linear-gradient(135deg, #150067 0%, #573392 100%);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(21, 0, 103, 0.4);
}

.project-card:hover::before {
    height: 8px;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon {
    font-size: 3em;
    margin-right: 15px;
}

.card-header h2 {
    font-size: 1.8em;
    color: #150067;
}

.description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.feature {
    color: #555;
    font-size: 0.95em;
}

.launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    margin-top: auto;
}

.work-btn {
    background: linear-gradient(135deg, #150067 0%, #2a0099 100%);
}

.work-btn:hover {
    background: linear-gradient(135deg, #0f0052 0%, #1f0080 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 0, 103, 0.4);
}

.personal-btn {
    background: linear-gradient(135deg, #150067 0%, #3d1a78 100%);
}

.personal-btn:hover {
    background: linear-gradient(135deg, #0f0052 0%, #2f1460 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 0, 103, 0.4);
}

.relationships-btn {
    background: linear-gradient(135deg, #150067 0%, #2f0d5c 100%);
}

.relationships-btn:hover {
    background: linear-gradient(135deg, #0f0052 0%, #240a47 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 0, 103, 0.4);
}

.learning-btn {
    background: linear-gradient(135deg, #150067 0%, #4a2c85 100%);
}

.learning-btn:hover {
    background: linear-gradient(135deg, #0f0052 0%, #3c2269 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 0, 103, 0.4);
}

.home-btn {
    background: linear-gradient(135deg, #150067 0%, #573392 100%);
}

.home-btn:hover {
    background: linear-gradient(135deg, #0f0052 0%, #452975 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 0, 103, 0.4);
}

.main-footer {
    text-align: center;
    color: white;
    opacity: 0.8;
}

.return-btn {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: #150067;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.return-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.main-footer p {
    margin-bottom: 10px;
}

.tip {
    background: rgba(237, 232, 237, 0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(237, 232, 237, 0.3);
}

/* Responsive design */
@media (max-width: 899px) {
    .container {
        padding: 20px 15px;
    }
    
    .main-header h1 {
        font-size: 2.2em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .card-header h2 {
        font-size: 1.5em;
    }
    
    .icon {
        font-size: 2.5em;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease-out;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
