:root {
    --bg-color: #0a0a0a;
    --primary-color: #9b59b6;
    --secondary-color: #8e44ad;
    --accent-color: #e91e63;
    --text-color: #f8f8f2;
    --card-bg: #1a1a1a;
    --terminal-bg: #2d2d2d;
    --glow: 0 0 20px rgba(155, 89, 182, 0.5);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(155, 89, 182, 0.2);
    padding: 20px 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: var(--glow);
}

main {
    padding-top: 100px;
    min-height: 100vh;
}

.hero {
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.hero .tagline {
    font-size: 2em;
    margin-bottom: 30px;
    color: #ffffff !important;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 4s steps(60, end), blink-caret 0.75s step-end infinite;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.2em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow);
}

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

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

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.6);
}

section {
    padding: 100px 5%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid rgba(155, 89, 182, 0.3);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 4s linear infinite;
}

.skill-card:hover::before {
    opacity: 0.1;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--glow), var(--shadow);
}

.skill-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

.skill-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.terminal {
    background: var(--terminal-bg);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--glow);
    margin: 20px 0;
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-button.red { background: #ff5f57; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #28ca42; }

.terminal-title {
    color: #ccc;
    font-size: 12px;
    font-family: 'Fira Code', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--text-color);
    background: var(--terminal-bg);
    min-height: 200px;
    white-space: pre-wrap;
}

.terminal-prompt {
    color: var(--primary-color);
}

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}



.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.6) 0%, rgba(233, 30, 99, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: trailFade 1s ease-out forwards;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    width: 40px;
    height: 40px;
}

.cursor.click {
    width: 15px;
    height: 15px;
    animation: cursorClick 0.2s ease;
}

@keyframes cursorPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes cursorGlow {
    0% { box-shadow: 0 0 20px rgba(155, 89, 182, 0.8), 0 0 40px rgba(233, 30, 99, 0.4); }
    100% { box-shadow: 0 0 30px rgba(155, 89, 182, 1), 0 0 60px rgba(233, 30, 99, 0.6); }
}

@keyframes cursorFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-5px); }
}



@keyframes trailFade {
    0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

@keyframes cursorClick {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(0.8); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(155, 89, 182, 0.3);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155, 89, 182, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.project-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: var(--glow), var(--shadow);
}

.project-card {
    text-align: center;
    position: relative;
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2em;
    color: white;
    box-shadow: var(--glow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.8);
}

.project-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-card p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 15px;
}

.project-btn {
    margin-top: 10px;
}

footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid rgba(155, 89, 182, 0.2);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 2em;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2) rotate(360deg);
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--primary-color); }
    to { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

@keyframes textGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero .tagline {
        font-size: 1.5em;
    }

    .navbar {
        padding: 15px 5%;
    }

    .nav-links li {
        margin-left: 15px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 5%;
    }
}
