@font-face {
    font-family: 'Oxanium';
    src: url('oxanium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Oxanium', sans-serif;
}

body {
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 255, 204, 0.1);
    border-top: 5px solid #00ccff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#loader p {
    margin-top: 30px;
    font-size: 1.3rem;
    color: #00ccff;
    text-transform: uppercase;
    font-family: 'Oxanium', sans-serif;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.container {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.cover {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('cover-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section {
    padding: 60px 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: 2px solid #00ccff;
    display: inline-block;
    padding-bottom: 10px;
}

.project-card {
    background: #0f0f0f;
    padding: 40px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1000px;
    width: 95%;
    display: flex;
    align-items: stretch;
    gap: 40px;
    text-align: left;
}

.project-video {
    width: 50%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    transform: translateZ(0);
}

.project-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #00ccff;
    font-weight: 800;
}

.links {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00ccff;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #00ffcc;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 204, 255, 0.4);
}

footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 1.1rem;
    color: #888;
}

@media (max-width: 768px) {
    .cover {
        width: 100%;
        aspect-ratio: 1;
        height: auto;
        min-height: auto;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-image: url('mobile-bg.png');
    }

    .container {
        width: 95%;
    }

    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .project-img {
        width: 100%;
        max-width: none;
    }

    .project-video {
        width: 100%;
        margin-bottom: 20px;
    }

    .project-content {
        width: 100%;
    }

    .links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about p {
        font-size: 1rem;
    }
}
