

:root[data-theme="dark"] {
    --bg-main: #0c0d14; /* Night Sky */
    --text-main: #e0e0e0;
    --bg-nav: rgba(12, 13, 20, 0.9);
    --text-nav: #e0e0e0;
    --nav-hover: #ff3333; /* Redstone Red */
    --bg-profile: #1e1e1e; /* Stone Gray Dark */
    --bg-skills: #2a2a2a; /* Obsidian */
    --bg-experience: #1a0f2e; /* Nether Purple Dark */
    --bg-connect: #0f0f0f; /* Deep Stone */
    --bg-card: rgba(29, 29, 29, 0.85);
    --text-shadow-nav: 2px 2px 0 #000;
    
    /* Cyber Redstone Accent */
    --accent-primary: #ff3333; 
    --accent-secondary: #55ffff; 
    
    /* Projects Starry Night Default */
    --projects-bg: #090a0f;
    --projects-border: #ff3333; /* Redstone border */
    --projects-stars: radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)), radial-gradient(1.5px 1.5px at 40px 70px, #ffffff, rgba(0,0,0,0)), radial-gradient(2px 2px at 50px 160px, #dddddd, rgba(0,0,0,0)), radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0,0,0,0)), radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)), radial-gradient(1.5px 1.5px at 160px 120px, #dddddd, rgba(0,0,0,0));
    --projects-stars-animation: twinkle 5s infinite ease-in-out;
}

:root[data-theme="light"] {
    --bg-main: #87CEEB; /* Daytime Sky */
    --text-main: #222;
    --bg-nav: rgba(135, 206, 235, 0.95);
    --text-nav: #222;
    --nav-hover: #ff0000; /* Redstone Red */
    --bg-profile: #70a34f; /* Grass Green */
    --bg-skills: #8b5a2b; /* Dirt Brown */
    --bg-experience: #a8a8a8; /* Light Stone */
    --bg-connect: #5d4037; /* Dark Dirt */
    --bg-card: rgba(245, 245, 245, 0.9); /* Bright for contrast */
    --text-shadow-nav: none;

    /* Cyber Redstone Accent */
    --accent-primary: #dd0000; 
    --accent-secondary: #00aaaa; 

    /* Projects Daytime Sky */
    --projects-bg: #87CEEB;
    --projects-border: #8b5a2b; /* Wood border */
    --projects-stars: radial-gradient(40px 40px at 20% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0)), radial-gradient(50px 50px at 70% 60%, rgba(255,255,255,0.6), rgba(255,255,255,0));
    --projects-stars-animation: none;
}


: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;
    --font-modern: 'Inter', sans-serif;
}

* { 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; 
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    
    letter-spacing: 1.5px;
    font-weight: normal;
}

body {
    font-family: var(--font-modern);
    letter-spacing: 0.5px;
    line-height: 1.7;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    font-size: 20px;
    line-height: 1.5;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6); /* Subtle glow */
    color: var(--mc-green-light);
}



nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-nav);
    transition: background-color 0.5s ease;
    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: var(--text-nav);
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-shadow: var(--text-shadow-nav);
}


nav a:hover {
    color: var(--nav-hover);
    text-shadow: none;
}

.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: transparent;
    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: transparent;
    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: var(--bg-card);
    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;
    border-radius: 50%;
    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;
    object-position: top;
}

.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--- */
@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

#projects {
    background-color: transparent;
    padding: 100px 0;
    border-top: none;
    transition: background-color 0.5s ease, border-top-color 0.5s ease; 
    position: relative;
    z-index: 1;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* /* background-image: var(--projects-stars); */ */
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: -1;
    animation: var(--projects-stars-animation);
}


.card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 20px 40px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 5px; right: 5px;
    width: 15px; height: 15px;
    background-color: var(--accent-primary);
    border: 2px solid #550000;
    box-shadow: inset 2px 2px 0px #ff6666;
    border-radius: 2px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 20px rgba(85,255,255,0.2);
    border-color: rgba(85,255,255,0.5);
}

.card-img-placeholder {

    background-color: #000;
    height: 150px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #333;
    position: relative;
}
.card-img-placeholder::after {
    content: 'VAULT SECURED';
    position: absolute;
    bottom: 5px; right: 5px;
    color: var(--accent-primary);
    font-size: 0.8rem;
    
    text-shadow: 1px 1px 0 #000;
}
.iframe-thumbnail-container {
    width: 400%;  
    height: 400%; 
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(0.25);
    transform-origin: top left;
    pointer-events: none;
}
.iframe-thumbnail-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.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: transparent;
            color: #fff;
            padding: 80px 0;
            font-family: 'VT323', monospace; 
        }

        
.skills-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

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

.tab-card {
    background-color: #8b8b8b;
    border: 4px solid #fff;
    border-right-color: #373737;
    border-bottom-color: #373737;
    padding: 10px 20px;
    cursor: pointer;
    
    font-size: 1.2rem;
    color: #000;
    transition: transform 0.1s;
}

.tab-card:hover, .tab-card.active {
    background-color: #a8a8a8;
    transform: scale(1.05);
}

.category-title {
    font-size: 2rem;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
    border-bottom: 4px dashed #8b8b8b;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* EXP Bar Styling */
.skill-bar-wrapper {
    margin-bottom: 15px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    
    color: #000;
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 0 #fff;
}

.progress-line {
    background-color: #000;
    height: 15px;
    border: 2px solid #373737;
    border-top-color: #8b8b8b;
    border-left-color: #8b8b8b;
    width: 100%;
    position: relative;
    box-shadow: inset 2px 2px 0px #000;
}

.progress-line span {
    display: block;
    height: 100%;
    background-color: #33ff33; /* Minecraft EXP Green */
    width: 0;
    border-top: 2px solid #88ff88;
    border-bottom: 2px solid #00aa00;
    transition: width 1s ease-in-out;
}


/* Minecraft Achievement Timeline */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}
.timeline-item {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    color: var(--text-main);
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}
.timeline-item.visible {
    transform: translateX(0);
    opacity: 1;
}
.timeline-badge {
    background-color: var(--accent-primary);
    color: #fff;
    padding: 5px 10px;
    
    font-size: 1.2rem;
    position: absolute;
    top: -15px;
    left: 20px;
    border: 2px solid #550000;
    box-shadow: 2px 2px 0px #000;
}
.timeline-item h4::before {
    content: '★ ';
    color: #ffff55;
}

/* Contact / Obsidian Panel */
#connect .container {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.pixel-input {
    background-color: #000;
    border: 4px solid #555;
    border-bottom-color: #fff;
    border-right-color: #fff;
    color: #55ff55;
    
    padding: 10px;
}
.pixel-input:focus {
    background-color: #111;
    color: #55ff55;
    outline: none;
    box-shadow: none;
    border-color: var(--accent-primary);
}
.pixel-btn-submit {
    background-color: var(--accent-primary);
    color: #fff;
    border: 4px solid #ffaaaa;
    border-bottom-color: #550000;
    border-right-color: #550000;
    
    font-size: 1.2rem;
}
.pixel-btn-submit:hover {
    background-color: #cc0000;
    color: #fff;
}




/* Voxel Universe & Planet */
.voxel-universe {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -10; pointer-events: none; perspective: 1200px; overflow: hidden;
}
#planet-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; }
.planet-wrapper {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 280px; height: 280px; perspective: 800px; z-index: 2;
}
.planet-wrapper::after {
    content: ''; position: absolute; top: -30px; left: -30px; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(135,206,235,0.15) 30%, rgba(135,206,235,0) 70%); z-index: -1;
    animation: planetGlow 6s ease-in-out infinite alternate;
}
@keyframes planetGlow { 0% { box-shadow: 0 0 60px rgba(135,206,235,0.2); } 100% { box-shadow: 0 0 100px rgba(135,206,235,0.4); } }


.hero-text.container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
    animation: floatIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatIn {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.hero-text h1 {
    font-size: 5rem;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6); /* Subtle glow */
    color: #fff;
    margin-bottom: 10px;
}
.hero-text p {
    color: #ddd;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
