:root {
    --black: #000000;
    --neon-yellow: #FFFF00;
    --dark-gray: #1a1a1a;
    --light-gray: #333333;
    --text-color: #e0e0e0;
    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: -1;
    animation: glitch 10s linear infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 2px); }
  75% { transform: translate(2px, 2px); }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--light-gray);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--neon-yellow);
    text-decoration: none;
    text-shadow: 0 0 5px var(--neon-yellow), 0 0 10px var(--neon-yellow), 0 0 15px rgba(255, 255, 0, 0.5);
    transition: text-shadow 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 8px var(--neon-yellow), 0 0 18px var(--neon-yellow), 0 0 30px rgba(255, 255, 0, 0.7);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    color: var(--neon-yellow);
    text-shadow: 0 0 5px var(--neon-yellow);
}

/* --- Main Content & Sections --- */
main {
    padding-top: 80px; /* Header height */
}

section {
    padding: 6rem 0;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--neon-yellow);
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
}

/* --- Hero Section --- */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--neon-yellow);
    box-shadow: 0 0 15px var(--neon-yellow), 0 0 25px rgba(255, 255, 0, 0.5);
    margin-bottom: 1.5rem;
}

#hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

#hero h2 {
    font-size: 1.5rem;
    color: var(--neon-yellow);
    margin-bottom: 2rem;
    height: 2.2rem; /* Reserve space for typed.js */
}

.typed-cursor {
    color: var(--neon-yellow);
    font-size: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    border: 2px solid var(--neon-yellow);
    background: var(--neon-yellow);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.btn:hover {
    background: transparent;
    color: var(--neon-yellow);
    box-shadow: 0 0 20px var(--neon-yellow);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-yellow);
}

.btn-secondary:hover {
    background: var(--neon-yellow);
    color: var(--black);
}

/* --- About Section --- */
#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--dark-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--neon-yellow);
}

.skill-card span {
    font-weight: 700;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.project-card {
    background: var(--dark-gray);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
}

.project-card h3 {
    font-family: var(--font-heading);
    color: var(--neon-yellow);
    margin-bottom: 1rem;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-stack span {
    background: var(--light-gray);
    color: var(--neon-yellow);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.project-link {
    color: var(--neon-yellow);
    text-decoration: none;
    font-weight: 700;
    align-self: flex-start;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* --- Contact Section --- */
#contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.social-links a:hover {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
}

/* --- Footer --- */
footer {
    padding: 2rem 0;
    text-align: center;
    background: var(--dark-gray);
    border-top: 1px solid var(--light-gray);
    margin-top: 4rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h2 {
        font-size: 1.2rem;
        height: auto; /* Adjust for mobile */
    }

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

