@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700;900&display=swap');

::selection {
    background: #000;
    color: #ccff00;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #f4f4f0;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* ============================
   LOADING SCREEN STYLES
============================ */
.loader-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #00e5ff; 
    z-index: 9998; 
}

.loader-wrapper {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    display: flex;
    align-items: flex-end; 
    padding: 5% 5% 10% 5%;
    z-index: 10000;
    pointer-events: none;
}

.loader-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.loader-counter {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 3px #000;
    text-shadow: 8px 8px 0px #ccff00;
    margin-bottom: 20px;
}

.loader-bar-wrap {
    width: 100%;
    max-width: 600px;
    height: 25px;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 6px 6px 0px #000;
}

.loader-bar {
    width: 0%; 
    height: 100%;
    background: #ff5252;
    border-right: 4px solid #000;
}

/* ============================
   BACKGROUND & NAVBAR
============================ */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(#000 1.5px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: -2;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    border-bottom: 4px solid #000;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: #ccff00;
    padding: 5px 15px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}

.nav-btn {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    background: #ff9800;
    padding: 10px 20px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.1s ease;
}

.nav-btn:active, .card-btn:active, .action-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #000;
}

/* ============================
   MARQUEE
============================ */
.marquee-container {
    background: #000;
    color: #fff;
    padding: 15px 0;
    border-bottom: 4px solid #000;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.marquee-content span {
    margin: 0 30px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================
   HERO SECTION
============================ */
.content {
    position: relative;
    z-index: 1;
    padding: 0 5%;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 2rem;
}

.hero-text-wrapper {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    background: #ffeb3b;
    border: 5px solid #000;
    padding: 10px 25px;
    box-shadow: 10px 10px 0px #000;
    display: inline-block;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 5vw, 2rem);
    background: #fff;
    border: 4px solid #000;
    padding: 15px 25px;
    box-shadow: 6px 6px 0px #000;
    display: inline-block;
    margin-bottom: 35px;
    font-weight: bold;
    max-width: 90%;
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    color: #000;
    border: 3px solid #000;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 4px 4px 0px #000;
}

.badge-1 { background: #00e5ff; }
.badge-2 { background: #69f0ae; }
.badge-3 { background: #ff5252; color: #fff;}

/* ============================
   SECTIONS & SKILLS
============================ */
section {
    padding: 6rem 0;
    border-top: 4px dashed #000;
}

.section-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 3rem;
    display: inline-block;
    background: #fff;
    padding: 10px 20px;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-tag {
    font-size: clamp(1rem, 3vw, 1.3rem);
    background: #fff;
    border: 3px solid #000;
    padding: 15px 25px;
    box-shadow: 5px 5px 0px #000;
    font-weight: bold;
    transition: transform 0.2s;
}

.skill-tag:hover {
    transform: translateY(-5px);
    background: #000;
    color: #fff;
}

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

.card {
    border: 4px solid #000;
    padding: 2.5rem;
    box-shadow: 10px 10px 0px #000;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px #000;
}

.card-cyan { background: #00e5ff; }
.card-magenta { background: #ff4081; color: #fff; }
.card-yellow { background: #ffeb3b; }

.card-header {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
    background: #fff;
    color: #000;
    align-self: flex-start;
    padding: 5px 10px;
    border: 3px solid #000;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    flex-grow: 1;
    line-height: 1.6;
    font-weight: 500;
}

.card-btn {
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: #000;
    padding: 15px;
    border: 3px solid #000;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.1s ease;
}

.card-btn:hover {
    background: #fff;
    color: #000;
}

/* ============================
   CONTACT
============================ */
.contact {
    padding: 6rem 0;
    border-top: 4px solid #000;
}

.contact-box {
    background: #ccff00;
    border: 5px solid #000;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 12px 12px 0px #000;
}

.contact-box h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.contact-box p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    font-weight: bold;
}

.action-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    background: #6200ea;
    padding: 20px 40px;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
    transition: all 0.1s ease;
}

/* ============================
   MUSIC PLAYER STYLES
============================ */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: #ff9800;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;

    z-index: 999;

    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.mp-header {
    background: #fff;
    border-bottom: 4px solid #000;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-header h3 {
    font-size: 1.2rem;
    font-weight: 900;
}

#mp-toggle {
    background: #ff5252;
    color: #fff;
    border: 3px solid #000;
    font-weight: bold;
    width: 30px;
    height: 30px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
}

#mp-toggle:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000;
}

.mp-body {
    padding: 15px;
    display: block; 
}

.mp-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#mp-search-input {
    flex: 1;
    padding: 8px;
    border: 3px solid #000;
    font-family: inherit;
    font-weight: bold;
}

#mp-search-btn {
    background: #ccff00;
    border: 3px solid #000;
    padding: 0 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 3px 3px 0px #000;
}

#mp-search-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000;
}

.mp-results {
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
    border: 3px solid #000;
    margin-bottom: 15px;
}

.mp-results.hidden {
    display: none;
}

.mp-result-item {
    padding: 10px;
    border-bottom: 2px solid #000;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
}

.mp-result-item:hover {
    background: #00e5ff;
}

.mp-now-playing {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 3px solid #000;
    padding: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.mp-now-playing.hidden {
    display: none;
}

#mp-cover {
    width: 50px;
    height: 50px;
    border: 2px solid #000;
    object-fit: cover;
}

.mp-info {
    flex: 1;
    overflow: hidden;
}

#mp-title {
    font-weight: bold;
    margin-bottom: 5px;
}

#mp-play-pause {
    background: #ccff00;
    border: 2px solid #000;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}

.mp-lyrics-container {
    background: #000;
    color: #ccff00;
    border: 3px solid #000;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mp-results::-webkit-scrollbar { width: 8px; }
.mp-results::-webkit-scrollbar-thumb { background: #000; }

/* ============================
   RESPONSIF MOBILE
============================ */
@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .logo { font-size: 1.2rem; }
    .nav-btn { padding: 8px 12px; font-size: 0.9rem; }
    .project-grid { gap: 2rem; }
    .card { padding: 1.5rem; }
    .loader-bar-wrap { max-width: 100%; }
    .music-player { 
        width: 90%; 
        right: 5%; 
        bottom: 10px; 
    }
}
