/* Base Styles */
@font-face {
    font-family: 'Neue Machina';
    src: url('../font/PPNeueMachina-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Machina';
    src: url('../font/PPNeueMachina-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Machina';
    src: url('../font/PPNeueMachina-Ultrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Bounded';
    src: url('../font/Bounded-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bounded';
    src: url('../font/Bounded-ExtraLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Bounded';
    src: url('../font/Bounded-Black.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neue Machina', sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #1a1a1a 100%);
    background-attachment: fixed;
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #f5f5f5;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 98%;
    padding: 15px 40px;
    background-color: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

header.scrolled {
    padding: 10px 25px;
    border-radius: 30px;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 45px;
    margin-right: 15px;
}

.logo img {
    height: 45px;
    transition: height 0.3s ease;
    display: block; /* Ensure logo is always displayed */
    opacity: 1 !important; /* Force visibility */
}

header.scrolled .logo img {
    height: 35px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 8px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.nav-links a i {
    margin-right: 5px;
}

.nav-links a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#code-waterfall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.hero .container {
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.gradient-text {
    font-family: 'Bounded', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    z-index: 2;
    min-height: 120px;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid #f5f5f5;
    color: #f5f5f5;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.btn:hover {
    background-color: #f5f5f5;
    color: #111;
}

.discord-btn {
    background-color: #000000;
    border-color: #000000;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.discord-btn:hover {
    background-color: #4752c4;
    border-color: #4752c4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.discord-btn i {
    margin-right: 8px;
}

/* About Section */
.about {
    padding: 150px 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    z-index: 0;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    animation-name: p-2;
    animation-timeline: scroll();
    animation-timing-function: linear;
    animation-range: entry 10% cover 30%;
}

.about h2 i, .services h2 i, .creators h2 i, .faq h2 i, .contact h2 i {
    margin-right: 10px;
    color: #f5f5f5;
}

.about p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    animation-name: p-1;
    animation-timeline: scroll();
    animation-timing-function: linear;
    animation-range: entry 20% cover 40%;
}

/* Services Section */
.services {
    padding: 120px 0;
    background-color: #111;
    position: relative;
    overflow: hidden;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.services p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    z-index: 0;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 70px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.project {
    background-color: rgba(34, 34, 34, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 300px;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: rgba(34, 34, 34, 0.5);
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px 15px 0 0;
}

.project h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.project p {
    padding: 0 20px 20px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Creators Section */
.creators {
    padding: 150px 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.creators::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    z-index: 0;
}

.creators h2 {
    font-size: 3rem;
    margin-bottom: 70px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    animation-name: p-2;
    animation-timeline: scroll();
    animation-timing-function: linear;
    animation-range: entry 10% cover 30%;
}

.creator-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.creator {
    text-align: center;
    padding: 40px 30px;
    background-color: rgba(34, 34, 34, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 250px;
    margin: 0 auto;
    animation-name: p-scale;
    animation-timeline: scroll();
    animation-timing-function: linear;
    animation-range: entry 30% cover 50%;
}

.creator-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #333;
    margin: 0 auto 20px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
}

.creator:nth-child(1) .creator-img {
    background-image: url('../images/mryarg1ch.png');
}

.creator:nth-child(2) .creator-img {
    background-image: url('../images/ch0tes.png');
}

.creator:hover .creator-img {
    transform: scale(1.1) rotate(5deg);
}

.creator h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.creator p {
    color: #ccc;
}

/* FAQ Section */
.faq {
    padding: 120px 0;
    background-color: #111;
    position: relative;
    overflow: hidden;
}

.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.faq-item {
    background-color: rgba(34, 34, 34, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #f5f5f5;
}

.faq-item p {
    color: #ccc;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 150px 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    z-index: 0;
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
}

.contact p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links, .footer-contact {
    margin-bottom: 30px;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.social-icons {
    display: flex;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    background-color: #333;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #777;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Parallax Scroll Animations */
@keyframes p-1 {
    from { transform: translateY(0) }
    to { transform: translateY(-100px) }
}

@keyframes p-2 {
    from { transform: translateY(0) }
    to { transform: translateY(-50px) }
}

@keyframes p-3 {
    from { transform: translateY(0) }
    to { transform: translateY(-150px) }
}

@keyframes p-rotate {
    from { transform: rotate(0deg) }
    to { transform: rotate(5deg) }
}

@keyframes p-scale {
    from { transform: scale(1) }
    to { transform: scale(1.1) }
}

.parallax-element {
    animation-timeline: scroll();
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-range: 0 400px;
}

.p-slow {
    animation-name: p-1;
}

.p-medium {
    animation-name: p-2;
}

.p-fast {
    animation-name: p-3;
}

.p-rotate {
    animation-name: p-rotate;
}

.p-scale {
    animation-name: p-scale;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    header {
        max-width: 99%;
        padding: 12px 30px;
    }

    .nav-links li {
        margin-left: 12px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        max-width: 100%;
        width: 95%;
        padding: 10px 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-content {
        flex-direction: column;
    }

    nav {
        justify-content: flex-end;
    }

    .nav-links {
        display: none;
    }

    .discord-btn {
        margin-left: 0;
    }

    .about, .services, .projects, .creators, .faq {
        padding: 100px 0;
    }

    .about h2, .services h2, .projects h2, .creators h2, .faq h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    header {
        border-radius: 30px;
        padding: 8px 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .project-grid, .creator-grid {
        grid-template-columns: 1fr;
    }

    .about h2, .services h2, .projects h2, .creators h2, .faq h2, .contact h2 {
        font-size: 2rem;
    }
}