/* --- Global Variables --- */
:root {
    --backup-color:#48ee9b;
    /* Pure black background per user request */
    --bg-color: #000000;
    --bg-alt: #000000;
    --text-main: #e6fbff;
    --text-muted: #728a93;
    --accent: #00e5ff; /* Sleek Cyan for Gamer vibe */
    --accent-glow: rgba(0,229,255,0.12);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    /* Layered subtle textures + gradient for a professional look */
    background-image:
        radial-gradient(circle at 10% 10%, rgba(0,229,255,0.01), transparent 12%),
        radial-gradient(circle at 90% 90%, rgba(255,255,255,0.01), transparent 16%),
        linear-gradient(180deg, var(--bg-color), var(--bg-alt));
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Soft vignette to focus content and add polish */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    /* stronger vignette for a darker, focused look */
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.88) 100%);
    z-index: 0;
}

/* Ensure main content appears above vignette */
.container, .hero, .section {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: var(--text-main);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-main);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto;
    border-radius: 2px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    /* Neutral gray overlay to avoid bluish cast and keep a professional tone */
    background: linear-gradient(rgba(18,18,18,0.92), rgba(12,12,12,0.96)), url('items/BackgroundTest/Krase-Character.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 400;
}

.highlight {
    color: var(--accent);
}

/* Subtle glow effects to make the accent feel luminous on dark background */
.logo {
    text-shadow: 0 0 6px var(--accent), 0 0 18px var(--accent-glow);
}
.section-title::after {
    box-shadow: 0 0 12px var(--accent-glow);
}
.btn:hover {
    background: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 8px 24px var(--accent-glow);
}
.contact-card i {
    text-shadow: 0 0 10px var(--accent-glow);
}
.project-info {
    /* keep readable but add a soft glow on hover */
    transition: var(--transition);
}
.project-card:hover .project-info {
    box-shadow: 0 -8px 30px rgba(0,229,255,0.08);
}

.btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 1.1rem;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
}

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

/* --- About Section --- */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.24);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-align: justify;
    text-indent: 1.5rem; /* Indent first line */
    line-height: 1.7;
}

.about-text h3 {
    text-align: center;
    border-top: 2px solid var(--accent);
    margin: 10px 0;
}
.about-text .about-skill {
    text-align: center;
    text-indent: 0; /* Remove indent for skill list */
}

.about-text .about-lead {
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--accent);
}

.skill-box {
    margin-bottom: 15px;
}

.skill-box p {
    margin-bottom: 5px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}
.progress-bars {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent);
    width: 0; /* Animated by JS */
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}
.progress-main {
    height: 100%;
    background: var(--backup-color);
    width: 0; /* Animated by JS */
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

.soft-skills {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Projects Portfolio --- */
.filter-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-color);
}

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

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    align-content: center;
    display: none;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0, 229, 255, 0.9);
    color: var(--bg-color);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-info {
    bottom: 0;
}

/* --- Contact Section --- */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-card {
    background: var(--bg-color);
    border: 1px solid #333;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    transition: var(--transition);
}

.contact-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: var(--text-muted);
}

/* --- JS Animation Classes --- */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none; /* Add a hamburger menu later if needed */
    }
}

/* --- Mini Audio Player --- */
.mini-audio-player {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 360px;
    background: linear-gradient(180deg, rgba(30,30,30,0.98), rgba(18,18,18,0.98));
    border: 1px solid rgba(0,229,255,0.08);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 2000;
    color: var(--text-main);
}
.mini-audio-player .map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.mini-audio-player .map-header .map-title {
    font-weight: 700;
}
.mini-audio-player .map-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}
.mini-audio-player .map-playlist {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.mini-audio-player .track-btn {
    background: transparent;
    border: 1px solid rgba(161,161,170,0.12);
    color: var(--text-main);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}
.mini-audio-player .track-btn.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.3);
}
.mini-audio-player .map-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mini-audio-player .map-btn {
    background: var(--accent);
    border: none;
    color: var(--bg-color);
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.mini-audio-player .map-progress {
    flex: 1;
    appearance: none;
    height: 6px;
    background: #333;
    border-radius: 6px;
}
.mini-audio-player .map-volume {
    width: 80px;
}
.mini-audio-player .map-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 420px) {
    .mini-audio-player { width: calc(100% - 40px); right: 20px; left: 20px; }
    .mini-audio-player .map-playlist { overflow-x: auto; }
}
.mini-audio-player.inline {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
}

/* Make the inline player look like project-info overlay */
.project-card .mini-audio-player.inline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 229, 255, 0.95);
    color: var(--bg-color);
    padding: 14px 12px;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
    transform: translateY(110%);
    transition: var(--transition);
    z-index: 2;
}
.project-card .mini-audio-player.inline.hidden {
    transform: translateY(110%);
    opacity: 0;
}
.project-card .mini-audio-player.inline.show {
    transform: translateY(0);
}
.project-card .mini-audio-player.inline .map-header .map-title {
    color: var(--bg-color);
    font-weight: 700;
}
.project-card .mini-audio-player.inline .map-close {
    color: var(--bg-color);
}
.project-card .mini-audio-player.inline .map-playlist .track-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--bg-color);
}
.project-card .mini-audio-player.inline .map-controls .map-progress {
    background: rgba(0,0,0,0.15);
}
.project-card .mini-audio-player.inline .map-controls .map-time {
    color: rgba(0,0,0,0.7);
}