
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

:root {
    --bg-light: #F6F2EC;
    --bg-dark: #000000;
    --text-light: #000;
    --text-dark: #000000;
    --accent: #FFD700;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
    text-decoration: none;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background 0.5s, color 0.5s;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.subtitle {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #555;
}

.project-description {
    background: white;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    padding: 15px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-content: center;
    padding: 40px;
    overflow: visible;
}

.project-card {
    width: 100%;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    background: none !important;
    border-radius: 12px;
    overflow: hidden;
}

.project-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}

.project-card.flipped .project-inner {
    transform: rotateY(180deg);
}

.project-front, .project-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: none;
}

.project-front {
    overflow: hidden;
}

.project-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.project-back {
    background: #333;
    color: white;
    transform: rotateY(180deg);
    text-align: center;
    padding: 20px;
    border-radius: 12px;
}

.project-back h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-back p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.tech {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--accent);
}

.project-link {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 15px;
    background: var(--accent);
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.project-link:hover {
    background: #FFC107;
    transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
