:root {
    --mc-green: #58813c;
    --mc-green-light: #70a34f;
    --mc-dirt: #3e2723;
    --mc-dirt-light: #5d4037;
    --mc-sky: #79c0ff;
    --mc-cloud: #ffffff;
    --mc-stone: #757575;
    --mc-dark: #1d1d1d;
    --mc-gui: #c6c6c6;
    --mc-gui-dark: #373737;
    --mc-gui-light: #ffffff;
    --font-pixel: 'VT323', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    /* scroll-snap-type: y mandatory; */
}

section, header {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section {
    padding-top: 80px; 
}
body {
    font-family: var(--font-pixel);
    background-color: var(--mc-dark);
    color: #fff;
    overflow-x: hidden;
    font-size: 20px;
    line-height: 1.5;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    text-shadow: 4px 4px 0 #000;
    color: var(--mc-green-light);
}



nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 4px solid var(--mc-green);
    z-index: 1000;
    padding: 15px 0;
}


nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
}


nav a:hover {
    color: var(--mc-green-light);
    text-shadow: 0 0 10px var(--mc-green-light);
}

.menu-icon {
    display: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    padding-right: 20px;
    text-align: right;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    #nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        border-top: 4px solid var(--mc-green);
    }
    #nav-links.show {
        display: flex;
    }
    nav li {
        margin: 15px 0;
        width: auto !important;
    }
}

img { max-width: 100%; display: block; }

/* --- HOME --- */
#home {
    height: 100vh;
    background: linear-gradient(to bottom, #79c0ff 0%, #a2d9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-text h1 { font-size: 5rem; text-shadow: 4px 4px 0 rgba(0,0,0,0.3); }

.cloud {
    position: absolute;
    background: #ffffff;
    width: 100px;
    height: 40px;
    box-shadow: 40px -40px 0 0 #ffffff, 90px 0 0 0 #ffffff;
    opacity: 0.9;
    animation: floatCloud 20s linear infinite;
    z-index: 1; 
}
.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
    width: 100%;
    max-width: 450px;
    margin: 25px auto;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    background-color: #ffffff; 
    color: #333333; 
    
    text-decoration: none;
    font-size: 15px;
    font-weight: 600; 
    padding: 12px 10px;
    border-radius: 8px; 
    
    box-shadow: 0 4px 0 rgba(0,0,0,0.1); 
    transition: all 0.2s ease;
}

.social-links i {
    font-size: 18px;
    color: #5dade2; 
}

.social-links a:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 0 rgba(0,0,0,0.15); 
    color: #5dade2;
}
@keyframes floatCloud {
    0% { left: -200px; }
    100% { left: 110%; }
}
.c1 { top: 20%; left: -20%; animation-duration: 25s; }
.c2 { top: 40%; left: -10%; animation-duration: 35s; transform: scale(0.6); }
.c3 { top: 15%; left: -30%; animation-duration: 45s; transform: scale(0.8); }

/* --- PROFILE --- */
#profile {
    min-height: 100vh;
    background-color: #111; 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
    gap: 50px;
}

/* 3D */
.scene {
            position: absolute;
            width: 200px;
            height: 200px;
            perspective: 600px;
            z-index: 1;
            pointer-events: none;
            
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.5s ease;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 12s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(0,0,0,0.2);
    background-color: #264d85; 
    background-image: 
        linear-gradient(45deg, transparent 60%, #4caf50 60%),
        linear-gradient(135deg, transparent 70%, #4caf50 70%),
        linear-gradient(to right, transparent 20%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 22%, transparent 22%);
    image-rendering: pixelated;
}

.front  { transform: rotateY(0deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); background: #4caf50; } 
.bottom { transform: rotateX(-90deg) translateZ(100px); background: #3e2723; } 

@keyframes spin {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

.profile-content {
    position: relative;
    z-index: 10;
    background: rgba(29, 29, 29, 0.85);
    padding: 40px;
    max-width: 600px;
    text-align: center;
    border: 4px solid var(--mc-green);
    box-shadow: 0 0 20px var(--mc-green);
    backdrop-filter: blur(5px);
}

.avatar {
    width: 150px; 
    height: 150px;
    margin: 0 auto 20px;
    border: 4px solid #ffffff;
    background-color: #1d1d1d;
    box-shadow: 4px 4px 0 #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content h2 { font-size: 3rem; margin-bottom: 10px; color: var(--mc-green-light); }
.profile-content h3 { color: #aaa; margin-bottom: 20px; font-size: 1.5rem; }
.profile-content p { font-size: 1.3rem; margin-bottom: 30px; }

.btn {
    display: inline-block;
    background-color: var(--mc-gui); 
    color: var(--mc-dark); 
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
    border: 4px solid var(--mc-dark);
    border-top-color: var(--mc-gui-light); 
    border-left-color: var(--mc-gui-light);
    border-right-color: var(--mc-gui-dark); 
    border-bottom-color: var(--mc-gui-dark);
    border-radius: 0 !important;
}
.btn:hover { background-color: #fff; color: #000; }
.btn:active {
    border-top-color: var(--mc-gui-dark);
    border-left-color: var(--mc-gui-dark);
    border-right-color: var(--mc-gui-light);
    border-bottom-color: var(--mc-gui-light);
    transform: translateY(4px);
}

/* --- PROJECTS--- */
#projects {
    background-color: var(--mc-dirt);
    background-image: 
        radial-gradient(var(--mc-dirt-light) 15%, transparent 16%),
        radial-gradient(var(--mc-dirt-light) 15%, transparent 16%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    padding: 100px 0;
    border-top: 10px solid var(--mc-green); 
}

.card {
    background: var(--mc-stone);
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease;
    background-image: 
        linear-gradient(45deg, #888 25%, transparent 25%, transparent 75%, #888 75%, #888), 
        linear-gradient(45deg, #888 25%, transparent 25%, transparent 75%, #888 75%, #888);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border: 4px solid #000;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 0 rgba(0,0,0,0.5);
    border-color: var(--mc-gui-light);
}

.card-img-placeholder {
    height: 220px;
    background-color: #444;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #222;
    overflow: hidden; 
}

.card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 2px 2px #000;
}

.card p {
    color: #ddd;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    font-size: 1rem;
    flex-grow: 1; 
}

/* --- SKILLS  --- */
#Skills {
            background-color: #2f2f2f;
            background-image: 
                linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%, #222),
                linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%, #222);
            background-size: 40px 40px;
            background-position: 0 0, 20px 20px;
            border-top: 4px solid #000;
            border-bottom: 4px solid #000;
            color: #fff;
            padding: 80px 0;
            font-family: 'VT323', monospace; 
        }

        .skills-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
        }

        h2.section-title {
            text-align: center;
            font-size: 3rem;
            margin-bottom: 40px;
            text-transform: uppercase;
            text-shadow: 4px 4px 0 #000;
        }

        .skills-tabs {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
        }

        .tab-card {
            background: #444;
            border: 4px solid;
            border-color: #fff #373737 #373737 #fff; 
            padding: 10px 20px;
            cursor: pointer;
            font-size: 1.4rem;
            transition: all 0.2s;
            box-shadow: 4px 4px 0 #000;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tab-card:hover {
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0 #000;
            background: #555;
        }

        .tab-card.active {
            background-color: #58813c;
            border-color: #fff #2e441f #2e441f #fff;
            transform: translate(2px, 2px); 
            box-shadow: 0 0 0 #000;
        }

        .skills-content {
            background: rgba(0, 0, 0, 0.6);
            border: 4px solid #fff;
            padding: 30px;
            box-shadow: 8px 8px 0 #000;
        }

        .category-title {
            font-size: 2rem;
            margin-bottom: 25px;
            border-bottom: 2px dashed #58813c;
            padding-bottom: 10px;
        }

        .skill-bar-wrapper {
            margin-bottom: 20px;
        }

        .skill-info {
            display: flex;
            justify-content: space-between;
            font-size: 1.3rem;
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        .progress-line {
            height: 14px;
            background: #222;
            border: 2px solid #555;
            position: relative;
            padding: 2px;
        }

        .progress-line span {
            display: block;
            height: 100%;
            background: #58813c; 
            width: 0; 
            transition: width 1s ease-in-out;
            box-shadow: inset 0 2px 0 rgba(255,255,255,0.2);
        }

/* --- EXPERIENCE  --- */
#experience {
    background-color: #451919;
    
    background-image: 
        linear-gradient(45deg, #5e2424 25%, transparent 25%, transparent 75%, #5e2424 75%, #5e2424),
        linear-gradient(45deg, #5e2424 25%, transparent 25%, transparent 75%, #5e2424 75%, #5e2424);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    border-top: 6px solid #fce803; 
    border-bottom: 6px solid #fce803;
    color: #e6e1da;
    padding: 100px 0;
}
.experience-tex p {
    color: #ffffff !important; 
    font-size: 1.4rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border: 2px solid #fce803;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.timeline-wrapper {
    position: relative;
    padding: 3rem 0;
    margin: 2rem 0;
    overflow-x: hidden;
    overflow-y: hidden;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fce803;
    left: 30px; 
    box-shadow: 2px 0 0 rgba(0,0,0,0.5);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 100px; 
    /* margin-left: 100px; */
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 22px; 
    left: 30px; 
    width: 70px; 
    height: 4px;
    background: #fce803;
    z-index: 1;
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 40px;
    transform: translateX(-50%);
    
    width: auto;
    min-width: 60px;
    padding: 8px 20px;
    border-radius: 50px;
    white-space: nowrap;
    
    background: #fce803;
    color: #451919;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 3px 3px 0 #000;
    z-index: 10;
    font-family: 'VT323', monospace;
}

.timeline-item h4 {
    margin: 0;
    background: #fce803;
    color: #451919;
    padding: 10px 15px;
    border: 2px solid #fce803;
    display: inline-block;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.timeline-item p {
    /* margin-left: -100px; */
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff !important;
    padding: 15px;
    border: 2px solid #fce803;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.timeline-item.visible {
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}


/* --- CONNECT  --- */
#connect {
    background-color: #12081c; 
    
    background-image: 
        radial-gradient(rgba(204, 0, 250, 0.15) 15%, transparent 16%), 
        radial-gradient(rgba(227, 223, 168, 0.15) 15%, transparent 16%); 
    
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    
    border-top: 4px solid #e3dfa8; 
    
    padding: 100px 0;
    text-align: center;
    color: #fff;
}


.pixel-input{
    border: 6px solid #fff;
    border-radius: 0 !important;
    background-color: rgb(255, 255, 255,0.1);
    color: #fff;
    box-shadow: 4px 4px 0 #000;
}

.pixel-input::placeholder {
    color: #ccc;
}
.pixel-btn-submit{
    border: 4px solid #fff;
    border-radius: 0 !important;
    background-color: #CC00FA;
    color: #fff;
    font-weight: bold;
    box-shadow: 4px 4px 0 #000;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pixel-btn-submit:hover {
    transform: translate(-2px,-2px);
    box-shadow: 6px 6px 0 #000;
    background-color: #D652FA;
}

.pixel-btn-social {
    background: #3b5998;
    color: #fff;
    width: 200px;
    padding: 15px;
    text-decoration: none;
    font-size: 1.5rem;
    border: 4px solid #fff;
    box-shadow: 4px 4px 0 #000;
    transition: all 0.2s;
    display: inline-block;
}

.pixel-btn-social:hover {
    transform: scale(1.05);
    box-shadow: 6px 6px 0 #000;
    color: #fff;
}

.gh { background: #333; }
.li { background: #0077b5; }
.em { background: #d44638; }

.pixel-btn-social,
.pixel-btn-submit,
.pixel-input,
.pixel-input::placeholder{
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    text-transform: uppercase;
}

footer p {
    margin-top: 50px;
    color: #666;
    font-size: 1rem;
    font-family: var(--font-pixel);
}

/* --- RESPONSIVE--- */
@media (max-width: 1024px) {
    .scene { width: 160px; height: 160px; perspective: 500px; }
    .cube-face { width: 160px; height: 160px; }
    .front { transform: rotateY(0deg) translateZ(80px); }
    .back { transform: rotateY(180deg) translateZ(80px); }
    .right { transform: rotateY(90deg) translateZ(80px); }
    .left { transform: rotateY(-90deg) translateZ(80px); }
    .top { transform: rotateX(90deg) translateZ(80px); }
    .bottom { transform: rotateX(-90deg) translateZ(80px); }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 3rem; }
    nav ul { flex-wrap: wrap; gap: 15px; font-size: 0.9rem; }
    #profile { flex-direction: column; justify-content: center; padding-top: 50px; }
    /* .scene { position: static; top: auto; left: auto; transform: none; width: 60px; height: 60px; margin-bottom: -100px; } */
    .cube-face { width: 120px; height: 120px; }
    .front { transform: rotateY(0deg) translateZ(60px); }
    .back { transform: rotateY(180deg) translateZ(60px); }
    .right { transform: rotateY(90deg) translateZ(60px); }
    .left { transform: rotateY(-90deg) translateZ(60px); }
    .top { transform: rotateX(90deg) translateZ(60px); }
    .bottom { transform: rotateX(-90deg) translateZ(60px); }
    .profile-content { width: 90%; }
    .avatar {
        width: 120px;
        height: 120px;
    }
    #connect {
        padding: 50px 0;
    }
    .social-links{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .pixel-btn-social {
        width: 60%;
        font-size: 1rem;
        max-width: 12rem;
    }
    .pixel-btn-input {
        width: 80%;
        font-size: 0.8rem;
        max-width: 1rem;
        margin: 0 auto 15px;
    }
    .timeline-wrapper::before {
        left: 50px; 
    }
    
    .timeline-item {
        padding-right: 60px;
        padding-left: 60px;

    }
    .timeline-item h4 {
        margin-left: 50px;
    }
    .timeline-item p  {
        margin-left: 50px;
    }
    .timeline-item::before {
        left: 70px; 
        /* right: 140px; */
        width: 40px;
    }
    
    .timeline-badge {
        left: 50px;
        font-size: 0.8rem;
        padding: 5px 15px;
    }
}


@media (min-width: 992px) {
    #profile {
        flex-direction: row; 
        gap: 100px;
    }
    .avatar {
        width: 160px;
        height: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cube, .cloud { animation: none; }
}



@media (min-width: 768px) {
    
    .timeline-wrapper::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        margin-bottom: 5rem;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: right;
        padding-left: 0;
        padding-right: 140px; 
    }

    .timeline-item:nth-child(odd)::before {
        left: auto;
        right: 0;
        width: 140px; 
    }
    .timeline-item:nth-child(odd) .timeline-badge {
        left: auto;
        right: 0;
        transform: translateX(50%);
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        text-align: left;
        padding-right: 0;
        padding-left: 140px; 
    }

    .timeline-item:nth-child(even)::before {
        left: 0;
        width: 140px; 
    }

    .timeline-item:nth-child(even) .timeline-badge {
        left: 0;
        transform: translateX(-50%);
    }
}

