:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-dim: #888888;
    --accent: #dddddd;
    --border: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Hide default cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

/* Custom Cursor */
.custom-cursor {
    width: 6px;
    height: 6px;
    background: var(--text-main);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s;
}

.cursor-follower {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s;
}

.custom-cursor.hover {
    width: 0px;
    height: 0px;
}

.cursor-follower.hover {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 100;
}

@keyframes glitch {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    transition: color 0.3s text-shadow 0.3s;
}

.logo:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--text-main);
}

.logo::before {
    content: '_';
    position: absolute;
    right: -20px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1.1rem;
    transition: color 0.3s, padding-left 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--text-main);
    padding-left: 5px;
}

nav a::before {
    content: '>';
    opacity: 0;
    margin-right: 5px;
    transition: opacity 0.3s;
}

nav a:hover::before,
nav a.active::before {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Hero Section */
#home {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.profile-container {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    filter: grayscale(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-container:hover {
    filter: grayscale(0%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    min-height: 3.5rem;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 10;
}

.primary-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.secondary-btn {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-dim);
}

.secondary-btn:hover {
    color: var(--text-main);
}

.system-status {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 10;
    position: relative;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-dim);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default !important;
}

.status-item:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(40, 40, 40, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.highlight {
    color: var(--text-main);
    font-weight: bold;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
    border-radius: 50%;
    display: inline-block;
    opacity: 0.8;
}

.status-dot.blink {
    animation: gentlePulse 3s infinite;
}

@keyframes gentlePulse {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

/* About Section */
#about {
    padding: 5rem 5%;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.about-image-cont {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    filter: grayscale(100%);
    transition: filter 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-image-cont:hover {
    filter: grayscale(0%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex-grow: 1;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Projects Section */
#projects {
    padding: 5rem 5%;
}

#projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 30, 30, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.project-img-container {
    width: 100%;
    height: 200px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.5s;
}

.project-card:hover .project-img-container img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.features li {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.features li::before {
    content: '[+]';
    margin-right: 10px;
    color: var(--text-dim);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--text-main);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    margin-top: 3rem;
}

footer a {
    color: var(--text-main);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Selection */
::selection {
    background: var(--text-main);
    color: var(--bg-color);
}