:root {
    --bg-dark: #0d0a1a;

    --bg-card: #1a142d;

    --text-primary: #e0e0e0;

    --text-secondary: #a89cb8;

    --accent-primary: #c8a2c8;

    --accent-hover: #ff6b6b;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}


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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-size: cover;
    color: var(--text-primary);
    line-height: 1.6;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background-image: url('../assets/image/evernightbackground.png');
    background-size: cover;
    background-position: center center;
}

header {
    background: rgba(13, 10, 26, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 162, 200, 0.2);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}


.main-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}


.main-home {
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1200px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    filter: drop-shadow(0 0 15px rgba(200, 162, 200, 0.4));
}

.hero-text {
    flex: 1.2;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-shadow: 1px 1pxx 3px rgba(0, 0, 0, 0.8);
}

.btn {
    background-color: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(200, 162, 200, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 1.5rem;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.btn-sm-outline {
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}


.social-media-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    background-color: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(200, 162, 200, 0.2);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    min-width: 200px;
}

.social-link:hover {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.social-link i {
    font-size: 1.5rem;
    margin-right: 1rem;
}


footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    nav ul {
        display: none;

    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

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


.audio-player-simple {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

#play-pause-btn {
    background-color: rgba(26, 10, 39, 0.8);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s;
}

#play-pause-btn:hover {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
}


input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
}


input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    border-radius: 5px;
}

input[type="range"]::-moz-range-track {
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    border-radius: 5px;
}


input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;

    background-color: var(--accent-primary);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

input[type="range"]::-moz-range-thumb {
    background-color: var(--accent-primary);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}


.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    margin-bottom: 4rem;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    object-fit: cover;
}

.about-text h2 {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 1rem;
}


.skills-section {
    margin-top: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.skill-card i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}


#back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 85px;

    background-color: var(--accent-primary);
    color: var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

#back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}


.main-container,
.hero {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.btn:hover,
.project-card:hover,
.social-link:hover {
    transform: scale(1.05);

}

.project-tech {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: bold;
}

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 2rem;
    }

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

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .page-title {
        font-size: 2.2rem;
    }

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

    .social-link {
        min-width: 100%;
        justify-content: center;
    }

    .audio-player-simple {
        right: 10px;
        bottom: 10px;
    }

    #back-to-top-btn {
        bottom: 15px;
        right: 75px;
    }
}

.hamburger-btn {
    display: none;
    position: fixed;
    top: 15px;
    right: 20px;
    background-color: transparent;
    color: var(--accent-primary);
    border: none;
    font-size: 24px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.hamburger-btn span {
    display: block;
    width: 30px;
    height: 4px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1002;
    top: 0;
    right: 0;
    background-color: rgba(13, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    text-align: center;
}

.sidenav a {
    padding: 15px;
    text-decoration: none;
    font-size: 22px;
    color: var(--accent-primary);
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #ffffff;
}

.sidenav .close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    header {
        display: block;
    }
    body {
        background-attachment: scroll;
    }
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
