/* ================================
   Premium Effects - premium.css
   ================================ */

/* ===== Particle Background ===== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: #0f0f1a;
}

/* ===== Glowing Effects ===== */
.glow {
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5),
                0 0 40px rgba(108, 99, 255, 0.3),
                0 0 80px rgba(108, 99, 255, 0.1);
}

.glow-text {
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.8),
                 0 0 20px rgba(108, 99, 255, 0.5),
                 0 0 40px rgba(108, 99, 255, 0.3);
}

/* ===== Premium Navbar ===== */
.navbar {
    background: rgba(15, 15, 26, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 99, 255, 0.15);
}

/* ===== Premium Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center,
        rgba(108, 99, 255, 0.08) 0%,
        transparent 60%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ===== Premium Hero Circle ===== */
.hero-circle {
    position: relative;
    background: transparent !important;
    border: none !important;
}

.hero-circle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #6c63ff,
        #f50057,
        #00e5ff,
        #6c63ff
    );
    animation: rotate-border 3s linear infinite;
    z-index: -1;
}

.hero-circle::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #0f0f1a;
    z-index: -1;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Premium Cards ===== */
.project-card,
.skill-card,
.service-card,
.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.project-card::before,
.skill-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(108, 99, 255, 0.05),
        transparent
    );
    transition: left 0.6s ease;
}

.project-card:hover::before,
.skill-card:hover::before,
.service-card:hover::before {
    left: 100%;
}

.project-card:hover,
.skill-card:hover,
.service-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(108, 99, 255, 0.5) !important;
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.2),
                0 0 0 1px rgba(108, 99, 255, 0.1) !important;
}

/* ===== Premium Buttons ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== Neon Text Effect ===== */
.hero-name {
    animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

/* ===== Premium Section Titles ===== */
.section-title {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    animation: expand-line 2s ease-in-out infinite;
}

@keyframes expand-line {
    0%, 100% { width: 60px; }
    50% { width: 120px; }
}

/* ===== Counter Animation ===== */
.stat-card h3 {
    display: inline-block;
    transition: transform 0.3s;
}

.stat-card:hover h3 {
    transform: scale(1.2);
}

/* ===== Premium Skill Bar ===== */
.skill-fill {
    position: relative;
    overflow: hidden;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from { left: -100%; }
    to { left: 100%; }
}

/* ===== Premium Contact Section ===== */
.store-btn {
    position: relative;
    overflow: hidden;
}

.store-btn::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.3s ease;
    font-size: 1.2rem;
}

.store-btn:hover::after {
    right: 15px;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    border: 1px solid rgba(108, 99, 255, 0.3);
    margin-bottom: 15px;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(108, 99, 255, 0); }
}

/* ===== Scroll Progress Bar ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== Back to Top Button ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.6);
}

/* ===== Cursor Effect ===== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(108, 99, 255, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* ===== Available Badge ===== */
.available {
    position: relative;
    padding-left: 18px;
}

.available::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #00e676;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

/* ===== Project Card Number ===== */
.project-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(108, 99, 255, 0.08);
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

/* ===== Glassmorphism Cards ===== */
.glass-card {
    background: rgba(30, 30, 58, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.15) !important;
}

/* ===== Responsive Premium ===== */
@media (max-width: 768px) {
    .cursor, .cursor-dot {
        display: none;
    }
}
