/* style.css - Complete Portfolio Styling with Vibrant Colors */

/* === ANIMATED BACKGROUND === */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

/* Pulsing wave effect */
#particles-js::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseWave 6s infinite ease-in-out;
    z-index: 1;
}

#particles-js::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseWave 8s infinite ease-in-out 2s;
    z-index: 1;
}

@keyframes pulseWave {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.6;
    }
}

/* Optional: Add subtle gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 245, 255, 0.05) 0%,
            rgba(0, 180, 212, 0.03) 50%,
            transparent 100%);
    z-index: -2;
    pointer-events: none;
}

/* === CSS VARIABLES === */
:root {
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(0, 245, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(0, 245, 255, 0.3);
    --btn-bg: rgba(0, 245, 255, 0.2);
    --btn-hover: rgba(0, 245, 255, 0.4);
    --shadow: rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --skill-bg: rgba(0, 245, 255, 0.1);
    --skill-hover: rgba(0, 245, 255, 0.25);
    --header-bg: rgba(26, 26, 46, 0.8);
    --toggle-glow: rgba(0, 245, 255, 0.6);
    --track-gradient: linear-gradient(90deg, #00f5ff, #00b8d4);
    --typing-color: #00f5ff;
    --progress-bg: rgba(0, 245, 255, 0.15);
    --progress-fill: #00f5ff;
    --project-card-glow: rgba(0, 245, 255, 0.7);
}

[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #0a0a1a 0%, #0f0f23 100%);
    --text-color: #e0f7fa;
    --card-bg: rgba(0, 245, 255, 0.05);
    --card-border: rgba(0, 245, 255, 0.25);
    --input-bg: rgba(0, 245, 255, 0.05);
    --input-border: rgba(0, 245, 255, 0.35);
    --btn-bg: rgba(0, 245, 255, 0.15);
    --btn-hover: rgba(0, 245, 255, 0.35);
    --shadow: rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(0, 245, 255, 0.03);
    --skill-bg: rgba(0, 245, 255, 0.08);
    --skill-hover: rgba(0, 245, 255, 0.2);
    --header-bg: rgba(10, 10, 26, 0.9);
    --toggle-glow: rgba(0, 245, 255, 0.8);
    --track-gradient: linear-gradient(90deg, #00b8d4, #00838f);
    --typing-color: #00f5ff;
    --progress-bg: rgba(0, 245, 255, 0.12);
    --progress-fill: #00f5ff;
    --project-card-glow: rgba(0, 245, 255, 0.9);
}

/* === GLOBAL STYLES === */
*,
*::before,
*::after {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* === TYPING ANIMATION === */
.typing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
}

.typing-prefix {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.typing-dynamic,
.typed-cursor {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--typing-color);
    min-height: 70px;
    display: inline-block;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.7);
}

.typed-cursor {
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

[data-theme="dark"] .typing-prefix {
    background: linear-gradient(45deg, #e0f7fa, #e0f7fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === DARK MODE TOGGLE === */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    width: 70px;
    height: 36px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 50px;
    padding: 4px;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--shadow), inset 0 2px 8px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.05));
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px var(--shadow), 0 0 20px var(--toggle-glow);
}

.theme-toggle .track {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 62px;
    height: 28px;
    background: var(--track-gradient);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.theme-toggle.active .track {
    opacity: 0.2;
}

.toggle-switch {
    position: relative;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #00b8d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.toggle-switch i {
    transition: all 0.5s ease;
    position: absolute;
}

.theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(-180deg);
}

.theme-toggle.active .toggle-switch {
    transform: translateX(34px);
    background: #333;
    color: #ffd43b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.6);
}

.theme-toggle.active .fa-sun {
    opacity: 0;
    transform: rotate(180deg);
}

.theme-toggle.active .fa-moon {
    opacity: 1;
    transform: rotate(0deg);
}

/* === HEADER === */
header {
    padding: 2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: var(--header-bg);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(0, 245, 255, 0.15);
    box-shadow: 0 10px 30px var(--shadow);
}

[data-theme="dark"] header.scrolled {
    background: rgba(0, 245, 255, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: 1px;
}

.logo:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
}

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

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--typing-color);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    transform: translateY(-3px);
}

/* === HERO === */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--btn-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 245, 255, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.4), transparent);
    transition: left 0.7s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px var(--shadow);
    background: var(--btn-hover);
    border-color: #00f5ff;
}

/* === ABOUT & SKILL BARS === */
.about {
    padding: 100px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--typing-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills-container {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.skill-bar {
    height: 12px;
    background: var(--progress-bg);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00f5ff, #00b8d4);
    border-radius: 6px;
    position: relative;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6),
        inset 0 0 10px rgba(0, 245, 255, 0.3);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.6));
    animation: shimmer 1.8s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.skill-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--typing-color);
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--card-border);
    box-shadow: 0 20px 40px var(--shadow);
}

.profile-img:hover {
    transform: scale(1.08) rotate(5deg);
    border-color: #00f5ff;
    box-shadow: 0 30px 60px var(--shadow), 0 0 30px rgba(0, 245, 255, 0.7);
}

/* === 3D PROJECT CARDS === */
.projects {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px var(--shadow);
}

.project-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 35px 70px var(--shadow), 0 0 50px rgba(0, 245, 255, 0.8);
    border-color: rgba(0, 245, 255, 0.6);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), transparent 50%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.project-info {
    padding: 1.8rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(45deg, #fff, var(--typing-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-info p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.2rem;
}

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

.project-links a {
    color: var(--text-color);
    font-size: 1.3rem;
    width: 45px;
    height: 45px;
    background: rgba(0, 245, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.project-links a:hover {
    transform: translateY(-8px) scale(1.2);
    background: var(--typing-color);
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 245, 255, 0.6);
}

/* === CONTACT & FOOTER === */
.contact {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .contact {
    background: rgba(0, 0, 0, 0.3);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00f5ff;
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.4);
    transform: scale(1.02);
}

.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.error-message {
    position: absolute;
    bottom: -20px;
    left: 15px;
    font-size: 0.8rem;
    color: #ff6b6b;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.error-message.show {
    opacity: 1;
}

/* === SUBMIT BUTTON - VIBRANT & FIXED === */
.submit-btn {
    padding: 16px 48px;
    min-width: 180px;
    background: linear-gradient(45deg, #00b8d4, #006064);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.submit-btn:enabled {
    background: linear-gradient(45deg, #00f5ff, #00b8d4);
    color: #000;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.5);
}

.submit-btn:enabled:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 245, 255, 0.6);
    background: linear-gradient(45deg, #00b8d4, #00f5ff);
}

.submit-btn .btn-text,
.submit-btn .btn-loading,
.submit-btn .btn-success,
.submit-btn .btn-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.8);
}

.submit-btn .btn-text {
    opacity: 1;
    color: #000;
}

.submit-btn .btn-loading {
    opacity: 0;
    color: #ffd43b;
}

.submit-btn .btn-success {
    opacity: 0;
    color: #fff;
    text-shadow: 0 0 15px rgba(40, 167, 69, 1);
}

.submit-btn .btn-error {
    opacity: 0;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 107, 107, 1);
}

.submit-btn.loading .btn-text,
.submit-btn.success .btn-text,
.submit-btn.error .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loading {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

.submit-btn.success .btn-success {
    opacity: 1;
}

.submit-btn.error .btn-error {
    opacity: 1;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

footer {
    padding: 3rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 15px;
    display: inline-block;
}

.social-links a:hover {
    color: #00f5ff;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.9);
    transform: translateY(-8px) rotate(15deg) scale(1.4);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

    .typing-prefix,
    .typing-dynamic,
    .typed-cursor {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--header-bg);
        padding: 1rem 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
        width: 60px;
        height: 32px;
    }

    .toggle-switch {
        width: 24px;
        height: 24px;
    }

    .theme-toggle.active .toggle-switch {
        transform: translateX(28px);
    }

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

    .project-card:hover {
        transform: translateY(-10px);
    }

    #particles-js::before,
    #particles-js::after {
        filter: blur(20px);
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .submit-btn {
        padding: 14px 36px;
        min-width: 160px;
        font-size: 1rem;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 4px 0;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

#visit-counter {
    font-weight: 600;
    background: linear-gradient(45deg, #a8edea, #00f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Courier New', monospace;
}

.counter-value {
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* === SUCCESS POPUP === */
#success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
}

#success-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid rgba(0, 245, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 245, 255, 0.3);
    transform: scale(0.7);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

#success-popup.show .popup-content {
    transform: scale(1);
}

.popup-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.15) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.popup-icon {
    font-size: 3.5rem;
    color: #00f5ff;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.8);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.popup-content h3 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    background: linear-gradient(45deg, #fff, #00f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-content p {
    margin: 0 0 20px;
    color: #a8edea;
    font-size: 1rem;
}

#popup-name {
    color: #00f5ff;
    font-weight: 600;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0, 245, 255, 0.2);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: #00f5ff;
    color: #000;
    transform: rotate(90deg);
}

/* === CONFETTI CANVAS === */
#confetti-canvas {
    z-index: 9999 !important;
}

/* === VISITOR STATS === */
#visitor-stats {
    font-family: 'Courier New', monospace;
    text-align: center;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 245, 255, 0.2);
}

#visitor-stats p {
    margin: 6px 0;
    color: #a8edea;
    font-weight: 500;
}

.counter-total,
.counter-unique {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #00f5ff, #a8edea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
}

/* === HORIZONTAL 3D SCROLL === */
.projects {
    padding: 120px 0;
    overflow: hidden;
    position: relative;
}

.section-subtitle {
    text-align: center;
    margin: 1rem 0 3rem;
    color: #a8edea;
    font-size: 1.1rem;
    font-weight: 500;
}

.horizontal-scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

/* OPTIMIZED HORIZONTAL SCROLL */
.project-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    padding: 0 5vw;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.project-card {
    width: 380px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.project-card:active {
    cursor: grabbing;
}

/* Hide scroll indicator if not needed */
.scroll-indicator {
    display: none;
    /* Optional: remove if confusing */
}


.project-card:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(3deg);
    box-shadow: 0 40px 80px var(--shadow), 0 0 60px rgba(0, 245, 255, 0.7);
    border-color: #00f5ff;
}

.project-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.project-info {
    padding: 1.8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(45deg, #fff, #00f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-links a {
    color: #a8edea;
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 245, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.project-links a:hover {
    background: #00f5ff;
    color: #000;
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.6);
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #a8edea;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: inline-block;
    background: rgba(0, 245, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 245, 255, 0.3);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .project-card {
        width: 300px;
    }

    .project-track {
        gap: 1.5rem;
    }

    .scroll-indicator {
        font-size: 1rem;
    }
}

/* === SMOOTH PARTICLES CANVAS (NO EDGES) === */
#particles-js canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: blur(0.5px);
    /* Softens edges */
    transform: translateZ(0);
    will-change: transform;
}