:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --font-main: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    user-select: none;
}

/* Noise overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 101;
    /* Above canvas */
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* The Canvas Overlay */
#flashlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

/* Flashlight Body Visual */
#flashlight-body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    /* Bigger/Wider */
    height: auto;
    z-index: 102;
    /* Above noise, clearly visible */
    pointer-events: none;
    transform-origin: top center;
    /* We will translate this via JS */
}

/* Main Content */
.content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

section {
    margin-bottom: 150px;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.subtitle {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 2rem;
}

.bio {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Projects */
/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    display: block;
    text-decoration: none;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.project-card p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.5;
}

/* Skills */
.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    color: #ccc;
    transition: all 0.3s ease;
    cursor: none;
    /* Keep custom cursor logic */
}

/* Remove the old separator */
.skill-list li::before {
    content: none;
}

.skill-list li:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Contact */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact h2 {
    margin-bottom: 3rem;
}

.contact-link {
    display: inline-block;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: none;
}

.contact-link:hover {
    border-color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.socials {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.socials a {
    color: #888;
    transition: color 0.3s ease, transform 0.3s ease;
    border-bottom: 1px solid transparent;
    text-decoration: none;
}

.socials a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    transform: translateY(-3px);
}

footer {
    opacity: 0.5;
    font-size: 0.9rem;
    margin-top: 5vh;
}

@media (max-width: 768px) {
    .content {
        padding: 5vmin;
        gap: 10vh;
    }
}