:root {
    --bg-color: #050505;
    --bg-light: #111111;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --accent: #00f0ff; /* Neon cyan */
    --accent-dark: #0088ff; /* Deep blue */
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* For custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 240, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.container {
    width: min(100% - 4rem, 1000px);
    margin-inline: auto;
}


.accent {
    color: var(--accent);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.section-title .accent {
    white-space: nowrap;
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    flex: 1 1 auto;
    min-width: 48px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-nav {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--accent);
    transition: var(--transition);
    z-index: -1;
}
.btn-primary:hover {
    color: var(--bg-color);
}
.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

.btn-nav {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
}
.btn-nav:hover {
    background: rgba(0, 240, 255, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 1px;
}
.brand-accent {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    padding-top: 150px;
}
.subtitle {
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 10px;
}
.role {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.divider {
    color: var(--accent);
    font-weight: 300;
}
.hero-desc {
    max-width: 600px;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}
.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Glitch Effect */
.glitch {
    position: relative;
}
.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: 2px;
    text-shadow: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    20% { clip: rect(62px, 9999px, 98px, 0); }
    40% { clip: rect(29px, 9999px, 86px, 0); }
    60% { clip: rect(87px, 9999px, 12px, 0); }
    80% { clip: rect(4px, 9999px, 63px, 0); }
    100% { clip: rect(51px, 9999px, 10px, 0); }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}
.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.skill-category h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.tag {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: var(--transition);
}
.tag:hover {
    background: rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

/* Work Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card,
.other-card {
    text-decoration: none;
    color: inherit;
}

.project-img-container {
    width: 100%;
    height: 200px;
    background: #000;
    overflow: hidden;
}
.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.project-card:hover .project-img-container img {
    transform: scale(1.05);
    opacity: 1;
}
.project-content {
    padding: 2rem;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.2);
}
.project-card:hover::before {
    transform: scaleX(1);
}
.project-type {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}
.project-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.project-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-main);
    opacity: 0.7;
}

/* Other Projects */
.other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.other-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.other-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.other-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
}
.other-img-container {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.other-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}
.other-card:hover .other-img-container img {
    opacity: 1;
    transform: scale(1.05);
}
.other-card-content {
    padding: 1.5rem;
}
.other-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.other-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.link-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
}

/* Contact */
.contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.contact .section-title {
    justify-content: center;
}
.contact .section-title::after {
    display: none;
}
.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}
.contact-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.social-icon {
    color: var(--text-muted);
    transition: var(--transition);
}
.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* simple mobile setup */
    }
    .hero {
        padding-top: 100px;
    }
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}
