:root {
    --minecraft-green: #54c754;
    --minecraft-dirt: #8b5e34;
}

body {
    font-family: 'VT323', monospace;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: white;
    background-image: 
        linear-gradient(rgba(22, 22, 22, 0.7), rgba(0, 0, 0, 0.7));
    background-attachment: fixed;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
    user-drag: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.project-image, .about-photo, .thumbnail img, #modal-main-image {
    pointer-events: none;
    user-drag: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 3px solid var(--minecraft-green);
    box-shadow: 0 5px 15px rgba(84, 199, 84, 0.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, var(--minecraft-green) 49%, transparent 51%);
    animation: headerGlow 3s infinite;
    opacity: 0.1;
}

header p {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #e0e0e0;
}

header h1 {
    font-size: 3.5rem;
    margin: 0;
    text-shadow: 2px 2px 0 #000,
                 -2px -2px 0 #000,
                 2px -2px 0 #000,
                 -2px 2px 0 #000;
    animation: textGlow 2s infinite;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    height: 410px;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--minecraft-green);
    box-shadow: 0 6px 30px rgba(84, 199, 84, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    width: 210px;
    height: 180px;
    object-fit: cover;
    align-self: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-title {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--minecraft-green);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    height: 2.5rem;
    overflow: hidden;
}

.project-description {
    color: #ccc;
    font-size: 1.2rem;
    line-height: 1.4;
    flex-grow: 1;
    height: 60px;
    overflow: hidden;
    margin: 0;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(1, minmax(280px, 1fr));
    }
}

.minecraft-button {
    background-color: var(--minecraft-green);
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    text-transform: uppercase;
    margin-top: auto;
    align-self: center;
    border-radius: 5px;
    box-shadow: 0 4px 0 #2d682d;
}

.minecraft-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2d682d;
}

.minecraft-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2d682d;
}

@keyframes headerGlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
    50% { text-shadow: 2px 2px 10px var(--minecraft-green), -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #2d2d2d;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border: 3px solid var(--minecraft-green);
    border-radius: 15px;
    animation: modalAppear 0.3s ease-out;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2.5rem;
    color: var(--minecraft-green);
    cursor: pointer;
    transition: all 0.3s;
}

.close-button:hover {
    color: #ff4444;
    transform: scale(1.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--minecraft-green);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: var(--minecraft-green);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    display: grid;
    gap: 30px;
}

.info-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.info-section h3 {
    color: var(--minecraft-green);
    margin-top: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-button {
    display: inline-block;
    background-color: var(--minecraft-green);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    box-shadow: 0 4px 0 #2d682d;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2d682d;
}

.download-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2d682d;
}

.download-section {
    text-align: center;
}

.download-button.custom {
    background-color: #ff4444;
    box-shadow: 0 4px 0 #992222;
    cursor: default;
    pointer-events: none;
}

.download-button.custom:hover {
    transform: none;
    box-shadow: 0 4px 0 #992222;
}

.category-selector {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 0.1rem;
    position: relative;
    display: inline-flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.category-selector-button {
    background-color: var(--minecraft-green);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #2d682d;
    position: relative;
}

.category-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2d682d;
}

.category-selector-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2d682d;
}

.category-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 5px); 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--minecraft-green);
    border-radius: 10px;
    padding: 15px;
    margin-top: 5px;
    min-width: 200px;
    transition: visibility 0s, opacity 0.3s ease;
    z-index: 1000;
    left: calc(15% + 100px); 
}

.category-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--minecraft-green);
}

.category-menu.active {
    visibility: visible;
    opacity: 1;
}

.category-button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    margin: 5px 0;
    background: none;
    border: none;
    color: white;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.category-button:hover {
    color: var(--minecraft-green);
    padding-left: 20px;
}

.category-submenu {
    display: none;
    padding-left: 20px;
}

.category-submenu.active {
    display: block;
    animation: menuAppear 0.3s ease-out;
}

@keyframes menuAppear {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-buttons {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-me-button {
    background-color: var(--minecraft-green);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #2d682d;
    text-decoration: none;
    display: inline-block;
}

.about-me-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2d682d;
}

.about-me-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2d682d;
}

.about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
}

.about-modal-content {
    position: relative;
    background-color: #2d2d2d;
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 1000px;
    border: 3px solid var(--minecraft-green);
    border-radius: 15px;
    animation: modalAppear 0.3s ease-out;
}

.about-close-button {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2.5rem;
    color: var(--minecraft-green);
    cursor: pointer;
    transition: all 0.3s;
}

.about-close-button:hover {
    color: #ff4444;
    transform: scale(1.1);
}

.about-header h2 {
    color: var(--minecraft-green);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.about-photo {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.about-info h3 {
    color: var(--minecraft-green);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    text-align: justify;
}

.skills-section {
    margin-top: 2rem;
}

.skills-section h4 {
    color: var(--minecraft-green);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.skills-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-item {
    display: grid;
    gap: 0.5rem;
}

.skill-name {
    font-size: 1.2rem;
    color: white;
    display: flex;
    justify-content: space-between;
}

.skill-name::after {
    content: attr(data-level);
    color: var(--minecraft-green);
}

.skill-bar {
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(84, 199, 84, 0.3);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--minecraft-green), #7dff7d);
    border-radius: 8px;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 25%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 50%,
        transparent 75%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

.contact-info {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(84, 199, 84, 0.1);
    border-radius: 10px;
    border: 1px solid var(--minecraft-green);
}

.contact-info h4 {
    color: var(--minecraft-green);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #fff;
    margin: 0.5rem 0;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.category-submenu.nested {
    margin-left: 20px;
    display: none;
}

.category-submenu.nested.active {
    display: block;
}

.category-button[data-subcategory] {
    padding-left: 25px;
}

.category-submenu.nested .category-button {
    padding-left: 35px;
}

@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .left-column {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
} 