/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000022, #001144, #003399);
    color: #333;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    animation: fadeIn 1s;
}

.login-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    padding: 40px;
    border-radius: 20px;

    width: 350px;
    text-align: center;

    box-shadow:
        0 0 20px rgba(0, 51, 255, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.login-box h1 {
    margin-bottom: 30px;
    color: white;
    animation: fadeInDown 0.8s ease;
}

.login-box input {
    width: 100%;
    padding: 12px;

    margin-bottom: 15px;

    border: none;
    border-radius: 8px;

    box-sizing: border-box;
}

.login-box button {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 8px;

    background: #0066ff;
    color: white;

    font-size: 16px;
    cursor: pointer;

    transition: 0.3s;
}

.login-box button:hover {
    background: #3385ff;
    transform: scale(1.03);
}

/* ===== TOPNAV ===== */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 14px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.topnav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.topnav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.topnav a.active {
    background: rgba(0, 102, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}
.logoutBtn {
    right: 20px;
}
/* ===== CONTAINER ===== */
.container {
    flex: 1;
    padding-top: 100px;
    padding-bottom: 50px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.container h1 {
    color: #0066ff;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== CONTENT SECTIONS ===== */
.content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

.content h2 {
    color: #0066ff;
    margin-top: 0;
    border-bottom: 2px solid #0066ff;
    padding-bottom: 10px;
}

.content h3 {
    color: #003399;
    margin-top: 25px;
}

.content p {
    color: #555;
    font-size: 1.05em;
}

.content ul {
    color: #555;
    font-size: 1.05em;
}

.content ul li {
    margin-bottom: 10px;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.hero h1 {
    color: white;
    font-size: 3em;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInDown 0.8s ease;
}

.hero p {
    font-size: 1.3em;
    margin-top: 10px;
    color: #ccc;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ===== CARDS ===== */
.card {
    background: #f8f9ff;
    border-left: 4px solid #0066ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.card h3 {
    color: #0066ff;
    margin-top: 0;
}

.card p {
    margin-bottom: 0;
}

h1 {
    text-shadow: 0 0 15px #66aaff;
}
/* ===== ABOUT PAGE ===== */
.about-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.about-section:last-child {
    border-bottom: none;
}

.about-section h2 {
    color: #0066ff;
    margin-bottom: 15px;
}

.about-section p {
    color: #555;
    line-height: 1.8;
}

.about-section ul {
    list-style-position: inside;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.skill {
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95em;
}

/* ===== CONTACT PAGE ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-card {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0066ff;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.2);
}

.contact-card h3 {
    color: #0066ff;
    margin-top: 0;
}

.contact-card a {
    color: #0066ff;
    text-decoration: none;
    font-weight: bold;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-form-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #0066ff;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.btn {
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
    background: rgba(0, 17, 51, 0.95);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 0.95em;
}

footer p {
    margin: 0;
    color: #bbb;
}
/* 404 PAGINA */
.error-container {
    text-align: center;
    padding: 40px;
}

.error-container h1 {
    font-size: 8rem;
    margin: 0;
    text-shadow: 0 0 20px rgba(255,255,255,0.4);
    color: white !important;
}

.error-container h2 {
    margin-top: 10px;
    font-size: 2rem;
    color: white !important;
}

.error-container p {
    font-size: 1.2rem;
    margin: 20px 0 30px;
    color: white !important;
}

.home-button {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255,255,255,0.15);
    color: white;

    text-decoration: none;
    font-weight: bold;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);

    transition: all 0.3s ease;
}

.home-button:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
/* ===== SETTINGS ===== */
.setting {
    margin: 20px 0;
}

.setting input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;

    border: none;
    border-radius: 8px;
}

.setting button {
    padding: 12px 24px;

    border: none;
    border-radius: 10px;

    font-weight: bold;
    cursor: pointer;
}

.dark {
    background: #000022 !important;
    color: white;
}

#message {
    margin-top: 15px;
    font-weight: bold;
}
/* ===== GAME ===== */
#game {
    width: 600px;
    height: 500px;

    margin: auto;

    position: relative;
    overflow: hidden;

    border: 3px solid white;
}

#plane {
    position: absolute;
    transition: left 0.1s;
    bottom: 20px;
    left: 280px;

    width: 80px;
}
/* ===== OTHERS ===== */
::selection {
    background: #003399;
    color: white;
}
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #001144;
}

::-webkit-scrollbar-thumb {
    background: #3366cc;
    border-radius: 5px;
}
.stars {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    pointer-events: none;
}
/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.plane {
    position: fixed;
    font-size: 3rem;
    animation: fly 12s linear infinite;
}

@keyframes fly {
    from {
        left: -100px;
        top: 80%;
    }

    to {
        left: calc(100% + 100px);
        top: 10%;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .topnav {
        gap: 10px;
        padding: 10px 0;
        flex-direction: column;
    }

    .topnav a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .container {
        padding-top: 80px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .container h1 {
        font-size: 2em;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .content {
        padding: 25px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .skills {
        gap: 8px;
    }

    .skill {
        padding: 8px 14px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .topnav {
        gap: 5px;
        padding: 8px 0;
    }

    .topnav a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .container {
        padding-top: 70px;
    }

    .container h1 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .content {
        padding: 15px;
    }

    .content h2 {
        font-size: 1.3em;
    }

    .content p {
        font-size: 1em;
    }
}
