/* ============================================================
   ANIMATED BACKGROUND - PARTICLE + GRADIENT
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0a0a0a 0%, #0a0a2e 20%, #0a0a0a 40%, #0a0a3e 60%, #0a0a0a 80%, #0a0a2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 212, 255, 0.08);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 255, 136, 0.06);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(106, 13, 173, 0.07);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 50px) scale(0.9);
    }
    75% {
        transform: translate(30px, -20px) scale(1.05);
    }
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 10;
}

nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: glowLine 3s ease-in-out infinite;
}

@keyframes glowLine {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.logo {
    font-size: 24px;
    font-weight: 900;
    position: relative;
    z-index: 2;
}

.logo span {
    background: linear-gradient(90deg, #00d4ff, #00ff88, #00d4ff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00d4ff;
}

.online-badge {
    background: rgba(0, 255, 100, 0.15);
    color: #00ff64;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
    flex-wrap: wrap;
}

.home-content {
    flex: 1;
}

.badge {
    background: rgba(0, 212, 255, 0.13);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #00d4ff;
    display: inline-block;
    margin-bottom: 16px;
}

.home-content h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
}

.home-content h1 span {
    background: linear-gradient(90deg, #00d4ff, #00ff88, #00d4ff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
}

.tagline {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 12px;
}

.desc {
    color: #888;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #00d4ff;
    color: #0a0a0a;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(90deg, #00d4ff, #00ff88, #00d4ff);
    background-size: 300% 100%;
    border-radius: 30px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
    opacity: 0.5;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

.btn-primary:hover {
    background: #00b8e6;
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid #00d4ff;
    color: #00d4ff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    background: transparent;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0a0a;
}

.home-img {
    flex: 1;
    text-align: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00d4ff;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    transition: 0.5s;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
}

.about,
.works,
.ratings,
.music-section,
.contact {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 2px;
    margin: 12px auto 0;
}

.about-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-text {
    flex: 1;
    min-width: 250px;
    color: #ccc;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.stat:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.stat span {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #00d4ff;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.work-card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
    position: relative;
    z-index: 1;
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: #00d4ff;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.15);
}

.work-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-card h3 {
    padding: 16px 16px 4px;
    color: #fff;
}

.work-card p {
    padding: 0 16px;
    color: #888;
}

.work-card .tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 16px 16px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.review-item {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.review-item:hover {
    border-color: #00d4ff;
}

.review-item .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-item .review-name {
    font-weight: 700;
    color: #fff;
}

.review-item .review-rating {
    color: #ffaa00;
}

.review-item .review-comment {
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

.rating-form {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.rating-form h3 {
    margin-bottom: 16px;
    color: #aaa;
}

.rating-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
    font-family: inherit;
}

.rating-input:focus {
    border-color: #00d4ff;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.star-rating span {
    color: #888;
}

.stars {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.star {
    font-size: 28px;
    opacity: 0.3;
    transition: 0.3s;
    cursor: pointer;
}

.star:hover {
    transform: scale(1.2);
}

.music-container-public {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .music-container-public {
        grid-template-columns: 1fr;
    }
}

.music-player-public {
    text-align: center;
    padding: 24px;
    background: rgba(13, 13, 13, 0.8);
    border-radius: 12px;
}

.music-player-public .music-cover {
    font-size: 64px;
}

.music-player-public .music-info h3 {
    font-size: 20px;
    color: #00d4ff;
}

.music-player-public .music-info p {
    color: #888;
}

.music-player-public .music-progress {
    width: 100%;
    height: 4px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 4px;
    margin: 12px 0;
    overflow: hidden;
}

.music-player-public .music-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s;
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.music-btn {
    background: rgba(26, 26, 26, 0.8);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.music-btn:hover {
    background: #00d4ff;
    color: #0a0a0a;
}

.play-btn {
    background: #00d4ff;
    color: #0a0a0a;
    width: 56px;
    height: 56px;
    font-size: 24px;
}

.play-btn:hover {
    transform: scale(1.05);
}

.music-playlist-public ul {
    list-style: none;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
}

.music-playlist-public li {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    gap: 8px;
}

.music-playlist-public li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.music-playlist-public li.active {
    color: #00d4ff;
    font-weight: 700;
}

.music-playlist-public li .index {
    color: #666;
}

form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form input,
form textarea {
    padding: 14px 18px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
    font-family: inherit;
}

form input:focus,
form textarea:focus {
    border-color: #00d4ff;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

form button {
    border: none;
    cursor: pointer;
    font-size: 16px;
}

footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
}

.footer-credit {
    margin-top: 4px;
    font-size: 12px;
    color: #555;
}

.footer-credit span {
    color: #00d4ff;
}

.admin-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.admin-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00d4ff;
}

@media (max-width: 768px) {
    .home-content h1 {
        font-size: 32px;
    }
    .profile-img {
        width: 200px;
        height: 200px;
    }
    nav ul {
        gap: 16px;
    }
    .about-stats {
        gap: 16px;
    }
    .stat {
        padding: 16px 20px;
    }
    .home {
        padding: 40px 0;
    }
    .about,
    .works,
    .ratings,
    .music-section,
    .contact {
        padding: 40px 0;
    }
    .orb-1,
    .orb-2,
    .orb-3 {
        display: none;
    }
}