@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #000000;
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --purple-glow: #9d00ff;
    --orange-glow: #ff8000;
    --yellow-glow: #ffff00;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.logo:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    transform: scale(1.05);
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px var(--primary-color), -2px -2px var(--secondary-color);
    }

    25% {
        text-shadow: -2px 2px var(--primary-color), 2px -2px var(--secondary-color);
    }

    50% {
        text-shadow: 2px -2px var(--primary-color), -2px 2px var(--secondary-color);
    }

    75% {
        text-shadow: -2px -2px var(--primary-color), 2px 2px var(--secondary-color);
    }

    100% {
        text-shadow: 2px 2px var(--primary-color), -2px -2px var(--secondary-color);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    align-items: center;
    text-align: center;
}

.pfp-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--purple-glow));
    margin-bottom: 2rem;
    position: relative;
    animation: glow 4s infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 0, 255, 0.5);
    }
}

.pfp-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-color);
    animation: spin-pause 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin-pause {
    0% {
        transform: rotate(0deg);
    }

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

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

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.terminal-container {
    width: 100%;
    max-width: 800px;
    margin: 3rem auto 0;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    text-align: left;
    opacity: 0;
    animation: fadeUpTerminal 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1s;
}

@keyframes fadeUpTerminal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    width: 60px;
}

.terminal-buttons span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.terminal-buttons .close {
    background: #ff5f56;
}

.terminal-buttons .minimize {
    background: #ffbd2e;
}

.terminal-buttons .maximize {
    background: #27c93f;
}

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: #999;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    margin-right: 60px;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #abb2bf;
    height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
}

.terminal-line {
    margin: 4px 0;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.prompt {
    color: var(--primary-color);
    margin-right: 8px;
}

#cmd-input {
    background: transparent;
    border: none;
    color: #abb2bf;
    font-family: inherit;
    font-size: inherit;
    flex-grow: 1;
    outline: none;
    padding: 0;
    margin: 0;
    caret-color: var(--primary-color);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2), 0 0 20px rgba(255, 0, 255, 0.2);
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    background: var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.project-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: #fff;
}

footer {
    padding: 4rem 10%;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-link:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
}

.status-online {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.status-offline {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.cursor-glow {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0.6;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.video-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid var(--card-border);
    background: #000;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

    nav {
        padding: 1.5rem 5%;
    }

    section {
        padding: 80px 5%;
    }

    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}