@import url('https://fonts.googleapis.com/css2?family=Epunda+Slab:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zilla Slab', serif;
    background: white;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.name-title {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 2em;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    letter-spacing: 0.5px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 0%, transparent 45%, #dbd6ff 45%, #dbd6ff 46.75%, transparent 46.75%, transparent 100%),
        linear-gradient(135deg, transparent 0%, transparent 65%, #ccfcff 65%, #ccfcff 66.75%, transparent 66.75%, transparent 100%),
        linear-gradient(135deg, transparent 0%, transparent 25%, #f7d0ff 25%, #f7d0ff 26.75%, transparent 26.75%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    gap: 30px;
}


.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 100px;
    max-width: 1800px;
    width: 100%;
    place-items: center;
}

.project-card {
    background: rgba(250, 250, 253, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    cursor: pointer;
    aspect-ratio: 3 / 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.project-card:hover {
    transform: scale(1.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.075);
}

.project-text {
    font-size: 28px;
    color: black;
    text-align: center;
    z-index: 1;
    position: relative;
    transition: opacity 0.3s ease-out;
    opacity: 1;
}

.project-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    z-index: 2;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: black;
    transition: box-shadow 0.3s ease-out, background 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.project-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    transition: opacity 0.3s ease-out;
    opacity: 0;
}

.project-icon:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.2);
}

.project-icon:hover::before {
    opacity: 1;
}

.project-icon svg {
    width: 24px;
    height: 24px;
    z-index: 1;
    position: relative;
}

.project-card:hover .project-text {
    opacity: 0;
}

.project-card:hover .project-icons {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        max-width: 600px;
        gap: 40px;
    }
    
    .project-card {
        padding: 60px 30px;
        border-radius: 20px;
        max-width: 500px;
    }
    
    .project-card span {
        font-size: 24px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .container {
        gap: 40px;
        padding-top: 80px;
    }
    
    .name-title {
        font-size: 1.5em;
        top: 15px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        max-width: 400px;
        gap: 25px;
    }
    
    .project-card {
        padding: 40px 20px;
        border-radius: 16px;
        max-width: 400px;
    }
    
    .project-card::before {
        border-radius: 16px;
    }
    
    .project-card span {
        font-size: 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .container {
        gap: 30px;
        padding-top: 0px;
        padding-bottom: 80px
    }
    
    .name-title {
        font-size: 1.2em;
        top: 10px;
        left: 15px;
    }
}

/* Social Icons */
.social-icons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(250, 250, 253, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: black;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    transition: opacity 0.3s ease-out;
    opacity: 0;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    background: rgba(250, 250, 253, 0.5);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    z-index: 1;
    position: relative;
}

/* Responsive adjustments for social icons */
@media (max-width: 768px) {
    .social-icons {
        bottom: 20px;
        left: 20px;
        gap: 12px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}