:root {
    --light-text: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1B4B6B 0%, #0F2D42 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

header {
    padding: 20px;
}

.back-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
}

.projects-container {
    flex: 1;
    display: flex;
    gap: 50px;
    padding: 30px;
    perspective: 1000px;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.project-square {
    width: 400px;
    min-height: 200px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 30px;
    text-align: center;
    box-sizing: border-box;
}

.project-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.project-square:hover {
    transform: translateY(-10px) scale(1.02) rotateX(5deg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-square:hover::before {
    transform: translateX(100%);
}

.project-square h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px 0;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-square p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.project-square:hover p {
    opacity: 1;
}

@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px;
        width: 100%;
    }

    .project-square {
        width: 100%;
        max-width: 400px;
        min-height: 180px;
        padding: 25px 20px;
    }

    .project-square h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .project-square p {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .projects-container {
        gap: 20px;
        padding: 15px;
    }

    .project-square {
        padding: 20px 15px;
        min-height: 160px;
    }

    .project-square h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .project-square p {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Add a new breakpoint for very small devices */
@media (max-width: 360px) {
    .projects-container {
        padding: 10px;
    }

    .project-square {
        padding: 15px 12px;
        min-height: 140px;
    }

    .project-square h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .project-square p {
        font-size: 13px;
        line-height: 1.3;
    }
} 