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

:root {
    --bg-color: #0A0A12;
    --primary-color: #00F3FF;
    --secondary-color: #b026ff;
    --terminal-green: #00FF41;
    --dark-grey: #111;
    --text-color: #eee;
    --glass-bg: rgba(17, 17, 17, 0.45);
    --glass-border: rgba(176, 38, 255, 0.2);
}

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a2be2;
}

::selection {
    background: #8a2be2;
    color: var(--bg-color);
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

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

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

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(238, 238, 238, 0.3);
}

.section-title::before {
    content: '<';
    color: var(--primary-color);
}

.section-title::after {
    content: '/>';
    color: var(--secondary-color);
}

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

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    position: relative;
    color: white;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--primary-color);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
    }
}

.terminal-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
    min-height: 2rem;
}

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

.social-btn {
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.social-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    transform: translateY(-3px);
}

.about {
    align-items: center;
}

.terminal-window {
    width: 80%;
    max-width: 800px;
    background: rgba(10, 10, 15, 0.85);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(176, 38, 255, 0.2);
    border: 1px solid #222;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.terminal-header {
    background: #15151a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #222;
}

.terminal-header .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

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

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

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

.terminal-header .title {
    margin-left: auto;
    margin-right: auto;
    color: #888;
    font-size: 14px;
    font-family: inherit;
}

.terminal-body {
    padding: 30px;
    min-height: 300px;
    color: #ddd;
}

.terminal-body span {
    color: var(--terminal-green);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--terminal-green);
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 90%;
    margin: 0 auto;
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 243, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s;
}

.skill-card:hover::before {
    left: 150%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 243, 255, 0.4), 0 0 30px rgba(176, 38, 255, 0.2);
    border-color: var(--primary-color);
}

.skill-card .icon {
    font-family: 'Orbitron', sans-serif;
    font-size: 45px;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 15px;
    font-style: normal;
    text-shadow: 0 0 15px rgba(176, 38, 255, 0.8);
    transition: 0.3s;
}

.skill-image-icon {
    height: 45px;
    display: block;
    margin: 0 auto 15px auto;
    filter: drop-shadow(0 0 10px rgba(176, 38, 255, 0.8));
    transition: 0.3s;
}

.skill-card:hover .icon,
.skill-card:hover .skill-image-icon {
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.9));
    color: var(--primary-color);
}

.skill-card h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.2rem;
}

.skill-card p {
    font-size: 0.9rem;
    color: #aaa;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid #2a2a35;
    border-left: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.project-card:hover {
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.project-header {
    background: rgba(10, 10, 15, 0.9);
    padding: 15px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #2a2a35;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
}

.project-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-body p {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cyber-btn {
    align-self: flex-start;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.cyber-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-color);
    border-top: 1px solid rgba(176, 38, 255, 0.2);
    color: #777;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .glitch {
        font-size: 3rem;
    }

    .terminal-text {
        font-size: 1rem;
    }

    .terminal-window {
        width: 100%;
    }

    section {
        padding: 80px 20px 40px;
    }
}
