:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00f3ff;
    --secondary-color: #bd00ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom one */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Orbitron', sans-serif;
}

/* Canvas Background */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Custom Cursor - Black Hole */
.cursor-black-hole {
    position: fixed;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: black;
    box-shadow: 0 0 15px 2px rgba(255, 255, 255, 0.8),
        0 0 30px 5px var(--accent-color),
        inset 0 0 10px rgba(0, 0, 0, 1);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s, height 0.2s, box-shadow 0.2s;
    mix-blend-mode: normal;
}

.cursor-black-hole.hovering {
    width: 50px;
    height: 50px;
    box-shadow: 0 0 25px 5px rgba(255, 255, 255, 0.9),
        0 0 50px 15px var(--secondary-color);
}

/* Text Effects */
h1,
h2,
.logo {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    transition: text-shadow 0.3s;
}

h1:hover,
h2:hover,
.logo:hover {
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.6),
        0 0 40px rgba(0, 243, 255, 0.3);
}

.highlight {
    animation: glow-pulse 3s infinite;
}

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 5px var(--accent-color);
    }

    50% {
        text-shadow: 0 0 20px var(--accent-color), 0 0 10px white;
    }

    100% {
        text-shadow: 0 0 5px var(--accent-color);
    }
}

/* Text Reveal Animation */
.text-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.text-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        text-shadow: 2px 2px 0px var(--secondary-color), -2px -2px 0px var(--accent-color);
        transform: translate(0);
    }

    20% {
        text-shadow: -2px 2px 0px var(--secondary-color), 2px -2px 0px var(--accent-color);
        transform: translate(-2px, 2px);
    }

    40% {
        text-shadow: 2px -2px 0px var(--secondary-color), -2px 2px 0px var(--accent-color);
        transform: translate(2px, -2px);
    }

    60% {
        text-shadow: -2px -2px 0px var(--secondary-color), 2px 2px 0px var(--accent-color);
        transform: translate(-2px, -2px);
    }

    80% {
        text-shadow: 2px 2px 0px var(--secondary-color), -2px -2px 0px var(--accent-color);
        transform: translate(2px, 2px);
    }

    100% {
        text-shadow: 0 0 0 transparent;
        transform: translate(0);
    }
}

h1:hover,
h2:hover {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: white;
}

p {
    transition: color 0.3s, text-shadow 0.3s;
}

p:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

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

header {
    padding: 20px 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.5));
    transition: filter 0.3s;
}

.logo-img:hover {
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.8));
}

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

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

nav a:hover {
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#about p {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Hero */
#hero {
    text-align: center;
    align-items: center;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-color);
    position: relative;
}

#hero p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--accent-color);
    color: black;
    box-shadow: 0 0 30px var(--accent-color);
}

/* Cards (Glassmorphism) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card,
.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.project-card h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skills-list span {
    padding: 10px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

input,
textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 15px;
    color: white;
    font-family: 'Inter', sans-serif;
    border-radius: 5px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

button[type="submit"] {
    padding: 15px;
    background: var(--secondary-color);
    border: none;
    color: white;
    font-family: 'Orbitron', sans-serif;
    cursor: none;
    /* Keep custom cursor */
    transition: opacity 0.3s;
}

button[type="submit"]:hover {
    opacity: 0.8;
}

/* Social Media */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: translateY(-5px);
}

footer {
    text-align: center;
    padding: 50px 0;
    color: #666;
    font-size: 0.8rem;
}

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

    header {
        flex-direction: column;
        gap: 20px;
    }
}