 :root {
    /* Light Theme Variables - Updated to orange */
    --primary-color: #FF6B00;
    --secondary-color: #FFa500;
    --text-color: #000000;
    --background-color: #FFF4E6;
    --white-color: #FFFFFF;
    --minecraft-font: 'Unifont', monospace;
    --section-background-color: #FF6B00;
}

@font-face {
    font-family: 'Unifont';
    src: url('https://cdn.jsdelivr.net/npm/unifont@15.0.01/font/unifont.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/unifont@15.0.01/font/unifont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.2s ease;
    background-image: linear-gradient(135deg, rgba(255,165,0,0.1), rgba(255,165,0,0.2));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section {
    width: 100%;
    flex-grow: 1;
}

header {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    color: var(--white-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 15px;
}

nav ul li a {
    display: flex;
    align-items: center;
    color: var(--white-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav ul li a:hover {
    transform: scale(1.1) rotate(3deg);
    background-color: rgba(255,255,255,0.3);
}

h1, h2 {
    font-family: var(--minecraft-font);
    letter-spacing: 1px;
}

nav .logo h1 {
    font-family: var(--minecraft-font);
}

.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transition: all 0.3s ease;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-content h2 {
    font-family: var(--minecraft-font);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.profile-image img {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.2s ease-in-out;
}

.profile-image img:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: pulse 0.5s infinite;
}

h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: pulse 0.4s infinite alternate;
}

.projects, .contact, .links-wall, .friends-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--section-background-color);
    color: var(--white-color);
    transition: all 0.3s ease;
}

.projects-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.projects p {
    font-size: 1.2rem;
    color: var(--text-color);
}

.contact {
    /* Removed background styles to use the new styles defined above */
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-links .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.links-content, .friends-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.links-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.links-grid-vertical .link-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.link-card:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: pulse 0.4s infinite alternate;
}

.link-card .material-icons {
    font-size: 1.5rem;
}

.link-card.youtube {
    background-color: #FF0000;
}

.link-card.discord {
    background-color: #5865F2;
}

footer {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, rgba(255,165,0,0.3), rgba(255,165,0,0.4));
    color: var(--white-color);
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.social-links a:hover {
    transform: scale(1.2) rotate(5deg);
    background-color: rgba(255,255,255,0.3);
}

.material-icons {
    vertical-align: middle;
    margin-right: 5px;
    font-size: 1.2rem;
}

.btn.youtube {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.language-picker {
    position: relative;
}

.current-lang {
    display: flex;
    align-items: center;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 120px;
    z-index: 1000;
}

.lang-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.lang-dropdown a:hover {
    background-color: rgba(0,0,0,0.05);
}

.lang-dropdown a.active {
    background-color: rgba(0,0,0,0.1);
}

.language-picker:hover .lang-dropdown {
    display: block;
}

.theme-toggle a {
    display: flex;
    align-items: center;
    color: var(--white-color);
}

.project-card.expanded-card {
    flex-direction: column;
    max-width: 600px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    border-radius: 12px;
}

.project-card.expanded-card video {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.project-card-content {
    text-align: center;
    width: 100%;
}

.project-card-content h3 {
    color: var(--white-color);
    margin-bottom: 10px;
}

.project-card-content p {
    color: var(--white-color);
    margin-bottom: 15px;
}

.modern-code-section {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.code-input-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.code-input-nav-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.code-input-nav {
    padding: 8px 12px;
    border: 2px solid var(--white-color);
    border-radius: 6px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white-color);
    font-size: 14px;
    width: 120px;
    transition: all 0.3s ease;
}

.code-input-nav::placeholder {
    color: rgba(255,255,255,0.7);
}

.code-input-nav:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    width: 150px;
}

.code-btn-nav {
    padding: 8px 12px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-btn-nav:hover {
    background-color: rgba(255,165,0,0.9);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.modern-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid var(--white-color);
    border-radius: 8px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.modern-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.modern-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.modern-btn {
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-btn:hover {
    background-color: rgba(255,165,0,0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dark-theme {
    --primary-color: #FF6B00;
    --secondary-color: #FFa500;
    --text-color: #FFFFFF;
    --background-color: #121212;
    --section-background-color: #FF6B00;
}

.rgb-theme {
    animation: rgbShift 5s linear infinite;
}

@keyframes rgbShift {
    0% {
        --primary-color: #ff0000;
        --secondary-color: #ff3333;
        --section-background-color: #ff0000;
    }
    33% {
        --primary-color: #00ff00;
        --secondary-color: #33ff33;
        --section-background-color: #00ff00;
    }
    66% {
        --primary-color: #0000ff;
        --secondary-color: #3333ff;
        --section-background-color: #0000ff;
    }
    100% {
        --primary-color: #ff0000;
        --secondary-color: #ff3333;
        --section-background-color: #ff0000;
    }
}

.rgb-theme .btn,
.rgb-theme .link-card,
.rgb-theme .project-card {
    animation: rgbShift 5s linear infinite;
}

#creditsOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    perspective: 400px;
    overflow: hidden;
}

.star-wars-credits {
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: 50% 100%;
    transform: translateX(-50%) translateY(100%) rotateX(25deg);
    animation: crawl 30s linear;
}

@keyframes crawl {
    0% {
        transform: translateX(-50%) translateY(100%) rotateX(25deg);
    }
    100% {
        transform: translateX(-50%) translateY(-6000px) rotateX(25deg);
    }
}

.crawl {
    color: #feda4a;
    font-family: var(--minecraft-font);
    font-size: 60px;
    text-align: center;
    line-height: 2;
    text-shadow: 0 0 20px rgba(254, 218, 74, 0.8);
}

.crawl .title {
    margin-bottom: 200px;
}

.crawl .title h1 {
    margin: 0;
    font-size: 120px;
    text-shadow: 0 0 30px rgba(254, 218, 74, 0.9);
}

.credits-content {
    width: 80%;
    margin: 0 auto;
}

.credits-content p {
    margin: 80px 0;
    font-size: 70px;
    text-shadow: 0 0 25px rgba(254, 218, 74, 0.7);
}

.minecraft-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 12px;
    z-index: 1000;
    text-align: center;
    color: var(--white-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    display: none;
}

.minecraft-popup h3 {
    margin-bottom: 15px;
}

.minecraft-popup #skinContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.minecraft-popup #skinContainer img {
    max-width: 200px;
    height: auto;
}

.minecraft-popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.minecraft-popup .close-btn:hover {
    transform: scale(1.1);
}
